You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Suneet Shah <su...@gmail.com> on 2009/07/23 07:16:06 UTC

Errors while deploying Service on JBoss

Hello

I am getting the following error messages in my JBoss log when I deploy 
my services which are using JAX-WS annotations.

10:21:34,659 ERROR [STDERR] Jul 22, 2009 10:21:34 AM 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean 
buildServiceFromWSDL
INFO: Creating Service 
{urn:idm.org/srvc/org/service}OrganizationDataWebService from WSDL: 
WEB-INF/wsdl/OrganizationDataService.wsdl
10:21:35,407 ERROR [STDERR] Jul 22, 2009 10:21:35 AM 
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory createEndpoint
WARNING: Could not find endpoint/port for 
{urn:idm.openiam.org/srvc/org/service}OrganizationDataServiceImplPort in 
wsdl. Using {urn:idm.org/srvc/org/service}OrganizationDataServicePort.
10:21:35,414 ERROR [STDERR] Jul 22, 2009 10:21:35 AM 
org.apache.cxf.endpoint.ServerImpl initDestination


Any thoughts on what may be causing these and how I can resolve it?

Thanks
Suneet




Re: Errors while deploying Service on JBoss

Posted by Andrew Dinn <an...@googlemail.com>.
On 07/24/2009 08:01 PM, Daniel Kulp wrote:
> On Fri July 24 2009 12:20:06 pm Bruno Melloni wrote:
>    
>> I have a similar situation.
>>
>> 1) Do you know why cxf would send Info/Trace messages to stderr?
>>      
>
> I think it's a bug in how jboss has java.util.logging configured, but I'm not
> really sure.  We just log to j.u.l and wherever it goes, it goes.

Bug, . . . feature . . . I ain't sayin nuttin :-)

>> I thought
>> the purpose of stderr is for errors, and stdout for all other output.  If
>> my understanding is correct (which of course is highly questionable), that
>> would make jBoss' behavior correct.
>>
>> 2) My application already uses log4j and its output goes to the logger just
>> fine.  How do you tell CXF to direct its output to the jBoss logger instead
>> of using stderr?  If there is a how-to or other documentation, can you
>> point me to it?
>>      
>
> There is instruction on how to get CXF to log to log4j at:
>
> http://cwiki.apache.org/CXF20DOC/debugging.html
>    

Thanks for clarifying that Dan. Added it to my 'cxf goodies' bookmark menu.

regards,


Andrew Dinn


Re: Errors while deploying Service on JBoss

Posted by Daniel Kulp <dk...@apache.org>.
On Fri July 24 2009 12:20:06 pm Bruno Melloni wrote:
> I have a similar situation.
>
> 1) Do you know why cxf would send Info/Trace messages to stderr?

I think it's a bug in how jboss has java.util.logging configured, but I'm not 
really sure.  We just log to j.u.l and wherever it goes, it goes.

> I thought
> the purpose of stderr is for errors, and stdout for all other output.  If
> my understanding is correct (which of course is highly questionable), that
> would make jBoss' behavior correct.
>
> 2) My application already uses log4j and its output goes to the logger just
> fine.  How do you tell CXF to direct its output to the jBoss logger instead
> of using stderr?  If there is a how-to or other documentation, can you
> point me to it?

There is instruction on how to get CXF to log to log4j at:

http://cwiki.apache.org/CXF20DOC/debugging.html

Dan



>
> Thanks.
>
> -----Original Message-----
> From: Andrew Dinn [mailto:andrewdinn@googlemail.com]
> Sent: Friday, July 24, 2009 3:02 AM
> To: users@cxf.apache.org
> Subject: Re: Errors while deploying Service on JBoss
>
> <snip>
> Those are info/trace messages, not error messages. You are seeing them
> tagged as errors because the JBoss logger tags anything written to
> stderr with the prefix ERROR [STDERR].
>
> Are you using the CXF stack underneath JBossWS or by embedding the CXF
> jars in your web application? It looks to me like the latter. If so
> then you need to change your app so that its output is explicitly
> directed to the JBoss logger rather than via stderr. Alternatively, you
> can just ignore the ERROR [STDERR] at the front and check the message
> for an ERROR, WARN or INFO tag (clearly, looking at message 2, CXF does
> not always append an INFO tag so you may need to apply some discretion).
>
> regards,
>
>
> Andrew Dinn
> -----------

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

RE: Errors while deploying Service on JBoss

Posted by Bruno Melloni <Br...@chickasaw.net>.
I have a similar situation.

