You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by RomeoUA <ro...@ortess.com> on 2013/09/23 20:22:39 UTC

CXF publish on Jboss 5.1.0.GA

Hi All,

I'm having some problems with CXF on Jboss.
CXF version: 2.3.1
Jboss version: 5.1.0.GA

There are two servers: one on windows, second on linux, as far as I can see,
they are configured the same (maybe there are some differences).
There is one ear-file, which published my web service in this line: 
*Endpoint.publish("http://localhost:8590/notifyflexmwsender/CallbackPort",
notifyImpl);*
when this line is executed on the windows jboss server, in the logs I get
the following:

/16:52:32,323 INFO  [ReflectionServiceFactoryBean] Creating Service
{http://apache.org/callback}CallbackService from class
rxtp.flexmwsender.webservice.MWSenderNotifyPortType
16:52:32,679 INFO  [ServerImpl] Setting the server's publish address to be
http://localhost:8590/notifyflexmwsender/CallbackPort
16:52:32,795 INFO  [log] jetty-7.2.0.v20101020
16:52:33,437 INFO  [log] Started SelectChannelConnector@localhost:8590/

After that the webservice is working well.

but when I run it on the linux jboss server, in the logs I see the
following:

/16:19:35,755 INFO  [WSDLFilePublisher] (http-0.0.0.0-8180-11) WSDL
published to:
file:/server/sm/jboss-5.1.0.GA/server/all/data/wsdl/http-jaxws-en
dpoint-api/notifyflexmwsender/CallbackService4759959207994283377.wsdl
16:19:35,757 INFO  [DefaultEndpointRegistry] (http-0.0.0.0-8180-11)
register:
jboss.ws:context=notifyflexmwsender,endpoint=jaxws-dynamic-endpoint
16:19:35,769 INFO  [TomcatDeployment] (http-0.0.0.0-8180-11) deploy,
ctxPath=/notifyflexmwsender
16:19:35,785 WARNING [config] (http-0.0.0.0-8180-11) Unable to process
deployment descriptor for context '/notifyflexmwsender'
16:19:35,785 INFO  [config] (http-0.0.0.0-8180-11) Initializing Mojarra
(1.2_13-b01-FCS) for context '/notifyflexmwsender'/

There are no exceptions, but I can't connect to port 8590, it is closed.
I understand that the problem may be in the binding. But I can not solve it.

Thank you in advance for your help.



--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-publish-on-Jboss-5-1-0-GA-tp5734386.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF publish on Jboss 5.1.0.GA

Posted by RomeoUA <ro...@ortess.com>.
Hello again,

I figured out a little bit, but I still need help.

It seems that this is not the port, which it has opened. that the context in
which the application runs. I'm sure of it.

I found another difference in the logs:
win jboss server has such an entry in the log:

/17:13:31,913 INFO  [BusApplicationContext] Refreshing
org.apache.cxf.bus.spring.BusApplicationContext@13dcbaa: startup date [Wed
Sep 25 17:13:31 EEST 2013]; root of context hierarchy
17:13:32,241 INFO  [DefaultListableBeanFactory] Overriding bean definition
for bean 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder':
replacing [Generic bean: class
[org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=;
abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in URL [vfszip:/C:/Program
Files/jboss-5.1.0.GA/server/all/deploy/rxtp-swaptearups-ear.ear/lib/cxf-rt-transports-http-2.3.1.jar/META-INF/cxf/cxf-extension-http.fixml]]
with [Generic bean: class
[org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=;
abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in URL [vfszip:/C:/Program
Files/jboss-5.1.0.GA/server/all/deploy/rxtp-swaptearups-ear.ear/lib/cxf-rt-transports-http-2.3.1.jar/META-INF/cxf/cxf-extension-http.fixml]]/

and many similar entries.

BUT, on linux jboss logs is no mention about CXF at all...

Moreover, I put in the code this:

*EndpointImpl ep= ((EndpointImpl)Endpoint.publish(port, notifyImplDefault));					
Log.info("DEBUG:"+ep.getWsdlLocation()+" isPublished="+ep.isPublished());*

and got this exception on linux jboss:

/11:21:20,549 ERROR [STDERR] (http-0.0.0.0-8180-7)
java.lang.ClassCastException: org.jboss.ws.core.jaxws.spi.EndpointImpl
cannot be cast to org.apache.cxf.jaxws.EndpointImpl/


Obvious that CXF didn't linked at all?
Where to look at this situation?
Can I something in the code publish endpoint using CXF implementation
exactly?

Thanks.



--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-publish-on-Jboss-5-1-0-GA-tp5734386p5734491.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF publish on Jboss 5.1.0.GA

Posted by RomeoUA <ro...@ortess.com>.
Thanks for the reply. Go to the new version unfortunately I can't. I'm still
experimenting with the binding.



--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-publish-on-Jboss-5-1-0-GA-tp5734386p5734457.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF publish on Jboss 5.1.0.GA

Posted by Alessio Soldano <as...@redhat.com>.
First of all, you should really consider upgrading to more recent 
versions. As far as I can see from the second server logs, the 
application server is binding http connector to port 8180, so that might 
be related to your issue.
Please also consider reading some documentation on running Apache CXF 
applications on JBoss AS 7 / WildFly at 
http://cxf.apache.org/docs/application-server-specific-configuration-guide.html 
(follow links there).

Cheers
Alessio


On 23/09/13 20:22, RomeoUA wrote:
> Hi All,
>
> I'm having some problems with CXF on Jboss.
> CXF version: 2.3.1
> Jboss version: 5.1.0.GA
>
> There are two servers: one on windows, second on linux, as far as I can see,
> they are configured the same (maybe there are some differences).
> There is one ear-file, which published my web service in this line:
> *Endpoint.publish("http://localhost:8590/notifyflexmwsender/CallbackPort",
> notifyImpl);*
> when this line is executed on the windows jboss server, in the logs I get
> the following:
>
> /16:52:32,323 INFO  [ReflectionServiceFactoryBean] Creating Service
> {http://apache.org/callback}CallbackService from class
> rxtp.flexmwsender.webservice.MWSenderNotifyPortType
> 16:52:32,679 INFO  [ServerImpl] Setting the server's publish address to be
> http://localhost:8590/notifyflexmwsender/CallbackPort
> 16:52:32,795 INFO  [log] jetty-7.2.0.v20101020
> 16:52:33,437 INFO  [log] Started SelectChannelConnector@localhost:8590/
>
> After that the webservice is working well.
>
> but when I run it on the linux jboss server, in the logs I see the
> following:
>
> /16:19:35,755 INFO  [WSDLFilePublisher] (http-0.0.0.0-8180-11) WSDL
> published to:
> file:/server/sm/jboss-5.1.0.GA/server/all/data/wsdl/http-jaxws-en
> dpoint-api/notifyflexmwsender/CallbackService4759959207994283377.wsdl
> 16:19:35,757 INFO  [DefaultEndpointRegistry] (http-0.0.0.0-8180-11)
> register:
> jboss.ws:context=notifyflexmwsender,endpoint=jaxws-dynamic-endpoint
> 16:19:35,769 INFO  [TomcatDeployment] (http-0.0.0.0-8180-11) deploy,
> ctxPath=/notifyflexmwsender
> 16:19:35,785 WARNING [config] (http-0.0.0.0-8180-11) Unable to process
> deployment descriptor for context '/notifyflexmwsender'
> 16:19:35,785 INFO  [config] (http-0.0.0.0-8180-11) Initializing Mojarra
> (1.2_13-b01-FCS) for context '/notifyflexmwsender'/
>
> There are no exceptions, but I can't connect to port 8590, it is closed.
> I understand that the problem may be in the binding. But I can not solve it.
>
> Thank you in advance for your help.
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF-publish-on-Jboss-5-1-0-GA-tp5734386.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Alessio Soldano
Web Service Lead, JBoss