class loading problem

Discussion in 'Java' started by Roy27, Dec 19, 2006.

  1. Roy27

    Roy27 Guest

    Hi,

    I am having this problem sometimes. Sometimes Eclipse (version 3.2) can
    load the MyFaces library nicely and work fine, and sometimes it could
    not load it. Can someone explain why it happens?

    Thanks in advance
    Manik
    p.s. The debug log:

    Dec 19, 2006 5:02:46 PM org.apache.catalina.core.AprLifecycleListener
    lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance
    in production environments was not found on the java.library.path:
    D:\Program
    Files\Java\jdk1.5.0_07\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
    Files\Intel\DMIX
    Dec 19, 2006 5:02:47 PM org.apache.coyote.http11.Http11BaseProtocol
    init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Dec 19, 2006 5:02:47 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1141 ms
    Dec 19, 2006 5:02:47 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Dec 19, 2006 5:02:47 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    Dec 19, 2006 5:02:47 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Dec 19, 2006 5:02:47 PM org.apache.catalina.core.StandardContext
    listenerStart
    SEVERE: Error configuring application listener of class
    org.apache.myfaces.webapp.StartupServletContextListener
    java.lang.ClassNotFoundException:
    org.apache.myfaces.webapp.StartupServletContextListener
    at
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
    at
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
    at
    org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
    at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Dec 19, 2006 5:02:47 PM org.apache.catalina.core.StandardContext
    listenerStart
    SEVERE: Skipped installing application listeners due to previous
    error(s)
    Dec 19, 2006 5:02:47 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
     
    Roy27, Dec 19, 2006
    #1
    1. Advertising

  2. Roy27

    Oliver Wong Guest

    "Roy27" <> wrote in message
    news:...
    > Hi,
    >
    > I am having this problem sometimes. Sometimes Eclipse (version 3.2) can
    > load the MyFaces library nicely and work fine, and sometimes it could
    > not load it. Can someone explain why it happens?


    Run Eclipse under JConsole
    (http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html) to
    check if you're running out of memory. The site will tell you to add
    "-Dcom.sun.management.jmxremote" to the command line to enable the
    management agent, but instead of adding it to the command line, add it to
    the eclipse/eclipse.ini file.

    - Oliver
     
    Oliver Wong, Dec 19, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. E11
    Replies:
    1
    Views:
    4,851
    Thomas Weidenfeller
    Oct 12, 2005
  2. David Segall
    Replies:
    2
    Views:
    452
    Thomas Kellerer
    Jan 2, 2007
  3. Replies:
    4
    Views:
    328
  4. edfialk
    Replies:
    0
    Views:
    195
    edfialk
    May 10, 2007
  5. ofir
    Replies:
    0
    Views:
    190
Loading...

Share This Page