Skip to main content

imported schema unreachable?

5 replies [Last post]
madwright
Offline
Joined: 2005-08-23

I've deployed the Hello World web service as suggested by Dochez in his blog and presentation e.g.
package endpoint;

import javax.jws.WebService;

@WebService
public class Hello {

public String sayHello(String param) {
return "Hello " + param;
}
}

I test web servuces by pasting the generated wsdl files into xml editors such as XMLSpy or Oxygen, which automatically produce soap messages from the wsdl. The wsdl from this service (which deployed successfully) gave a problem in that the schema referenced as an import in the wsdl could not be accessed by the programs: the schema address was given as: http://[ip address]:8080/Hello/HelloService/__container$publishing$subctx/WEB-INF/wsdl/schema1.xsd

Is this a bug?

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jfarcand
Offline
Joined: 2003-06-10

Hi Madeleine,

can you tell me which client you are using to produce that error? This is clearly a bug in the HTTP layer.

Thanks

-- Jeanfrancois

jfarcand
Offline
Joined: 2003-06-10

Ok I was able to reproduce the problem. Yoiu can use a nightly build or b21 will have the fix.

-- Jeanfrancois

madwright
Offline
Joined: 2005-08-23

Hi.

Sorry not to have replied sooner. I did try the later nightly build but then hit another problem. I didn't want to keep bothering people with issues one after another, so I decided to try the Sun AppServer version 8.1, with JAX-WS installed - and I've since been working with that.

Thanks.

Madeleine

dochez
Offline
Joined: 2003-06-10

Hi Madeleine

This should definitely work. First think to try with your browser is

http://[ip address]:8080/Hello/HelloService?WSDL

does it work,

if yes, try http://[ip address]:8080/Hello/HelloService/__container$publishing$subctx/WEB-INF/wsdl/schema1.xsd

and tell me what error you get.

if it does not work, it means that either your application is not deployed sucessfully or there is was a processing error, you need to check the domains/domain/logs/server.log for anything suspicious.

Jerome

madwright
Offline
Joined: 2005-08-23

Hi, Jerome.

Thanks. Think it must have been a glitch in the XML editor. I had no problem calling up the schema with that address. I then tried changing the absolute ip address to localhost in the wsdl editor and then it did create a SOAP message. The response to the message was an error (see below) - looks the same NullPointerException encountered with the client???

The SOAP message was:




Gandalf


Thanks for your patience!

Madeleine

org.apache.commons.httpclient.HttpException :
Sun Java System Application Server Platform Edition 9.0 - Error report


HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
	org.apache.coyote.http11.InternalOutputBuffer.sendAck(InternalOutputBuffer.java:425)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.action(ProcessorTask.java:712)
	org.apache.coyote.Response.action(Response.java:191)
	org.apache.coyote.Response.acknowledge(Response.java:321)
	org.apache.coyote.tomcat5.CoyoteResponse.sendAcknowledgement(CoyoteResponse.java:1169)
	com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:67)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:197)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:574)
	com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:451)
	com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:365)
	com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:261)
	com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
	com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:77)

note The full stack trace of the root cause is available in the Sun Java System Application Server Platform Edition 9.0 logs.



Sun Java System Application Server Platform Edition 9.0

THE LOG SAID:
[#|2005-09-26T20:28:44.195+0200|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=httpWorkerThread-8080-2;|StandardWrapperValve[HelloService]: Cannot find message associated with key standardWrapper.acknowledgeException
java.lang.NullPointerException
at org.apache.coyote.http11.InternalOutputBuffer.sendAck(InternalOutputBuffer.java:425)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.action(ProcessorTask.java:712)
at org.apache.coyote.Response.action(Response.java:191)
at org.apache.coyote.Response.acknowledge(Response.java:321)
at org.apache.coyote.tomcat5.CoyoteResponse.sendAcknowledgement(CoyoteResponse.java:1169)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:560)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:530)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:226)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:560)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:67)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:560)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:530)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:131)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:560)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:530)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:197)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:451)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:365)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:261)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:77)
|#]