Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Issues with Weblogic - Offending class: javax/servlet/Servlet.class

843833May 19 2009 — edited May 27 2009
Hi,

I've been working on a servlet that calls EJB objects and I'm having problems deploying it under Tomcat. It prints the following error message when I try to deploy the app:

INFO: validateJarFile(/home/xxxxx/tomcat/webapps/hello/WEB-INF/lib/wlfullclient.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

For reference, here is how my web.xml file looks like:
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Hell World Servlet</display-name>

<description>
A Hello World servlet example for Entity Beans.
</description>

<servlet>
<servlet-name>HelloWorldServletEJB</servlet-name>

<description>
A Hello World servlet example for Entity Beans.
</description>
<servlet-class>examples.helloworld.HelloWorldServletEJB</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>HelloWorldServletEJB</servlet-name>
<url-pattern>/HelloWorldServletEJB</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>30</session-timeout> <!-- 30 minutes -->
</session-config>

</web-app>
and here is my directory tree structure:
hello/
`-- WEB-INF
|-- classes
| `-- examples
| `-- helloworld
| |-- Hello.class
| |-- HelloHome.class
| `-- HelloWorldServletEJB.class
|-- jsp
|-- lib
| `-- wlfullclient.jar
|-- web.xml
`-- web.xml.old
I've been dealing with this problem for the past 3 days and I'm really stuck at this point. Any help would be much appreciated.

Thanks

Edited by: spinth on May 19, 2009 9:19 PM

Edited by: spinth on May 19, 2009 9:20 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2009
Added on May 19 2009
1 comment
237 views