« Return to Thread: NetBeans 6.7 + Gassfish v3

Re: NetBeans 6.7 + Gassfish v3

by John Yeary :: Rate this Message:

Reply to Author | View in Thread

The error message seems to indicate an error with regard to namespace collision, or at least class loader collision. I would recommend that you check your project to see if you have multiple versions of Apache logging installed in the project.

On Thu, Jul 2, 2009 at 6:04 AM, Amarok <pavel.a.prokopenko@...> wrote:
Hi!

I would like to run my j2ee application on Gassfish v3. But when I deploy it, I get following errors:


Code:
SEVERE: Error during deployment : null

java.lang.ExceptionInInitializerError

       at org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3Configuration.java:107)

       at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:130)

       at org.glassfish.persistence.jpa.JPAApplication.loadPU(JPAApplication.java:243)

       at org.glassfish.persistence.jpa.JPAApplication.loadAllPus(JPAApplication.java:194)

       at org.glassfish.persistence.jpa.JPAApplication.<init>(JPAApplication.java:114)

       at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:121)

       at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:579)

       at org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:328)

       at org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:86)

       at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:143)

       at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:141)

       at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllTypedBundles(EarDeployer.java:281)

       at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:295)

       at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:141)

       at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:579)

       at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:244)

       at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)

       at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:247)

       at com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:419)

       at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:434)

       at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:521)

       at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:137)

       at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:313)

       at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:180)

       at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:165)

       at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)

       at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:208)

       at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:746)

       at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:655)

       at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:905)

       at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:161)

       at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136)

       at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)

       at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)

       at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)

       at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)

       at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)

       at com.sun.grizzly.ContextTask.run(ContextTask.java:69)

       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

       at java.lang.Thread.run(Thread.java:619)

Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.))

       at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)

       at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)

       at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)

       at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)

       at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:126)

       ... 41 more

Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)

       at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)

       at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)

       ... 45 more

Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.

       at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)







Does anybody know how to solve them?



Thanks in advance!







--
John Yeary
--
http://javaevangelist.blogspot.com

"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the grey twilight that knows not victory nor defeat."
-- Theodore Roosevelt

 « Return to Thread: NetBeans 6.7 + Gassfish v3