Re: jspc and EmptyStackException

2003-01-28 Thread Martin
Gino-
The necessary TLDs must be in WEB-INF relative to the declared uriroot.
Keep us apprised,
-Martin

- Original Message -
From: "Coccia, Gino" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 11:39 AM
Subject: jspc and EmptyStackException


>
> I've just started trying to use the  task and get a
> java.util.EmptyStackException - searching the mail-list indicates that a
few
> other users have seen this problem.  Has anybody any idea what might be
> causing this and what the solution is ?
>
> I'm running Ant 1.5.1, and Tomcat 3.2.3.
>
> My task is defined as follows :
>
> 
>  destdir="${app.jsp.src}"
> uriroot="${app.jsp}"
> classpathref="app.classpath"
> verbose="9">
> 
> 
> 
>
> Thanks for any help.
>
> Gino
>
>
>

***
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify
[EMAIL PROTECTED] immediately.
>
> This footnote also confirms that this email message has been swept for the
> presence of computer viruses.
>

***
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: jspc errors...

2003-01-27 Thread Armenio Pinto
Olá Pedro!

 It seems this has something to do with the version of Jasper shipped
with Tomcat 1.8.14. You might want to take a look at "Ant's jspc task -
doesn't work on Tomcat 4.1.18":
http://www.mail-archive.com/ant-user@jakarta.apache.org/msg22973.html. Boa
sorte colega!

Arménio Pinto


