You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/01/23 07:03:59 UTC

DO NOT REPLY [Bug 16351] New: - JspC/Java task - compile error via ANT for Jsps using Tomcat 4.1.18

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16351>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16351

JspC/Java task - compile error via ANT for Jsps using Tomcat 4.1.18

           Summary: JspC/Java task - compile error via ANT for Jsps using
                    Tomcat 4.1.18
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: gary.frost@ssmb.com.au


First point, the JspC task should be updated to include the -webinc parameter 
to generate the web.xml servlet name + mapping fragment.

JspC compilation fails within Ant, using both JspC Task and using Java Task to 
call the org.apache.jasper.JspC when using Tomcat 4.1.18 (the Jasper libraries).

We have managed to get the compilation to work using the command line 

 java -classpath /usr/local/java/packages/tomcat/tomcat-
4.1.18/common/lib/jasper-runtime.jar:/usr/local/java/packages/tomcat/tomcat-
4.1.18/common/lib/jasper-compiler.jar:/usr/local/java/packages/tomcat/tomcat-
4.1.18/common/lib/servlet.jar:/usr/local/java/packages/jakarta-ant/jakarta-ant-
1.5.1/lib/ant.jar:/home/dg29906/workspaces/Atlas/webAtlas/lib/jars/standard.jar:
/home/dg29906/workspaces/Atlas/webAtlas/lib/nightly-
jars/struts.jar:/home/dg29906/workspaces/Atlas/webAtlas/lib/jars/jstl.jar:/home/
dg29906/workspaces/Atlas/webAtlas/build/java/classes/ org.apache.jasper.JspC -
webapp ~/workspaces/Atlas/webAtlas/src/web -p org.apache.jsp -d ~/testjsp -
webinc ~/testjsp/webfrag.xml

We are also using Struts and Tiles (hence all the other libraries)

But when using the <java> task we and we were getting a BrokenLinkError in 
XMLParser even though we have set the classpath and arguments exactly the same

When we leave the JSP compilation to Tomcat 4.1.18 it also manages to build all 
the jsps without problem.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>