[JBoss Web Services] - getSoapHeader "crashes" in a JAR
by Val Bou
Val Bou [http://community.jboss.org/people/valbou] created the discussion
"getSoapHeader "crashes" in a JAR"
To view the discussion, visit: http://community.jboss.org/message/609125#609125
--------------------------------------------------------------
Hello,
I've created a web service using the Eclipse generation tool and also implemented a handler, using a JBOSS 5.1 server.
Everything works if the web service is in a WAR. However, I'd like it to be in a JAR used by a WAR (so that the JAR will be more easily used by other WARs). Of course, the WAR has a dependency on the JAR and my web service class is declared as a servlet in the web.xml of the WAR. The client side works but on the server side, the handleInbound(MessageContext msgContext) method of the handler crashes on the instruction : msg.getSOAPHeader(); where msg is a variable I got thanks to SOAPMessage msg = ((SOAPMessageContext) msgContext).getMessage();
When I say it crashes, I don't really know what's going on in fact since there is no exception. The msg variable is not empty and when I inspect msg.getSOAPHeader(), it displays "org.jboss.ws.core.soap.SOAPHeaderImpl@e9c517[[env:Header: null]]" (the null is not abnormal: it returns the same result when my web service is in a WAR).
A debug "Step Into" makes it stop but not really : the client servlet is always waiting for the response and it finally displays an out of memory after some minutes.
It is weird. What could explain a such behaviour ?
Thanks,
Val Bou.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609125#609125]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months
Re: [jboss-user] [Beginner's Corner] - How Jboss 4.2.2 connect Oracle AQ with XA transaction?
by guoyi zhang
guoyi zhang [http://community.jboss.org/people/dut.zgy] commented on the document
"How Jboss 4.2.2 connect Oracle AQ with XA transaction?"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16841#comment-6579
--------------------------------------------------
All,
In the steps of JBoss - Oracle AQ Patch 10g, I see one of them is to use JBossMQProvider to create AQ provider. Could anyone help to explain the reason?
---------------------------------JBoss - Oracle AQ Patch 10g------------------------------------------------
Create the Oracle Advanced Queue JMS provider. Edit *JBOSS_HOME/server/default/deploy/jms/jms-ds.xml*, add the following lines (copy/paste the default JMS provider and update mbean element name attibute, the ProviderName and the QueueFactoryRef and TopicFactoryRef):
<!-- The OAQ JMS provider loader -->
<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name="jboss.mq:service=JMSProviderLoader,name=OAQJMSProvider">
<attribute name="ProviderName">OAQJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JBossMQProvider</attribute>
<attribute name="QueueFactoryRef">OAQQueueConnectionFactory</attribute>
<attribute name="TopicFactoryRef">OAQTopicConnectionFactory</attribute>
</mbean>
--------------------------------------------------
14 years, 10 months
[jBPM] - Re: JBPM5 running processess/tasks behaviour when App Server shutdown/restart
by Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion
"Re: JBPM5 running processess/tasks behaviour when App Server shutdown/restart"
To view the discussion, visit: http://community.jboss.org/message/609064#609064
--------------------------------------------------------------
Hello,
Well i've noticed that when running a custom work item that takes long and the system goes down, then when the system restarts the tasks are not resumed thus not finished.
What i do is since the custom work items are actually persisted in the database by the jbpm, when the system goes down before they've completed i've put some extra code to restart the work items present in the database as bootstrap code on the initialization of the system i.e.
for (Object resultObject : results) {
//where results are the rows from selecting the workitems from the database having name equal to my custom work items
WorkItemInfo workItemInfo = (WorkItemInfo) resultObject;
WorkItem workItem = workItemInfo.getWorkItem(ksession.getEnvironment());
MyCustomWorkItemHandler myCustomWorkItemHandler = new MyCustomWorkItemHandler ();
myCustomWorkItemHandler .executeWorkItem(workItem, ksession.getWorkItemManager());
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609064#609064]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months
[JBoss Web Services] - JAX-WS 2.1 support on JBoss AS 5.0.1
by Benjamin Maisano
Benjamin Maisano [http://community.jboss.org/people/benjamin.maisano] created the discussion
"JAX-WS 2.1 support on JBoss AS 5.0.1"
To view the discussion, visit: http://community.jboss.org/message/609009#609009
--------------------------------------------------------------
Hi, I'm trying to generate a java client from a WSDL file using Eclipse Helios. I've done latest updates for all plugins, (ie JWT, JBoss Tools, etc). I right click the wsdl file and select "web services >> generate client" and a wizard launches and has me select several things, one of which being the jax-ws runtime, and I have selected JbossWS. From this site I found a post with a link showing the table, telling me JBoss AS 5.0.1 has JbossWS 3.1.x support. I also found a post stating JbossWS 3.1 supports JAX-WS 2.1. However, when I select JAX-WS 2.1 in the wizard I get the following error:
| Error: Could not import. (use --verbose to see full traces) | |
| java.lang.IllegalArgumentException: WSConsume (native) only supports JAX-WS 2.0 | |
| | at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:202) | |
| | at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:222) | |
| | at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:80) | |
If I select JAX-WS 2.0 the operation completes successfully and generates a bunch of java classes. Can someone explain please....any help is grealty appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609009#609009]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months