-Original Message-
From: Pedro Salazar [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 27 de Janeiro de 2003 11:04
To: [EMAIL PROTECTED]
Subject: jspc errors...


Greetings,

I'm trying to compile my jsp files but I'm blocked in jspc task! When I
run my target (jsp-compile) I got the exception below my ant task:





exception:
"
jsp-compile:
 [jspc] Compiling 17 source
files/home/psalazar/work/proj/ngincare_ws/v2.1/web/build/jsp/PT/ptinovacao/n
gincare/jsp
  [jasperc] Exception in thread "main"
java.lang.ArrayIndexOutOfBoundsException: 23
  [jasperc] at org.apache.jasper.JspC.locateUriRoot(JspC.java:616)
  [jasperc] at org.apache.jasper.JspC.execute(JspC.java:747)
  [jasperc] at org.apache.jasper.JspC.main(JspC.java:810)
BUILD FAILED
"

But, if I add a "uriroot" attribute pointing to ".", I got another
exception! It goes a little further in processing: it generates in my
${build.jsp.dir} directory [destdir attribute], a tree structure equals
the ${src.web.dir} [srcdir attribute], with a styles_jsp.java well
generated and the error_jsp.java empty causing this exception:
"
jsp-compile:
 [jspc] Compiling 17 source
files/home/psalazar/work/proj/ngincare_ws/v2.1/web/build/jsp/PT/ptinovacao/n
gincare/jsp
  [jasperc] 2003-01-27 10:51:33 - ERROR-the file
'/src/main/web/errorpage.jsp' generated the following general exception:
org.apache.jasper.JasperException: /src/main/web/errorpage.jsp(6,0) File
"/styles.jsp" not found
  [jasperc] error:/src/main/web/errorpage.jsp(6,0) File "/styles.jsp"
not found
BUILD FAILED
"

What is wrong here? I'm confused with the tree directory generated in my
build directory equals my path to my sources jsp files... Is it the
right behavior? 

I use ant-1.5.1 (compiled on October 2 2002), SUN's jdk1.4.1, tomcat
1.4.18 (jasper files) and a linux box.

thanks,
Pedro Salazar.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JspC problem - Linux

2002-12-21 Thread Les Hartzman
Responding to my own post, I believe I discovered the
problem.

I had previously used Tomcat 4.0.4 and right now I'm
trying to use 4.1.18.  I didn't realize how much had
changed between 4.0.x to 4.1.x.  It appears that
Jasper in 4.1.x is looking for a particular directory
structure, whereas 4.0.x isn't.

So now I'm trying to determine what structure is
expected (looks like the source directory structure
needs to be in a WAR-like structure, I think).

Les

--- Les Hartzman <[EMAIL PROTECTED]> wrote:
> I'm a Linux newbie and I'm having problems
> diagnosing
> an Ant problem.
> 
> Under Windows I had an Ant script that included
> precompiling JSPs.  When I moved the script to Linux
> (Suse 8.1 Pro) and tried to run it, I got an error
> in
> 'main', an ArrayIndexOutOfBoundsException.  This is
> using Ant 1.5.1.  The non-JSP files compile fine.
> 
> I'm slowly starting to go through the source to try
> and find the problem, but I suspect its more of a
> setup problem.
> 
> I've added $ANT_HOME/bin to the PATH.  I'm using JDK
> 1.4.1_01.  I'm using the tcsh shell, if that
> matters.
> 
> Thanks.
> 
> Les
> 
> 
> =
> --
>
---
> Les Hartzman"Those that don't read have no
>  advantage over those that can't." 
> -- Mark Twain
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
--
---
Les Hartzman"Those that don't read have no
 advantage over those that can't."  -- Mark Twain



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: jspc and webapp

2002-12-09 Thread Ashuthosh Bhat

Thanks Jake and all!  I tried the way you said.. I have added 
another arg webxml.  The good news is its updating web.xml file... 
only thing is it is adding an extra "." infront of the class file 
and name! So the page is not displayed. If I remove the . and 
war.. thats fine.

Thats the problem.  Can you pl. help with this. I am attaching the 
web.xml generated and build.xml.

Best regards,
Ashuthosh

On Sat, 07 Dec 2002 Jacob Kjome wrote :

Here's something I copied from an ant-user message a while ago.  
Haven't tried it, though.  Maybe it will help




  
  
  
  
  
  
  ...





 classname="org.apache.jasper.JspC"
 classpath="${compile.classpath}"
 fork="true"
 failonerror="true">
  
  
  
  
  
  
  
value="-Djava.endorsed.dirs=${tomcat.home}/bin:${tomcat.home}/common/endorse
d" />
  
  
  



 srcdir="${generated.java.classes.dir}"
 destdir="/path/to/you/webapp/dir/WEB-INF/classes"
 optimize="off"
 debug="on"
 depend="on"
 classpath="${compile.classpath}"
 includeJavaRuntime="on"/>


Jake


At 11:48 AM 12/7/2002 +, you wrote:
Greetings!

Has any one tried jspc and webapp?  I want to precomile jsps and 
write the servlet-mapping into web.xml.  How can I use the above 
for this purpose.

I am working with ant1.5.1 and jboss+tomcat as my appserver.

Thanks in advance.






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



http://java.sun.com/dtd/web-app_2_3.dtd";>




	
		.AHome
		.AHome
	

	
		.Home
		.Home
	

	
		.AHome
		/jsp/AHome.jsp
	

	
		.Home
		/jsp/Home.jsp
	





	



	

	


		
 

		
		
		
		
		
		
		
		
		
	   		
		
		
		
		
		
		
		
		  
		  
		  
		  
		  
		  
	  
		  
		  
		  
		
		
		
			 

			 
		
		
		
			 

			 
		

	
		

	

 


	
 
  


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Re: jspc and webapp

2002-12-09 Thread Ashuthosh Bhat
Thanks Jocab and all,
I tried with the build.xml you sent, I have added  also.  The good news is Its modifying the xml 
file. But its adding a "." before all the classfiles its 
generating..

Can any "guru" help me! I am attaching the build and web.xml 
files.

Ashuthosh

On Sat, 07 Dec 2002 Jacob Kjome wrote :

Here's something I copied from an ant-user message a while ago.  
Haven't tried it, though.  Maybe it will help




  
  
  
  
  
  
  ...





 classname="org.apache.jasper.JspC"
 classpath="${compile.classpath}"
 fork="true"
 failonerror="true">
  
  
  
  
  
  
  
value="-Djava.endorsed.dirs=${tomcat.home}/bin:${tomcat.home}/common/endorse
d" />
  
  
  



 srcdir="${generated.java.classes.dir}"
 destdir="/path/to/you/webapp/dir/WEB-INF/classes"
 optimize="off"
 debug="on"
 depend="on"
 classpath="${compile.classpath}"
 includeJavaRuntime="on"/>


Jake


At 11:48 AM 12/7/2002 +, you wrote:
Greetings!

Has any one tried jspc and webapp?  I want to precomile jsps and 
write the servlet-mapping into web.xml.  How can I use the above 
for this purpose.

I am working with ant1.5.1 and jboss+tomcat as my appserver.

Thanks in advance.






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 







	



	

	


		
 

		
		
		
		
		
		
		
		
		
	   		
		
		
		
		
		
		
		
		  
		  
		  
		  
		  
		  
	  
		  
		  
		  
		
		
		
			 

			 
		
		
		
			 

			 
		

	
		

	

 


	
 
  




http://java.sun.com/dtd/web-app_2_3.dtd";>




	
		.AHome
		.AHome
	

	
		.Home
		.Home
	

	
		.AHome
		/jsp/AHome.jsp
	

	
		.Home
		/jsp/Home.jsp
	




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: jspc and webapp

2002-12-07 Thread Steve Loughran

- Original Message -
From: "Shankar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 07, 2002 03:48
Subject: jspc and webapp


> Greetings!
>
> Has any one tried jspc and webapp?  I want to precomile jsps and
> write the servlet-mapping into web.xml.  How can I use the above
> for this purpose.
>
> I am working with ant1.5.1 and jboss+tomcat as my appserver.
>

 is troubled in ant1.5.x; it is slightly better in the version on
CVS_HEAD, with the webapp, webxml and webinc arguments all supported. If you
want to get into advanced jspc, you need to get on CVS and pick up a nightly
build


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jspc and webapp

2002-12-07 Thread Steve Loughran

- Original Message -
From: "Martin" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 08, 2002 04:23
Subject: Re: jspc and webapp


> This is the FIRST example of using args and jvmargs I have seen
> Can we PLEASE include this in the Ant Documentation?

no, because
(a) we have such examples already, look in
http://ant.apache.org/manual/CoreTasks/java.html,
(b) you can use  rather than -Dsomething=value to set sys
properties; JVMargs is less important than you think.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: jspc and webapp

2002-12-07 Thread Martin
This is the FIRST example of using args and jvmargs I have seen
Can we PLEASE include this in the Ant Documentation?
Thank You,
-Martin

- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Saturday, December 07, 2002 11:09 AM
Subject: Re: jspc and webapp


>
> Here's something I copied from an ant-user message a while ago.  Haven't
> tried it, though.  Maybe it will help
>
>
> 
> 
>
>
>
>
>
>
>...
> 
> 
> 
> 
>classname="org.apache.jasper.JspC"
>   classpath="${compile.classpath}"
>   fork="true"
>   failonerror="true">
>
>
>
>
>
>
>
value="-Djava.endorsed.dirs=${tomcat.home}/bin:${tomcat.home}/common/endorse
> d" />
>
>
>
> 
> 
>srcdir="${generated.java.classes.dir}"
>   destdir="/path/to/you/webapp/dir/WEB-INF/classes"
>   optimize="off"
>   debug="on"
>   depend="on"
>   classpath="${compile.classpath}"
>   includeJavaRuntime="on"/>
>
>
> Jake
>
>
> At 11:48 AM 12/7/2002 +, you wrote:
> >Greetings!
> >
> >Has any one tried jspc and webapp?  I want to precomile jsps and write
the
> >servlet-mapping into web.xml.  How can I use the above for this purpose.
> >
> >I am working with ant1.5.1 and jboss+tomcat as my appserver.
> >
> >Thanks in advance.
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: jspc and webapp

2002-12-07 Thread Jacob Kjome

Here's something I copied from an ant-user message a while ago.  Haven't 
tried it, though.  Maybe it will help




  
  
  
  
  
  
  ...





 classname="org.apache.jasper.JspC"
 classpath="${compile.classpath}"
 fork="true"
 failonerror="true">
  
  
  
  
  
  
  
value="-Djava.endorsed.dirs=${tomcat.home}/bin:${tomcat.home}/common/endorse
d" />
  
  
  



 srcdir="${generated.java.classes.dir}"
 destdir="/path/to/you/webapp/dir/WEB-INF/classes"
 optimize="off"
 debug="on"
 depend="on"
 classpath="${compile.classpath}"
 includeJavaRuntime="on"/>


Jake


At 11:48 AM 12/7/2002 +, you wrote:
Greetings!

Has any one tried jspc and webapp?  I want to precomile jsps and write the 
servlet-mapping into web.xml.  How can I use the above for this purpose.

I am working with ant1.5.1 and jboss+tomcat as my appserver.

Thanks in advance.






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: jspc task

2002-11-30 Thread Steve Loughran

- Original Message -
From: "Felipe Schnack" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 30, 2002 10:24
Subject: jspc task


>   I have problems with JSPC task.
>   It generates all java and class files ok, but as I understand I would
need
> to generate servlet entries in web.xml so tomcat would never try to
compile
> the jsp files (and I actually would not need them in my server)
>   how can i do that?
>   If I understand JSPC right, there is a command-line to do that, but I
don't
> know how to do it in ANT.
>

There are options to do it, webxml  and webinc.

webinc Output file name for the fraction of web.xml that lists servlets.
[File]

webxml File name for web.xml. [File]

But: 1. they only work in the current CVS build, not ant 1.5





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JspC task to compile JSPs using tags

2002-11-25 Thread Dennis Doubleday


> -Original Message-
> From: Steve Loughran [mailto:[EMAIL PROTECTED]] 
> - Original Message -
> From: "Vikram Kulkarni" <[EMAIL PROTECTED]>
> >I read in one of the mails posted here that TLD's should be found in
> /WEB-INF folder. I guess my >uriroot="${resources}" points to 
> this folder containing the TLDs. Am I missing something here? 
> Is there any way of
> >checking and getting this task to run for compiling JSP with 
> tags used?
> 
> no, URI root should point to the base of the webapp; all jsps 
> to be compiled must be under this root dir

And the necessary TLDs must be in WEB-INF relative to that root.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JspC task to compile JSPs using tags

2002-11-25 Thread Steve Loughran

- Original Message -
From: "Vikram Kulkarni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 8:40 AM
Subject: JspC task to compile JSPs using tags


>I read in one of the mails posted here that TLD's should be found in
/WEB-INF folder. I guess my >uriroot="${resources}" points to this folder
containing the TLDs. Am I missing something here? Is there any way of
>checking and getting this task to run for compiling JSP with tags used?

no, URI root should point to the base of the webapp; all jsps to be compiled
must be under this root dir


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Jspc and JDK 1.4.1_01 not working

2002-11-01 Thread Steve Loughran

- Original Message -
From: "Jon Schewe" <[EMAIL PROTECTED]>
To: "Steve Loughran" <[EMAIL PROTECTED]>
Cc: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 8:15 AM
Subject: Re: Jspc and JDK 1.4.1_01 not working


> Ok, I just downloaded and installed Tomcat-4.1.12 and I've still got the
same
> problem.  It seems that this is a problem with return values from cygwin.
The
> latest version gives back different return values and therefore the ant
task
> gets unhappy and dies.

I could believe that. But return value 9 is what jasperc is meant to return
when it finds an error, and the zero byte file deletion only takes place if
a zero byte .java file is created.

>
> >>>>> "SL" == Steve Loughran <[EMAIL PROTECTED]> writes:
>
>  SL> - Original Message - From: "Jon Schewe" <[EMAIL PROTECTED]>
To:
>  SL> "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday,
October
>  SL> 30, 2002 4:54 PM Subject: Re: Jspc and JDK 1.4.1_01 not working
>
>
>
>  SL> I'd suspect that something went awry with jasperc; try getting the
latest
>  SL> version with tomcat
>  >>  If that were true, wouldn't I have problems getting Tomcat to compile
the
>  >> files?  Tomcat works just fine, it's just the ant task that's having
>  SL> problems.
>
>  SL> no, jasper.bat will misbehave too
>
>  SL> the ant task deletes empty files that get created if jasperc outputs
a
>  SL> zero byte file with the appropriate name. Jasper does this when thing
do
>  SL> wrong; ant cleans up to stop dependency checking going awry. upgrade
to
>  SL> tomcat4.1
>
> --
> Jon Schewe | http://mtu.net/~jpschewe | [EMAIL PROTECTED]
> For I am convinced that neither death nor life, neither angels
> nor demons, neither the present nor the future, nor any
> powers, neither height nor depth, nor anything else in all
> creation, will be able to separate us from the love of God that
> is in Christ Jesus our Lord. - Romans 8:38-39
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
>
>


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




Re: Jspc and JDK 1.4.1_01 not working

2002-11-01 Thread Jon Schewe
Ok, so get this, I had my JAVA_HOME environment variable set differently in
cygwin than in windows and that was the whole problem.  Thank you all for
your suggestions. 


>>>>> "JS" == Jon Schewe <[EMAIL PROTECTED]> writes:

 JS> Ok, I just downloaded and installed Tomcat-4.1.12 and I've still got the
 JS> same problem.  It seems that this is a problem with return values from
 JS> cygwin.  The latest version gives back different return values and
 JS> therefore the ant task gets unhappy and dies.

>>>>> "SL" == Steve Loughran <[EMAIL PROTECTED]> writes:

 SL> - Original Message - From: "Jon Schewe" <[EMAIL PROTECTED]> To:
 SL> "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, October
 SL> 30, 2002 4:54 PM Subject: Re: Jspc and JDK 1.4.1_01 not working



 SL> I'd suspect that something went awry with jasperc; try getting the latest
 SL> version with tomcat
 >>> If that were true, wouldn't I have problems getting Tomcat to compile the
 >>> files?  Tomcat works just fine, it's just the ant task that's having
 SL> problems.

 SL> no, jasper.bat will misbehave too

 SL> the ant task deletes empty files that get created if jasperc outputs a
 SL> zero byte file with the appropriate name. Jasper does this when thing do
 SL> wrong; ant cleans up to stop dependency checking going awry. upgrade to
 SL> tomcat4.1

 JS> -- Jon Schewe | http://mtu.net/~jpschewe | [EMAIL PROTECTED] For I am
 JS> convinced that neither death nor life, neither angels nor demons, neither
 JS> the present nor the future, nor any powers, neither height nor depth, nor
 JS> anything else in all creation, will be able to separate us from the love
 JS> of God that is in Christ Jesus our Lord. - Romans 8:38-39


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

-- 
Jon Schewe | http://mtu.net/~jpschewe | [EMAIL PROTECTED]
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39


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




Re: Jspc and JDK 1.4.1_01 not working

2002-11-01 Thread Jon Schewe
Ok, I just downloaded and installed Tomcat-4.1.12 and I've still got the same
problem.  It seems that this is a problem with return values from cygwin.  The
latest version gives back different return values and therefore the ant task
gets unhappy and dies.

>>>>> "SL" == Steve Loughran <[EMAIL PROTECTED]> writes:

 SL> - Original Message - From: "Jon Schewe" <[EMAIL PROTECTED]> To:
 SL> "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, October
 SL> 30, 2002 4:54 PM Subject: Re: Jspc and JDK 1.4.1_01 not working



 SL> I'd suspect that something went awry with jasperc; try getting the latest
 SL> version with tomcat
 >>  If that were true, wouldn't I have problems getting Tomcat to compile the
 >> files?  Tomcat works just fine, it's just the ant task that's having
 SL> problems.

 SL> no, jasper.bat will misbehave too

 SL> the ant task deletes empty files that get created if jasperc outputs a
 SL> zero byte file with the appropriate name. Jasper does this when thing do
 SL> wrong; ant cleans up to stop dependency checking going awry. upgrade to
 SL> tomcat4.1

-- 
Jon Schewe | http://mtu.net/~jpschewe | [EMAIL PROTECTED]
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39


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




Re: Jspc and JDK 1.4.1_01 not working

2002-10-31 Thread Steve Loughran

- Original Message -
From: "Jon Schewe" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 4:54 PM
Subject: Re: Jspc and JDK 1.4.1_01 not working



>  SL> I'd suspect that something went awry with jasperc; try getting the
latest
>  SL> version with tomcat
>
> If that were true, wouldn't I have problems getting Tomcat to compile the
> files?  Tomcat works just fine, it's just the ant task that's having
problems.

no, jasper.bat will misbehave too

the ant task deletes empty files that get created if jasperc outputs a zero
byte file with the appropriate name. Jasper does this when thing do wrong;
ant cleans up to stop dependency checking going awry. upgrade to tomcat4.1


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




Re: Jspc and JDK 1.4.1_01 not working

2002-10-30 Thread Jon Schewe
> "SL" == Steve Loughran <[EMAIL PROTECTED]> writes:

 SL> - Original Message - From: "Jon Schewe" <[EMAIL PROTECTED]> To:
 SL> <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 2:18 PM
 SL> Subject: Jspc and JDK 1.4.1_01 not working


 >> I just upgraded from JDK 1.4.1 to 1.4.1_01 and now when I try and compile
 SL> my
 >> JSP's in ant using hte jspc target I get the following: >ant compile
 >> Buildfile: build.xml
 >> 
 >> prepare:
 >> 
 >> compile.classes:
 >> 
 >> compile.jsp: [jspc] Compiling 1 source
 >> file\\mn65-fs1\home\jschewe\projects\ptm\code\tmp [jspc] deleting empty
 >> output file \\mn65-fs1\home\jschewe\projects\ptm\code\tmp\TreeView.java
 >> 
 >> BUILD FAILED file://mn65-fs1/home/jschewe/projects/ptm/code/build.xml:261:
 >> Java
 SL> returned: 9
 >>

 SL> I'd suspect that something went awry with jasperc; try getting the latest
 SL> version with tomcat

If that were true, wouldn't I have problems getting Tomcat to compile the
files?  Tomcat works just fine, it's just the ant task that's having problems.

-- 
Jon Schewe | http://mtu.net/~jpschewe | [EMAIL PROTECTED]
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Jspc and JDK 1.4.1_01 not working

2002-10-30 Thread Steve Loughran

- Original Message -
From: "Jon Schewe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 2:18 PM
Subject: Jspc and JDK 1.4.1_01 not working


> I just upgraded from JDK 1.4.1 to 1.4.1_01 and now when I try and compile
my
> JSP's in ant using hte jspc target I get the following:
> >ant compile
> Buildfile: build.xml
>
> prepare:
>
> compile.classes:
>
> compile.jsp:
>  [jspc] Compiling 1 source
> file\\mn65-fs1\home\jschewe\projects\ptm\code\tmp
>  [jspc] deleting empty output file
> \\mn65-fs1\home\jschewe\projects\ptm\code\tmp\TreeView.java
>
> BUILD FAILED
> file://mn65-fs1/home/jschewe/projects/ptm/code/build.xml:261: Java
returned: 9
>

I'd suspect that something went awry with jasperc; try getting the latest
version with tomcat


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jspc with taglib

2002-10-28 Thread Sonnek, Ryan
nick,
are you running behind a firewall?  could it be that when it parces the
web.xml it's trying to access the url
(http://jakarta.apache.org/taglibs/utility)?  if this is the case, i don't
think that my failure would be doing the same thing, since i'm not using any
external urls.  is it possible to set proxy settings in the build script and
see if it gets a responce?

just an idea..

-Original Message-
From: Nick Pellow [mailto:nick.pellow@;mindmatics.de]
Sent: Monday, October 28, 2002 11:32 AM
To: Ant Users List
Subject: AW: jspc with taglib




> -Ursprüngliche Nachricht-
>
> MORE INFO:
>
> my taglib entry in web.xml is as follows.  it looks pretty standard to me,
> and i don't see where the problem is.  the ant error message i'm getting
> back isn't saying anything about where the problem may be.
>
>   /bcs
>   /WEB-INF/taglib.tld
>
>
> the jsp page that fails to compile with jspc has the following import:
> <%@ taglib uri="/bcs" prefix="bcs" %>
>
> works fine when deployed to jboss w/ jetty (my app server).  i'm using
> jasper runtime 4.0.6, are they're any known issues, or should i
> update to a
> newer version?

No, I am using
18347  23-Sep-2002  11:22:42  org/apache/jasper/JspC.class
and getting an error with the taglibs. I do not know if this is a
known issue with jasper. The error I get is with a taglib directive
that looks like:

<%@ taglib uri="http://jakarta.apache.org/taglibs/dbtags"; prefix="sql" %>

even though I have the follwoing entry in my web.xml.



http://jakarta.apache.org/taglibs/dbtags
/WEB-INF/dbtags.tld


Very strange, as the jasper jspc used to work so well!

Sorry I can not help.
Nick



>
>
>
> -Original Message-
> From: Nick Pellow [mailto:nick.pellow@;mindmatics.de]
> Sent: Monday, October 28, 2002 6:50 AM
> To: Ant Users List
> Subject: AW: jspc with taglib
>
>
>
>
> > -Ursprungliche Nachricht-
> > Von: Dennis Doubleday [mailto:dennis@;righthandmanager.com]
> >
> > No. It works for me, and my target is just:
>
> I do not suppose you are using any fully qualified taglib names are you?
> I am getting the following error:
> Exception initializing TldLocationsCache: XML parsing error on file
> /WEB-INF/web.xml:
> Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found
> ERROR-the file '\tools\convertUI.jsp' generated the following general
> exception: org.apache.jasper.JasperException: null(-1,-1) This
> absolute uri
> (http://jakarta.apache.org/taglibs/utility) cannot be resolved in either
> web.xml or the jar files deployed with this application
>
> Although I do have the following entry in the web.xml:
>
>
>
> http://jakarta.apache.org/taglibs/utility
>   /WEB-INF/utility.tld
>   
>
> Nick.
>
>
> >
> >  >   classpathref="build.classpath">
> > 
> >   
> >
> > By the way, I should add "works for me" means that jsp compilation is
> > successful, not that it achieves my goal, which is pre-compilation for
> > deployment to Tomcat. jspc doesn't translate the files to the names
> > Tomcat wants, so it can't use the class files anyway.
> >
> > > -Original Message-
> > > From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com]
> > > Sent: Friday, October 25, 2002 4:27 PM
> > > To: 'Ant Users List'
> > > Subject: RE: jspc with taglib
> > >
> > >
> > > yes, and jspc runs just fine normally untill i decided to add
> > > a tag library to my jsp page.  i only run my pages through a
> > > compiler to check for syntax errors, otherwise i normally
> > > just deploy the war file.  after i added the taglibs, the tag
> > > works on the deployed war, but if i run it through jspc it fails.
> > >
> > > any ideas?
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
>
>
>



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

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

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





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

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




RE: jspc with taglib

2002-10-28 Thread Sonnek, Ryan
MORE INFO:

my taglib entry in web.xml is as follows.  it looks pretty standard to me,
and i don't see where the problem is.  the ant error message i'm getting
back isn't saying anything about where the problem may be.
   
  /bcs
  /WEB-INF/taglib.tld
   

the jsp page that fails to compile with jspc has the following import:
<%@ taglib uri="/bcs" prefix="bcs" %>

works fine when deployed to jboss w/ jetty (my app server).  i'm using
jasper runtime 4.0.6, are they're any known issues, or should i update to a
newer version?



-Original Message-
From: Nick Pellow [mailto:nick.pellow@;mindmatics.de]
Sent: Monday, October 28, 2002 6:50 AM
To: Ant Users List
Subject: AW: jspc with taglib




> -Ursprungliche Nachricht-
> Von: Dennis Doubleday [mailto:dennis@;righthandmanager.com]
>
> No. It works for me, and my target is just:

I do not suppose you are using any fully qualified taglib names are you?
I am getting the following error:
Exception initializing TldLocationsCache: XML parsing error on file
/WEB-INF/web.xml:
Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found
ERROR-the file '\tools\convertUI.jsp' generated the following general
exception: org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/taglibs/utility) cannot be resolved in either
web.xml or the jar files deployed with this application

Although I do have the following entry in the web.xml:

   
  http://jakarta.apache.org/taglibs/utility
  /WEB-INF/utility.tld
  

Nick.


>
>classpathref="build.classpath">
> 
>   
>
> By the way, I should add "works for me" means that jsp compilation is
> successful, not that it achieves my goal, which is pre-compilation for
> deployment to Tomcat. jspc doesn't translate the files to the names
> Tomcat wants, so it can't use the class files anyway.
>
> > -Original Message-----
> > From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com]
> > Sent: Friday, October 25, 2002 4:27 PM
> > To: 'Ant Users List'
> > Subject: RE: jspc with taglib
> >
> >
> > yes, and jspc runs just fine normally untill i decided to add
> > a tag library to my jsp page.  i only run my pages through a
> > compiler to check for syntax errors, otherwise i normally
> > just deploy the war file.  after i added the taglibs, the tag
> > works on the deployed war, but if i run it through jspc it fails.
> >
> > any ideas?
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
>
>
>



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

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

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




RE: jspc with taglib

2002-10-28 Thread Sonnek, Ryan
my taglib entry in web.xml is as follows.  it looks pretty standard to me,
and i don't see where the problem is.  the ant error message i'm getting
back isn't saying anything about where the problem may be.
   
  /bcs
  /WEB-INF/taglib.tld
   


-Original Message-
From: Nick Pellow [mailto:nick.pellow@;mindmatics.de]
Sent: Monday, October 28, 2002 6:50 AM
To: Ant Users List
Subject: AW: jspc with taglib




> -Ursprungliche Nachricht-
> Von: Dennis Doubleday [mailto:dennis@;righthandmanager.com]
>
> No. It works for me, and my target is just:

I do not suppose you are using any fully qualified taglib names are you?
I am getting the following error:
Exception initializing TldLocationsCache: XML parsing error on file
/WEB-INF/web.xml:
Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found
ERROR-the file '\tools\convertUI.jsp' generated the following general
exception: org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/taglibs/utility) cannot be resolved in either
web.xml or the jar files deployed with this application

Although I do have the following entry in the web.xml:

   
  http://jakarta.apache.org/taglibs/utility
  /WEB-INF/utility.tld
  

Nick.


>
>classpathref="build.classpath">
> 
>   
>
> By the way, I should add "works for me" means that jsp compilation is
> successful, not that it achieves my goal, which is pre-compilation for
> deployment to Tomcat. jspc doesn't translate the files to the names
> Tomcat wants, so it can't use the class files anyway.
>
> > -Original Message-
> > From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com]
> > Sent: Friday, October 25, 2002 4:27 PM
> > To: 'Ant Users List'
> > Subject: RE: jspc with taglib
> >
> >
> > yes, and jspc runs just fine normally untill i decided to add
> > a tag library to my jsp page.  i only run my pages through a
> > compiler to check for syntax errors, otherwise i normally
> > just deploy the war file.  after i added the taglibs, the tag
> > works on the deployed war, but if i run it through jspc it fails.
> >
> > any ideas?
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
>
>
>



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

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




RE: jspc with taglib

2002-10-25 Thread Dennis Doubleday
No. It works for me, and my target is just:



  

By the way, I should add "works for me" means that jsp compilation is
successful, not that it achieves my goal, which is pre-compilation for
deployment to Tomcat. jspc doesn't translate the files to the names
Tomcat wants, so it can't use the class files anyway.

> -Original Message-
> From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com] 
> Sent: Friday, October 25, 2002 4:27 PM
> To: 'Ant Users List'
> Subject: RE: jspc with taglib
> 
> 
> yes, and jspc runs just fine normally untill i decided to add 
> a tag library to my jsp page.  i only run my pages through a 
> compiler to check for syntax errors, otherwise i normally 
> just deploy the war file.  after i added the taglibs, the tag 
> works on the deployed war, but if i run it through jspc it fails.
> 
> any ideas?


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




RE: jspc with taglib

2002-10-25 Thread Sonnek, Ryan
yes, and jspc runs just fine normally untill i decided to add a tag library
to my jsp page.  i only run my pages through a compiler to check for syntax
errors, otherwise i normally just deploy the war file.  after i added the
taglibs, the tag works on the deployed war, but if i run it through jspc it
fails.

any ideas?

-Original Message-
From: Dennis Doubleday [mailto:dennis@;righthandmanager.com]
Sent: Friday, October 25, 2002 2:22 PM
To: 'Ant Users List'
Subject: RE: jspc with taglib




> -Original Message-
> From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com] 
> Sent: Friday, October 25, 2002 1:11 PM
> To: 'Ant Users List'
> Subject: RE: jspc with taglib
> 
> do i need to force taglib.tld to be in the classpath?  what 
> would be the best way to do this?

No, but you need to have the jasper runtime and compiler jars in the
classpath. Do you have that?



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

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




RE: jspc with taglib

2002-10-25 Thread Dennis Doubleday


> -Original Message-
> From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com] 
> Sent: Friday, October 25, 2002 1:11 PM
> To: 'Ant Users List'
> Subject: RE: jspc with taglib
> 
> do i need to force taglib.tld to be in the classpath?  what 
> would be the best way to do this?

No, but you need to have the jasper runtime and compiler jars in the
classpath. Do you have that?



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




RE: jspc with taglib

2002-10-25 Thread Sonnek, Ryan
right.  i've got the taglib.tld file in the WEB-INF directory when i'm
running the jspc task.  i'm building my war file first, then extracting it
to perform the jspc.  
here's how i'm executing it:

  
  


temp
 -jsp (compile to here)
 -war (extract war here)
  -*.jsp
  -WEB-INF
   -taglib.tld
   -web.xml

do i need to force taglib.tld to be in the classpath?  what would be the
best way to do this?

-Original Message-
From: Dennis Doubleday [mailto:dennis@;righthandmanager.com]
Sent: Friday, October 25, 2002 11:55 AM
To: 'Ant Users List'
Subject: RE: jspc with taglib


Make sure the .tld file for taglib is in the WEB-INF directory of your
build environment.

> -Original Message-
> From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com] 
> Sent: Friday, October 25, 2002 12:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: jspc with taglib
> 
> 
> i've been working with the jspc task for quite some time, and 
> i've decided to try using tag libraries.  now, when i compile 
> a page with a <%@ taglib x %>  jspc fails, but with no 
> errors.  the page works fine with the simple tag without 
> doing a jspc, but has anyone worked with taglib's and used 
> the jspc task?
> 
> Ryan J. Sonnek
> Brown Printing Company
> J2EE Application Developer
> 507.835.0803
> <mailto:ryan.sonnek@;bpc.com>


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

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




RE: jspc with taglib

2002-10-25 Thread Dennis Doubleday
Make sure the .tld file for taglib is in the WEB-INF directory of your
build environment.

> -Original Message-
> From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com] 
> Sent: Friday, October 25, 2002 12:06 PM
> To: '[EMAIL PROTECTED]'
> Subject: jspc with taglib
> 
> 
> i've been working with the jspc task for quite some time, and 
> i've decided to try using tag libraries.  now, when i compile 
> a page with a <%@ taglib x %>  jspc fails, but with no 
> errors.  the page works fine with the simple tag without 
> doing a jspc, but has anyone worked with taglib's and used 
> the jspc task?
> 
> Ryan J. Sonnek
> Brown Printing Company
> J2EE Application Developer
> 507.835.0803
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jspc and dependencies

2002-10-14 Thread Steve Loughran


- Original Message -
From: "Christoph Kulla" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 10:31 AM
Subject: jspc and dependencies


> Hi,
>
> I'm using jpsc (tomcat 4.1.12, jasper 2) with ant 1.5. After a "ant
> clean" everything works fine. jspc genertates java files for every jsp
> file in my project. But when I edit a jsp file in my project, jspc
> doesn't recognize the change and doesn't regenerate the corresponding
> java file.
>
> As a workaround I delete all jsp-java files before calling jspc.  Any
ideas?

yeah, problem is that between tomcat 4.0 and 4.1 the name mapping for jspc
to java files changed, and ant hasnt caught up yet. sorry.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jspc and dependencies

2002-10-12 Thread Christoph Kulla

Hi Mark,

I'm using jspc just to do a syntax check of my jsp files during build.

Here is the releveant part of my build script:

   

 
 
   
   
 
 
   

Works fine on the first call, but doesn't recognize changes to my jsp 
files afterwards. The problem ooccurs only under windows (windows 2000). 
With linux the script works fine.

Regards

Christoph

Mark R. Diggory schrieb:
> Christoph Kulla wrote:
> 
>> Hi,
>>
>> I'm using jpsc (tomcat 4.1.12, jasper 2) with ant 1.5. After a "ant 
>> clean" everything works fine. jspc genertates java files for every jsp 
>> file in my project. But when I edit a jsp file in my project, jspc 
>> doesn't recognize the change and doesn't regenerate the corresponding 
>> java file.
> 
> 
> I'm trying to get jspc working in my build script in the same 
> environment your working in. Maybe we can trade some information. I'm 
> looking for a decent examle for using jspc to deploy compiled jsp pages 
> for my webapp. If you could show how your currently configuring jspc in 
> your build, I'll share anything I find out about getting it to update 
> jsp-java file appropriately along the way.
> 
>>
>> As a workaround I delete all jsp-java files before calling jspc.  Any 
>> ideas?
> 
> 
> 
> One note I can tell you right now, I've used ant to deploy our cvs tree 
> into the webapps directory via "copy", I noticed that if I'm copying 
> files from a src directory to a deployment directory with 
> tomcat(probibly jasper as well), it doesn't recognize the file updates 
> as well.  This might suggest some sensitivity with jasper and file 
> lastModified times. I usually end up wiping the work directory.
> 
> Sometimes I think the copy task is not replacing the destination file 
> with the new copy, sometimes I think the dates are not changing, I'm not 
> sure though. I take a similar strategy where I'm overwriting the entire 
> distibution.
> 
>
>
>
> 
> -Mark
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jspc and dependencies

