[jBPM] - JBPM5 CR1 eclipse tooling demo problem
by keith freeman
keith freeman [http://community.jboss.org/people/8forty] created the discussion
"JBPM5 CR1 eclipse tooling demo problem"
To view the discussion, visit: http://community.jboss.org/message/585041#585041
--------------------------------------------------------------
Hello,
I'm following the steps in the screencast ( http://people.redhat.com/kverlaen/install-eclipse-jbpm.swf http://people.redhat.com/kverlaen/install-eclipse-jbpm.swf), and when I get to the step to enter "krisv" into the "Human Task View" and press "Refresh", I only get a short pause and a dialog titled "Task View" that says "Could not connect to task server, refresh first". I have made several attempts. The log messages on the ant start.demo console are:
...
start.human.task:
[mkdir] Created dir: /home/mantis/jbpm5/task-service/target
[javac] /home/mantis/jbpm5/build.xml:525: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to /home/mantis/jbpm5/task-service/target
[javac] /home/mantis/jbpm5/task-service/src/org/jbpm/DemoTaskService.java:49: warning: [unchecked] unchecked cast
[javac] found : java.lang.Object
[javac] required: java.util.Map<java.lang.String,org.jbpm.task.User>
[javac] Map<String, User> users = ( Map<String, User> ) eval( reader, vars );
[javac] ^
[javac] /home/mantis/jbpm5/task-service/src/org/jbpm/DemoTaskService.java:54: warning: [unchecked] unchecked cast
[javac] found : java.lang.Object
[javac] required: java.util.Map<java.lang.String,org.jbpm.task.Group>
[javac] Map<String, Group> groups = ( Map<String, Group> ) eval( reader, vars );
[javac] ^
[javac] Note: /home/mantis/jbpm5/task-service/src/org/jbpm/DemoTaskService.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 2 warnings
[copy] Copying 2 files to /home/mantis/jbpm5/task-service/target
[java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[java] SLF4J: Defaulting to no-operation (NOP) logger implementation
[java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[java] Task service started correctly !
[java] Task service running ...
[java] [2011:02:33 17:02:16:debug] Message receieved on server : RegisterForEventRequest
[java] [2011:02:33 17:02:17:debug] Arguments : [org.jbpm.task.event.TaskEventKey@21fbc818, false, org.drools.process.workitem.wsht.WSHumanTaskHandler]
[java] [2011:02:33 17:02:18:debug] Message receieved on server : RegisterForEventRequest
[java] [2011:02:33 17:02:18:debug] Arguments : [org.jbpm.task.event.TaskEventKey@4e8089a6, false, org.drools.process.workitem.wsht.WSHumanTaskHandler]
[java] [2011:02:33 17:02:19:debug] Message receieved on server : RegisterForEventRequest
[java] [2011:02:33 17:02:19:debug] Arguments : [org.jbpm.task.event.TaskEventKey@d7d9bd2e, false, org.drools.process.workitem.wsht.WSHumanTaskHandler]
[java] [2011:02:33 17:02:34:debug] Message receieved on server : AddTaskRequest
[java] [2011:02:33 17:02:35:debug] Arguments : [org.jbpm.task.Task@b40c0c1f, null]
[java] [2011:02:33 17:02:678:debug] Message receieved on server : QueryTasksAssignedAsPotentialOwner
[java] [2011:02:33 17:02:678:debug] Arguments : [krisv, en-UK]
[java] [2011:02:33 17:02:473:debug] Message receieved on server : QueryTasksAssignedAsPotentialOwner
[java] [2011:02:33 17:02:473:debug] Arguments : [krisv, en-UK]
[java] [2011:02:33 17:02:381:debug] Message receieved on server : QueryTasksAssignedAsPotentialOwner
[java] [2011:02:33 17:02:382:debug] Arguments : [krisv, en-UK]
[java] [2011:02:33 17:02:918:debug] Message receieved on server : QueryTasksAssignedAsPotentialOwner
[java] [2011:02:33 17:02:918:debug] Arguments : [krisv, en-UK]
[java] [2011:02:33 17:02:457:debug] Message receieved on server : QueryTasksAssignedAsPotentialOwner
[java] [2011:02:33 17:02:457:debug] Arguments : [krisv, en-UK]
Am I missing a step?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585041#585041]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months
[JBoss Web Services] - Re: Soap service returning complex objects(Such as hashmaps) inc
by siva gunda
siva gunda [http://community.jboss.org/people/gundasiva] created the discussion
"Re: Soap service returning complex objects(Such as hashmaps) inc"
To view the discussion, visit: http://community.jboss.org/message/585299#585299
--------------------------------------------------------------
A wrapper class with a hashmap type should be created and used in the webservice
package com.abc.dto;
import java.util.HashMap;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class HashMapWrapper {
private HashMap<String, String> realMap = new HashMap<String, String>();
public HashMapWrapper(){
}
public void setRealMap(HashMap<String, String> realMap) {
this.realMap = realMap;
}
public HashMap<String, String> getRealMap() {
return realMap;
}
}
creation of webservice
@WebMethod(operationName="returnHashMap")
@WebResult(name="hashMapWrapper")
public HashMapWrapper returnHashMap(@WebParam(name="abc") String abc) throws MywebServiceException {
}
generated wsdl
<xs:complexType name="returnHashMap">
<xs:sequence>
<xs:element minOccurs="0" name="hashMapWrapper" type="tns:hashMapWrapper"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="hashMapWrapper">
<xs:sequence>
<xs:element name="realMap">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="entry">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="key" type="xs:string"/>
<xs:element minOccurs="0" name="value" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585299#585299]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months