NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Glassfish v3 deployment from within NetBeans 6.7, Error during deployment : null

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Amarok



Joined: 02 Jul 2009
Posts: 3

PostPosted: Thu Jul 02, 2009 10:04 am    Post subject: Glassfish v3 deployment from within NetBeans 6.7, Error during deployment : null Reply with quote

Hi!
I would like to run my j2ee application on Glassfish 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!
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 608
Location: Simpsonville, SC

PostPosted: Fri Jul 03, 2009 10:19 pm    Post subject: NetBeans 6.7 + Gassfish v3 Reply with quote

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 <address-removed ([email]address-removed[/email])> wrote:
Quote:
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

Back to top
Amarok



Joined: 02 Jul 2009
Posts: 3

PostPosted: Mon Jul 06, 2009 6:43 am    Post subject: Reply with quote

jyeary wrote:
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.


Hi, jyeary!
Thank you for your answer. I have removed logging libraries from project, but the error still takes place. Also the same project is successfully deploying to GlassFish v2..
Back to top
Amarok



Joined: 02 Jul 2009
Posts: 3

PostPosted: Mon Jul 06, 2009 11:25 am    Post subject: Reply with quote

The problem is solved, but I don't know exactly how it happened.. Smile It seems it was something wrong with my libraries.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo