You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Leif Hanack <le...@t-systems.com> on 2003/02/22 17:06:01 UTC

Problem with javac and precompiled jsps (package structure)

Hello,

i want to compile precompile jsp for tomcat 4.1.18 but have trouble with the
package structure.

Using jspc i receive the same named file as tomcat would create while
surfing the side. Well the package of the pages is everytime
"org.apache.jsp".

Trying the next step (compiling the precompiled jsps) failed. The files are
located all under org.apache.jsp instead of where tomcat would place them
(directly beside the source).

How can i achieve that jspc + javac will act like tomcat?

jspc + javac:

build/jsp/myTest_jsp.java
         /org/apache/jsp/myTest_jsp.class

tomcat:

work/.../myTest_jsp.java
        /myTest_jsp.class

Both myTest_jsp.java are identical.

Thanks in advance, Leif


Re: Problem with javac and precompiled jsps (package structure)

Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Antoine Levy-Lambert" <le...@tiscali-dsl.de>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Saturday, February 22, 2003 08:51
Subject: Re: Problem with javac and precompiled jsps (package structure)


> I do not know much about jspc, but you should download ant 1.5.2 beta
> because there were a lot of bugs concerning jspc in 1.51

yes, 1.5.2 fixes a lot, but there are still some issues


1. you can only use jspc with tomcat4.1.x version of jasper to have it
precompile jsp pages that actually can be deployed.

2. use the <webapp> option to get the directory structure preserved


Re: Problem with javac and precompiled jsps (package structure)

Posted by Antoine Levy-Lambert <le...@tiscali-dsl.de>.
I do not know much about jspc, but you should download ant 1.5.2 beta
because there were a lot of bugs concerning jspc in 1.51

"
Dev@Ant is pleased to announce the availability of
the first beta of Apache Ant 1.5.2.  It is available
for immediate download at:

http://www.apache.org/dist/ant/v1.5.2beta1/
"

If even with 1.5.2 beta you have problems with jspc, then have a look in
bugzilla http://nagoya.apache.org/bugzilla to find out if your problem has
already been reported by somebody else.
You might have a look at this bug report for instance
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4750 to see if it is the
same problem as yours, ...

Antoine


----- Original Message -----
From: "Leif Hanack" <le...@t-systems.com>
To: "Ant-User" <us...@ant.apache.org>
Sent: Saturday, February 22, 2003 5:06 PM
Subject: Problem with javac and precompiled jsps (package structure)


> Hello,
>
> i want to compile precompile jsp for tomcat 4.1.18 but have trouble with
the
> package structure.
>
> Using jspc i receive the same named file as tomcat would create while
> surfing the side. Well the package of the pages is everytime
> "org.apache.jsp".
>
> Trying the next step (compiling the precompiled jsps) failed. The files
are
> located all under org.apache.jsp instead of where tomcat would place them
> (directly beside the source).
>
> How can i achieve that jspc + javac will act like tomcat?
>
> jspc + javac:
>
> build/jsp/myTest_jsp.java
>          /org/apache/jsp/myTest_jsp.class
>
> tomcat:
>
> work/.../myTest_jsp.java
>         /myTest_jsp.class
>
> Both myTest_jsp.java are identical.
>
> Thanks in advance, Leif
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>