You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Eduardo Miranda Castor <ed...@unimedjp.com.br> on 2000/06/09 13:19:41 UTC
RES: JSP engine fails when trying to compile java / Apache / Tomc
a t / Unix
Hi Ricardo
I have this problem, too. The same browse message.
My problem was resolved with the correct values on the CLASSPATH.
Every java class (.class and .jar) I found in my computer I put on the
CLASSPATH.
Eduardo
> ----- Mensagem original -----
> De: Gladwell, Ricardo [SMTP:ricardo.gladwell@demon.net]
> Enviada em: sexta-feira, 9 de junho de 2000 08:06
> Para: 'tomcat-user@jakarta.apache.org'
> Assunto: RE: JSP engine fails when trying to compile java /
> Apache / Tomca t / Unix
>
> Dear Nick,
>
> I am having very similar problems as you did in the message you wrote to
> the
> Tomcat Users mailing list. I would greatly appreciate it if you could tell
> me how you resolved the problem and what exactly the problem was. Yours
> gratefully...
>
> --
> Ricardo Gladwell, Web Developer
> Demon Internet, Westhumble House,
> Dorking Business Park, Dorking. RH4 1HJ
> Tel: +44 (01306) 732 356
> Mobile: +44 (07779) 841 444
>
> > -----Original Message-----
> > From: Nick Marriage [mailto:nmarriage@ingenta.com]
> > Sent: 23 May 2000 16:15
> > To: tomcat-user@jakarta.apache.org
> > Subject: JSP engine fails when trying to compile java /
> > Apache / Tomcat
> > / Unix
> >
> >
> >
> > I have installed tomcat and apache, as per the Minimalistic
> > User Guide for Tomcat. I've started tomcat and apache,
> > apparently successfully. Apache seems to work for html files
> > ok. When I try to use it with any of the jsp examples
> > provided, I get, in my browser, instead of the jsp
> > application I asked for, the following message:
> >
> > Error: 500
> > Location: /examples/jsp/num/numguess.jsp
> > Internal Servlet Error:
> >
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> > at java.lang.Throwable.(Compiled Code)
> > at java.lang.Exception.(Compiled Code)
> > at javax.servlet.ServletException.(Compiled Code)
> > at org.apache.jasper.JasperException.(Compiled Code)
> > at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
> > at
> > org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfN
> > ecessary(Compiled Code)
> > at
> > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> > (Compiled Code)
> > at
> > org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled Code)
> > at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
> > at javax.servlet.http.HttpServlet.service(Compiled Code)
> > at
> > org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> > at org.apache.tomcat.core.ContextManager.service(Compiled Code)
> > at
> > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> > cessConnection(Compiled Code)
> > at
> > org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> > at java.lang.Thread.run(Compiled Code)
> >
> > Root cause:
> > java.lang.IllegalArgumentException: Unknown argument
> > at java.lang.Throwable.(Compiled Code)
> > at java.lang.Exception.(Compiled Code)
> > at java.lang.RuntimeException.(Compiled Code)
> > at java.lang.IllegalArgumentException.(Compiled Code)
> > at java.text.MessageFormat.format(Compiled Code)
> > at java.text.MessageFormat.format(Compiled Code)
> > at java.text.Format.format(Compiled Code)
> > at org.apache.jasper.Constants.getString(Compiled Code)
> > at org.apache.jasper.Constants.message(Compiled Code)
> > at
> > org.apache.jasper.compiler.JspParseEventListener.handleDirecti
> > ve(Compiled Code)
> > at
> > org.apache.jasper.compiler.DelegatingListener.handleDirective(
> > Compiled Code)
> > at
> > org.apache.jasper.compiler.Parser$Directive.accept(Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Compiled Code)
> > at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
> > at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
> > at
> > org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfN
> > ecessary(Compiled Code)
> > at
> > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> > (Compiled Code)
> > at
> > org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled Code)
> > at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
> > at javax.servlet.http.HttpServlet.service(Compiled Code)
> > at
> > org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> > at org.apache.tomcat.core.ContextManager.service(Compiled Code)
> > at
> > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> > cessConnection(Compiled Code)
> > at
> > org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> > at java.lang.Thread.run(Compiled Code)
> >
> > I also, mysteriously, get the message
> >
> > Unknown object of type:java.util.Hashtable
> >
> > which appears at the Unix command line prompt from which I
> > previously started Tomcat.
> >
> > Another odd thing, which might have something to do with it,
> > is that in the jasper.log
> > files which tomcat creates, it says (amongst other things):
> >
> > <JASPER_LOG> Tue May 23 13:13:28 GMT+01:00 2000 Classpath
> > according to the Servlet Engine is:
> > /opt/local/jakarta-tomcat/webapps/examples/WEB-INF/classes</JA
> > SPER_LOG>
> >
> > What happened to the rest of my classpath, which, when I
> > started Tomcat via tomcat.sh is announced to be:
> >
> > .:./../lib/ant.jar:./../lib/jasper.jar:./../lib/servlet.jar:./
> > ../lib/test:./../lib/webserver.jar:./../lib/xml.jar:/usr/java1
> > .2/jre/lib:/usr/java1.2/bin:/tools/external/xml/xml4j_2_0_11/x
> ml4j/xml4j.jar:/tools/external/jserv_1.0/JSDK2.0/lib/jsdk.jar
> >
> > Has anyone out there got any tips as to what I've done wrong?
> > This has been driving me round the bend for days now!
> >
> > Thanks in advance
> > Nick Marriage
> >
> >
> > --------------------------------------------------------------
> > ------------
> > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commmands, email: tomcat-user-help@jakarta.apache.org
> >
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org