This looks like a package mismatch. If you've define a package at the
top of your class files (i.e. com.example.SomeClass ) you need to place
the file in the same directory structure. (i.e. .../com/example/SomeClass )

h t wrote:

> Hi,
>
> I have the problem with running a simple servlet on an Apache Server with
> Tomcat 3.3.1
> I wrote the servlet in Visual Age for Java 3.5 and exported the .CLASS
> file
> into the proper directory on Apache. I then try to test it out by calling
> the servlet from an HTML page. An error occurs and the only thing I
> got back
> is the error below that I found in the log file.
> I tried looking over the servlet code and everything seems to be declared
> appropriately and defined. The call from the HTML page is just from
> the FORM
> action attribute...calling the servlet
>
>
> java.lang.ClassFormatError: Wrong name
> at java.lang.ClassLoader.defineClass(ClassLoader.java:219)
> at org.apache.java.lang.AdaptiveClassLoader.loadClass(Compiled Code)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:154)
> at
> org.apache.jserv.JServServletManager.load_init(JServServletManager.java)
> at org.apache.jserv.JServServletManager.loadServlet(Compiled Code)
> at org.apache.jserv.JServConnection.processRequest(Compiled Code)
> at org.apache.jserv.JServConnection.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
>
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
> ___________________________________________________________________________
>
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to