cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Java first and the new JMS config universe ...
Date Sun, 19 Sep 2010 19:11:29 GMT
I'm trying out the new JMS in the Java-first case, and I've hit my
first pothole.

I'm going to commit the sample in the state that gets this error.

 Object implementor = new HelloWorldImpl();
        JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
        svrFactory.setServiceClass(HelloWorld.class);
        svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID);
        svrFactory.setAddress("jms:queue:test.cxf.jmstransport.queue?timeToLive=1000");
        svrFactory.setServiceBean(implementor);
        svrFactory.create();


INFO: Setting the server's publish address to be
jms:queue:test.cxf.jmstransport.queue?timeToLive=1000
Exception in thread "main" java.lang.IllegalArgumentException: Target
ConnectionFactory must not be null
	at org.springframework.util.Assert.notNull(Assert.java:112)
	at org.springframework.jms.connection.SingleConnectionFactory.<init>(SingleConnectionFactory.java:130)
	at org.apache.cxf.transport.jms.JMSConfiguration.getOrCreateWrappedConnectionFactory(JMSConfiguration.java:441)
	at org.apache.cxf.transport.jms.JMSConfiguration.ensureProperlyConfigured(JMSConfiguration.java:104)
	at org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination.java:111)
	at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
	at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:181)
	at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:835)
	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127)
	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:186)
	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)
	at demo.server.ServerJMS.main(ServerJMS.java:63)

Mime
View raw message