ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Pearlman Spencer" <Alan.PearlmanSpen...@Mobileaware.com>
Subject RE: build.bat problem
Date Tue, 13 Nov 2001 12:39:03 GMT
Sorry I don't know tomcat 4.0, but I do have it.
Seems that these are in servlet.jar.
I'd make sure that the CATALINE_HOME points to the correct directory...
Can you get your script to echo it's execution?
Then we can see the classpath it uses. It seems that the line:
	set
CP=%ANT_HOME%\lib\ant.jar;%CATALINA_HOME%\common\lib\servlet.jar
is not correctly pointed as it should find these files in there...

Alan.

-----Original Message-----
From: Peter Georgiou [mailto:petertalker@btinternet.com]
Sent: 13 November 2001 12:31
To: Ant Users List
Subject: Re: build.bat problem


Thanks for your reply alan.  Below are just a few of the cannot resolve
symbol problems

[javac] Compiling 22 source files to
C:\catalina\webapps\fooddoof\WEB-INF\classes
    [javac]
C:\tomcat\fooddoof-app-dev\src\com\fooddoof\actions\FLogonAction.java:3:
cannot resolve symbol
    [javac] symbol  : class HttpServletRequest
    [javac] location: package http
    [javac] import javax.servlet.http.HttpServletRequest;
    [javac]                           ^
    [javac]
C:\tomcat\fooddoof-app-dev\src\com\fooddoof\actions\FLogonAction.java:4:
cannot resolve symbol
    [javac] symbol  : class HttpServletResponse
    [javac] location: package http
    [javac] import javax.servlet.http.HttpServletResponse;
    [javac]                           ^
    [javac]
C:\tomcat\fooddoof-app-dev\src\com\fooddoof\actions\FLogonAction.java:5:
cannot resolve symbol
    [javac] symbol  : class HttpSession
    [javac] location: package http
    [javac] import javax.servlet.http.HttpSession;

I've read your message and have a go at doing what you suggested.  The
build
.bat script I mailed worked fine for Tomcat3.2.  When I changed to
Tomcat4 I
just replaced TOMCAT_HOME to CATALINA_HOME thinking that this would
work.

Peter

----- Original Message -----
From: Alan Pearlman Spencer <Alan.PearlmanSpencer@Mobileaware.com>
To: Ant Users List <ant-user@jakarta.apache.org>
Sent: Tuesday, November 13, 2001 11:29 AM
Subject: RE: build.bat problem


First point I'd make is that it is easier (and better?)
to define the classpath for ANT (ant only) in the batch file
(like the ant.bat, it handles it's own jars nicely)
and set up a fileset for your classpath inside the build
script. This means you can have incompatibilities between
these (like different XML parser as I have) and it will work
OK. You are passing in CATALINE_HOME, so you can get it all from here...

I know this does not solve your problem...
Maybe it would be easier if you mentioned some specific 'cannot resolve
symbol's?

Alan.



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message