This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Transfer Learning for Natural Language Processing (MEAP) and have Paul Azunre on-line!
See this thread for details.
Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

JBOSS server shutsdown after 300 seconds while deploying .war file into it.

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to deploy  .war file into JBOSS EAP 6.4. This application uses Java, Spring, Spring Boot, Apache Camel, hibernate and ORACLE database.
Here is the detailed error stack trace. your response is much appreciated.

Thanks,
Venu

12:43:38,991 INFO  [org.springframework.batch.core.launch.support.SimpleJobLauncher] (ServerService Thread Pool -- 54) No TaskExecutor has been set, defaulting to synchronous executor.
12:43:39,083 INFO  [org.springframework.orm.jpa.persistenceunit.PersistenceUnitReader] (ServerService Thread Pool -- 54) persistence.xml should be located inside META-INF directory; cannot determine persistence unit root URL for class path resource [config/persistence.xml]
12:43:39,085 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 54) Building JPA container EntityManagerFactory for persistence unit 'alerts'
12:43:47,597 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 54) Initialized JPA EntityManagerFactory for persistence unit 'alerts'
12:43:47,673 INFO  [org.springframework.batch.core.repository.support.JobRepositoryFactoryBean] (ServerService Thread Pool -- 54) No database type set, using meta data indicating: ORACLE
12:43:47,675 INFO  [org.springframework.batch.core.launch.support.SimpleJobLauncher] (ServerService Thread Pool -- 54) No TaskExecutor has been set, defaulting to synchronous executor.
12:43:47,740 INFO  [org.springframework.ui.freemarker.SpringTemplateLoader] (ServerService Thread Pool -- 54) SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.context.support.FileSystemXmlApplicationContext@55c4de99, started on Mon Jan 27 12:43:11 EST 2020] and template loader path [C:/Genbatch_workspace/alerts_batch20.1/src/main/resources/config/templates/]
12:48:04,386 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS013412: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[
   ("core-service" => "management"),
   ("management-interface" => "native-interface")
]'
12:48:09,389 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) JBAS014781: Step handler org.jboss.as.server.DeployerChainAddHandler$FinalRuntimeStepHandler@4339e79 for operation {"operation" => "add-deployer-chains","address" => []} at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException
12:48:11,295 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a9aefe4:-515543a9:5e2f2128:b in state  RUN
12:48:11,301 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012095: Abort of action id 0:ffff0a9aefe4:-515543a9:5e2f2128:b invoked while multiple threads active within it.
12:48:11,302 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012108: CheckedAction::check - atomic action 0:ffff0a9aefe4:-515543a9:5e2f2128:b aborting with 1 threads active!
12:48:11,306 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0a9aefe4:-515543a9:5e2f2128:b
12:48:14,390 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) JBAS014781: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler@181373b for operation {"address" => [("core-service" => "management"),("security-realm" => "ApplicationRealm")],"operation" => "add","map-groups-to-roles" => undefined} at address [
   ("core-service" => "management"),
   ("security-realm" => "ApplicationRealm")
] failed handling operation rollback -- java.util.concurrent.TimeoutException
12:49:49,640 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
12:49:49,659 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 54) MSC000001: Failed to start service jboss.deployment.unit."generic-20.1-SNAPSHOT.war".component.StartAlertsCamelFileListener.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."generic-20.1-SNAPSHOT.war".component.StartAlertsCamelFileListener.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
       at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_221]
       at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_221]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_221]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_221]
       at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_221]
       at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
       at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:164) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
       at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:135) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
       at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:90) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
       at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:122)
       at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:137)
       at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
       ... 6 more
Caused by: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
       at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleEndTransactionException(CMTTxInterceptor.java:138)
       at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:118)
       at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:284)
       at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:367)
       at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]
       at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]
       at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:70) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]
       at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]
       at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1]
       at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:162) [jboss-as-ee-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
       ... 11 more
Caused by: javax.transaction.RollbackException: JBAS014585: Transaction 'TransactionImple < ac, BasicAction: 0:ffff0a9aefe4:-515543a9:5e2f2128:b status: ActionStatus.ABORTED >' was already rolled back
       at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:99)
       ... 21 more