2002-10-11 Thread Mark R. Diggory

Christoph Kulla wrote:

> Hi,
>
> I'm using jpsc (tomcat 4.1.12, jasper 2) with ant 1.5. After a "ant 
> clean" everything works fine. jspc genertates java files for every jsp 
> file in my project. But when I edit a jsp file in my project, jspc 
> doesn't recognize the change and doesn't regenerate the corresponding 
> java file.

I'm trying to get jspc working in my build script in the same 
environment your working in. Maybe we can trade some information. I'm 
looking for a decent examle for using jspc to deploy compiled jsp pages 
for my webapp. If you could show how your currently configuring jspc in 
your build, I'll share anything I find out about getting it to update 
jsp-java file appropriately along the way.

>
> As a workaround I delete all jsp-java files before calling jspc.  Any 
> ideas?


One note I can tell you right now, I've used ant to deploy our cvs tree 
into the webapps directory via "copy", I noticed that if I'm copying 
files from a src directory to a deployment directory with 
tomcat(probibly jasper as well), it doesn't recognize the file updates 
as well.  This might suggest some sensitivity with jasper and file 
lastModified times. I usually end up wiping the work directory.

Sometimes I think the copy task is not replacing the destination file 
with the new copy, sometimes I think the dates are not changing, I'm not 
sure though. I take a similar strategy where I'm overwriting the entire 
distibution.





-Mark



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jspc Task usage ?

2002-10-07 Thread Steve Loughran


- Original Message -
From: "Jens Viebig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 8:46 AM
Subject: jspc Task usage ?


> Is anyone using the jspc task to precompile jsp ?
> I'm Using Tomcat 4.0.4
> What i like to do is:
> - precompile my jsp ( generate .java files)
> - compile to class files
> - update my web.xml
> - Deploy my application without .jsp files
>
> I tried to do it like this:
>
>  srcdir="src/web"
>   destdir="build/jsp-gensrc"
>   verbose="9"
>   webinc="src/merge/web/webinc.xml"
>   uriroot="src/web">
>   
>   
>
> Problems occuring:
> - How to specify the 'webapp' - Flag ? there is a addWebApp()-Method in
the
> jspc-Task but i don't know how to use it from my build.xml-File

that may actually work on ant1.6alpha, the CVS version, but it doesnt on 1.5


>
>  - All java-Files get the same package name (...in the same directory
> killing each other) . But i have index.jsp and subdir/index.jsp so package
> for the second jsp should include subdir.

Known bug. Known in jasperc and ant. Now if your version of jasperc doesnt
have this problem (what version are you using BTW?), then there have been
some improvements that jspc needs to pick up on.

> - webinc.xml servlet-mappings are incorrect:
>
>  
>   \index.jsp
>   index
>  
>
> should be
>
>  
>   index
>   \index.jsp
>  
>
> (Validation in JBoss/Tomcat Bundle fails telling me that url-pattern is
not
> allowed at this place)
>
> if i do it via the command line:
> jspc.bat -v1 -d build/jspgensrc -webinc src/merge/web/webinc.xml -webapp
> src/web the first issue does not occur. The second issue is still there.

yes, and that shows it is a bug in jasperc, not ant.

I would recommend using tomcat4.1's version of jasperc, but even that is not
going to work perfectly. Sorry.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JSPC 'Java returned: 9'

2002-08-09 Thread Adam Jack

OK, I got them, I guess I was expecting ant errors, but I see jasper is
crashing.

Anybody know if the latest jasper/ant combinations are trustworthy? I got
burned on a bad combo before, and don't know whether to dare "upgrade".

regards

Adam

 [jspc] Compiling 357 source
filesF:\java\interim\${openbiz.part}\com\openbiz\jsp\${openbiz\part}
 [java] java.util.EmptyStackException
 [java] at java.util.Stack.peek(Stack.java:82)
 [java] at
org.apache.jasper.compiler.ParserController.resolveFileName(ParserController
.java:420)
 [java] at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:187)
 [java] at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
 [java] at org.apache.jasper.JspC.parseFile(JspC.java:407)
 [java] at org.apache.jasper.JspC.parseFiles(JspC.java:727)
 [java] at org.apache.jasper.JspC.main(JspC.java:742)
 [java] java.util.EmptyStackException
 [java] at java.util.Stack.peek(Stack.java:82)
 [java] at
org.apache.jasper.compiler.ParserController.resolveFileName(ParserController
.java:420)
 [java] at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:187)
 [java] at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
 [java] at org.apache.jasper.JspC.parseFile(JspC.java:407)
 [java] at org.apache.jasper.JspC.parseFiles(JspC.java:727)
 [java] at org.apache.jasper.JspC.main(JspC.java:742)
 [java] java.util.EmptyStackException
 [java] at java.util.Stack.peek(Stack.java:82)
 [java] at
-Original Message-
From: Steve Loughran [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 3:06 PM
To: Ant Users List; [EMAIL PROTECTED]
Subject: Re: JSPC 'Java returned: 9'


you should have seen them, because jasper just chucks them to stdout and ant
pulls them back and prints them.

so maybe something wierd is happening, like the command line isnt to
jasper's liking (but the -die -9 bit is being handled, we can see that )

- Original Message -
From: "Adam Jack" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 12:11 PM
Subject: RE: JSPC 'Java returned: 9'


> Steve Loughran [mailto:[EMAIL PROTECTED]] wrote:
> > "-9" error means that jasper returned an error.
> Is there a way for me to see any error messages, 'cos I see none.
> regards
> Adam
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: JSPC 'Java returned: 9'

2002-08-09 Thread Steve Loughran

you should have seen them, because jasper just chucks them to stdout and ant
pulls them back and prints them.

so maybe something wierd is happening, like the command line isnt to
jasper's liking (but the -die -9 bit is being handled, we can see that )

- Original Message -
From: "Adam Jack" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 12:11 PM
Subject: RE: JSPC 'Java returned: 9'


> Steve Loughran [mailto:[EMAIL PROTECTED]] wrote:
> > "-9" error means that jasper returned an error.
> Is there a way for me to see any error messages, 'cos I see none.
> regards
> Adam
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: JSPC 'Java returned: 9'

2002-08-09 Thread Adam Jack

Steve Loughran [mailto:[EMAIL PROTECTED]] wrote:
> "-9" error means that jasper returned an error.
Is there a way for me to see any error messages, 'cos I see none.
regards
Adam

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JSPC 'Java returned: 9'

2002-08-09 Thread Steve Loughran


- Original Message -
From: "Adam Jack" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 11:24 AM
Subject: JSPC 'Java returned: 9'


> Anybody seen this w/ JspC? The thing seems to have worked, and create the
> java files for each JSP, but this is always the reults (when ant run
> with -debug) and no other error message.

a "-9" error means that jasper returned an error.

>
> regards
>
> Adam
> ---
> BUILD FAILED
> E:\data\OpenBiz\wwwroot\build.xml:252: Java returned: 9
> at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)
> at
> org.apache.tools.ant.taskdefs.optional.jsp.compilers.JasperC.execut
> JasperC.java:126)
> at
> org.apache.tools.ant.taskdefs.optional.jsp.JspC.doCompilation(JspC.
> va:458)
> at
> org.apache.tools.ant.taskdefs.optional.jsp.JspC.execute(JspC.java:4
> )
> at org.apache.tools.ant.Task.perform(Task.java:317)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:334)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
> at org.apache.tools.ant.Main.runBuild(Main.java:606)
> at org.apache.tools.ant.Main.start(Main.java:195)
> at org.apache.tools.ant.Main.main(Main.java:234)
>
> Total time: 1 minute 37 seconds
>
> --
> Open Business Interchange: 
> The Revolutionary B2Bi Web Service ...
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JSPC task

2002-08-09 Thread Steve Loughran

no idea whatsoever.,

FYI, I dont use it any more because jasper was a bit flaky, and I discovered
httpunit instead. now, after deploying, my build file runs tests against
every jsp, so they are all compiled and tested before I have to look at them

- Original Message -
From: "Sean LeBlanc" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 11:13 AM
Subject: Re: JSPC task


On 08-09 09:44, Steve Loughran wrote:
> try using the latest (tomcat4.1 beta) version of Jasper - I hear that does
> the renaming differently. We will be looking at  in the next few
days
> to try and get it working better with that version of jasper only in time
> for Ant1.5.1

Okay, thanks. Any idea on the compiler errors? Or will the beta version of
Jasper fix that, too? As it is, I'm successfully building less than 5% of
our pages.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: JSPC task

2002-08-09 Thread Sean LeBlanc

On 08-09 09:44, Steve Loughran wrote:
> try using the latest (tomcat4.1 beta) version of Jasper - I hear that does
> the renaming differently. We will be looking at  in the next few days
> to try and get it working better with that version of jasper only in time
> for Ant1.5.1

Okay, thanks. Any idea on the compiler errors? Or will the beta version of
Jasper fix that, too? As it is, I'm successfully building less than 5% of
our pages.


> - Original Message -
> From: "Sean LeBlanc" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 09, 2002 8:10 AM
> Subject: JSPC task
> 
> 
> 
> Hi, I'm trying to get the jspc task to work. However, I'm having a few
> issues:
> 
> 1. The name of the .java (and resulting .class) file is not the same as what
> gets generated during runtime. If I *don't* precompile, I get files in
> {tomhome}/work/Standalone/localhost/{my_app_name}/. The files are of the
> form: {pagename}$jsp.java and {pagename}$.jsp.class. However, the jspc task
> creates them as just {pagename}.java. So even if the .class is made, Tomcat
> isn't using it.
> 
> 2. I get all sort of compilation errors when I try to compile. Here is what
> the relevant part of my ant file looks like:
> 
>  srcdir="${tomhome}/webapps/Nutros/home"
> destdir="${tomhome}/work/Standalone/localhost/Nutros_home"
> failonerror = "no">
> 
> 
> 
> 
> 
> srcdir="${tomhome}/work/Standalone/localhost/Nutros_home"
> destdir="${tomhome}/work/Standalone/localhost/Nutros_home"
> classpath = "${classpath};${build}"
> debug="on" />
> 
> Many of the errors seem to stem from variables declared in a "parent" page
> and used in a "child" page. Any ideas on this one?
> 
> TIA,
> 
> --
> Sean LeBlanc - Nutros.com
> Random fortune/quote:
> "There was a boy called Eustace Clarence Scrubb, and he almost deserved
> it."
> -- C. S. Lewis, The Chronicles of Narnia
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- 
Sean LeBlanc - Nutros.com
Random fortune/quote:
Major Premise: Sixty men can do a piece of work sixty times as quickly
as one man.

Minor Premise: One man can dig a posthole in sixty seconds.

Conclusion: Sixty men can dig a posthole in one second.
-- Ambrose Bierce, "The Devil's Dictionary"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JSPC task

2002-08-09 Thread Steve Loughran

try using the latest (tomcat4.1 beta) version of Jasper - I hear that does
the renaming differently. We will be looking at  in the next few days
to try and get it working better with that version of jasper only in time
for Ant1.5.1

- Original Message -
From: "Sean LeBlanc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 8:10 AM
Subject: JSPC task



Hi, I'm trying to get the jspc task to work. However, I'm having a few
issues:

1. The name of the .java (and resulting .class) file is not the same as what
gets generated during runtime. If I *don't* precompile, I get files in
{tomhome}/work/Standalone/localhost/{my_app_name}/. The files are of the
form: {pagename}$jsp.java and {pagename}$.jsp.class. However, the jspc task
creates them as just {pagename}.java. So even if the .class is made, Tomcat
isn't using it.

2. I get all sort of compilation errors when I try to compile. Here is what
the relevant part of my ant file looks like:









Many of the errors seem to stem from variables declared in a "parent" page
and used in a "child" page. Any ideas on this one?

TIA,

--
Sean LeBlanc - Nutros.com
Random fortune/quote:
"There was a boy called Eustace Clarence Scrubb, and he almost deserved
it."
-- C. S. Lewis, The Chronicles of Narnia


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JspC and directory structure

2002-07-18 Thread Steve Loughran


- Original Message - 
From: "Dennis Doubleday" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 18, 2002 8:58 AM
Subject: JspC and directory structure


> I have the jspc task working with only one issue: I don't see a way to
> preserve my jsp directory structure in the generated files. For example,
> if my tree looks like:
> 
> htdocs
>   jsp
> wizard1
>   index.jsp
>   go.jsp
> wizard2
>   index.jsp
>   stop.jsp
> 
> 
> then the result of jspc is one directory containing go.java, stop.java,
> and index.java. The second index.java overwrites the first one, so I can
> never compile the first one to make sure it is valid.
> 
> Can the directory structure be preserved?

It's a known jasper bug; maybe later versions will fix it. 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jspc NullPointerException

2002-06-28 Thread Steve Loughran


- Original Message -
From: "Adam Jack" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Friday, June 28, 2002 18:44
Subject: RE: jspc NullPointerException


> After wading through pages (and pages) of JASPER batch files calling batch
> files (and [IMHO] mangling the classpath) and getting nothing good, I
> figured that maybe Jasper 4.1.3 was a sick puppy in my environment. It
sure
> felt like it.
>
> I went back to Jasper 4.0.4 from 4.1.3, with my cleaned/re-ordered ant
> classpath, and it work. JSPs all compiled in *.java. :-)
>
> Phew! That was "fun", but thanks for the help Steve.
>
>

I worry about the stability of this task. I really do; a lot is out of our
hands but we will get the support calls.

FYI, I Dont use it no more, after deploying I send http unit past all my
jsps, .jws files, web service endpoints, etc. This catches jsp compilation
errors too; with slightly more lag but a lot more robustly



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: jspc NullPointerException

2002-06-27 Thread Steve Loughran


- Original Message -
From: "Adam Jack" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 13:45
Subject: jspc NullPointerException


> I am trying the JspC with ANT 1.5 beta 3. Some feedback, then the latest
> problem.
>
> 1) I downloaded Tomcat 4.0.4 'cos that seemed best version '4' given the
> comment in the jspc page:

I think 4.1 may be better

>
> By default the task uses the Jasper JSP compiler. This means the task
needs
> jasper.jar and jasper-runtime.jar, which come with builds of Tomcat
> 4/Catalina from the Jakarta Tomcat project
> 
>
> 1.1) Nothing in the "Library Dependencies" seems to mention Tomcat, let
> along versions.

