[jBPM] - jbpm5.3 error with deployed process accessed from jbpm-console
by nbd
nbd [https://community.jboss.org/people/nbd] created the discussion
"jbpm5.3 error with deployed process accessed from jbpm-console"
To view the discussion, visit: https://community.jboss.org/message/750683#750683
--------------------------------------------------------------
Hi,
I have a demo installation of jbpm 5.3 and use the default embadded h2 database.
I a created a simple process that includes only one node - domain specific custom node that only prints to console. The whole process works fine under eclipse.
I'm trying to access the process from jbpm console, so I modified CustomWorkItemHandlers.conf in the jbpm-gwt-console-server.war, to relate my custom node
to appropriate handler and included the handler in the jbpm-gwt-console-server.war classpath and it seems the handler class is visible because I'm not getting
classNotFoundException (conserning my handler class) in the server log any more.
I included my bpmn so it's visible under jbpm-console.
Now, when I log in jbpm-console I can see my process in the processes list, along with the demo Evaluation process. However when I clik on my process I'm getting:
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http-localhost-127.0.0.1-8080-5) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
at org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.2.1.GA.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_11]
Caused by: java.lang.NullPointerException
at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89) [:1.6.0_11]
at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:132) [jbpm-persistence-jpa-5.3.0.Final.jar:]
at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:83) [jbpm-persistence-jpa-5.3.0.Final.jar:]
at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:204) [jbpm-flow-5.3.0.Final.jar:]
at org.drools.common.AbstractWorkingMemory.getProcessInstance(AbstractWorkingMemory.java:1100) [drools-core-5.4.0.Final.jar:]
at org.drools.impl.StatefulKnowledgeSessionImpl.getProcessInstance(StatefulKnowledgeSessionImpl.java:297) [drools-core-5.4.0.Final.jar:]
at org.drools.command.runtime.process.GetProcessInstanceCommand.execute(GetProcessInstanceCommand.java:48) [drools-core-5.4.0.Final.jar:]
at org.drools.command.runtime.process.GetProcessInstanceCommand.execute(GetProcessInstanceCommand.java:25) [drools-core-5.4.0.Final.jar:]
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-5.4.0.Final.jar:]
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:367) [drools-persistence-jpa-5.4.0.Final.jar:]
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.getProcessInstance(CommandBasedStatefulKnowledgeSession.java:125) [drools-core-5.4.0.Final.jar:]
at org.jbpm.integration.console.CommandDelegate.getActiveNodeInstances(CommandDelegate.java:211) [jbpm-gwt-core-5.3.0.Final.jar:]
at org.jbpm.integration.console.ProcessManagement.getProcessInstances(ProcessManagement.java:75) [jbpm-gwt-core-5.3.0.Final.jar:]
at org.jboss.bpm.console.server.ProcessMgmtFacade.getInstancesJSON(ProcessMgmtFacade.java:192) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_11]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_11]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_11]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_11]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209) [resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519) [resteasy-jaxrs-2.2.1.GA.jar:]
... 24 more
There is nothing more in the server log. How can I fix it to be able to start my process from the console?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750683#750683]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[Beginner's Corner] - Access logging in JBoss 7
by Willem Noorduin
Willem Noorduin [https://community.jboss.org/people/willemnoorduin] created the discussion
"Access logging in JBoss 7"
To view the discussion, visit: https://community.jboss.org/message/750670#750670
--------------------------------------------------------------
In JBoss 5 you could switch on the access logging by uncommenting the appropriate Valve in the <profile-home>/deploy/jbossweb.sar/server.xml file. I cannot image that this function is vanished into JBoss 7. Reading some posts, I have put:
| | <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false"> |
| | <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/> |
| | <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/> |
| | <virtual-server name="default-host" enable-welcome-root="true"> |
| | <alias name="localhost"/> |
| | <access-log> |
| | <directory relative-to="jboss.server.log.dir"/> |
| | <profix>${jboss.access.log.file}_access_log.</prefix> |
| | <suffix>.log</suffix> |
| | <pattern>common</pattern> |
| | </access-log> |
| | </virtual-server> |
</pre>
In my standalone-full-ha.xml, but I still get no access_log in de jboss.server.log.dir directory. What do I do wrong here ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750670#750670]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM] - JBPM5.3 installer persitence.xml transaction manager
by Sam Mano
Sam Mano [https://community.jboss.org/people/artist123] created the discussion
"JBPM5.3 installer persitence.xml transaction manager"
To view the discussion, visit: https://community.jboss.org/message/750239#750239
--------------------------------------------------------------
Hi,
There are lots of persistence.xml in jbpm-installer5.3 folder.
I have two questins,
1. Why do we need so many persistence.xml?
2. *In lib folder,* persistence .xml found in two placess (jbpm-5.3.0.Final-human-task-war and jbpm-human-task-war-5.3.0.Final ) in these files using JBossTransactionManagerLookup.
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
*but in db folder,* one persistence.xml found this using JBPMTransactionManager.
<!-- for AS7 -->
<property name="hibernate.transaction.manager_lookup_class" value="org.jbpm.integration.console.JBPMTransactionManager" />
question is, what is the difference between these transaction manager, and these two transaction managers work together.
some tips will be appriciated....
thanks,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750239#750239]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[JBoss Tools] - Re: Deactivation of Maven's property-activated profile fails
by Lukáš Fryč
Lukáš Fryč [https://community.jboss.org/people/lfryc] created the discussion
"Re: Deactivation of Maven's property-activated profile fails"
To view the discussion, visit: https://community.jboss.org/message/750618#750618
--------------------------------------------------------------
Thanks Snjezana,
Works great with m2e 1.1 and JBoss Tools 3.3.
Note that I couldn't use JBDS 5.0.1.GA because of m2e 1.1 dependency conflict with "JBDS (bundled)" package:
Your original request has been modified.
"m2e - Maven Integration for Eclipse" is already installed, so an update will be performed instead.
Cannot complete the install because of a conflicting dependency.
Software being installed: m2e - Maven Integration for Eclipse 1.1.0.20120530-0009 (org.eclipse.m2e.feature.feature.group 1.1.0.20120530-0009)
Software currently installed: JBoss Developer Studio (Branded Product) 5.0.1.v20120715-0533-H232-GA (com.jboss.jbds.all 5.0.1.v20120715-0533-H232-GA)
Only one of the following can be installed at once:
m2e Marketplace 1.0.0.20110607-2117 (org.eclipse.m2e.discovery 1.0.0.20110607-2117)
m2e Marketplace 1.0.200.20111228-1245 (org.eclipse.m2e.discovery 1.0.200.20111228-1245)
m2e Marketplace 1.1.0.20120530-0009 (org.eclipse.m2e.discovery 1.1.0.20120530-0009)
m2e Marketplace 1.0.100.20110804-1717 (org.eclipse.m2e.discovery 1.0.100.20110804-1717)
Cannot satisfy dependency:
From: JBoss Developer Studio (Branded Product) 5.0.1.v20120715-0533-H232-GA (com.jboss.jbds.all 5.0.1.v20120715-0533-H232-GA)
To: com.jboss.jbds.product.feature.feature.group [5.0.1.v20120715-0533-H232-GA]
Cannot satisfy dependency:
From: Maven Integration (Selected) 1.1.0.v20120715-0533-H232-GA (com.jboss.jbds.m2e.feature.feature.group 1.1.0.v20120715-0533-H232-GA)
To: org.eclipse.m2e.discovery [1.0.200.20111228-1245]
Cannot satisfy dependency:
From: JBoss Developer Studio (Core Features) 5.0.1.v20120715-0533-H232-GA (com.jboss.jbds.product.feature.feature.group 5.0.1.v20120715-0533-H232-GA)
To: com.jboss.jbds.m2e.feature.feature.group [1.1.0.v20120715-0533-H232-GA]
Cannot satisfy dependency:
From: m2e - Maven Integration for Eclipse 1.1.0.20120530-0009 (org.eclipse.m2e.feature.feature.group 1.1.0.20120530-0009)
To: org.eclipse.m2e.discovery [1.1.0.20120530-0009]
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750618#750618]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[Beginner's Corner] - How can enable all the log regarding REST process in Jboss5.
by sankar devarajan
sankar devarajan [https://community.jboss.org/people/dsankarmca] created the discussion
"How can enable all the log regarding REST process in Jboss5."
To view the discussion, visit: https://community.jboss.org/message/750613#750613
--------------------------------------------------------------
Hi Friends,
I have implemented REST in Jboss5.
now i want enable all the log regarding REST process in Jboss.
My RestImpl as folows,
@POST
@Path("/test")
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.APPLICATION_XML)
...
...
...
For example,
one transaction from Client ---> Server ---> Client.
Total Time 3Sec.
Client Side Process only 1Sec
Server side Process only 200millisec[Only Java class process]
Now i want to find out how much time taken for network transaction and how much time taken
for Jboss process [i.e,,REST conversion process(Object to XML, XML to Object) and etc]
Can any one help me how can i enable the REST process logs and all other logs.
I have added some tag in jboss-log4j.xml but i am not getting all the log.
jboss-log4j.xml
---------------
...
...
<category name="org.jboss.resteasy">
<priority value="DEBUG"/>
</category>
<category name="javax.xml.bind">
<priority value="DEBUG"/>
</category>
<category name="org.jboss.serial">
<priority value="INFO"/>
</category>
<category name="javax.enterprise.resource.webcontainer.jsf">
<priority value="INFO" class="org.jboss.logging.log4j.JDKLevel"/>
</category>
<category name="org.jgroups">
<priority value="WARN"/>
</category>
<category name="org.quartz">
<priority value="INFO"/>
</category>
<category name="com.sun">
<priority value="INFO"/>
</category>
<category name="sun">
<priority value="INFO"/>
</category>
<category name="javax.xml.bind">
<priority value="INFO"/>
</category>
<category name="org.springframework">
<priority value="WARN"/>
</category>
<category name="org.jboss.management">
<priority value="INFO"/>
</category>
<category name="facelets.compiler">
<priority value="WARN"/>
</category>
<category name="org.ajax4jsf.cache">
<priority value="WARN"/>
</category>
<category name="org.rhq">
<priority value="WARN"/>
</category>
<category name="org.jboss.seam">
<priority value="WARN"/>
</category>
<category name="org.mc4j.ems">
<priority value="WARN"/>
</category>
...
...
ServerLog:
----------
14:57:07,847 DEBUG [SynchronousDispatcher] PathInfo: /authenticate/test
14:57:07,848 FINE [bind] Trying to locate ../login/jaxb.properties
14:57:07,850 FINE [bind] not found
14:57:07,852 FINE [bind] Checking system property javax.xml.bind.JAXBContext
14:57:07,853 FINE [bind] not found
14:57:07,857 FINE [bind] Checking META-INF/services
14:57:07,859 FINE [bind] Reading vfszip:/D:/Program Files/jboss-5.0.1/jboss-as/lib/jaxb-impl.jar/META-INF/services/javax.xml.bind.JAXBContext
14:57:07,869 FINE [bind] Trying to load com.sun.xml.bind.v2.ContextFactory
14:57:07,872 FINE [bind] loaded com.sun.xml.bind.v2.ContextFactory from vfszip:/D:/Program Files/jboss-5.0.1/jboss-as/lib/jaxb-impl.jar/com/sun/xml/bind/v2/ContextFactory.class
[TestRestImpl] null ***.***.**** [Login started].
[TestRestImpl] null ***.***.**** [Login finished].
14:57:08,170 FINE [bind] Trying to locate ../login/jaxb.properties
14:57:08,170 FINE [bind] not found
14:57:08,171 FINE [bind] Checking system property javax.xml.bind.JAXBContext
14:57:08,174 FINE [bind] not found
14:57:08,175 FINE [bind] Checking META-INF/services
14:57:08,178 FINE [bind] Reading vfszip:/D:/Program Files/jboss-5.0.1/jboss-as/lib/jaxb-impl.jar/META-INF/services/javax.xml.bind.JAXBContext
14:57:08,183 FINE [bind] Trying to load com.sun.xml.bind.v2.ContextFactory
14:57:08,184 FINE [bind] loaded com.sun.xml.bind.v2.ContextFactory from vfszip:/D:/Program Files/jboss-5.0.1/jboss-as/lib/jaxb-impl.jar/com/sun/xml/bind/v2/ContextFactory.class
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750613#750613]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM] - Getting ERROR while working with the "Tutorial : Using your own databse with jBPM" - JDBC Driver class not found: oracle.jdbc.driver.OracleDriver
by prashan r
prashan r [https://community.jboss.org/people/prashanth_biomorf] created the discussion
"Getting ERROR while working with the "Tutorial : Using your own databse with jBPM" - JDBC Driver class not found: oracle.jdbc.driver.OracleDriver"
To view the discussion, visit: https://community.jboss.org/message/749816#749816
--------------------------------------------------------------
Subject: Getting ERROR while working with the "Tutorial : Using your own databse with jBPM"
Dear friend,
I followed the "Tutorial : Using your own databse with jBPM", I am using Oracle database. Inspite of repeating the steps a number of times, I was not able to successfully run the demo. When I run the "> ant start.demo.db", I get this error always "
*" [java] 15 24/07 14:06:22,140[main] ERROR hibernate.connection.DriverManag*
*erConnectionProvider.configure - JDBC Driver class not found: oracle.jdbc.drive*
*r.OracleDriver*
* [java] java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver "*
I even configured for the latest JBoss AS 7. The environment I am using is : "jBPM 5.3 , JBoss-AS-7.0.2 ". Please let me know how to solve this issue.
I tried mailing " jbpm-dev(a)lists.jboss.org", but it is rejecting the mails.
--
Thanking You,
Regards,prashanth
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/749816#749816]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[Snowdrop] - Re: Deployment Order With Spring
by mrjb
mrjb [https://community.jboss.org/people/mrjb] created the discussion
"Re: Deployment Order With Spring"
To view the discussion, visit: https://community.jboss.org/message/741081#741081
--------------------------------------------------------------
*bump*
I am also interested in how to solve this. I would suspect I have a pretty basic use case, using JBoss 7.1.1, Snowdrop 2.0.2 and Spring 3.1.1. My application in it's simplest form looks like this:
myapp.ear
|
+- META-INF
| |
| +- MANIFEST.MF
| +- application.xml
|
+- lib
| |
| +- spring-3.1.1-jars.jar
| +- other-jars.jar
|
+- myapp.spring
+- myapp.war
My .war has a beanRefContext.xml that is trying to lookup the JNDI name that the SpringDeployer should have registered, which fails because the JNDI name is not found. There is also some randomness attached to this because for a while it did actually work, the JNDI name was found and deployment continued. I then copied some .jars on the JBoss servers, which I suspect might have modified their timestamps or something similar, in case that's one of the factors for deciding deployment order, and after that it has stopped working.
My application.xml file looks like this:
<application>
(...)
<initialize-in-order>true</initialize-in-order>
<module>
<java>./myapp.spring</java>
</module>
<module>
<web>
<web-uri>myapp.war</web-uri>
<context-root>myapp</context-root>
</web>
</module>
</...>
I can't managed to get this working... My company is using JBoss 4.2 and there it is working fine, but we are figuring it's time to upgrade. I don't really need to keep the same deployment structure either it's just that I want a main Spring context to be deployed that other WAR's (and also MDB's) can access.
Any ideas? :)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/741081#741081]
Start a new discussion in Snowdrop at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months