12:49:49,739 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (Camel Thread #0 - CamelHangupInterceptor) Closing JPA EntityManagerFactory for persistence unit 'alerts'
12:49:50,498 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015877: Stopped deployment generic-20.1-SNAPSHOT.war (runtime-name: generic-20.1-SNAPSHOT.war) in 106106ms
12:49:50,504 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015950: JBoss EAP 6.4.0.GA (AS 7.5.0.Final-redhat-21) stopped in 852ms
Press any key to continue . . .
 
Saloon Keeper
Posts: 21975
150
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't look good:


Also, your stack trace references EJB. While JPA is part of EJB, I don't think I've ever seen Hibernate JPA emit messages that say "EJB" when using non-EJB JPA persistence, which is another indicator that things are probably not configured correctly.

It's important to remember that unlike Tomcat and jetty, JBoss/Wildfly is a full-stack JEE server and therefore you would not normally have Hibernate code as part of your WAR because the persistence services are already provided by the server itself. If you did choose to include hibernate code in your WAR, then you might have to modify the web.xml file to tell JBoss to ignore its normal EJB functions. For that, I'll have to refer you to the manual specific to that version of JBoss.
 
venu pokala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim Holloway,

I have copied the persistence.xml file into META-INF Folder and I do not see that persistence.xml file missing error message any more. But still failing to deploy the application. Please refer to below latest logs for more details. It looks like it is failing to connect to ORACLE database using hibernate JPA and it re-tries for couple of times before shutting down the service. Any help is appreciated.

Thanks,
Venu


17:51:14,534 WARN  [org.jboss.weld.deployer] (MSC service thread 1-13) JBAS016012: Deployment deployment "generic-20.1-SNAPSHOT.war" contains CDI annotations but beans.xml was not found.
17:51:16,300 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 53) Building JPA container EntityManagerFactory for persistence unit 'alerts'
17:51:28,899 INFO  [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 53) HV000001: Hibernate Validator 4.3.2.Final-redhat-2
17:51:29,064 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 53) Initialized JPA EntityManagerFactory for persistence unit 'alerts'
17:51:29,603 INFO  [org.springframework.batch.core.repository.support.JobRepositoryFactoryBean] (ServerService Thread Pool -- 53) No database type set, using meta data indicating: ORACLE
17:51:29,757 INFO  [org.springframework.batch.core.launch.support.SimpleJobLauncher] (ServerService Thread Pool -- 53) No TaskExecutor has been set, defaulting to synchronous executor.
17:51:30,062 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 53) Building JPA container EntityManagerFactory for persistence unit 'alerts'
17:51:41,277 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 53) Initialized JPA EntityManagerFactory for persistence unit 'alerts'
17:51:41,343 INFO  [org.springframework.batch.core.repository.support.JobRepositoryFactoryBean] (ServerService Thread Pool -- 53) No database type set, using meta data indicating: ORACLE
17:51:41,345 INFO  [org.springframework.batch.core.launch.support.SimpleJobLauncher] (ServerService Thread Pool -- 53) No TaskExecutor has been set, defaulting to synchronous executor.
17:51:41,473 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 53) Building JPA container EntityManagerFactory for persistence unit 'alerts'
17:51:52,319 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 53) Initialized JPA EntityManagerFactory for persistence unit 'alerts'
17:51:52,399 INFO  [org.springframework.batch.core.repository.support.JobRepositoryFactoryBean] (ServerService Thread Pool -- 53) No database type set, using meta data indicating: ORACLE
17:51:52,403 INFO  [org.springframework.batch.core.launch.support.SimpleJobLauncher] (ServerService Thread Pool -- 53) No TaskExecutor has been set, defaulting to synchronous executor.
17:51:52,588 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 53) Building JPA container EntityManagerFactory for persistence unit 'alerts'
17:52:03,460 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 53) Initialized JPA EntityManagerFactory for persistence unit 'alerts'
17:52:03,545 INFO  [org.springframework.batch.core.repository.support.JobRepositoryFactoryBean] (ServerService Thread Pool -- 53) No database type set, using meta data indicating: ORACLE
17:52:03,547 INFO  [org.springframework.batch.core.launch.support.SimpleJobLauncher] (ServerService Thread Pool -- 53) No TaskExecutor has been set, defaulting to synchronous executor.
17:52:03,639 INFO  [org.springframework.ui.freemarker.SpringTemplateLoader] (ServerService Thread Pool -- 53) SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.context.support.FileSystemXmlApplicationContext@1c0dda23, started on Mon Jan 27 17:51:14 EST 2020] and template loader path [C:/Genbatch_workspace/alerts_batch20.1/src/main/resources/config/templates/]
17:56:05,561 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS013412: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[
   ("core-service" => "management"),
   ("management-interface" => "native-interface")
]'
17:56:10,577 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) JBAS014781: Step handler org.jboss.as.server.DeployerChainAddHandler$FinalRuntimeStepHandler@15ae6db for operation {"operation" => "add-deployer-chains","address" => []} at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException
17:56:14,613 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a9aefe4:-26b7dc9f:5e2f6959:b in state  RUN
17:56:14,620 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012095: Abort of action id 0:ffff0a9aefe4:-26b7dc9f:5e2f6959:b invoked while multiple threads active within it.
17:56:14,622 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012108: CheckedAction::check - atomic action 0:ffff0a9aefe4:-26b7dc9f:5e2f6959:b aborting with 1 threads active!
17:56:14,625 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0a9aefe4:-26b7dc9f:5e2f6959:b
17:56:15,586 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) JBAS014781: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler@7b87b58e for operation {"address" => [("core-service" => "management"),("security-realm" => "ApplicationRealm")],"operation" => "add","map-groups-to-roles" => undefined} at address [
   ("core-service" => "management"),
   ("security-realm" => "ApplicationRealm")
] failed handling operation rollback -- java.util.concurrent.TimeoutException
17:56:15,605 INFO  [org.apache.catalina.core] (MSC service thread 1-8) JBWEB001079: Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not been started
17:56:20,599 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) JBAS014781: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler@7b87b58e for operation {"address" => [("core-service" => "management"),("security-realm" => "ManagementRealm")],"operation" => "add","map-groups-to-roles" => false} at address [
   ("core-service" => "management"),
   ("security-realm" => "ManagementRealm")
] failed handling operation rollback -- java.util.concurrent.TimeoutException
17:56:20,615 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS015871: Deploy of deployment "generic-20.1-SNAPSHOT.war" was rolled back with no failure message
17:56:20,649 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) JBWEB003075: Coyote HTTP/1.1 pausing on: http-/127.0.0.1:8080
17:56:20,649 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) JBWEB003077: Coyote HTTP/1.1 stopping on : http-/127.0.0.1:8080
17:56:25,635 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) JBAS014781: Step handler org.jboss.as.controller.ParallelBootOperationStepHandler$2@76451a2 for operation {"operation" => "parallel-subsystem-boot","address" => []} at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException
17:56:30,637 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) JBAS014781: Step handler org.jboss.as.controller.AbstractAddStepHandler$1@1de805e8 for operation {"operation" => "add","host" => "localhost","port" => 25,"address" => [("socket-binding-group" => "standard-sockets"),("remote-destination-outbound-socket-binding" => "mail-smtp")],"source-interface" => undefined,"source-port" => undefined,"fixed-source-port" => undefined} at address [
   ("socket-binding-group" => "standard-sockets"),
   ("remote-destination-outbound-socket-binding" => "mail-smtp")
] failed handling operation rollback -- java.util.concurrent.TimeoutException


 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic