[jBPM] - How to reopen ended process and how can I make a complete copy of a processinstance
by Diduch Cordova
Diduch Cordova [http://community.jboss.org/people/diduch] created the discussion
"How to reopen ended process and how can I make a complete copy of a processinstance"
To view the discussion, visit: http://community.jboss.org/message/630408#630408
--------------------------------------------------------------
How to reopen ended process and how can I get a complete copy of a processinstance, I mean.. The processinstance with all its information, relations, tasks, content, eventtypes, processinstancelog, processinstanceinfo, potowners. I want to get a copy of a process ended with a new number of process and this last should to be reopen, for this I want to change the status of the last task completed and convert this task in a reserved task and the user can continue with the sequence of the process.
Thanks for your help..
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630408#630408]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[JBoss Microcontainer] - jboss-classloading.xml ignored in a war?
by Eric B
Eric B [http://community.jboss.org/people/benze] created the discussion
"jboss-classloading.xml ignored in a war?"
To view the discussion, visit: http://community.jboss.org/message/630151#630151
--------------------------------------------------------------
Hi,
I'm running JBoss AS6.1 and have a war application that I am trying to deploy. In my war, I have the slf4j libraries included. When I start the war, I get the following error messages:
17:16:01,288 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
17:16:01,290 ERROR [STDERR] SLF4J: Found binding in [vfs:/home/eric/.eclipse/workspace3/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.1_Runtime_Server_-_ALL/deploy/webapp.war/WEB-INF/lib/slf4j-log4j12-1.6.1.jar/org/slf4j/impl/StaticLoggerBinder.class]
17:16:01,294 ERROR [STDERR] SLF4J: Found binding in [vfs:/opt/jboss/jboss-6.1.0.Final/common/lib/slf4j-jboss-logmanager.jar/org/slf4j/impl/StaticLoggerBinder.class]
I tried adding a jboss-classloading.xml file in my WEB-INF/ folder, but it has made no difference. That error still remains:
WEB-INF/jboss-classloading.xml
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0"
name="myApp.war"
domain="myApp.war"
import-all="false"
export-all="NON_EMPTY"
parent-domain="DefaultDomain"
parent-first="false">
</classloading>
And yet, I still get that error message. Which would imply to me that the classloader is still finding JBoss' SLF4J libs instead of ignoring them completely.
Am I don't something wrong? Is the classloading file being ignored in a war? Do I have something improperly strcutred in the file?
Thanks,
Eric
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630151#630151]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[jBPM] - Persistent processes and workItems
by Miljenko Norsic
Miljenko Norsic [http://community.jboss.org/people/mnorsic] created the discussion
"Persistent processes and workItems"
To view the discussion, visit: http://community.jboss.org/message/630274#630274
--------------------------------------------------------------
Hi,
I'm implementing a process that uses custom work item handlers that respond to external events (that is, they do not terminate upon calling executeWorkItem() method), they are persisted and completed when external system responds (then I call manager.completeWorkItem() method).
So, work items are persisted into a database (into a table WORKITEMINFO), where I see a LOB called workItemByteArray.
My question is: are all process variables stored into a workItemByteArray?
I'm asking this because I have implemented a variable persistence process strategy (by using script tasks to add variables into a process and persist it), but it seems that workItemInfo doesn't understand I have persisted objects already, and it serializes those objects into a LOB.
And this is a problem because I have an object stored into a database twice: once as a entity, and once as a serialized object in a byteArray in work item.
Can someone from jBPM team confirm/deny this (I might be wrong, I did not read sources throughly, and I'm judging according to my sample app)?
Thanks in advance,
Miljenko
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630274#630274]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months
[Beginner's Corner] - Simple Web Services are NOT Working -- Please Help
by phanto
phanto [http://community.jboss.org/people/phanto] created the discussion
"Simple Web Services are NOT Working -- Please Help"
To view the discussion, visit: http://community.jboss.org/message/630226#630226
--------------------------------------------------------------
Hi Everyone,
I am new to JBoss, and Java Web development in general. We are currently examining SOA based solutions for a future software development project, and we have been working with both JBoss and Glassfish for testing. Right now, we have been able to get a simple Java Web Service and REST Web Service created in Netbeans and Glassfish. This process was rather simple.
We are now trying to do the exact same thing with JBoss and Eclipse. Thus far, this has been a complete and utter *NIGHTMARE*! I don't understand whether my problem is with Eclipse, JBoss, or both.
I have created a simple web service following the insturctions posted here:
http://community.jboss.org/docs/DOC-15778 http://community.jboss.org/wiki/UsingTheSampleWebServiceWizards .
It seemed simple to follow, however, I am unable to access the WSDL file and the web service tester tool with the ?wsdl and ?tester urls appended to the web service path. I followed the JAX-WS example exactly, with the same names used for the example, and I am getting this error while accessing the ?wsdl page:
java.lang.ClassCastException: org.jboss.samples.webservices.HelloWorld cannot be cast to javax.servlet.Servlet
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
java.lang.Thread.run(Thread.java:662)
I am using JBoss AS 7.0.2 with Eclipse 3.7, and the latest version of the JBoss Tools. Again, I followed the instructions exactly. I have absolutely no idea why this isn't working. So far, my experience with Glassfish has been much more positive, however, we would prefer to stay with JBoss, since it does have a lot of industry backing.
To assist with the debugging, here is the web.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>MySampleWS</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<display-name>HelloWorld</display-name>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>org.jboss.samples.webservices.HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/HelloWorld</url-pattern>
</servlet-mapping>
</web-app>
Here is the HelloWorld.java file:
package org.jboss.samples.webservices;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService()
public class HelloWorld {
@WebMethod()
public String sayHello(String name) {
System.out.println("Hello: " + name);
return "Hello " + name + "!";
}
}
All help is greatly appreciated!
Thank You
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630226#630226]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 2 months