Imo, there will be more similar problems.
See
https://glassfish.dev.java.net/issues/show_bug.cgi?id=5647
+ new suggestion.
wim
-----Original Message-----
From: Sherry.Shen_at_Sun.COM [mailto:Sherry.Shen_at_Sun.COM]
Sent: zondag 31 augustus 2008 18:59
To: quality_at_glassfish.dev.java.net
Subject: Re: Errors with Log4J
Hi Jose,
Since Log4J 1.2.14 is included with the WAR inside the WEB-INF/lib dir,
it may be a similar problem in
https://glassfish.dev.java.net/issues/show_bug.cgi?id=5727
Thanks!
Sherry
Jose Noheda wrote, On 8/31/2008 9:08 AM:
> Hi,
>
> I'm getting this trace when deploying IWebMvc:
>
> GRAVE: Exception in command execution :
> java.lang.ExceptionInInitializerError
> java.lang.ExceptionInInitializerError
> at
> org.hibernate.util.ReflectHelper.<clinit>(ReflectHelper.java:23)
> at
>
org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1041
)
> at
>
org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configurati
on.java:1113)
> at
>
org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configura
tion.java:905)
> at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:792)
> at
> org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:416)
> at
>
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(H
ibernatePersistence.java:126)
> at
>
org.glassfish.persistence.jpa.JPAApplication.loadPU(JPAApplication.java:183)
> at
>
org.glassfish.persistence.jpa.JPAApplication.loadAllPus(JPAApplication.java:
139)
> at
>
org.glassfish.persistence.jpa.JPAApplication.<init>(JPAApplication.java:86)
> at
> org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:108)
> at
>
com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecyc
le.java:556)
> at
>
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycl
e.java:263)
> at
>
com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:27
9)
> at
>
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:286)
> at
>
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:114)
> at
> com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:94)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:240)
> at
> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:166)
> at
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147)
> at
>
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask
.java:621)
> at
>
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.jav
a:552)
> at
>
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:
800)
> at
>
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.jav
a:152)
> at
>
com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolF
ilter.java:82)
> at
>
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFi
lter(GlassfishProtocolChain.java:70)
> at
>
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
> at
>
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.jav
a:67)
> at
>
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56
)
> at
>
com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:309)
> at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:168)
> Caused by: org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException: No suitable Log
> constructor
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:509)
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:285)
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:255)
> at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> at
>
org.hibernate.property.BasicPropertyAccessor.<clinit>(BasicPropertyAccessor.
java:26)
> ... 32 more
> Caused by: org.apache.commons.logging.LogConfigurationException: No
> suitable Log constructor
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:420)
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:502)
> ... 36 more
> Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
> at java.lang.Class.getConstructor0(Class.java:2699)
> at java.lang.Class.getConstructor(Class.java:1657)
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:417)
> ... 37 more
> Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category
> at
>
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:200)
> at
>
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPol
icy.java:45)
> at
>
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(Content
ClassLoader.java:109)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> ... 42 more
> Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category
> at
>
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResour
ce(R4SearchPolicyCore.java:488)
> at
>
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4Searc
hPolicyCore.java:187)
> ... 46 more
>
> Log4J 1.2.14 is included with the WAR inside the WEB-INF/lib dir. Good
> points while deploying where:
>
> 1) sun-resources was recognized and applied correctly (and the pool
> was created)
> 2) JPA entities were detected
> 3) Hibernate Entity Manager was loaded
>
> Regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: quality-help_at_glassfish.dev.java.net