Deployment Error in JBoss
See original GitHub issueSince Version 1.58.0 there is a Error after a Re-Deployment in JBoss EAP 7.0. After a Restart of the Server the Deployment works, but a Re-Deployment without Restart fails with the following Error (Version 1.69.0):
10:10:13,662 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 77) MSC000001: Failed to start service jboss.persistenceunit."zlsc-app-1.9.4-181-SNAPSHOT.ear/zlsc-core.jar#zlsc": org.jboss.msc.service.StartException in service jboss.persistenceunit."zlsc-app-1.9.4-181-SNAPSHOT.ear/zlsc-core.jar#zlsc": javax.persistence.PersistenceException: [PersistenceUnit: zlsc] Unable to build Hibernate SessionFactory
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)
at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: zlsc] Unable to build Hibernate SessionFactory
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882)
at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154)
... 7 more
Caused by: java.lang.NullPointerException
at io.undertow.servlet.spec.ServletContextImpl.getInitParameter(ServletContextImpl.java:374)
at net.bull.javamelody.internal.common.Parameters.getParameterValueByName(Parameters.java:466)
at net.bull.javamelody.internal.common.Parameters.getParameterValue(Parameters.java:455)
at net.bull.javamelody.Parameter.getValue(Parameter.java:386)
at net.bull.javamelody.Parameter.getValueAsBoolean(Parameter.java:393)
at net.bull.javamelody.JdbcWrapper.isMonitoringDisabled(JdbcWrapper.java:828)
at net.bull.javamelody.JdbcWrapper.createConnectionProxy(JdbcWrapper.java:809)
at net.bull.javamelody.JdbcWrapper$3.invoke(JdbcWrapper.java:783)
at net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(JdbcWrapper.java:294)
at com.sun.proxy.$Proxy242.getConnection(Unknown Source)
at org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:66)
at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
at org.hibernate.internal.SessionFactoryImpl$2.obtainConnection(SessionFactoryImpl.java:653)
at org.hibernate.hql.spi.id.IdTableHelper.executeIdTableCreationStatements(IdTableHelper.java:67)
at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.finishPreparation(GlobalTemporaryTableBulkIdStrategy.java:125)
at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.finishPreparation(GlobalTemporaryTableBulkIdStrategy.java:42)
at org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.prepare(AbstractMultiTableBulkIdStrategyImpl.java:88)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:453)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)
... 9 more
10:10:13,673 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "zlsc-app-1.9.4-181-SNAPSHOT.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"zlsc-app-1.9.4-181-SNAPSHOT.ear/zlsc-core.jar#zlsc\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"zlsc-app-1.9.4-181-SNAPSHOT.ear/zlsc-core.jar#zlsc\": javax.persistence.PersistenceException: [PersistenceUnit: zlsc] Unable to build Hibernate SessionFactory
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: zlsc] Unable to build Hibernate SessionFactory
Caused by: java.lang.NullPointerException"}}
10:10:13,674 ERROR [org.jboss.as.server] (management-handler-thread - 3) WFLYSRV0021: Deploy of deployment "zlsc-app-1.9.4-181-SNAPSHOT.ear" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"zlsc-app-1.9.4-181-SNAPSHOT.ear/zlsc-core.jar#zlsc\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"zlsc-app-1.9.4-181-SNAPSHOT.ear/zlsc-core.jar#zlsc\": javax.persistence.PersistenceException: [PersistenceUnit: zlsc] Unable to build Hibernate SessionFactory
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: zlsc] Unable to build Hibernate SessionFactory
Caused by: java.lang.NullPointerException"}}
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Jboss 7 war deployment failed - Stack Overflow
It was caused by insufficient space on the disk, cleared some unwanted log files and other temp files to fix this issue. Share....
Read more >Jboss 7.1.1 application deployment failed
Now I'm getting .failed files in deployment. They say JBAS014654: Composite operation was rolled back. My server.log says.
Read more >JBoss Deployment War Error on Startup - DZone Java
0.0.21.war'. This is a fatal boot error. To correct the problem, either restart with the --admin-onlyswitch set and use the CLI to install...
Read more >How to solve Failed to start service jboss.deployment.unit
In this short article we will learn how to solve a common error which you can hit at deployment time: “failed to start...
Read more >Getting error while starting Jboss - Appian Community
In one of server I'm getting error while starting Jboss. Below are the error. ... StartException in service jboss.deployment.subunit."suite.ear"."web.war".
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
First sorry for the delay. I have found the cause of the issue: in WildFly 10.1.0 (or JBoss EAP 7.0), the servlet filter is initialized only when the first http request is executed. So the servlet filter may never be initialized neither destroyed if there is no http request (may happen in dev/qa but certainly not in production). This is the first application server I see with such a behavior. In this particular case, the datasource monitoring was initialized by the javamelody servlet context listener but was not destroyed by the servlet filter. The exception happens after hot-redeployment.
This is now fixed (ff41ea790cb2e5919d7a0925865e30dc74235fde) and ready for the next release (1.70). Thanks for the issue and for the test case.
This will work