1) Do you know why cxf would send Info/Trace messages to stderr?  I thought the purpose of stderr is for errors, and stdout for all other output.  If my understanding is correct (which of course is highly questionable), that would make jBoss' behavior correct.

2) My application already uses log4j and its output goes to the logger just fine.  How do you tell CXF to direct its output to the jBoss logger instead of using stderr?  If there is a how-to or other documentation, can you point me to it?

Thanks.

-----Original Message-----
From: Andrew Dinn [mailto:andrewdinn@googlemail.com] 
Sent: Friday, July 24, 2009 3:02 AM
To: users@cxf.apache.org
Subject: Re: Errors while deploying Service on JBoss

<snip>
Those are info/trace messages, not error messages. You are seeing them 
tagged as errors because the JBoss logger tags anything written to 
stderr with the prefix ERROR [STDERR].

Are you using the CXF stack underneath JBossWS or by embedding the CXF 
jars in your web application? It looks to me like the latter. If so  
then you need to change your app so that its output is explicitly 
directed to the JBoss logger rather than via stderr. Alternatively, you 
can just ignore the ERROR [STDERR] at the front and check the message 
for an ERROR, WARN or INFO tag (clearly, looking at message 2, CXF does 
not always append an INFO tag so you may need to apply some discretion).

regards,


Andrew Dinn
-----------

Re: Errors while deploying Service on JBoss

Posted by Suneet Shah <su...@gmail.com>.
Thanks Andrew


Andrew Dinn wrote:
> On 07/24/2009 01:53 PM, Suneet Shah wrote:
>> Hi Andrew
>>
>> thanks. We are embedding CXF jars into our web application.  Is one 
>> approach better than the other?
>>
>> Regards
>> Suneet
>
> Well, I am probably not the best person to ask for an objective 
> opinion as I work for JBoss.
>
> If you want to know more you probably ought to consult the JBossWS 
> project page where there is a FAQ, Wiki and forum which explains all.
>
>   http://www.jboss.org/jbossws
>
> regards,
>
>
> Andrew Dinn
> -----------
>

RE: Annotation for Input-output parameter?

Posted by Bruno Melloni <Br...@chickasaw.net>.
It wasn't.  And great question!  It was the critical clue.  I manually imported javax.xml.ws.Holder (strangely, Eclipse wasn't smart enough to find it in the classpath with <ctrl><space>) and used:

"MBResult getWorkUnit2(@WebParam(name="mbWorkUnit", mode=WebParam.Mode.INOUT)Holder<MBWorkUnit> mbWorkUnit);"

Works like a charm.

I also discovered that the Sun javadocs for javax.xml.ws contain no information whatsoever.  It is depressing to see how low Sun's documentation has fallen :(

b.


-----Original Message-----
From: Andreas Veithen [mailto:andreas.veithen@gmail.com] 
Sent: Thursday, September 24, 2009 1:33 PM
To: users@cxf.apache.org
Subject: Re: Annotation for Input-output parameter?

Does MBWorkUnit extend javax.xml.ws.Holder?

Andreas

On Thu, Sep 24, 2009 at 18:46, Bruno Melloni
<Br...@chickasaw.net> wrote:
> I am making a call like the one below, where mbWorkUnit 'should be' an input-output parameter.  The behavior that I observed is that data is passed in, but values set by the implementation are not returned.  My guess is that I am missing an annotation.  I tried to add 'mode="WebParam.Mode.INOUT' to the @WebParam clause, but that caused the compile error: Syntax error on token "mbWorkUnit".
>
> Can someone point me in the right direction?
>
>
>  MBResult getWorkUnit(@WebParam(name="mbWorkUnit")MBWorkUnit mbWorkUnit);
>
> Thanks,
>
> b.
>


Re: Annotation for Input-output parameter?

Posted by Andreas Veithen <an...@gmail.com>.
Does MBWorkUnit extend javax.xml.ws.Holder?

Andreas

On Thu, Sep 24, 2009 at 18:46, Bruno Melloni
<Br...@chickasaw.net> wrote:
> I am making a call like the one below, where mbWorkUnit 'should be' an input-output parameter.  The behavior that I observed is that data is passed in, but values set by the implementation are not returned.  My guess is that I am missing an annotation.  I tried to add 'mode="WebParam.Mode.INOUT' to the @WebParam clause, but that caused the compile error: Syntax error on token "mbWorkUnit".
>
> Can someone point me in the right direction?
>
>
>  MBResult getWorkUnit(@WebParam(name="mbWorkUnit")MBWorkUnit mbWorkUnit);
>
> Thanks,
>
> b.
>

Annotation for Input-output parameter?

Posted by Bruno Melloni <Br...@chickasaw.net>.
I am making a call like the one below, where mbWorkUnit 'should be' an input-output parameter.  The behavior that I observed is that data is passed in, but values set by the implementation are not returned.  My guess is that I am missing an annotation.  I tried to add 'mode="WebParam.Mode.INOUT' to the @WebParam clause, but that caused the compile error: Syntax error on token "mbWorkUnit".

Can someone point me in the right direction?  


  MBResult getWorkUnit(@WebParam(name="mbWorkUnit")MBWorkUnit mbWorkUnit);

Thanks,

b.

Re: Errors while deploying Service on JBoss

Posted by Andrew Dinn <an...@googlemail.com>.
On 07/24/2009 01:53 PM, Suneet Shah wrote:
> Hi Andrew
>
> thanks. We are embedding CXF jars into our web application.  Is one 
> approach better than the other?
>
> Regards
> Suneet

Well, I am probably not the best person to ask for an objective opinion 
as I work for JBoss.

If you want to know more you probably ought to consult the JBossWS 
project page where there is a FAQ, Wiki and forum which explains all.

   http://www.jboss.org/jbossws

regards,


Andrew Dinn
-----------

Re: Errors while deploying Service on JBoss

Posted by Suneet Shah <su...@gmail.com>.
Hi Andrew

thanks. We are embedding CXF jars into our web application.  Is one 
approach better than the other?

Regards
Suneet


Andrew Dinn wrote:
> On 07/24/2009 06:12 AM, Suneet Shah wrote:
>> Hi Dan
>>
>> I added the portName, but I am still getting some errors but the one 
>> related to the port is now gone.
>>
>> Any thought how I can get past them?
>>
>> On my OrganizationDataWebServiceImpl I have the following annotation:
>>
>> @WebService(endpointInterface="org.openiam.idm.srvc.org.service.OrganizationDataService", 
>>
>>        targetNamespace="urn:idm.openiam.org/srvc/org/service",
>>        portName = "OrganizationDataWebServicePort",
>>        serviceName="OrganizationDataWebService")
>>
>> INFO: Creating Service 
>> {urn:idm.openiam.org/srvc/org/service}OrganizationDataWebService from 
>> class org.openiam.idm.srvc.org.service.OrganizationDataService
>> 01:09:23,486 ERROR [STDERR] Jul 24, 2009 1:09:23 AM 
>> org.apache.cxf.endpoint.ServerImpl initDestination
>> INFO: Setting the server's publish address to be 
>> /idmsrvc/OrganizationDataService
>> 01:09:23,560 ERROR [STDERR] Jul 24, 2009 1:09:23 AM 
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean 
>> buildServiceFromClass
>
> Those are info/trace messages, not error messages. You are seeing them 
> tagged as errors because the JBoss logger tags anything written to 
> stderr with the prefix ERROR [STDERR].
>
> Are you using the CXF stack underneath JBossWS or by embedding the CXF 
> jars in your web application? It looks to me like the latter. If so  
> then you need to change your app so that its output is explicitly 
> directed to the JBoss logger rather than via stderr. Alternatively, 
> you can just ignore the ERROR [STDERR] at the front and check the 
> message for an ERROR, WARN or INFO tag (clearly, looking at message 2, 
> CXF does not always append an INFO tag so you may need to apply some 
> discretion).
>
> regards,
>
>
> Andrew Dinn
> -----------
>

Re: Errors while deploying Service on JBoss

Posted by Andrew Dinn <an...@googlemail.com>.
On 07/24/2009 06:12 AM, Suneet Shah wrote:
> Hi Dan
>
> I added the portName, but I am still getting some errors but the one 
> related to the port is now gone.
>
> Any thought how I can get past them?
>
> On my OrganizationDataWebServiceImpl I have the following annotation:
>
> @WebService(endpointInterface="org.openiam.idm.srvc.org.service.OrganizationDataService", 
>
>        targetNamespace="urn:idm.openiam.org/srvc/org/service",
>        portName = "OrganizationDataWebServicePort",
>        serviceName="OrganizationDataWebService")
>
> INFO: Creating Service 
> {urn:idm.openiam.org/srvc/org/service}OrganizationDataWebService from 
> class org.openiam.idm.srvc.org.service.OrganizationDataService
> 01:09:23,486 ERROR [STDERR] Jul 24, 2009 1:09:23 AM 
> org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be 
> /idmsrvc/OrganizationDataService
> 01:09:23,560 ERROR [STDERR] Jul 24, 2009 1:09:23 AM 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean 
> buildServiceFromClass

