1 Reply Latest reply on Feb 5, 2014 1:30 PM by A K

    Problem to run jbpm-console-ng.war on tomcat (jbpm-console-ng-tomcat7.0.war)

    sahar mohebi Newbie

      Hi,

      I try to deploy jbpm-console-ng-tomcat7.0.war on tomcat .

      I renamed the file to jbpm-console-ng.war and chenged some config filesin tomcat 7:

       

      create file --> [catalina home]/conf/btm-config.properties -->

      bitronix.tm.serverId=tomcat-btm-node0

      bitronix.tm.journal.disk.logPart1Filename=${btm.root}/work/btm1.tlog

      bitronix.tm.journal.disk.logPart2Filename=${btm.root}/work/btm2.tlog

      bitronix.tm.resource.configuration=${btm.root}/conf/resources.properties

       

      add to file [catalina home]/conf/context.xml-->

      <Resource name="jdbc/jbpm" auth="Container" type="javax.sql.DataSource"

          maxActive="15" maxIdle="2" maxWait="10000"

         logAbandoned="true"    username="sa" password=""

         driverClassName="org.h2.jdbcx.JdbcDataSource"   url="jdbc:h2:tcp://localhost/~/jbpm"/>

       

      create file [catalina home]/conf/resources.properties -->

      resource.ds1.className=bitronix.tm.resource.jdbc.lrc.LrcXADataSource

      resource.ds1.uniqueName=jdbc/jbpm

      resource.ds1.minPoolSize=0

      resource.ds1.maxPoolSize=5

      resource.ds1.driverProperties.driverClassName=org.h2.Driver

      resource.ds1.driverProperties.url=jdbc:h2:tcp://localhost/~/jbpm

      resource.ds1.driverProperties.user=sa

      resource.ds1.driverProperties.password=

      resource.ds1.allowLocalTransactions=true

       

      addto [catalina home]/conf/server.xml -->

        <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>

      <Listener className="bitronix.tm.integration.tomcat55.BTMLifecycleListener" />

       

      add to [catalina home]/bin/setenv.sh -->

      CATALINA_OPTS="-Xmx512M -XX:MaxPermSize=512m -Dbtm.root=$CATALINA_HOME -Dbitronix.tm.configuration=$CATALINA_HOME/conf/btm-config.properties"

       

      in deploying i got errors:

       

      Jan 29, 2014 2:41:13 PM org.apache.catalina.core.StandardContext listenerStart

      SEVERE: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener

      org.jboss.weld.exceptions.IllegalStateException: WELD-001201 Error loading beans.xml jndi:/localhost/%20jbpm-console-ng/WEB-INF/beans.xml

          at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:111)

          at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:137)

          at org.jboss.weld.bootstrap.WeldBootstrap.parse(WeldBootstrap.java:485)

          at org.jboss.weld.bootstrap.WeldBootstrap.parse(WeldBootstrap.java:481)

          at org.jboss.weld.environment.servlet.deployment.WebAppBeanDeploymentArchive.<init>(WebAppBeanDeploymentArchive.java:77)

          at org.jboss.weld.environment.servlet.deployment.ServletDeployment.createWebAppBeanDeploymentArchive(ServletDeployment.java:30)

          at org.jboss.weld.environment.servlet.deployment.ServletDeployment.<init>(ServletDeployment.java:22)

          at org.jboss.weld.environment.servlet.Listener.createServletDeployment(Listener.java:102)

          at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:141)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)

          at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)

          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

          at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1256)

          at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:714)

          at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:219)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at java.lang.Thread.run(Thread.java:744)

      Caused by: java.io.FileNotFoundException: jndi:/localhost/%20jbpm-console-ng/WEB-INF/beans.xml

          at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:389)

          at java.net.URL.openStream(URL.java:1037)

          at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:88)

          ... 38 more

       

      Jan 29, 2014 2:41:13 PM org.apache.catalina.core.StandardContext listenerStart

      SEVERE: Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap

      java.lang.RuntimeException: Unable to scan WEB-INF for JAX-RS annotations, you must manually register your classes/resources

          at org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap.createDeployment(ConfigurationBootstrap.java:177)

          at org.jboss.resteasy.plugins.server.servlet.ListenerBootstrap.createDeployment(ListenerBootstrap.java:32)

          at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextInitialized(ResteasyBootstrap.java:27)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)

          at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)

          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

          at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1256)

          at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:714)

          at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:219)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at java.lang.Thread.run(Thread.java:744)

      Caused by: java.io.FileNotFoundException: jndi:/localhost/%20jbpm-console-ng/WEB-INF/lib/antlr-runtime-3.5.jar

          at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:389)

          at java.net.URL.openStream(URL.java:1037)

          at org.scannotation.archiveiterator.IteratorFactory.create(IteratorFactory.java:34)

          at org.scannotation.AnnotationDB.scanArchives(AnnotationDB.java:323)

          at org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap.createDeployment(ConfigurationBootstrap.java:163)

          ... 32 more

       

      Jan 29, 2014 2:41:13 PM org.apache.catalina.core.StandardContext listenerStop

      SEVERE: Exception sending context destroyed event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap

      java.lang.NullPointerException

          at org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap.contextDestroyed(ResteasyBootstrap.java:37)

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)

          at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)

          at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)

          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)

          at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1256)

          at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:714)

          at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:219)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at java.lang.Thread.run(Thread.java:744)

       

      Jan 29, 2014 2:41:13 PM org.apache.catalina.core.StandardContext listenerStop

      SEVERE: Exception sending context destroyed event to listener instance of class org.jboss.weld.environment.servlet.Listener

      java.lang.IllegalStateException: Singleton is not set

          at org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton.get(IsolatedStaticSingletonProvider.java:52)

          at org.jboss.weld.Container.instance(Container.java:54)

          at org.jboss.weld.bootstrap.WeldBootstrap.shutdown(WeldBootstrap.java:466)

          at org.jboss.weld.environment.servlet.Listener.contextDestroyed(Listener.java:83)

          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)

          at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)

          at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)

          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)

          at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1256)

          at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:714)

          at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:219)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at java.lang.Thread.run(Thread.java:744)

       

      Can anyone help me please?