Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facing issue in deploying guvnor.war in tomcat 7.0.30

How do I deploy the guvnor.war (Version 5.4.0.Final) in Tomcat 7.0.30 server? Its giving me the following error:

Type: Exception report

Message

Description: The server encountered an internal error that prevented it from fulfilling this request.

Exception

java.lang.NullPointerException
  org.jboss.seam.transaction.TransactionServletListener.requestInitialized(TransactionServletListener.java:106)
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
  org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
  org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
  org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  java.lang.Thread.run(Thread.java:722)

Note The full stack trace of the root cause is available in the Apache Tomcat/7.0.30 logs.

like image 976
Sunny Agrawal Avatar asked Jan 17 '13 08:01

Sunny Agrawal


People also ask

Can we deploy WAR file in Tomcat?

Perhaps the simplest way to deploy a WAR file to Tomcat is to copy the file to Tomcat's webapps directory. Copy and paste WAR files into Tomcat's webapps directory to deploy them. Tomcat monitors this webapps directory for changes, and if it finds a new file there, it will attempt to deploy it.

What happens when we deploy a WAR file in Tomcat?

Java web applications are usually packaged as WAR files for deployment. These files can be created on the command line or with an IDE, like Eclipse. After deploying the WAR file, Tomcat unpacks it and stores all the project files from the webapps directory in a new directory named after the project.

Is Tomcat 7 still supported?

The Apache Tomcat team announces that support for Apache Tomcat 7.0. x will end on 31 March 2021.


1 Answers

The following resolved the above issue for me. I have TomCat 7.0.34 installed with 5.4.0 Final of Guvnor.

You can disable the seam transaction listener by adding appropriate <context-param> to the web.xml file that you should find in

[tomcat-dir]\webapps\[nameOfGuvnorJar]\WEB-INF\

where [tomcat-dir] is your top level directory path to where you have installed Tomcat. and [nameOfGuvnorJar] is the name you gave to the guvnor application that you have deployed in Tomcat.

The lines required are

<context-param>
   <param-name>org.jboss.seam.transaction.disableListener</param-name>
   <param-value>true</param-value>
</context-param>

It needs to be added inside the <web-app> element

You will probably need to restart the webserver for the change to be picked up.

like image 71
ahndi Avatar answered Oct 19 '22 19:10

ahndi