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.
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.
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.
The Apache Tomcat team announces that support for Apache Tomcat 7.0. x will end on 31 March 2021.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With