[Beginner's Corner] - Webservice ClassCastException in JBoss 4.2.3
by Seamus Loftus
Seamus Loftus [http://community.jboss.org/people/Jadin] created the discussion
"Webservice ClassCastException in JBoss 4.2.3"
To view the discussion, visit: http://community.jboss.org/message/533795#533795
--------------------------------------------------------------
Hi,
I am currently trying to develop an application that allows access to a webservice from inside a web application to do a simple thing like ping the webservice to see if it is available. However, the problem I am having with JBoss is I am currently receiving the following error:
java.lang.ClassCastException: org.apache.cxf.jaxws.ServiceImpl at javax.xml.ws.Service.<init>(Service.java:81) at org.myservice.ws.MyWebService.<init>(MyWebService.java:52) at org.myapp.mybean.getMyWebService(MyBean.java:103)
I have a stand alone client and I am able to test the webservice from the client just fine, without errors.
When I try to test the webservice from my web application it throws the above error.
This is the call where it dies. (on new instantiation)
MyWebService service =
*new* MyWebService();
I have been able to determine that perhaps jboss's jar library is overwritting my application's jar library, but I have not been able to determine which jar is being over written. Any help would be appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533795#533795]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
Re: [jboss-user] [jBPM] - working with executions
by Claus Straube
Claus Straube [http://community.jboss.org/people/clauss] replied to the discussion
"working with executions"
To view the discussion, visit: http://community.jboss.org/message/533779#533779
--------------------------------------------------------------
Hi Maciej,
I think that's it. The following test worked:
@Test
public void oneReceiveNode(){
//deploy process
repositoryService.createDeployment().addResourceFromClasspath("one_receive_node.bpmn.xml").deploy();
//start instance
ProcessInstance instance = executionService.startProcessInstanceByKey("bar");
Assert.assertNotNull(instance);
//signal first execution
Execution e1 = instance.findActiveExecutionIn("r1");
Assert.assertNotNull(e1);
ProcessInstance instance2 = executionService.signalExecutionById(e1.getId());
Assert.assertTrue(instance2.isEnded());
}
That means a process instance will be "refreshed", if I do a execution on it? I don't find that intuitive... But okay -it works :) Thank you!
Best regards - Claus
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533779#533779]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
[JBoss Microcontainer Development] - Servlet Scanner plugin
by Remy Maucherat
Remy Maucherat [http://community.jboss.org/people/remy.maucherat%40jboss.com] created the discussion
"Servlet Scanner plugin"
To view the discussion, visit: http://community.jboss.org/message/533736#533736
--------------------------------------------------------------
Hi,
For Servlet annotation scanning, I would need the following APIs:
- For Servlet annotation processing, query classes from a JAR for a set of annotations (on fields, methods, type); could return a Set keyed per annotation (given the current org.jboss.metadata.annotation.creator.Processor a simple set of classes would be ok too)
- For ServletContainerInitializer implementation, query classes from a "classpath" (a list of VirtualFile) for a set of annotations (on fields, methods, type) and implemented interfaces/classes; return a set of classes
This would translate to something like:
- public Set<Class<?>> getClasses(VirtualFile classpathItem, Set<Class<? extends Annotation>> annotationsToLookFor) (from the Hibernate plugin, assuming it looks for annotation on fields, methods and type), or return a Map<Class<? extends Annotation>>, Class<?>>
- public Set<Class<?>> getClasses(List<VirtualFile> classpath, Set<Class<? extends Annotation>> annotationsToLookFor, Set<Class<?>> supertypesToLookFor) (note: in case there are multiple SCIs with HandlesType, this could be less efficient than using a map to pass the annotations/types to look for, and getting a map back; of course, it is simpler too)
The plugin could be based on the Hibernate one, it looks the closest to the requirements.
Thanks,
Rémy
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533736#533736]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
Re: [jboss-user] [jBPM] - working with executions
by Claus Straube
Claus Straube [http://community.jboss.org/people/clauss] replied to the discussion
"working with executions"
To view the discussion, visit: http://community.jboss.org/message/533731#533731
--------------------------------------------------------------
Hi Maciej,
first: thanks for your response. In my understanding the TaskService is for human interaction. But that's not what I want to do. I want to finish a "BPMN 2.0 receiveTask". The documentation says this:
> Process execution will wait in such a receive task. The process can then be continued using the familiar jBPM signal methods. Note that this will probably change in the future, since a 'signal' has a completely different meaning in BPMN 2.0.
As a code sample they provided this java snippet:
Execution execution = processInstance.findActiveExecutionIn("receiveTask");
executionService.signalExecutionById(execution.getId());
This is the xml snippet:
<receiveTask id="receiveTask" name="wait" />
The documentation says, that I can continue the process if I "signal" it. So I don't want to assign a task to a user or something. So my question is still open.
Best regards - Claus
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533731#533731]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months