Re: New user question - problem with '~' character in paths?
Hi, I may be all wet here, but this does not appear to be a Tomcat error, per sae. The error states it cannot write the named class. Not that it cannot find the source. Try creating the file and directory structure shown in the error message and see if your operating system allows it. I suspect you will get an error from the operating system relating to length of path. Tom Gowers wrote: Hello all, I am in the midst of muddling through an installation/configuration of tomcat for the purposes of integrating with our Xpedio Content Server software for a prospect. I have come across what I think is a problem, and would appreciate any feedback. It seems that the JSP interpreter doesn't like any .jsp files residing in a location where the path contains the '~' character. As an example, I am placing .jsp files (just doing simple includes at this stage) into a directory with the following path /xpedio/groups/public/documents/haysworks/~000301/jsptest.htm where /xpedio is mapped as a virtual directory in IIS When I try to access this .jsp file, I get the following error from tomcat: Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPerror: Can't write: C:\jakarta-tomcat\work\localhost_8080%2Fxpedio\groups\p_00025blic\d_00025cuments\haysworks\_0007e_00030_00030_00030_00033_00030_00031\_0002fgroups_0002fpublic_0002fdocuments_0002fhaysworks_0002f_0007e_00030_00030_00030_00033_00030_00031_0002fjsptest_0002ejspjsptest_jsp_0.class 1 error However, if I simply move my .jsp file into the parent directory so that the path is /xpedio/groups/public/documents/haysworks/jsptest.jsp The .jsp file is interpreted fine with no problems. Is this a know issue/limitation? TIA Tom Gowers -- Senior Systems Engineer, IntraNet Solutions Inc Phone: +44 1753 701072 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: New user question...
The directive is a custom tag that Tomcat does not recognize, I think. tag_test.jsp is a JSP file I mentioned below. It's not in C:, but in C:/jakarta-tomcat/webapps/Root I assume that I am not configuring it right and it can't recognize the custom tags and gives me this error. Here are the contents of the JSP file: - %@ raglib uri="/test.tld" prefix="leo" % html head titleExample JSP with TAG Libs/title /head pb Let's see if this works. /b leo:mytag/leo:mytag pb End /b - Thanks a lot in adavance. -Lenny -Original Message- From: Pierre Delisle [mailto:[EMAIL PROTECTED]] Sent: Monday, November 13, 2000 7:25 PM To: [EMAIL PROTECTED] Subject: Re: New user question... The error is in the first line of your JSP file 'tag_test.jsp'. org.apache.jasper.compiler.ParseException: C:\tag_test.jsp(0,4) Invalid directive at... The error message says it is a directive, but without the details, it is hard to tell exactly what is wrong. If you tell us what's there, we can help you one step further. -- Pierre "Reynshteyn, Leonid" wrote: I just installed Tomcat for the first time and am trying to run a simple JSP that uses a very simple custom tag. When I run the JSP, I am getting the following Jasper compiler exception: org.apache.jasper.compiler.ParseException: C:\tag_test.jsp(0,4) Invalid directive at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:186) at org.apache.jasper.compiler.Parser.parse(Parser.java:1073) Here's what I did: 1) I put the JSP file in "install_dir/webapps/Root" (simple JSPs that don't use custom tags work fine from here) 2) I put the JSP Tag handler class in "install_dir/webapps/Root/Web-inf/classes" 3) I put the TLD file in "install_dir/webapps/Root" Any ideas? Thanks. -Lenny
Re: New user question...
There is a typo in your first line. %@ raglib uri="/test.tld" prefix="leo" % ^ taglib -- Pierre "Reynshteyn, Leonid" wrote: The directive is a custom tag that Tomcat does not recognize, I think. tag_test.jsp is a JSP file I mentioned below. It's not in C:, but in C:/jakarta-tomcat/webapps/Root I assume that I am not configuring it right and it can't recognize the custom tags and gives me this error. Here are the contents of the JSP file: - %@ raglib uri="/test.tld" prefix="leo" % html head titleExample JSP with TAG Libs/title /head pb Let's see if this works. /b leo:mytag/leo:mytag pb End /b - Thanks a lot in adavance. -Lenny -Original Message- From: Pierre Delisle [mailto:[EMAIL PROTECTED]] Sent: Monday, November 13, 2000 7:25 PM To: [EMAIL PROTECTED] Subject: Re: New user question... The error is in the first line of your JSP file 'tag_test.jsp'. org.apache.jasper.compiler.ParseException: C:\tag_test.jsp(0,4) Invalid directive at... The error message says it is a directive, but without the details, it is hard to tell exactly what is wrong. If you tell us what's there, we can help you one step further. -- Pierre "Reynshteyn, Leonid" wrote: I just installed Tomcat for the first time and am trying to run a simple JSP that uses a very simple custom tag. When I run the JSP, I am getting the following Jasper compiler exception: org.apache.jasper.compiler.ParseException: C:\tag_test.jsp(0,4) Invalid directive at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:186) at org.apache.jasper.compiler.Parser.parse(Parser.java:1073) Here's what I did: 1) I put the JSP file in "install_dir/webapps/Root" (simple JSPs that don't use custom tags work fine from here) 2) I put the JSP Tag handler class in "install_dir/webapps/Root/Web-inf/classes" 3) I put the TLD file in "install_dir/webapps/Root" Any ideas? Thanks. -Lenny
Re: New user question...
"Reynshteyn, Leonid" wrote: Here are the contents of the JSP file: - %@ raglib uri="/test.tld" prefix="leo" % ^ Not that I've used this before, but isn't that supposed to spell "taglib"? -- Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BBS: http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh [EMAIL PROTECTED] ...It might be written "Mindfuck", but it's spelt "L-A-I-N"... np: Universal Selector - Marisol (ambient.01@hyperreal comp.)
Re: New user question...
The error is in the first line of your JSP file 'tag_test.jsp'. org.apache.jasper.compiler.ParseException: C:\tag_test.jsp(0,4) Invalid directive at... The error message says it is a directive, but without the details, it is hard to tell exactly what is wrong. If you tell us what's there, we can help you one step further. -- Pierre "Reynshteyn, Leonid" wrote: I just installed Tomcat for the first time and am trying to run a simple JSP that uses a very simple custom tag. When I run the JSP, I am getting the following Jasper compiler exception: org.apache.jasper.compiler.ParseException: C:\tag_test.jsp(0,4) Invalid directive at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:186) at org.apache.jasper.compiler.Parser.parse(Parser.java:1073) Here's what I did: 1) I put the JSP file in "install_dir/webapps/Root" (simple JSPs that don't use custom tags work fine from here) 2) I put the JSP Tag handler class in "install_dir/webapps/Root/Web-inf/classes" 3) I put the TLD file in "install_dir/webapps/Root" Any ideas? Thanks. -Lenny