> 1.2) I could find a jasper-runtime.jar but not jasper.jar. I eventually
> added jasper-compiler.jar.

ok, maybe they changed libs. file a bug report :)

> 2) I was hoping for some consistency w/  so I copied that to start.
I
> failed to give an internal  and the task crashed with NullPointer
> exception in the file scanning area.

file a defect then

>
> 4) Things started to work, sorta.
> srcdir="${src}"
>   destdir="${build}/${openbiz.part}"
>   package="com.openbiz.jsp"
>   verbose="9"
>   classpathref="project.class.path"
>   >
>   
>
>   
>
> and got.
>
>  [java] java.lang.NullPointerException
>  [java] at
> org.apache.jasper.compiler.TldLocationsCache.processWebDotXml
> (TldLocationsCache.java:169)
>  [java] at
> org.apache.jasper.compiler.TldLocationsCache.(TldLocati
> onsCache.java:145)
>  [java] at org.apache.jasper.JspC.parseFiles(JspC.java:712)
>  [java] at org.apache.jasper.JspC.main(JspC.java:742)
>  [java] Exception in thread "main"
>
> BUILD FAILED
> E:\data\OpenBiz\wwwroot\build.xml:237: Java returned: 1
> at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)
> at
> org.apache.tools.ant.taskdefs.optional.jsp.compilers.JasperC.execute(
> JasperC.java:126)
> at
> org.apache.tools.ant.taskdefs.optional.jsp.JspC.doCompilation(JspC.ja
> va:458)
> at
> org.apache.tools.ant.taskdefs.optional.jsp.JspC.execute(JspC.java:422
> )
> at org.apache.tools.ant.Task.perform(Task.java:317)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:334)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
> at org.apache.tools.ant.Main.runBuild(Main.java:606)
> at org.apache.tools.ant.Main.start(Main.java:195)
> at org.apache.tools.ant.Main.main(Main.java:234)
>
>
> Could this be 'cos my pages use taglibs? [I am not sure which one it is
> trying, so I can't hack it out.]

Taglibs have worked on jspc. Try getting a 4.1 drop instead, as that is
probably the best there is.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JspC memory leak or memory hog?

2002-06-14 Thread Steve Loughran

I'd expect it to clean up all memory at the end of the  call, because
it is run in its own JVM.

does the memory go down while ant continues to the next stage in the build?



- Original Message -
From: "Jerome Jacobsen" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 14:41
Subject: RE: JspC memory leak or memory hog?


> I forgot to add that I'm using the jasper JARs from Tomcat 4.0.3.  I've
> tried the ones from 4.0.1 too with same results.
>
> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 14, 2002 5:39 PM
> To: Ant User
> Subject: JspC memory leak or memory hog?
>
>
> I run JspC target for 82 JSPs in one directory.  Before running I open my
> Task Manager and my memory usage is at 80 MB.  Once I run ant my memory
> usage quickly creeps up to 250 MB by the time it finishes (after about 3
> minutes)!!!  Also tried this with the -classic JVM and get same behavior,
> although it takes longer to do all 82 JSPs.
>
> Environment:
> Win2K
> Ant 1.5beta2
> JDK 1.3.1 -hotspot
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: JspC memory leak or memory hog?

2002-06-14 Thread Jerome Jacobsen

I forgot to add that I'm using the jasper JARs from Tomcat 4.0.3.  I've
tried the ones from 4.0.1 too with same results.

-Original Message-
From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 5:39 PM
To: Ant User
Subject: JspC memory leak or memory hog?


I run JspC target for 82 JSPs in one directory.  Before running I open my
Task Manager and my memory usage is at 80 MB.  Once I run ant my memory
usage quickly creeps up to 250 MB by the time it finishes (after about 3
minutes)!!!  Also tried this with the -classic JVM and get same behavior,
although it takes longer to do all 82 JSPs.

Environment:
Win2K
Ant 1.5beta2
JDK 1.3.1 -hotspot


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jspc task -- no servlet-mapping file?

2002-05-23 Thread Hal Hildebrand \(web\)

I can see in the source that it's not implemented yet.  (at least in
Beta 1).

- Original Message -
From: "Benjamin Reed" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 7:38 AM
Subject: jspc task -- no servlet-mapping file?


> I've been experimenting with the jspc task and it appears to be
exactly
> what I need.  I'm trying to deploy precompiled JSPs, however, and from
> what I understand jspc.sh (the command-line version) is supposed to
> create a file that contains the servlet mappings, to be included in
> web.xml.  All I get when I run the jspc task from ant is the generated
> java files.
>
> Is there a setting I'm missing or something?  Otherwise it seems the
> jspc task isn't useful for much more than testing syntax, because
> they're not found by tomcat as replacements for the jsp files...
>
> --
> Ben Reed ([EMAIL PROTECTED])
> http://www.opennms.org/
> "Is it considered bad form to quote yourself in your sig?" -- Me
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jspc

2001-11-28 Thread Steve Loughran

There is a  task in the nightly build, but also check out bugzilla for
any jspc related issues, there are still a few. It is documented: if  your
man pages show the task, then you are up to date.

The task uses jasper and is fine for testing jsp pages prior to deployment,
but it needs a bit more work before being consistently usable as an
alternative to run time compilation.

- Original Message -
From: "Shawn McManus" <[EMAIL PROTECTED]>
To: "Ant Users List (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 1:33 PM
Subject: jspc


Is there a current jspc task in Ant?

I have a need to precompile my jsp's during build.

I'd read in the mail archives that it had been an undocumented task
since 1.2, although when I use it, it get the "can't create message".

The optional.jar has the wljspc task, but when I use it, almost all of
the jsp's fail to compile.


  


However, the docs say that it only works on WLS 4.5.1 and I'm using WLS
5.1sp8.

Thanks,
Shawn


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JspC ALWAYS recompiles files that haven't changed!

2001-09-13 Thread Blaine Kendall

I'm using Tomcat's jspc as well. But instead of calling the class, I execute
the jspc.bat file.
The exec target has a output option so I use that to log the output.

  
 
  
 
  



- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 2:22 PM
Subject: JspC ALWAYS recompiles files that haven't changed!


>
>
> Hi everyone,
>
> I am using Ant to pre-compile my jsp pages using tomcat's jspc.
Everything
> (eventually!) is working fine, except that all the pages are re
pre-compiled
> even if they haven't changed.
>
> Does anyone know how to get around this?
>
> Many thanks,
>
> Dave
>
> PS  Has anyone ever figured out how to capture the output?!!!
>
> Here's the target I'm using:
>
>  
>  
>   
>
>  location="${tomcat.home}\lib\common\servlet.jar"/>
>  location="${tomcat.home}\lib\container\jasper.jar"/>
>  location="${tomcat.home}\lib\container\jaxp.jar"/>
>  location="${tomcat.home}\lib\container\parser.jar"/>
>  location="${tomcat.home}\lib\common\core_util.jar"/>
> 
> 
>
>
>
>
>
>
>
>
>   
>  
>
>


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: JspC ALWAYS recompiles files that haven't changed!

2001-09-10 Thread Diane Holt

--- [EMAIL PROTECTED] wrote:
> I am using Ant to pre-compile my jsp pages using tomcat's jspc. 
> Everything (eventually!) is working fine, except that all the pages are
> re pre-compiled even if they haven't changed.
> 
> Does anyone know how to get around this?

Have you looked at the  task?

Diane

=
([EMAIL PROTECTED])



__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com