class loading problem

R

Roy27

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
 
O

Oliver Wong

Roy27 said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top