[jira] Created: (CXF-2970) Service cannot create a Socket
Service cannot create a Socket -- Key: CXF-2970 URL: https://issues.apache.org/jira/browse/CXF-2970 Project: CXF Issue Type: Bug Affects Versions: 2.3 Environment: Windows XP, Java jdk1.6.0_20, Maven 2.2.1, Eclipse 3.6.0, activemq-core 5.4.0 Reporter: Paulo Rodrigez Priority: Blocker Hey I've got a problem to create a service SOAP over JMS. I have created a WSDL and use you codegen plugin to generate the server-skel. Now I try to start this service with the following lines: public class ProjectServer { private ProjectServer() throws NamingException { // You just need to set the address with JMS URI String address = "jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" + "?jndiInitialContextFactory" + "=org.apache.activemq.jndi.ActiveMQInitialContextFactory" + "&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610"; Project implementor = new ProjectImpl(); JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean(); svrFactory.setServiceClass(Project.class); svrFactory.setAddress(address); // And specify the transport ID with SOAP over JMS specification svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); svrFactory.setServiceBean(implementor); svrFactory.create(); } /** * @param args * @throws NamingException */ public static void main(String[] args) throws NamingException { new ProjectServer(); } } Here is my WSDL: http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://www.mycompany.com/project/service"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soapjms="http://www.w3.org/2008/07/soap/bindings/JMS/"; xmlns:model="http://www.mycompany.com/project/model"; name="project" targetNamespace="http://www.mycompany.com/project/service";> http://www.mycompany.com/project/model";> http://www.w3.org/2008/07/soap/bindings/JMS/"; /> ConnectionFactory org.apache.activemq.jndi.ActiveMQInitialContextFactory tcp://localhost:61616 PERSISTENT 5 1000 http://www.mycompany.com/project/service/GreetMeOp"; /> Error is: INFO: Setting the server's publish address to be jms:jndi:dynamicQueues/test.cxf.jmstransport.queue?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610 Exception in thread "main" org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61610. Reason: java.net.ConnectException: Connection refused: connect at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:431) at org.apache.cxf.transport.jms.JMSFactory.resolveOrCreateDestination(JMSFactory.java:337) at org.apache.cxf.transport.jms.JMSFactory.createJmsListener(JMSFactory.java:290) at org.apache.cxf.transport.jms.JMSFactory.createJmsListener(JMSFactory.java:175) at
[jira] Created: (CXF-2971) Avoid the NPE of AnnotationsFactoryBeanListener
Avoid the NPE of AnnotationsFactoryBeanListener Key: CXF-2971 URL: https://issues.apache.org/jira/browse/CXF-2971 Project: CXF Issue Type: Improvement Reporter: Willem Jiang Assignee: Willem Jiang Fix For: 2.3 {code} Index: src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java === --- src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java (revision 992197) +++ src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java (working copy) @@ -81,6 +81,10 @@ Class cls = (Class)args[2]; Endpoint ep = (Endpoint)args[1]; Bus bus = factory.getBus(); +// To avoid the NPE +if (cls == null) { +return; +} addSchemaValidationSupport(ep, cls.getAnnotation(SchemaValidation.class)); addFastInfosetSupport(ep, cls.getAnnotation(FastInfoset.class)); addGZipSupport(ep, bus, cls.getAnnotation(GZIP.class)); {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2970) Service cannot create a Socket
[ https://issues.apache.org/jira/browse/CXF-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang updated CXF-2970: -- Description: Hey I've got a problem to create a service SOAP over JMS. I have created a WSDL and use you codegen plugin to generate the server-skel. Now I try to start this service with the following lines: {code} public class ProjectServer { private ProjectServer() throws NamingException { // You just need to set the address with JMS URI String address = "jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" + "?jndiInitialContextFactory" + "=org.apache.activemq.jndi.ActiveMQInitialContextFactory" + "&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610"; Project implementor = new ProjectImpl(); JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean(); svrFactory.setServiceClass(Project.class); svrFactory.setAddress(address); // And specify the transport ID with SOAP over JMS specification svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); svrFactory.setServiceBean(implementor); svrFactory.create(); } /** * @param args * @throws NamingException */ public static void main(String[] args) throws NamingException { new ProjectServer(); } } {code} Here is my WSDL: {code} http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://www.mycompany.com/project/service"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soapjms="http://www.w3.org/2008/07/soap/bindings/JMS/"; xmlns:model="http://www.mycompany.com/project/model"; name="project" targetNamespace="http://www.mycompany.com/project/service";> http://www.mycompany.com/project/model";> http://www.w3.org/2008/07/soap/bindings/JMS/"; /> ConnectionFactory org.apache.activemq.jndi.ActiveMQInitialContextFactory tcp://localhost:61616 PERSISTENT 5 1000 http://www.mycompany.com/project/service/GreetMeOp"; /> {code} Error is: INFO: Setting the server's publish address to be jms:jndi:dynamicQueues/test.cxf.jmstransport.queue?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610 Exception in thread "main" org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61610. Reason: java.net.ConnectException: Connection refused: connect at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:431) at org.apache.cxf.transport.jms.JMSFactory.resolveOrCreateDestination(JMSFactory.java:337) at org.apache.cxf.transport.jms.JMSFactory.createJmsListener(JMSFactory.java:290) at org.apache.cxf.transport.jms.JMSFactory.createJmsListener(JMSFactory.java:175) at org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination.java:112) at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java
[jira] Commented: (CXF-2970) Service cannot create a Socket
[ https://issues.apache.org/jira/browse/CXF-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905826#action_12905826 ] Willem Jiang commented on CXF-2970: --- Hi, this looks you didn't start the activeMQ broker. You can find some code here which start an activeMQ breaker for you. https://svn.apache.org/repos/asf/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/EmbeddedJMSBrokerLauncher.java > Service cannot create a Socket > -- > > Key: CXF-2970 > URL: https://issues.apache.org/jira/browse/CXF-2970 > Project: CXF > Issue Type: Bug >Affects Versions: 2.3 > Environment: Windows XP, Java jdk1.6.0_20, Maven 2.2.1, Eclipse > 3.6.0, activemq-core 5.4.0 >Reporter: Paulo Rodrigez >Priority: Blocker > > Hey > I've got a problem to create a service SOAP over JMS. I have created a WSDL > and use you codegen plugin to generate the server-skel. Now I try to start > this service with the following lines: > {code} > public class ProjectServer { > private ProjectServer() throws NamingException { > // You just need to set the address with JMS URI > String address = > "jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" > + "?jndiInitialContextFactory" > + > "=org.apache.activemq.jndi.ActiveMQInitialContextFactory" > + > "&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610"; > Project implementor = new ProjectImpl(); > JaxWsServerFactoryBean svrFactory = new > JaxWsServerFactoryBean(); > svrFactory.setServiceClass(Project.class); > svrFactory.setAddress(address); > // And specify the transport ID with SOAP over JMS specification > > svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); > svrFactory.setServiceBean(implementor); > svrFactory.create(); > } > /** >* @param args >* @throws NamingException >*/ > public static void main(String[] args) throws NamingException { > new ProjectServer(); > } > } > {code} > Here is my WSDL: > {code} > > http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:tns="http://www.mycompany.com/project/service"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:soapjms="http://www.w3.org/2008/07/soap/bindings/JMS/"; > xmlns:model="http://www.mycompany.com/project/model"; > name="project" > targetNamespace="http://www.mycompany.com/project/service";> > >targetNamespace="http://www.mycompany.com/project/model";> > > > >type="xsd:string" /> > > > > > > >type="xsd:string" /> > > > >type="xsd:string"> >type="xsd:string"> > > > > > > > > > > > > > > > > > transport="http://www.w3.org/2008/07/soap/bindings/JMS/"; /> > > ConnectionFactory > > > org.apache.activemq.jndi.ActiveMQInitialContextFactory > > tcp://localhost:61616 > PERSISTENT > 5 > 1000 > >soapAction="http://www.mycompany.com/project/service/GreetMeOp"; /> > > > > > > > > > > >location="jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" /> > > > > {code} > Error is: > INFO: Setting the server's publish address to be > jms:jndi:dynamicQueues/test.cxf.jmstransport.queue?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610 > Exception in thread "main" org.springframework.jms.UncategorizedJmsException: > Uncategorized exception occured during JMS processing; nested exception is >
[jira] Closed: (CXF-2970) Service cannot create a Socket
[ https://issues.apache.org/jira/browse/CXF-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang closed CXF-2970. - Resolution: Won't Fix > Service cannot create a Socket > -- > > Key: CXF-2970 > URL: https://issues.apache.org/jira/browse/CXF-2970 > Project: CXF > Issue Type: Bug >Affects Versions: 2.3 > Environment: Windows XP, Java jdk1.6.0_20, Maven 2.2.1, Eclipse > 3.6.0, activemq-core 5.4.0 >Reporter: Paulo Rodrigez >Assignee: Willem Jiang >Priority: Minor > > Hey > I've got a problem to create a service SOAP over JMS. I have created a WSDL > and use you codegen plugin to generate the server-skel. Now I try to start > this service with the following lines: > {code} > public class ProjectServer { > private ProjectServer() throws NamingException { > // You just need to set the address with JMS URI > String address = > "jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" > + "?jndiInitialContextFactory" > + > "=org.apache.activemq.jndi.ActiveMQInitialContextFactory" > + > "&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610"; > Project implementor = new ProjectImpl(); > JaxWsServerFactoryBean svrFactory = new > JaxWsServerFactoryBean(); > svrFactory.setServiceClass(Project.class); > svrFactory.setAddress(address); > // And specify the transport ID with SOAP over JMS specification > > svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); > svrFactory.setServiceBean(implementor); > svrFactory.create(); > } > /** >* @param args >* @throws NamingException >*/ > public static void main(String[] args) throws NamingException { > new ProjectServer(); > } > } > {code} > Here is my WSDL: > {code} > > http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:tns="http://www.mycompany.com/project/service"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:soapjms="http://www.w3.org/2008/07/soap/bindings/JMS/"; > xmlns:model="http://www.mycompany.com/project/model"; > name="project" > targetNamespace="http://www.mycompany.com/project/service";> > >targetNamespace="http://www.mycompany.com/project/model";> > > > >type="xsd:string" /> > > > > > > >type="xsd:string" /> > > > >type="xsd:string"> >type="xsd:string"> > > > > > > > > > > > > > > > > > transport="http://www.w3.org/2008/07/soap/bindings/JMS/"; /> > > ConnectionFactory > > > org.apache.activemq.jndi.ActiveMQInitialContextFactory > > tcp://localhost:61616 > PERSISTENT > 5 > 1000 > >soapAction="http://www.mycompany.com/project/service/GreetMeOp"; /> > > > > > > > > > > >location="jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" /> > > > > {code} > Error is: > INFO: Setting the server's publish address to be > jms:jndi:dynamicQueues/test.cxf.jmstransport.queue?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610 > Exception in thread "main" org.springframework.jms.UncategorizedJmsException: > Uncategorized exception occured during JMS processing; nested exception is > javax.jms.JMSException: Could not connect to broker URL: > tcp://localhost:61610. Reason: java.net.ConnectException: Connection refused: > connect > at > org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316)
[jira] Updated: (CXF-2970) Service cannot create a Socket
[ https://issues.apache.org/jira/browse/CXF-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang updated CXF-2970: -- Assignee: Willem Jiang Priority: Minor (was: Blocker) It's just a configure issue , not a defect of jms transport. > Service cannot create a Socket > -- > > Key: CXF-2970 > URL: https://issues.apache.org/jira/browse/CXF-2970 > Project: CXF > Issue Type: Bug >Affects Versions: 2.3 > Environment: Windows XP, Java jdk1.6.0_20, Maven 2.2.1, Eclipse > 3.6.0, activemq-core 5.4.0 >Reporter: Paulo Rodrigez >Assignee: Willem Jiang >Priority: Minor > > Hey > I've got a problem to create a service SOAP over JMS. I have created a WSDL > and use you codegen plugin to generate the server-skel. Now I try to start > this service with the following lines: > {code} > public class ProjectServer { > private ProjectServer() throws NamingException { > // You just need to set the address with JMS URI > String address = > "jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" > + "?jndiInitialContextFactory" > + > "=org.apache.activemq.jndi.ActiveMQInitialContextFactory" > + > "&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610"; > Project implementor = new ProjectImpl(); > JaxWsServerFactoryBean svrFactory = new > JaxWsServerFactoryBean(); > svrFactory.setServiceClass(Project.class); > svrFactory.setAddress(address); > // And specify the transport ID with SOAP over JMS specification > > svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); > svrFactory.setServiceBean(implementor); > svrFactory.create(); > } > /** >* @param args >* @throws NamingException >*/ > public static void main(String[] args) throws NamingException { > new ProjectServer(); > } > } > {code} > Here is my WSDL: > {code} > > http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:tns="http://www.mycompany.com/project/service"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:soapjms="http://www.w3.org/2008/07/soap/bindings/JMS/"; > xmlns:model="http://www.mycompany.com/project/model"; > name="project" > targetNamespace="http://www.mycompany.com/project/service";> > >targetNamespace="http://www.mycompany.com/project/model";> > > > >type="xsd:string" /> > > > > > > >type="xsd:string" /> > > > >type="xsd:string"> >type="xsd:string"> > > > > > > > > > > > > > > > > > transport="http://www.w3.org/2008/07/soap/bindings/JMS/"; /> > > ConnectionFactory > > > org.apache.activemq.jndi.ActiveMQInitialContextFactory > > tcp://localhost:61616 > PERSISTENT > 5 > 1000 > >soapAction="http://www.mycompany.com/project/service/GreetMeOp"; /> > > > > > > > > > > >location="jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" /> > > > > {code} > Error is: > INFO: Setting the server's publish address to be > jms:jndi:dynamicQueues/test.cxf.jmstransport.queue?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610 > Exception in thread "main" org.springframework.jms.UncategorizedJmsException: > Uncategorized exception occured during JMS processing; nested exception is > javax.jms.JMSException: Could not connect to broker URL: > tcp://localhost:61610. Reason: java.net.ConnectException: Connection refused: > connect
[jira] Resolved: (CXF-2971) Avoid the NPE of AnnotationsFactoryBeanListener
[ https://issues.apache.org/jira/browse/CXF-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang resolved CXF-2971. --- Resolution: Fixed Applied the patch into CXF trunk. > Avoid the NPE of AnnotationsFactoryBeanListener > > > Key: CXF-2971 > URL: https://issues.apache.org/jira/browse/CXF-2971 > Project: CXF > Issue Type: Improvement >Reporter: Willem Jiang >Assignee: Willem Jiang > Fix For: 2.3 > > > {code} > Index: > src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java > === > --- > src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java > (revision 992197) > +++ > src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java > (working copy) > @@ -81,6 +81,10 @@ > Class cls = (Class)args[2]; > Endpoint ep = (Endpoint)args[1]; > Bus bus = factory.getBus(); > +// To avoid the NPE > +if (cls == null) { > +return; > +} > addSchemaValidationSupport(ep, > cls.getAnnotation(SchemaValidation.class)); > addFastInfosetSupport(ep, cls.getAnnotation(FastInfoset.class)); > addGZipSupport(ep, bus, cls.getAnnotation(GZIP.class)); > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2966) IllegalAccessError ReflectionServiceFactoryBean.schemaLocations from class JaxWsServiceFactoryBean
[ https://issues.apache.org/jira/browse/CXF-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dennis Kieselhorst resolved CXF-2966. - Fix Version/s: Invalid Resolution: Invalid Due to a transitive dependency, cxf-rt-frontend-simple jar:2.2.9 was on classpath. Sorry! > IllegalAccessError ReflectionServiceFactoryBean.schemaLocations from class > JaxWsServiceFactoryBean > -- > > Key: CXF-2966 > URL: https://issues.apache.org/jira/browse/CXF-2966 > Project: CXF > Issue Type: Bug >Affects Versions: 2.2.10 >Reporter: Dennis Kieselhorst >Priority: Critical > Fix For: Invalid > > > After updating to 2.2.10, I get the following exception: > {quote} > Caused by: java.lang.IllegalAccessError: tried to access field > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.schemaLocations > from class org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:624) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:599) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:460) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:637) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:530) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:278) > at > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:180) > at > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:99) > at > org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:51) > at > org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102) > at > org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:121) > at > org.apache.cxf.jaxws.spring.JaxWsProxyFactoryBeanDefinitionParser$JAXWSSpringClientProxyFactoryBean.getObject(JaxWsProxyFactoryBeanDefinitionParser.java:77) > at > org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142) > ... 123 more > {quote} > This is caused by the changes in CXF-2891. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Reopened: (CXF-2970) Service cannot create a Socket
[ https://issues.apache.org/jira/browse/CXF-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paulo Rodrigez reopened CXF-2970: - Thanks for the help. With a brocker I can create the service, but the client only connects to the server and does nothing when I call the method: client.greetMe("World") Here is my client code: private ProjectClient() { // You just need to set the address with JMS URI String address = "jms:jndi:dynamicQueues/test.cxf.jmstransport.queue3" + "?jndiInitialContextFactory" + "=org.apache.activemq.jndi.ActiveMQInitialContextFactory" + "&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://127.0.0.1:61610"; JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); // And specify the transport ID with SOAP over JMS specification factory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); factory.setServiceClass(Project.class); factory.setAddress(address); Project client = (Project)factory.create(); LOGGER.debug(client.getClass()); String reply = client.greetMe("World"); LOGGER.debug(reply); } Whant's wrong? Or is this a bug? > Service cannot create a Socket > -- > > Key: CXF-2970 > URL: https://issues.apache.org/jira/browse/CXF-2970 > Project: CXF > Issue Type: Bug >Affects Versions: 2.3 > Environment: Windows XP, Java jdk1.6.0_20, Maven 2.2.1, Eclipse > 3.6.0, activemq-core 5.4.0 >Reporter: Paulo Rodrigez >Assignee: Willem Jiang >Priority: Minor > > Hey > I've got a problem to create a service SOAP over JMS. I have created a WSDL > and use you codegen plugin to generate the server-skel. Now I try to start > this service with the following lines: > {code} > public class ProjectServer { > private ProjectServer() throws NamingException { > // You just need to set the address with JMS URI > String address = > "jms:jndi:dynamicQueues/test.cxf.jmstransport.queue" > + "?jndiInitialContextFactory" > + > "=org.apache.activemq.jndi.ActiveMQInitialContextFactory" > + > "&jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61610"; > Project implementor = new ProjectImpl(); > JaxWsServerFactoryBean svrFactory = new > JaxWsServerFactoryBean(); > svrFactory.setServiceClass(Project.class); > svrFactory.setAddress(address); > // And specify the transport ID with SOAP over JMS specification > > svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); > svrFactory.setServiceBean(implementor); > svrFactory.create(); > } > /** >* @param args >* @throws NamingException >*/ > public static void main(String[] args) throws NamingException { > new ProjectServer(); > } > } > {code} > Here is my WSDL: > {code} > > http://schemas.xmlsoap.org/wsdl/soap/"; > xmlns:tns="http://www.mycompany.com/project/service"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > xmlns:soapjms="http://www.w3.org/2008/07/soap/bindings/JMS/"; > xmlns:model="http://www.mycompany.com/project/model"; > name="project" > targetNamespace="http://www.mycompany.com/project/service";> > >targetNamespace="http://www.mycompany.com/project/model";> > > > >type="xsd:string" /> > > > > > > >type="xsd:string" /> > > > >type="xsd:string"> >type="xsd:string"> > > > > > > > > > > > > > > > > > transport="http://www.w3.org/2008/07/soap/bindings/JMS/"; /> > > ConnectionFactory > > > org.apache.activemq.jndi.ActiveMQInitialContextFactory > > tcp://localhost:61616 > PERSISTENT > 5 > 1000 > >soapAction
[jira] Created: (CXF-2972) MapAggregator should throw a fault when ReplyTo address is set to None in case of two-way requests
MapAggregator should throw a fault when ReplyTo address is set to None in case of two-way requests --- Key: CXF-2972 URL: https://issues.apache.org/jira/browse/CXF-2972 Project: CXF Issue Type: Bug Components: WS-* Components Affects Versions: 2.2.10 Reporter: Sergey Beryozkin Assignee: Sergey Beryozkin Fix For: 2.3, 2.2.11 According to http://www.w3.org/TR/ws-addr-core/#eprinfomodel, when ReplyTo address is set to "http://www.w3.org/2005/08/addressing/none"; no reply message should be sent. Essentially, 202 is expected. Now, JAXWS TCK expects a fault instead. It probably does make sense indeed to reply with a fault because returning 202 for two requests does not make much sense -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2972) MapAggregator should throw a fault when ReplyTo address is set to None in case of two-way requests
[ https://issues.apache.org/jira/browse/CXF-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin updated CXF-2972: -- Attachment: patch.txt > MapAggregator should throw a fault when ReplyTo address is set to None in > case of two-way requests > --- > > Key: CXF-2972 > URL: https://issues.apache.org/jira/browse/CXF-2972 > Project: CXF > Issue Type: Bug > Components: WS-* Components >Affects Versions: 2.2.10 >Reporter: Sergey Beryozkin >Assignee: Sergey Beryozkin > Fix For: 2.3, 2.2.11 > > Attachments: patch.txt > > > According to http://www.w3.org/TR/ws-addr-core/#eprinfomodel, when ReplyTo > address is set to > "http://www.w3.org/2005/08/addressing/none"; > no reply message should be sent. Essentially, 202 is expected. > Now, JAXWS TCK expects a fault instead. It probably does make sense indeed to > reply with a fault because returning 202 for two requests does not make much > sense > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.