Error loading servlet because a ClassNotFoundError

Hi,
I send a request to a servlet named "ControlAcceso".
The WebLogic server prints:
Error loading servlet: 'ControlAcceso'
java.lang.NoClassDefFoundError: gov/co/ssp/suin/ejb/ServiciosAutenticacionHome
at gov.co.ssp.suin.web.ControlAcceso.init(ControlAcceso.java:23)
I have an EJB that has a home interface named gov.co.ssp.suin.ejb.ServiciosAutenticacionHome;
the file ServiciosAutenticacionHome.class is located in a directory named /gov/co/ssp/suin/ejb
in a sui_ejb.jar file and in a sui_web.war file.
Besides, I put the sui_ejb.jar in the CLASSPATH of WebLogic Server in the setEnv.cmd
file.
A piece of code of the ControlAcceso.java servlet follows:
package gov.co.ssp.suin.web;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.naming.*;
import gov.co.ssp.suin.ejb.ServiciosAutenticacionHome ;
import gov.co.ssp.suin.ejb.ServiciosAutenticacion ;
import gov.co.ssp.suin.comun.* ;
import gov.co.ssp.suin.ejb.ServiciosAutenticacionHome ;
public class ControlAcceso extends HttpServlet {
ServiciosAutenticacion servAutenticacion;
HttpSession session ;
* Initialize global variables
public void init(ServletConfig config) throws ServletException {
super.init(config);
try{
Context ctx = new InitialContext();
ServiciosAutenticacionHome home = (ServiciosAutenticacionHome) ctx.lookup("ServiciosAutenticacion.ServiciosAutenticacionHome");
servAutenticacion = home.create();
} catch ( java.rmi.RemoteException re ) {
System.out.println("ControlAcceso.init: Excepcion RemoteException: ####
" + re.getMessage() );
throw new ServletException(re);
catch (javax.naming.NamingException ne) {
System.out.println("ControlAcceso.init: Excepcion NamingException: ####
" + ne.getMessage() );
javax.naming.Name name = ne.getRemainingName();
for (Enumeration e = name.getAll() ; e.hasMoreElements() ;) {
System.out.println(e.nextElement());
throw new ServletException(ne);
catch(Exception e){
System.out.println("ControlAcceso.init: #######" + e.getMessage() );
throw new ServletException(e);
Any help is really appreciated.
Regards.
- Ricardo De la Rosa (Colombia)
[NoClassDefFoundError.txt]

You're welcome. Glad to help.
Regards,
Slava Imeshev
"Ricardo De la Rosa" <[email protected]> wrote in message
news:[email protected]...
>
Slava,
Thank you very much.
Your answer (and clues) were the solution to my problem.
Best regards from Colombia !
- Ricardo.
"Slava Imeshev" <[email protected]> wrote:
Hi Ricardo,
NoClassDefFoundError means that though the classloader
has been able to find ServiciosAutenticacionHome, it's not
been able to locate supporting classes or interfaces used by
ServiciosAutenticacionHome. Make sure your ejb-jar contains
all necessary classes.
Regards,
Slava Imeshev
"Ricardo De la Rosa" <[email protected]> wrote in message
news:[email protected]...
Hi,
I send a request to a servlet named "ControlAcceso".
The WebLogic server prints:
Error loading servlet: 'ControlAcceso'
java.lang.NoClassDefFoundError:gov/co/ssp/suin/ejb/ServiciosAutenticacionHome
at
gov.co.ssp.suin.web.ControlAcceso.init(ControlAcceso.java:23)
>>>
I have an EJB that has a home interface namedgov.co.ssp.suin.ejb.ServiciosAutenticacionHome;
the file ServiciosAutenticacionHome.class is located in a directorynamed
/gov/co/ssp/suin/ejb
in a sui_ejb.jar file and in a sui_web.war file.
Besides, I put the sui_ejb.jar in the CLASSPATH of WebLogic Serverin the
setEnv.cmd
file.
A piece of code of the ControlAcceso.java servlet follows:
package gov.co.ssp.suin.web;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.naming.*;
import gov.co.ssp.suin.ejb.ServiciosAutenticacionHome ;
import gov.co.ssp.suin.ejb.ServiciosAutenticacion ;
import gov.co.ssp.suin.comun.* ;
import gov.co.ssp.suin.ejb.ServiciosAutenticacionHome ;
public class ControlAcceso extends HttpServlet {
ServiciosAutenticacion servAutenticacion;
HttpSession session ;
* Initialize global variables
public void init(ServletConfig config) throws ServletException {
super.init(config);
try{
Context ctx = new InitialContext();
ServiciosAutenticacionHome home = (ServiciosAutenticacionHome)ctx.lookup("ServiciosAutenticacion.ServiciosAutenticacionHome");
servAutenticacion = home.create();
} catch ( java.rmi.RemoteException re ) {
System.out.println("ControlAcceso.init: Excepcion
RemoteException:
" + re.getMessage() );
throw new ServletException(re);
catch (javax.naming.NamingException ne) {
System.out.println("ControlAcceso.init: Excepcion
NamingException:
" + ne.getMessage() );
javax.naming.Name name = ne.getRemainingName();
for (Enumeration e = name.getAll() ; e.hasMoreElements() ;) {
System.out.println(e.nextElement());
throw new ServletException(ne);
catch(Exception e){
System.out.println("ControlAcceso.init: #######" + e.getMessage());
throw new ServletException(e);
Any help is really appreciated.
Regards.
- Ricardo De la Rosa (Colombia)

Similar Messages

  • Error loading servlet: weblogic.servlet.FileServlet with v. 4.0.3

    Servlets have been working for months. Suddenly, I'm getting
              this error (see below) as soon as I try to hit a servlet.
              The startup process looks normal. I've re-installed WL v 4.0.3
              several time, gotten the license in place, so on and so forth,
              but cannot get around this problem. "weblogic.properties" file
              still reads:
              weblogic.httpd.register.file=weblogic.servlet.FileServlet
              All my servlets and EJBs have been registered, and db connection and
              pool made, as usual. As I said above, everything looks normal until
              I try to hit a servlet.
              [... startup output tidied up a bit ...]
              Thu Jan 27 14:46:05 MST 2000:<I> <ListenThread> Listening on port: 80
              Thu Jan 27 14:46:06 MST 2000:<I> <SSLListenThread> Listening on port: 7002
              Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Error loading servlet: weblogic.servlet.FileServlet
              Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> java.lang.IncompatibleClassChangeError: class
              weblogic.utils.classloaders.ClasspathClassFinder does not implement interface weblogic.utils.classloaders.ClassFinder
              at weblogic.utils.classloaders.GenericClassloader.findLocalClass(GenericClassloader.java:196)
              at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
              at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java:221
              at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
              at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLocalClass(RecursiveReloadOnModifyClassLoader.java:96)
              at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
              at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:82)
              at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
              at weblogic.servlet.internal.ServletContextImpl.loadClass(ServletContextImpl.java:440)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:121)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:85)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:67)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:203)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:505)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
              Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Servlet failed with ServletException ...
              ... and so on with multiple cascading failures.
              Does anyone have any idea as to what could cause this?
              Thanks.
              Paul Furbacher
              [email protected]
              

    Did you register your servlets after reinstalling. FileServlet is only for handling html pages. It has no role in loading servlets.
              "Paul Furbacher [TeamB]" wrote:
              > Servlets have been working for months. Suddenly, I'm getting
              > this error (see below) as soon as I try to hit a servlet.
              > The startup process looks normal. I've re-installed WL v 4.0.3
              > several time, gotten the license in place, so on and so forth,
              > but cannot get around this problem. "weblogic.properties" file
              > still reads:
              >
              > weblogic.httpd.register.file=weblogic.servlet.FileServlet
              >
              > All my servlets and EJBs have been registered, and db connection and
              > pool made, as usual. As I said above, everything looks normal until
              > I try to hit a servlet.
              >
              > ****
              >
              > [... startup output tidied up a bit ...]
              > Thu Jan 27 14:46:05 MST 2000:<I> <ListenThread> Listening on port: 80
              > Thu Jan 27 14:46:06 MST 2000:<I> <SSLListenThread> Listening on port: 7002
              > Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Error loading servlet: weblogic.servlet.FileServlet
              > Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> java.lang.IncompatibleClassChangeError: class
              > weblogic.utils.classloaders.ClasspathClassFinder does not implement interface weblogic.utils.classloaders.ClassFinder
              > at weblogic.utils.classloaders.GenericClassloader.findLocalClass(GenericClassloader.java:196)
              > at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
              > at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java:221
              > at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
              > at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLocalClass(RecursiveReloadOnModifyClassLoader.java:96)
              > at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
              > at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:82)
              > at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
              > at weblogic.servlet.internal.ServletContextImpl.loadClass(ServletContextImpl.java:440)
              > at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:121)
              > at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:85)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:67)
              > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:203)
              > at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:505)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              > at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
              >
              > Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Servlet failed with ServletException ...
              >
              > ... and so on with multiple cascading failures.
              >
              > ****
              >
              > Does anyone have any idea as to what could cause this?
              >
              > Thanks.
              >
              > Paul Furbacher
              > [email protected]
              

  • Error loading servlet: 'EbuController' java.lang.NoClassDefFoundError after redeploy EAR in weblogic 6.1

              Hi, there:
              we have deployed our application in EAR format in \config\mydomain\applications.
              This EAR contains one ejb.jar and one web.war. I can access a servlet after I
              deployed the EAR file into weblogic 6.1 sp1. However, if I redeploy this EAR file
              from within weblogic console. I got the following error when I revisit that servlet
              again.
              <Jan 17, 2002 9:30:41 PM PST> <Error> <HTTP> <[WebAppServletContext(1485918,plat
              form,/platform)] Error loading servlet: 'EbuController'
              java.lang.NoClassDefFoundError
              at java.lang.Class.newInstance0(Native Method)
              at java.lang.Class.newInstance(Class.java:237)
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
              pl.java:665)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
              Impl.java:643)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              mpl.java:588)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:368)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:242)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:2456)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2039)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              <Jan 17, 2002 9:30:41 PM PST> <Error> <HTTP> <[WebAppServletContext(1485918,plat
              form,/platform)] Error loading servlet: "EbuController"
              java.lang.NoClassDefFoundError
              at java.lang.Class.newInstance0(Native Method)
              at java.lang.Class.newInstance(Class.java:237)
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
              pl.java:665)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
              Impl.java:643)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              mpl.java:588)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:368)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:242)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:2456)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2039)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              Your help is highly appreciated!
              Jerry
              

              Hi, there:
              we have deployed our application in EAR format in \config\mydomain\applications.
              This EAR contains one ejb.jar and one web.war. I can access a servlet after I
              deployed the EAR file into weblogic 6.1 sp1. However, if I redeploy this EAR file
              from within weblogic console. I got the following error when I revisit that servlet
              again.
              <Jan 17, 2002 9:30:41 PM PST> <Error> <HTTP> <[WebAppServletContext(1485918,plat
              form,/platform)] Error loading servlet: 'EbuController'
              java.lang.NoClassDefFoundError
              at java.lang.Class.newInstance0(Native Method)
              at java.lang.Class.newInstance(Class.java:237)
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
              pl.java:665)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
              Impl.java:643)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              mpl.java:588)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:368)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:242)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:2456)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2039)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              <Jan 17, 2002 9:30:41 PM PST> <Error> <HTTP> <[WebAppServletContext(1485918,plat
              form,/platform)] Error loading servlet: "EbuController"
              java.lang.NoClassDefFoundError
              at java.lang.Class.newInstance0(Native Method)
              at java.lang.Class.newInstance(Class.java:237)
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
              pl.java:665)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
              Impl.java:643)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              mpl.java:588)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:368)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:242)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:2456)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2039)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              Your help is highly appreciated!
              Jerry
              

  • Error Loading servlet in iplanet app server NotSerializableException

    I am trying to load a servlet and everything runs correct but when i try to connect to the database of the system I get java.io.NotSerializableException. I am not passing any data through rmi or writing any data to the system, but still get this message. The wierd thing is that this runs without a problem on my windows, running JRun, and linux, running tomcat, machine but give me this message on my unix machine running Iplanet, does anyone have any clue to what would cause such an error, when everything works on all the other machines but the unix one.
    Thanks.

    I am not sure what that realy means???
    Here is the error
    [01/Apr/2002 16:34:59:2] error: Exception:
    SERVLET-IO_exception: IOException occurred
    Exception Stack Trace:
    java.io.NotSerializableException:
    org.meinds.forum.database.DbAuthorization
    at
    at java.lang.Throwable.fillInStackTrace(Native
    ative Method)
    at
    at java.lang.Throwable.fillInStackTrace(Compiled
    piled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(Compiled Code)
    at
    at java.io.ObjectStreamException.<init>(Compiled
    piled Code)
    at
    at
    at java.io.NotSerializableException.<init>(Compiled
    ed Code)
    at
    at
    at java.io.ObjectOutputStream.outputObject(Compiled
    ed Code)
    at
    at
    at java.io.ObjectOutputStream.writeObject(Compiled
    ed Code)
    at
    at
    at
    at
    java.io.ObjectOutputStream.outputClassFields(Compiled
    Code)
    at
    at
    at
    at
    java.io.ObjectOutputStream.defaultWriteObject(Compiled
    Code)
    at
    at
    at java.io.ObjectOutputStream.outputObject(Compiled
    ed Code)
    at
    at
    at java.io.ObjectOutputStream.writeObject(Compiled
    ed Code)
    at
    at
    at
    at
    com.netscape.server.servlet.platformhttp.PlatformNASSe
    ssion.putMemberValue(Compiled Code)
    at
    at
    at
    at
    com.netscape.server.servlet.platformhttp.PlatformNASSe
    ssion.saveSession(Compiled Code)
    at
    at
    at
    at
    com.netscape.server.servlet.platformhttp.PlatformNASSe
    ssion.decrementActiveRequestCount(Compiled Code)
    at
    at
    at
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpS
    ervletRequest.releaseSession(Compiled Code)
    at
    at
    at
    at
    com.netscape.server.servlet.servletrunner.ServletRunne
    r.execute(Compiled Code)
    at
    at
    at com.kivasoft.applogic.AppLogic.execute(Compiled
    ed Code)
    at
    at
    at com.kivasoft.applogic.AppLogic.execute(Compiled
    ed Code)
    at com.kivasoft.thread.ThreadBasic.run(Native
    n(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native
    n(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native
    n(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native
    n(Native Method)
    at
    at com.kivasoft.thread.ThreadBasic.run(Compiled
    piled Code)
    at java.lang.Thread.run(Compiled Code)

  • Error loading servlet.jar

    I deployed a web application in tomcat server. I'm getting following error when starting the server
    WebappClassLoader: validateJarFile(D:\jakarta-tomcat-4.1.27\webapps\registeruser
    \WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
    Offending class: javax/servlet/Servlet.class

    I am trying to deploy a web application using Netbeans 6.1 but when I am running it I am getting the following errors:
    deployed with moduleid = S
    validateJarFile(/home/aadhya/sanju/S/build/web/WEB-INF/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    ##### Error java.lang.ClassNotFoundException: com.mysql.Driver
    ##### Error java.lang.ClassNotFoundException: com.mysql.Driver
    Can any body please tell me how to solve this problem???
    I tried even by deleting servlet.jar from my application but still the same problem exists.
    Thanks & Regards,
    Sanjeev K
    Edited by: sanjeev.pk on Sep 2, 2008 3:35 PM

  • Problems loading Servlet in WAR deployment

    I'm deploying a servlet using a war file. I am able to deploy the war under
              both WebLogic 6.0 sp2 and WebLogic 6.1 beta. However, when I try to access
              the servlet from a browser I get the following error:
              [java] <Aug 7, 2001 2:49:13 PM CDT> <Error> <HTTP>
              <[WebAppServletContext(1
              287677,Alert-weblogic60,/Alert-weblogic60)] Error loading servlet:
              'AlertEventLi
              stenerServlet'
              [java] java.lang.NoClassDefFoundError: org/apache/log4j/Category
              [java] at
              com.agea.alert.servlet.AlertEventListenerServlet.<init>(Alert
              EventListenerServlet.java:25)
              [java] at java.lang.Class.newInstance0(Native Method)
              [java] at java.lang.Class.newInstance(Class.java:237)
              [java] at
              weblogic.servlet.internal.ServletStubImpl.createServlet(Servl
              etStubImpl.java:641)
              [java] at
              weblogic.servlet.internal.ServletStubImpl.createInstances(Ser
              vletStubImpl.java:619)
              [java] at
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(Serv
              letStubImpl.java:564)
              [java] at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletS
              tubImpl.java:344)
              [java] at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servl
              etStubImpl.java:240)
              [java] at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servl
              etStubImpl.java:200)
              [java] at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(
              WebAppServletContext.java:2279)
              [java] at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletR
              equestImpl.java:1923)
              [java] at
              weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              [java] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              [java] >
              Obviously the problem is that the servlet can't load the
              org.apache.log4j.Category class. However, I have included the log4j.jar
              file (which contains the org.apache.log4j.Category class) in the war under
              WEB-INF/lib. Why isn't the classloader picking it up?
              Thanks for the help,
              Tim
              

    Did you make sure that:
              org/apache/log4j/Category
              is in the server's classpath?
              "Timothy O'Hara" <[email protected]> wrote in message
              news:[email protected]...
              > I'm deploying a servlet using a war file. I am able to deploy the war
              under
              > both WebLogic 6.0 sp2 and WebLogic 6.1 beta. However, when I try to
              access
              > the servlet from a browser I get the following error:
              >
              > [java] <Aug 7, 2001 2:49:13 PM CDT> <Error> <HTTP>
              > <[WebAppServletContext(1
              > 287677,Alert-weblogic60,/Alert-weblogic60)] Error loading servlet:
              > 'AlertEventLi
              > stenerServlet'
              > [java] java.lang.NoClassDefFoundError: org/apache/log4j/Category
              > [java] at
              > com.agea.alert.servlet.AlertEventListenerServlet.<init>(Alert
              > EventListenerServlet.java:25)
              > [java] at java.lang.Class.newInstance0(Native Method)
              > [java] at java.lang.Class.newInstance(Class.java:237)
              > [java] at
              > weblogic.servlet.internal.ServletStubImpl.createServlet(Servl
              > etStubImpl.java:641)
              > [java] at
              > weblogic.servlet.internal.ServletStubImpl.createInstances(Ser
              > vletStubImpl.java:619)
              > [java] at
              > weblogic.servlet.internal.ServletStubImpl.prepareServlet(Serv
              > letStubImpl.java:564)
              > [java] at
              > weblogic.servlet.internal.ServletStubImpl.getServlet(ServletS
              > tubImpl.java:344)
              > [java] at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servl
              > etStubImpl.java:240)
              > [java] at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servl
              > etStubImpl.java:200)
              > [java] at
              > weblogic.servlet.internal.WebAppServletContext.invokeServlet(
              > WebAppServletContext.java:2279)
              > [java] at
              > weblogic.servlet.internal.ServletRequestImpl.execute(ServletR
              > equestImpl.java:1923)
              > [java] at
              > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              >
              > [java] at
              weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > [java] >
              >
              > Obviously the problem is that the servlet can't load the
              > org.apache.log4j.Category class. However, I have included the log4j.jar
              > file (which contains the org.apache.log4j.Category class) in the war under
              > WEB-INF/lib. Why isn't the classloader picking it up?
              >
              > Thanks for the help,
              > Tim
              >
              >
              

  • Loading Servlet Error - Websphere

    Hi,
    I have deployed a application in WebSphere v.4. when I am starting the Application, It is giving below error. Wht is cause pls help. Urgent.
    Error:
    Servlet Error-[UpDelScoreSheetServlet]: Failed to load servlet: java.lang.NoClassDefFoundError: java/lang/CharSequence
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java(Compiled Code))
         at java.beans.Beans.instantiate(Beans.java:233)
         at java.beans.Beans.instantiate(Beans.java:77)
         at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:141)
         at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:325)
         at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1217)
         at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
         at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
         at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:168)
         at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:856)
         at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
         at com.ibm.ws.runtime.Server.startModule(Server.java:617)
         at com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:511)
         at com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
         at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:722)
         at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:93)
         at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:525)
         at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:110)
         at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
         at com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:73)
         at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:532)
         at com.ibm.CORBA.iiop.ORB.process(ORB.java:2395)
         at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
         at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
         at com.ibm.ws.util.CachedThread.run(ThreadPool.java:138)

    Hi
    Sounds like you wrote your code against JDK 1.4.2 but WebSphere is probably running on 1.3.x (can't remember exactly what WAS 4 run on)
    So although your code compiled, WAS doesn't know what CharSequence is because it only became part of the java.lang package in 1.4.x
    I suggest you change your JDK down to the version used in WAS because you'll probably find other problems that you weren't expecting due to the difference in JDK versions.
    -Rich

  • Error: "failed to load book because the requested resource is missing"

    I book a book via the iPad. The book appeared in my library no problem with the "new" tag and stuff, but when I tap it to read I get an error "failed to load book because the requested resource is missing." Any ideas? I'm on the road, so I haven't synced or backed up or anything..
    I've also verified that I have a good connection, etc. I'm able to hit the "store" button and browse the store no prob, as well as web, etc.
    Any thoughts?

    I believe I may have the answer to these many concerns. 
    When a book is over 20 or so megs, iBook will sometimes make an attempt to download on the iPad (when it should not). This causes problems. Perhaps the one you are experiencing. Therefore you have to wait until you are on a wifi connection before purchasing dictionary-like books. But if you've already made the mistake of downloading, theres no guarantee wifi will correct this. 
    What worked for me (like others have already mentioned) is that if you have an iphone or touch you can download it from there, sync with your computer and sync your iPad later. The book(s) will transfer just fine as long as you have this enabled on your devices.
    Initially this didn't work for me because in my frustration with a prior issue I took the liberty to create another iTunes account. Therefore iPad purchases were not visible on my phone. So be sure to have the same accounts activated on your devices and iTunes. 
    Yet even further diagnostics may need to be explored as I'm still prompted to provide my password every time i open iBooks (as if the download is still pending). Kinda afraid to revert to factory settings over a small issue. In the coming update Apple should fix these problems altogether. Hope this helps!

  • Error when loading servlet using JDOM

    hi,
    I'm new in the servlet developpement and I would like to have your helps.
    I use JDOM to access to XML files. I use Eclipse WTP, and Tomcat like servlet container.
    When I try to load the simple servlet file, I get an exception which shows me that there is java.lang.NoClassDefFoundError: org/jdom/JDOMException.
    I think there are problems in the configuration, but I don't know why. Any help would be welcome.
    This is my code
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.JDOMException;
    import org.jdom.input.SAXBuilder;
    import org.jdom.xpath.XPath;
    import org.jdom.*;
    * Servlet implementation class for Servlet: test1
    public class test1 extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
         String xparams_input_file="xparamsdata.xml";; //Fichier d'entr�e XML
         Document xparams_document;
         Element xparams_Element;
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#HttpServlet()
         public test1() {
              super();
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              doPost(request,response);
         /* (non-Java-doc)
         * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              System.out.println("TestOK");
         /* (non-Javadoc)
         * @see javax.servlet.GenericServlet#init()
         public void Lire_XParams_XML(){
              SAXBuilder saxBuilder = new SAXBuilder();
              try{               
                   xparams_document = saxBuilder.build(xparams_input_file);
                   xparams_Element = xparams_document.getRootElement();               
              catch (JDOMException e)
              { // indicates a well-formedness or other error
                   //e.printStackTrace();
                   System.out.println(xparams_input_file + " is not a well formed XML document.");
                   System.out.println(e.getMessage());               
              catch (IOException e)
              { // indicates an IO problem
                   System.out.println(xparams_input_file + " could not be parsed");
                   System.out.println(e.getMessage());
         public void init() throws ServletException {
              // TODO Auto-generated method stub
              super.init();
              System.out.println("TestOK init");
    And the errors
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error instantiating servlet class test1
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.NoClassDefFoundError: org/jdom/JDOMException
         java.lang.Class.getDeclaredConstructors0(Native Method)
         java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         java.lang.Class.getConstructor0(Unknown Source)
         java.lang.Class.newInstance0(Unknown Source)
         java.lang.Class.newInstance(Unknown Source)
         org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
         org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17

    Have u set the classpath for jdom.jar. If u have jdom.jar file in ur machine , set the classpath to that. otherwise download one from the net .
    http://www.jdom.org/dist/binary/
    put it in ur build path.

  • Servlet error: Error loading filter 'ADFBindingFilter'

    I use JDeveloper 10g (9.0.5.2 build 1618) and deploy my application to standalone oc4j 10g.
    I got the following internal error when I access dataAction. So I could not show any page.
    Servlet error: Error loading filter 'ADFBindingFilter', filter-class 'oracle.adf.model.servlet.ADFBindingFilter' not found
    Pls help me.
    Thanks

    for some reason your web.xml does not have the servlet filter set up. If not I suspect you may have other entries missing. You could try and create a new adf-bc4j web application and look at the newly generated web.xml to see what is missing in yours. The specific entries you are missing are given below
    <filter>
    <filter-name>ADFBindingFilter</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    <init-param>
    <param-name>encoding</param-name>
    <param-value>windows-1252</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ADFBindingFilter</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ADFBindingFilter</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ADFBindingFilter</filter-name>
    <servlet-name>action</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ADFBindingFilter</filter-name>
    <servlet-name>jsp</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ADFBindingFilter</filter-name>
    <servlet-name>ordDeliverMedia</servlet-name>
    </filter-mapping>

  • Error can't load Servlet org.apache.struts.action.ActionServlet

    Hi,
    I have SAP J2EE 6.20 installed on linux machine. I am trying to deploy struts framework based application and while deploying it..... I am getting error message:
    Error can't load Servlet org.apache.struts.action.ActionServlet : java.lang.NoClassDefFoundError: org/xml/sax/SAXException
    07 19:27:48 -  ***********************************************************
    08/10/07 19:27:48 -  Applying user role management mappings.
    08/10/07 19:27:48 -  Start updating EAR-file...D:\SAPJ2EE Client\deploying\sambodh\sambodh.ear
    08/10/07 19:28:26 -  Temp files deleted...
    08/10/07 19:28:26 -  Ear-file updated successfully for 37860ms.
    08/10/07 19:28:27 -  Start deploying ...
    08/10/07 19:30:35 -  Ear-file uploaded to server for 128047ms.
    08/10/07 19:30:37 -  Successfuly deployed! Deployment took 1953ms.
    08/10/07 19:30:37 -  WARNING : Deploy service return folowing WARNINGs:
                         Error can't load Servlet org.apache.struts.action.ActionServlet : java.lang.NoClassDefFoundError: org/xml/sax/SAXException
                          Deployment took 1953ms.
    08/10/07 19:30:37 -  ***********************************************************
    First time when I got this error, I added struts.jar in my server's <inst_dir>/alone/additional_libs/...... but then also error still exists... Do I have to start  SAP J2EE instance once again and then deploy my application?
    Can anyone help me out in this as this is very very very imp.
    regards

    Hi,
    As per your actions above I believe you have already found SAP Note 435363.
    Basically for a struts application there are no special requirements other than
    1. Make a reference to the inqmyxmltoolkit from the application that is going to use struts before the deployment
    2. Put the struts library into WEB-INF/lib of the application (struts can't be shared among applications)
    3. Deploy the application
    For making the reference you can:
    1. Telnet to the Engine (if you run it as a service and do not have access to its shell directly)
    If telnet port on the Engine dispatcher is 2323
    telnet localhost 2323
    2. Jump to the server node
    for example if the application node's cluster id is 4001
    jump 4001
    3. Execute the commands
    add deploy
    changeref -m  MyApplication library:inqmyxml
    So if it does not work, then I see two reasons possible:
    1. You are using a really old version of the 6.20 Engine - check if you are on PL41.
    2. You have misspelled the name of your application in the reference. The names are case sensitive so you need to be careful. MyApplication is not the same as myApplication or myapplication.
    Regards,
    Iavor

  • I am getting a photoshop error could not load photoshop because the preferences file was invalid and cln't load actions because of an unexpected end of file encountered.

    I am getting a photoshop error could not load photoshop because the preferences file was invalid and cln't load actions because of an unexpected end of file encountered.

    Are you trying to open Photoshop directly, or open it by double clicking on a Photoshop document, like a PSD file?  If the former, then you might need to reinstall.  Resetting Preferences would be the firs step, but I am not sure if that will work if Photoshop is not opening in the first place.
    Try doing so anyway.  Hold down Shift Alt Ctrl (Shift Opt Cmd) while opening Photoshop. OK the message to delete Preferences.
    If you get the unexpected end of file error while trying to open Photoshop via a PSD document, then there is more than a good chance that that file is toast.
    If still stuck, we need to know Operating System, and Photoshop version.

  • Error Could not pre-load servlet: MessageBrokerServlet

    I get the following errors during LCDS startup:
    error Could not pre-load servlet: MessageBrokerServlet
    [1]java.lang.UnsupportedClassVersionError: flexdev/FundciteAssembler (Unsupported major.minor version 50.0)
    [Flex] Error instantiating application scoped instance of type 'flexdev.FundciteAssembler' for destination 'fundcite'.
    java.lang.UnsupportedClassVersionError: flexdev/FundciteAssembler (Unsupported major.minor version 50.0)
    I have a MySQL server running and I am trying to connect to it through java. Any idea what this error means?

    "Unsupported major.minor version" means you are using a JVM version that is not supported.
    List of supported JVMs can be found here:
    http://www.adobe.com/products/livecycle/systemreqs.html#item-02

  • Error message "Failed to load book because the requested resource is missing" on iPhone

    I purchased 3 books in itunes to read on my iphone using ibooks. I have synced and I can see the books in my iBooks bookshelf, but when I try to open them I get an error message "Failed to load book because the requested resource is missing". I have tried opening the book again, deleting and resyncing but nothing seems to work. Any suggestions?

    I was having the same probem.
    I found success when I shut my iphone down all the way (press and hold power button then "slide to power off")
    then started it back up.  My phone was linked to my computer at the time, so it went through the sync - not sure if that is important.  But, I can now read my books!
    Good luck

  • Unable to load servlet  class specified in the module.

    Hi,
    Hope that I am in the right Forum to ask this question.
    I tried to develop basic servlet example as specified in http://java.sun.com/developer/onlineTraining/J2EE/Intro2/servlet/servlet.html.
    When I create WAR file in Deployment tool I get the following error. How can I rectify this?
    Thank you very much for any help.
    Regards,
    Indika
    Error :
    Unable to load servlet class specified in the module.
    Please contact online help for assistance.
    java.lang.UnsupportedClassVersionError : bonus/controller/BonusCalculationServlet (Unsupported major.minor version 49.0)

    Hi Yohan_co,
    I haven't used Application Server 8.2, but I think the problem is because the jdk that AS is using is previous to the jdk that your are using to compile your source files.
    I hope that it helps you.
    Regards

Maybe you are looking for

  • Got ErrorWhile Generating the PDF in BI

    Dear All, We have a Apex integrated with BI Publisher 10.1.3.4 . While running the PDF Report more than 200 pages it is throwing the following Error. [050610_011309664][][STATEMENT] Total time used: 4768ms for processing XSL-FO [050610_011309665][ora

  • Unable to Update Tasks using PSI

    Hi, I have customized Ms Project Server to update a custom field in the tasks of Project Schedule after checkin of the Project. The code loops through all tasks and performs QueueUpdate operation to update all changes to Tasks. However, the updates m

  • Bank File Export !!!

    Hi All, I am using 2007A PL 35.How does one create or export bank payments file from payment wizard ? Regards, Asap

  • Hanging + App error 200 problem

    Hello I have a Curve 8520 (my brothers) which is a total mess! The phone is always hanging we can barley use it, I am trying to back up the phone in order to wipe it and update it but I am unable to. Also, i am getting the App error 200. I have been

  • Boot up hangs at blue screen

    I've tried what I could of the suggestions for this problem. I've used Disk Utility repair and repaired disk permissions and used Techtool pro which said it repaired. I can only get to the login screen by connecting to a clone in the external hard dr