1 Reply Latest reply on Dec 19, 2013 8:16 PM by Marshal Lee

    Deploy kie-wb-distribution-wars-6.0.0.CR2-tomcat7.war on Tomcat7

    Marshal Lee Newbie

      Hi ,

      When I tried to deploy kie-wb-distribution-wars-6.0.0.CR2-tomcat7.war on Tomcat7 ,follow all steps in Readme.txt.

      Tomcat7 starts well with log as following:

      ====================================================================================================================

      December 18, 2013 4:34:29 PM org.apache.catalina.core.AprLifecycleListener init

      Message: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

      C:\ProgramFiles\Java\jdk1.7.0_05\jre\bin;C:\windows\Sun\Java\bin;C:\windows\system32;

      C:\windows;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;

      C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;

      C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;

      C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;

      C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;

      C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;

      C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;

      C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;

      C:\Program Files\ThinkPad\Bluetooth Software\;

      C:\Program Files\ThinkPad\Bluetooth Software\syswow64;

      C:\ProgramData\Lenovo\ReadyApps;

      C:\Program Files\TortoiseSVN\bin;

      C:\Program Files\Java\jdk1.7.0_05\bin;C:\Program Files\Java\jdk1.7.0_05\jre\bin;

      D:\installed_file\apache-maven-3.0.5\bin;

      D:\installed_file\apache-ant-1.9.2\bin;

      C:\Program Files (x86)\Windows Live\Shared;D:\installed_file\mysql-5.6.14-winx64\bin;

      D:\installed_file\mysql\MySQL Utilities 1.3.4\;.

      December 18, 2013 4:34:29 PM org.apache.coyote.AbstractProtocol init

      Message: Initializing ProtocolHandler ["http-bio-8080"]

      December 18, 2013 4:34:29 PM org.apache.coyote.AbstractProtocol init

      Message: Initializing ProtocolHandler ["ajp-bio-8009"]

      December 18, 2013 4:34:29 PM org.apache.catalina.startup.Catalina load

      Message: Initialization processed in 771 ms

      December 18, 2013 4:34:29 PM org.apache.catalina.core.StandardService startInternal

      Message: Starting service Catalina

      December 18, 2013 4:34:29 PM org.apache.catalina.core.StandardEngine startInternal

      Message: Starting Servlet Engine: Apache Tomcat/7.0.47

      December 18, 2013 4:34:29 PM org.apache.catalina.startup.HostConfig deployDirectory

      Message: Deploying web application directory D:\installed_file\apache-tomcat-7.0.47\webapps\jbpm

      December 18, 2013 4:34:30 PM bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent

      Message: Starting Bitronix Transaction Manager

      December 18, 2013 4:34:30 PM bitronix.tm.BitronixTransactionManager logVersionMessage: Bitronix Transaction Manager version 3.0.0-SNAPSHOT

      December 18, 2013 4:34:30 PM bitronix.tm.Configuration buildServerIdArray

      Message: JVM unique ID: <tomcat-btm-node0> - Using this server ID to ensure uniqueness of transaction IDs across the network.

      December 18, 2013 4:34:30 PM bitronix.tm.journal.DiskJournal open

      警告: active log file is unclean, did you call BitronixTransactionManager.shutdown() at the end of the last run?

      December 18, 2013 4:34:30 PM bitronix.tm.resource.ResourceLoader init

      Message: reading resources configuration from D:\installed_file\apache-tomcat-7.0.47/conf/resources.properties

      December 18, 2013 4:34:32 PM bitronix.tm.recovery.Recoverer run

      Message: recovery committed 0 dangling transaction(s) and rolled back 0 aborted transaction(s) on 1 resource(s) [jdbc/jbpm] (restricted to serverId 'tomcat-btm-node0')

      December 18, 2013 4:34:44 PM org.apache.catalina.startup.TaglibUriRule body

      Message: TLD skipped. URI: http://jakarta.apache.org/taglibs/i18n-1.0 is already defined

      SLF4J: Class path contains multiple SLF4J bindings.

      SLF4J: Found binding in [jar:file:/D:/installed_file/apache-tomcat-7.0.47/lib/slf4j-jdk14-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]

      SLF4J: Found binding in [jar:file:/D:/installed_file/apache-tomcat-7.0.47/webapps/jbpm/WEB-INF/lib/logback-classic-1.0.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]

      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

      December 18, 2013 4:35:08 PM org.apache.coyote.AbstractProtocol start

      Message: Starting ProtocolHandler ["http-bio-8080"]

      December 18, 2013 4:35:08 PM org.apache.coyote.AbstractProtocol start

      Message: Starting ProtocolHandler ["ajp-bio-8009"]

      December 18, 2013 4:35:08 PM org.apache.catalina.startup.Catalina start

      Message: Server startup in 41256 ms

      ========================================================================================================================

       

       

      and when I login and tried to list deploymentunit on web,failed.Seems that JPA parser haven't been triggered to parse persistence.xml to create

      an JTA object,the error log as follow:

      =======================================================================================================================================

      Message: Server startup in 41256 ms

      org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking endpoint

              at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:132)

              at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54)

              at org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:512)

              at org.jboss.errai.bus.client.framework.DeliveryPlan.deliver(DeliveryPlan.java:43)

              at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:632)

              at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46)

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:93)

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:107)

              at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:117)

              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.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

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

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

              at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)

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

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

              at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)

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

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

              at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)

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

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

              at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)

              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:611)

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

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

              at org.kie.integration.tomcat.JACCValve.invoke(JACCValve.java:93)

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

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

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

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

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

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

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

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

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

      Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named org.jbpm.domain

              at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:69)

              at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)

              at org.kie.workbench.backend.ApplicationScopedProducer.getEntityManagerFactory(ApplicationScopedProducer.java:133)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)

              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)

              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170)

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:137)

              at org.jboss.weld.bean.ProducerMethod$ProducerMethodProducer.produce(ProducerMethod.java:136)

              at org.jboss.weld.bean.AbstractProducerBean$AbstractProducer.produce(AbstractProducerBean.java:319)

              at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:307)

              at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68)

              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:608)

              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:674)

              at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:136)

              at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:763)

              at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:772)

              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:165)

              at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)

              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:161)

              at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:135)

              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:157)

              at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:297)

              at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103)

              at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90)

              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)

              at org.jbpm.kie.services.impl.KModuleDeploymentService$Proxy$_$$_WeldClientProxy.getDeployedUnits(KModuleDeploymentService$Proxy$_$$_WeldClientProxy.java)

              at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.getDeploymentUnits(DeploymentManagerEntryPointImpl.java:155)

              at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.getDeploymentUnits(DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.java)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:114)

              ... 42 more

      *** Message delivery failure ***

      Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@6d67f093

      Message:CommandType=getDeploymentUnits:,

        ErrorTo=org.jbpm.console.ng.bd.service.DeploymentManagerEntryPoint:RPC.getDeploymentUnits::Errors:5,

        ReplyTo=org.jbpm.console.ng.bd.service.DeploymentManagerEntryPoint:RPC.getDeploymentUnits::RespondTo:5,

        ToSubject=org.jbpm.console.ng.bd.service.DeploymentManagerEntryPoint:RPC,

        MethodParms=[]

        errorMessage: Error calling remote service: org.jbpm.console.ng.bd.service.DeploymentManagerEntryPoint:RPC

        exception: org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking endpointdisconnect: false

      java.lang.RuntimeException: no marshalling definition available for type:javax.persistence.PersistenceException

              at org.jboss.errai.marshalling.client.util.MarshallUtil.getMarshaller(MarshallUtil.java:131)

              at org.jboss.errai.marshalling.client.marshallers.ErraiProtocolEnvelopeMarshaller.marshall(ErraiProtocolEnvelopeMarshaller.java:97)

              at org.jboss.errai.marshalling.client.protocols.ErraiProtocol.encodePayload(ErraiProtocol.java:40)

              at org.jboss.errai.marshalling.server.protocol.ErraiProtocolServer.encodePayloadToByteArrayInputStream(ErraiProtocolServer.java:31)

              at org.jboss.errai.bus.server.io.BufferHelper.encodeAndWrite(BufferHelper.java:88)

              at org.jboss.errai.bus.server.MessageQueueImpl.offer(MessageQueueImpl.java:186)

              at org.jboss.errai.bus.server.ServerMessageBusImpl.enqueueForDelivery(ServerMessageBusImpl.java:739)

              at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:728)

              at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:675)

              at org.jboss.errai.bus.client.api.base.ConversationMessageWrapper.sendNowWith(ConversationMessageWrapper.java:228)

              at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.sendNowWith(DefaultMessageBuilder.java:78)

              at org.jboss.errai.bus.client.util.ErrorHelper.sendClientError(ErrorHelper.java:107)

              at org.jboss.errai.bus.client.util.ErrorHelper.sendClientError(ErrorHelper.java:77)

              at org.jboss.errai.bus.client.util.ErrorHelper.handleMessageDeliveryFailure(ErrorHelper.java:170)

              at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:53)

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:93)

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:107)

              at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:117)

              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.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

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

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

              at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)

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

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

              at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)

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

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

              at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)

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

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

              at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)

              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:611)

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

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

              at org.kie.integration.tomcat.JACCValve.invoke(JACCValve.java:93)

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

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

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

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

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

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

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

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

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

      ================================================================================================================

        • 1. Re: Deploy kie-wb-distribution-wars-6.0.0.CR2-tomcat7.war on Tomcat7
          Marshal Lee Newbie

          Tried new one,kie-wb-distribution-wars-6.0.0-20131127.161035-697-tomcat7.war. It works well.

          Modified resources.properties as :

          ===================================================================

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

                   resource.ds1.uniqueName=jdbc/jbpm

                   resource.ds1.minPoolSize=10

                   resource.ds1.maxPoolSize=20

                   resource.ds1.driverProperties.driverClassName=com.mysql.jdbc.Driver

                   resource.ds1.driverProperties.url=jdbc:mysql://localhost:3306/jbpm

                   resource.ds1.driverProperties.user=root

                   resource.ds1.driverProperties.password=marshal

                   resource.ds1.allowLocalTransactions=true

          ===================================================================

          and in persistence.xml,change the line <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> with:

          ===================================================================

          <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

          ===================================================================

          the war will work fine on tomcat and Mysql.

          BTW:

          I set the btm env in catalina.bat :

          add line here:

          ===========================================

          echo Using CATALINA_BASE:   "%CATALINA_BASE%"

          set  CATALINA_OPTS=-Xmx512M -XX:MaxPermSize=512m  -Dbtm.root=%CATALINA_BASE% -Dbitronix.tm.configuration=%CATALINA_BASE%/conf/btm-config.properties

          echo Using CATALINA_HOME:   "%CATALINA_HOME%"

          echo Using CATALINA_TMPDIR: "%CATALINA_TMPDIR%"

          ==============================================