tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gil Murray" <...@software-cottage.com>
Subject Re: JSP with filename greater than 21 chars won't compile
Date Sat, 06 May 2000 09:48:01 GMT
Serge,

I see what you mean. Good call!

The parsed JSP source filename/class name contains reduncant, duplicated
strings. Specifically, the JSP filename is included twice.

I wonder about the wisdom of including the directory path info in the class
name. Wouldn't it be better to create matching directories under the "work"
dir? And what is the purpose of all the added (and repeated) numeric chars?

Example -

JSP file spec:
<webapps>\myapp\public\J_BAPI_SALESORDER_CREATEFROMDAT1\testtesttesttesttest
te.jsp

Parsed class/file name:

_0002fpublic_0002fJ_0005fBAPI_0005fSALESORDER_0005fCREATEFROMDAT_00031_0002f
testtesttesttesttestte_0002ejsptesttesttesttesttestte_jsp_0

Thanks,

    Gil

----- Original Message -----
From: Serge Knystautas <sergek@lokitech.com>
To: <tomcat-dev@jakarta.apache.org>
Sent: Saturday, May 06, 2000 4:42 AM
Subject: Re: JSP with filename greater than 21 chars won't compile


> Larry Isaacs wrote:
> >
> > Your filename is 262 characters long!  JDK1.1.8 has problems with file
names this long.  JDK1.2.2 and later can handle this better.  Try JDK1.2.2
if you are currently using JDK1.1.8.
>
> His filename isn't 262 characters long... I think this stems from the
> fact that Tomcat 1) generates packages to match your subdirectories and
> then [mindlessly] 2) again adds all the subdirectory string (encoded) to
> your class file name.  So /subdir1/subdir2/file1 becomes
> subdir1.subdir2.subdir1%2Fsubdir2%2Ffile1.java.  Not really sure why it
> does this... I haven't noticed a problem (since I use JDK 1.2.2) but
> this seems like a patch that wasn't completed.
>
> Serge Knystautas
> Loki Technologies
> http://www.lokitech.com/
>
> >
> > Larry
> >
> > -----Original Message-----
> > From: Gil Murray [mailto:gil@software-cottage.com]
> > Sent: Friday, May 05, 2000 4:15 PM
> > To: tomcat-dev@jakarta.apache.org
> > Subject: Bug: JSP with filename greater than 21 chars won't compile
> >
> > Hi,
> >
> > If a JSP page has more than 21 characters in its filename, it fails to
compile, giving the error below. Filenames up to 21 characters will compile
OK.
> >
> > I'm running Tomcat 3.1 on NT 4, standalone mode.
> >
> > Is this a known bug? Is anyone working on a patch for it?
> >
> > Thanks,
> >
> >     Gil
> >
> > Internal Servlet Error:
> >
> > org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
D:\Internet\jakarta-tomcat\work\localhost_8080%2Fbtalk\p_00025blic\J_0005fBA
PI_0005fSALESORDER_0005fCREATEFROMDAT_00031\_0002fpublic_0002fJ_0005fBAPI_00
05fSALESORDER_0005fCREATEFROMDAT_00031_0002ftesttesttesttesttestte_0002ejspt
esttesttesttesttestte_jsp_0.class
> > 1 error
> >
> >         at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
> >         at
org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
> >         at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:149)
> >         at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:161)
> >         at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
> >         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
> >         at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> >         at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
> >         at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
> >         at java.lang.Thread.run(Thread.java, Compiled Code)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>


Mime
View raw message