Those are info/trace messages, not error messages. You are seeing them 
tagged as errors because the JBoss logger tags anything written to 
stderr with the prefix ERROR [STDERR].

Are you using the CXF stack underneath JBossWS or by embedding the CXF 
jars in your web application? It looks to me like the latter. If so  
then you need to change your app so that its output is explicitly 
directed to the JBoss logger rather than via stderr. Alternatively, you 
can just ignore the ERROR [STDERR] at the front and check the message 
for an ERROR, WARN or INFO tag (clearly, looking at message 2, CXF does 
not always append an INFO tag so you may need to apply some discretion).

regards,


Andrew Dinn
-----------

Re: Errors while deploying Service on JBoss

Posted by Suneet Shah <su...@gmail.com>.
Hi Dan

I added the portName, but I am still getting some errors but the one 
related to the port is now gone.

 Any thought how I can get past them?

On my OrganizationDataWebServiceImpl I have the following annotation:

@WebService(endpointInterface="org.openiam.idm.srvc.org.service.OrganizationDataService",
        targetNamespace="urn:idm.openiam.org/srvc/org/service",
        portName = "OrganizationDataWebServicePort",
        serviceName="OrganizationDataWebService")

INFO: Creating Service 
{urn:idm.openiam.org/srvc/org/service}OrganizationDataWebService from 
class org.openiam.idm.srvc.org.service.OrganizationDataService
01:09:23,486 ERROR [STDERR] Jul 24, 2009 1:09:23 AM 
org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be 
/idmsrvc/OrganizationDataService
01:09:23,560 ERROR [STDERR] Jul 24, 2009 1:09:23 AM 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean 
buildServiceFromClass


Thanks
Suneet


Daniel Kulp wrote:
> In your @WebService annotation on your OrganizationDataServiceImpl class, make 
> sure you have a portName="OrganizationDataServicePort" attribute.   That 
> should fix it.  
>
> Dan
>
> On Thu July 23 2009 1:16:06 am Suneet Shah wrote:
>   
>> Hello
>>
>> I am getting the following error messages in my JBoss log when I deploy
>> my services which are using JAX-WS annotations.
>>
>> 10:21:34,659 ERROR [STDERR] Jul 22, 2009 10:21:34 AM
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>> buildServiceFromWSDL
>> INFO: Creating Service
>> {urn:idm.org/srvc/org/service}OrganizationDataWebService from WSDL:
>> WEB-INF/wsdl/OrganizationDataService.wsdl
>> 10:21:35,407 ERROR [STDERR] Jul 22, 2009 10:21:35 AM
>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory createEndpoint
>> WARNING: Could not find endpoint/port for
>> {urn:idm.openiam.org/srvc/org/service}OrganizationDataServiceImplPort in
>> wsdl. Using {urn:idm.org/srvc/org/service}OrganizationDataServicePort.
>> 10:21:35,414 ERROR [STDERR] Jul 22, 2009 10:21:35 AM
>> org.apache.cxf.endpoint.ServerImpl initDestination
>>
>>
>> Any thoughts on what may be causing these and how I can resolve it?
>>
>> Thanks
>> Suneet
>>     
>
>   

Re: Errors while deploying Service on JBoss

Posted by Daniel Kulp <dk...@apache.org>.
In your @WebService annotation on your OrganizationDataServiceImpl class, make 
sure you have a portName="OrganizationDataServicePort" attribute.   That 
should fix it.  

Dan

On Thu July 23 2009 1:16:06 am Suneet Shah wrote:
> Hello
>
> I am getting the following error messages in my JBoss log when I deploy
> my services which are using JAX-WS annotations.
>
> 10:21:34,659 ERROR [STDERR] Jul 22, 2009 10:21:34 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromWSDL
> INFO: Creating Service
> {urn:idm.org/srvc/org/service}OrganizationDataWebService from WSDL:
> WEB-INF/wsdl/OrganizationDataService.wsdl
> 10:21:35,407 ERROR [STDERR] Jul 22, 2009 10:21:35 AM
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory createEndpoint
> WARNING: Could not find endpoint/port for
> {urn:idm.openiam.org/srvc/org/service}OrganizationDataServiceImplPort in
> wsdl. Using {urn:idm.org/srvc/org/service}OrganizationDataServicePort.
> 10:21:35,414 ERROR [STDERR] Jul 22, 2009 10:21:35 AM
> org.apache.cxf.endpoint.ServerImpl initDestination
>
>
> Any thoughts on what may be causing these and how I can resolve it?
>
> Thanks
> Suneet

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog