Skip to main content

HelloWorld app fails on Sun App Server, NoClassDefFoundError: ...LogFactory

1 reply [Last post]
wgoldman
Offline
Joined: 2006-11-29

NetBeans ide 5.5

Sun Java System Application Server Platform Edition 9.0_01 (build b14)

Downloaded ajax4jsf from
https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/download.html#binary (1.0.3)

Windows XP Media Center version 2002 - service pack 2

Trying to implement 'HelloWorld' Application from;
https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/dev...

Receiving the following in server log for SunApp at server startup - application not accessible;
org.ajax4jsf.framework.DebugLifecycleFactory at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:574) at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:460) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256) at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:943) at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:594) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:496) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760) at com.sun.enterprise.web.WebModule.start(WebModule.java:292) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095) at org.apache.catalina.core.StandardHost.start(StandardHost.java:924) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520) at org.apache.catalina.startup.Embedded.start(Embedded.java:920) at com.sun.enterprise.web.WebContainer.start(WebContainer.java:794) at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:722) at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:72) at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326) at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112) at com.sun.enterprise.server.PEMain.run(PEMain.java:326) at com.sun.enterprise.server.PEMain.main(PEMain.java:260) 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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:567) ... 25 moreCaused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.ajax4jsf.framework.DebugLifecycle.(DebugLifecycle.java:42) at org.ajax4jsf.framework.DebugLifecycleFactory.(DebugLifecycleFactory.java:41) ... 30 more

Tried putting org apache jar files
(commons-beanutils.jar, commons-beanutils-bean-collections.jar, commons-collections-3.2.jar, commons-digester-1.7.jar, commons-logging-1.1.jar, commons-logging-api-1.1.jar) into
1)application lib (web-inf/lib) (server lib and container lib did not completely resolve issue - class loader issus).

Seemed to solve the problem

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31

This forum is for jMaki related issues and this appears to be a ajax4jsf problem. For questions on ajax4jsf try sending mail to users@ajax4jsf.dev.java.net or see thier forums at http://forum.exadel.com/viewforum.php?f=30