tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nishit Trivedi" <nis...@planet.net>
Subject Re: Can TomCat 3.1 import Jar file?
Date Tue, 02 May 2000 13:41:41 GMT
the Error 500 is mostly because of class files not found...
i had jdk1.1.8 on my machine and i installed jdk1.2.2. But my PATH variable
was set to 1.1.8 mistakenly so i was able not able to see jsp examples..
if you have same situation then change the PATH and CLASSPATH
to point to jdk1.2.2 class files and let's see...

nishit
Internet Programmer
Planet Access Networks
973-691-4704 Ext:157
----- Original Message -----
From: "Bill Zhang" <zhangb@sybase.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, May 02, 2000 1:13 AM
Subject: Can TomCat 3.1 import Jar file?


> Hi:
>
> I have Tomcat 3.1 release build, Apache 1.3.12 and JDK122 runing on WinNT
> sp4 machine.  The jar file is copy under
%tomcat%\webapps\myApp\WEB-INF\lib.
> I got Error: 500.  Then I unzip the jar file under
> %tomcat%\webapps\myApp\WEB-INF\classes.  I still got Error: 500.  Can
> someone give me a hint on what went wrong?
>
> Here is the error msg I got for the second way.
>
> Error: 500
> Location: /examples/jsp/helloClient.jsp
> Internal Servlet Error:
>
> org.apache.jasper.JasperException: Unable to compile class for
>
JSPD:\jakarta-tomcat\webapps\examples\WEB-INF\classes\vizz\model\Money.java:
> 1: The source file encoding may be different with this platform encoding.
> Please use -encoding option to adjust file encoding, or apply native2ascii
> utility to make source file ASCII encoding.
>
>
> error: File
> D:\jakarta-tomcat\webapps\examples\WEB-INF\classes\vizz\model\Money.java
> does not contain type vizz.model.Money as expected. Please adjust the
class
> path so that the file does not appear in the package vizz\model.
>
D:\jakarta-tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fhelloClient_
> 0002ejsphelloClient_jsp_1.java:77: Class vizz.model.Money not found in
type
> declaration.
>                 Money money = new Money();
>                 ^
>
D:\jakarta-tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fhelloClient_
> 0002ejsphelloClient_jsp_1.java:77: Class vizz.model.Money not found in
type
> declaration.
>                 Money money = new Money();
>                                   ^
> 4 errors
>
> 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.connector.Ajp12ConnectionHandler.processConnection
> (Ajp12ConnectionHandler.java:156)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java:479)
>
>
> Thanks
>
> Bill
>
>
>
>
>
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>


Mime
View raw message