tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Zhang" <zha...@sybase.com>
Subject Can TomCat 3.1 import Jar file?
Date Tue, 02 May 2000 05:13:47 GMT
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







Mime
View raw message