You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/08/21 12:28:38 UTC

DO NOT REPLY [Bug 11891] New: - JspC does not work for webapps

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=11891>.
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=11891

JspC does not work for webapps

           Summary: JspC does not work for webapps
           Product: Tomcat 4
           Version: 4.1.9
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: gregw@mortbay.org


I have tried this for jasper2 from the 4_1_9 tag and from cvs head (2002/08/21).

For a simple webapp with JSPs in subdirectories, a command like:
  java org.apache.jasper.JspC -d gensrc -webapp webapp

creates all the java files in the top directory of gensrc.  Any subdirectories
in the webapp are created - but they are all empty.  If you have index.jsp in
each subdirectory - then you only get a single index.jsp in the top level of gensrc.


For a more complex webapp, the name mungling gets totally confused.  I have not
been able to reproduce this on a small simple webapp - so these reports are
for my real webapp.    Using the same JspC command line about I get the
following error message:

2002-08-21 11:24:38 - The file argument
'/home/gregw/Clients/Cisco/vob/ssd.icotton-GRWILKIN/nwsp/webapp/wap/pages/accountLogon.jsp'
does not exist
error:/home/gregw/Clients/Cisco/vob/ssd.icotton-GRWILKIN/nwsp/webapp/wap/pages/accountLogon.jsp

However that file does exist.

More over if I look in the gensrc directory it has created an empty directory 
called:

gensrc/home/gregw/Clients/Cisco/vob/ssd.icotton-GRWILKIN/nwsp/webapp/wap/pages

Somehow it has got the absolute file path of the webapp
/home/gregw/Clients/Cisco/vob/ssd.icotton-GRWILKIN/nwsp/webapp into the package
path?    

I have tried running JspC with default paths and absolute paths.  Same results.

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