-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Hello all, I am developing a prototype using JServ as servlet engine and apache
as web server. The problem I have is unable to run the servlet class. When I
looked at the log file in Jserv.txt:
 [28/09/1999 01:57:56:068 EDT] ApacheJServ/1.0 is starting...
[28/09/1999 01:57:56:068 EDT] WARNING: connection authentication is disabled
[28/09/1999 01:57:56:148 EDT] Connection allowed from localhost/127.0.0.1
[28/09/1999 01:57:56:148 EDT] Listening on port 7001 accepting 50 maximum
connections
[28/09/1999 01:57:56:178 EDT] Creating Servlet Zones
[28/09/1999 01:59:28:521 EDT] 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(JServServletManager.java)
     at org.apache.jserv.JServConnection.processRequest(JServConnection.java)
     at org.apache.jserv.JServConnection.run(JServConnection.java)
     at java.lang.Thread.run(Thread.java:466)
The log file of mod_jserv:
 [28/09/1999 05:59:28:531] (ERROR) ajp11: Servlet Error:
java.lang.ClassFormatError: Wrong name: Wrong name
[28/09/1999 05:59:28:531] (ERROR) an error returned handling request via
protocol "ajpv11"

What could be wrong with my class name?! I have run another servlet
(ServletBase.java) which ran sucessfully.
But this servlet (LoginServlet) could not run under JServ,  it can run under
weblogic servlet engine though.
My platform is Windows NT 4.0,
Apache Web Server 1.3.6,
JServ 1.0
We are doing connection from servlet to EJB and then to DB. The connection is
working because my ServletBase is working. The slightly different
betwwen ServletBase and LoginServlet is that LoginServlet did not extends
HttpServlet directly, instead LoginServlet extends a base servlet:

public class LoginServlet extends BaseServlet
{
}
public class BaseServlet extends HttpServlet
{
}

When I call the LoginServlet, can I do: <form .... action ="
servlets/LoginServlet">?

Please help me out. Thank you in advance!


Zheng Lee
London Bridge, Inc.




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to