[JBoss JIRA] Created: (JBWS-2077) Provide JMS Binding in generated WSDL
by Thomas Diesler (JIRA)
Provide JMS Binding in generated WSDL
--------------------------------------
Key: JBWS-2077
URL: http://jira.jboss.com/jira/browse/JBWS-2077
Project: JBoss Web Services
Issue Type: Task
Security Level: Public (Everyone can see)
Components: jbossws-native
Reporter: Thomas Diesler
Fix For: jbossws-3.x
Currently, the client will have to use the JMS API directly
InitialContext context = new InitialContext();
QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("ConnectionFactory");
Queue reqQueue = (Queue)context.lookup("queue/RequestQueue");
Queue resQueue = (Queue)context.lookup("queue/ResponseQueue");
QueueConnection con = connectionFactory.createQueueConnection();
QueueSession session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
QueueReceiver receiver = session.createReceiver(resQueue);
ResponseListener responseListener = new ResponseListener();
receiver.setMessageListener(responseListener);
con.start();
TextMessage message = session.createTextMessage(reqMessage);
message.setJMSReplyTo(resQueue);
waitForResponse = true;
QueueSender sender = session.createSender(reqQueue);
sender.send(message);
sender.close();
int timeout = 5000;
while (waitForResponse && timeout > 0)
{
Thread.sleep(100);
timeout -= 100;
}
assertNotNull("Expected response message", responseListener.resMessage);
assertEquals(DOMUtils.parse(resMessage), DOMUtils.parse(responseListener.resMessage));
con.stop();
session.close();
con.close();
Instead, the client should use the standard JAX-WS API to consume a wsdl that defines the jms binding
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months
[JBoss JIRA] Created: (JBWS-2120) @WebWservice does not work with class isolation
by Thomas Diesler (JIRA)
@WebWservice does not work with class isolation
------------------------------------------------
Key: JBWS-2120
URL: http://jira.jboss.com/jira/browse/JBWS-2120
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jbossws-native
Reporter: Thomas Diesler
Assigned To: Thomas Diesler
Fix For: jbossws-2.0.0
It seems that Web Services do not work when the EAR that contains the @WebService class has an isolated classloader. Here is my take on what happens:
You deploy the ear and JBoss creates a war, that contains a web.xml, that points to the org.jboss.ws.server.ServiceEndpointServlet.
You can send a request to the web service bean no problem, but any objects that get returned from it will throw a NoClassDefFoundError because this ServiceEndpointServlet is deployed outside of the EAR and, since it has an isolated classloader, can't reference the returned class.
My application works absolutely fine when I turn off all isolation of the classloader. I don't think this can be fixed. Any ideas?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months
[JBoss JIRA] Commented: (JBWS-1566) Invalid wsdl using @XmlSchema annotations on Types
by Thomas Diesler (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-1566?page=comments#action_12407858 ]
Thomas Diesler commented on JBWS-1566:
--------------------------------------
[tdiesler@tddell trunk]$ ant -Dtest=jaxws/jbws1566 test
tests-run-internal:
[junit] Running org.jboss.test.ws.jaxws.jbws1566.c.JBWS1566TestCase
[junit] wsdl URL:http://localhost:8080/jaxwstest/Jaxb20StatelessTestBean?wsdl
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 6.004 sec
[junit] Test org.jboss.test.ws.jaxws.jbws1566.c.JBWS1566TestCase FAILED
> Invalid wsdl using @XmlSchema annotations on Types
> --------------------------------------------------
>
> Key: JBWS-1566
> URL: http://jira.jboss.com/jira/browse/JBWS-1566
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-native
> Affects Versions: jbossws-1.2.0
> Environment: JBossAS-4.0.5, jdk 5, jbossws 1.2.0.GA
> Reporter: Robert Mlekus
> Assigned To: Heiko Braun
> Fix For: jbossws-2.0.0
>
> Attachments: JBWS-1566-JbossWS-Samples-001.patch
>
>
> While the @javax.xml.bind.annotation.XmlSchema annotation within the package-info.java of an class not inheriting from other packages works perfectly, JBossWS generates the following error for derived datatypes:
> <code>
> 14:35:02,173 ERROR [ServiceEndpointPublisher] Cannot obtain waURL for: webservice-test.ear/webservic
> e-test.jar
> 14:35:02,283 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolv
> e.4.2]::Message=src-resolve.4.2: Error resolving component 'ns1:aClass'. It was detected that 'ns1:a
> Class' is in namespace 'http://test.org/wsclient/a', but components from this namespace are not refe
> renceable from schema document 'null'. If this is the incorrect namespace, perhaps the prefix of 'ns
> 1:aClass' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag sh
> ould be added to 'null'.
> <code>
> The Parameter classes causing this problem are a.AClass, b.Bclass defined in the packages a, and b with the following package-info.java @XmlSchema annotations:
> The following examples will be attached as a patch for the jbossws-samples, too but are given here for a short summary on the problem.
> file a/package-info.java:
> ------
> @javax.xml.bind.annotation.XmlSchema(namespace = http://test.org/wsclient/a" )
> package a;
> ------
>
> file a/AClass.java:
> ------
> package a;
> public class AClass {
> int a;
>
> public int getA() {
> return a;
> }
> public void setA(int testInt) {
> this.a = testInt;
> }
> }
> ------
> file b/package-info.java:
> ------
> @javax.xml.bind.annotation.XmlSchema(namespace = http://test.org/wsclient/b" )
> package b;
> ------
>
> file b/BClass.java
> ------
> package b;
> public class BClass extends a.AClass {
> String b;
>
> public String getB() {
> return b;
> }
> public void setB(String testString) {
> this.b = testString;
> }
> }
> ------
>
> The relevant part of the generated WSDL (which is visible under jbossws/service is:
> <xs:schema targetNamespace="http://test.org/wsclient/b" version="1.0">
> <xs:complexType name="bClass">
> <xs:complexContent>
> <xs:extension base="ns1:aClass">
> <xs:sequence>
> <xs:element minOccurs="0" name="b" type="xs:string"/>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
> <xs:schema targetNamespace="http://test.org/wsclient/a" version="1.0">
> <xs:complexType name="aClass">
> <xs:sequence>
> <xs:element name="a" type="xs:int"/>
> </xs:sequence>
> </xs:complexType>
> </xs:schema>
>
> where the declaration of bClass references the ns1 namespace without declaring it.
> The same thing happens when aClass is aggreagated by bClass.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 9 months