tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <Craig.McClana...@eng.sun.com>
Subject Re: Can TomCat 3.1 import Jar file?
Date Wed, 03 May 2000 20:08:21 GMT
Administrator wrote:

> Subject: Can TomCat 3.1 import Jar file?
> Date: Tue, 2 May 2000 00:13:47 -0500
> From: Bill Zhang <zhangb@sybase.com>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
>
> 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();
>

This is the real culprit -- not whether the JAR file was unpacked or not.  I'll
bet you forgot a "package vizz.model;" statement at the top of the Money.java
class.

Craig McClanahan



Mime
View raw message