It looks like if I have the Jetty library, it automatically tries to use Jetty 
to expose the service. That just causes a similar problem to what was discussed 
earlier in the thread, where the port specified in the location url of the wsdl 
has to be different from that of Tomcat's. With the tomcat-http-jetty present, 
if Tomcat is at port 8080 and the wsdl uses 8090, then everything actually 
works fine. With both set to 8080, hitting the service directly with url?wsdl 
gives:

org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: 
org.apache.tuscany.sca.core.runtime.ActivationException: 
org.apache.tuscany.sca.http.ServletMappingException: java.net.BindException: 
Address already in use: bind
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
...

and the client JSP gets: 

java.lang.NullPointerException
        org.apache.jsp.HelloWorld_jsp._jspService(HelloWorld_jsp.java:56)
...

where line 56 is scaDomain.getService. We are doing some preliminary testing on 
WebSphere, and it looks like the tuscany-http-tomcat does something similar in 
that environment.  


----- Original Message ----
From: Raymond Feng <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, July 30, 2007 8:46:01 PM
Subject: Re: Webapp with Web Service + SDO


Hi,

Thank you for reporting the problems. I debugged the one related to 
tuscany-databinding-sdo-axiom and just opened an issue against AXIOM :-).

http://issues.apache.org/jira/browse/WSCOMMONS-226

For the NPE related tomcat-http-jetty, can you post the stacktrace here?

Thanks,
Raymond

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 30, 2007 11:22 AM
Subject: Webapp with Web Service + SDO


> Managed to get a sample working with SDO, web services, and running in a 
> web container (Tomcat) using the latest SCA and SDO nightly build 
> binaries, and discovered that the following libraries had to be removed:
>
> tuscany-databinding-sdo-axiom
> - org.apache.axiom.om.OMException: java.util.NoSuchElementException: End 
> of stream has reached.
> tuscany-http-jetty
> - java.lang.NullPointerException
>
> Using slightly older builds, I found problems with 
> tuscany-databinding-jaxb and tuscany-http-tomcat also, but they seem fine 
> now.
>
> I will post the sample to JIRA after cleaning it up a little. 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to