Hi
You must put the servlet.jar (take it from SUN), and put it at the
Java_Home\jre\lib\ext directory
If u donīt take servlet write me and i send u.
Julio Oliveira
Oliveira_Julio@y...
Buenos Aires - Argentina
-----Mensaje original-----
De: Ian Corner [mailto:ian@w...]
Enviado el: Domingo, 13 de Enero de 2002 05:01 p.m.
Para: Pro_JavaServer_Pages
Asunto: [pro_jsp] ant and build.properties
windows 2000, JDK1.3.1, Tomcat Catalina 4.0.1
Hi, I have the following errors when trying to build ch01 from the book
Professional JSP Site Design. I got around it by setting the CLASSPATH
variable to the common/lib in Tomcat but I would like to know what is
wrong with my build.properties file. Everyway I try to set the /'s or \'s
gives a build failure.
snipit from running 'ant ch01' -
--------------------------------
compile:
[mkdir] Created dir: D:\dev\wrox\ProJSPSiteDesign\Chapter01
\build\OODev\WEB-INF\classes
[javac] Compiling 1 source file to
D:\dev\wrox\ProJSPSiteDesign\Chapter01\build\OODev\WEB-INF\classes
[javac] D:\dev\wrox\ProJSPSiteDesign\Chapter01
\src\OODev\com\wrox\shop\ShoppingCart.java:4: cannot resolve symbol
[javac] symbol : class HttpServletRequest
[javac] location: package http
[javac] import javax.servlet.http.HttpServletRequest;
[javac] ^
[javac] D:\dev\wrox\ProJSPSiteDesign\Chapter01
\src\OODev\com\wrox\shop\ShoppingCart.java:41: cannot resolve symbol
[javac] symbol : class HttpServletRequest
[javac] location: class com.wrox.shop.ShoppingCart
[javac] public void processRequest(HttpServletRequest req) {
[javac] ^
[javac] 2 errors
--------------------------------------
Snipit from my build.properties file -
# Set this variable to point to your installation of Tomcat #
###############################################################
catalina.home=D:/dev/Apache Tomcat 4.0
###############################################################
# Set this variable for Chapter 9's examples #
###############################################################
jboss.home=D:\\dev\\JBoss-2.4.4
###############################################################
# Additional JAR files not included with the code download #
# #
# Please change these values if necessary (shouldn't need to #
# in most cases) so they point to the location of these files #
# on your system. #
###############################################################
activation.jar=${catalina.home}/common/lib/activation.jar
crimson.jar=${catalina.home}/common/lib/crimson.jar
jaxp.jar=${catalina.home}/common/lib/jaxp.jar
jdbc-ext.jar=${catalina.home}/common/lib/jdbc2_0-stdext.jar
jms.jar=${jboss.home}/lib/ext/jboss-j2ee.jar
mail.jar=${catalina.home}/common/lib/mail.jar
servlet.jar=${catalina.home}/common/lib/servlet.jar
-----------------------------------------
Any help appreciated.
Ian
---
Do you need true END-TO-END (e2e) Java Messaging (JMS)? Softwired
offers industry's ONLY complete 100% JMS messaging solutions for your
needs TODAY.
Visit
http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fjava%2Dsoftwired&url=www.so
ftwired-inc.com NOW and find
out more!
Our unique product range includes: iBus//Mobile (wireless data),
iBus//MessageBus (IP Multicast), iBus//MessageServer (store and forward)
and much more!
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com