Hi Tim,
It looks like it's not finding the schema file. Where did you put the schema file in the web application? The path you supply is supposed to be relative to the application's /WEB-INF directory, and the code actually uses a ServletContext.getResourceAsStream() call with the path "/WEB-INF" + your-schema-path.
Some better error handling would obviously be worthwhile here. :-[ Let me know if this tells you what went wrong.
- Dennis
Tim Sawyer wrote:
Any clues on this?
Cheers,
Tim.
On Wednesday 15 Dec 2004 11:51, Tim Sawyer wrote:
Hi.
When I try and reference http://localhost:8080/core-web-services/LoginApplication?wsdl I get the following error.
java.lang.IllegalArgumentException: InputStream cannot be null at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at org.jibx.soap.server.ServiceDefinition.getDefinitions(ServiceDefinition.jav a:354) at org.jibx.soap.server.SOAPServlet.doGet(SOAPServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC hain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j ava:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex tValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j ava:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:13 7) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11 7) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte xt.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn ection(Http11Protocol.java:702) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:644) at java.lang.Thread.run(Thread.java:534)
My service is defined as:
<service name="LoginApplication"> <schema>LoginApplication.xsd</schema> <wsdl-uri>http://ws.company.com/wsdl</wsdl-uri>
<handler-class>com.company.webservices.providers.LoginSessionProvider</hand ler-class> <operation method="LoginApplication"/> </service>
And the transaction works fine, it's just the wsdl I can't see.
LoginApplication.xsd is:
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ws.company.com/LoginSession" xmlns:tns="http://ws.company.com/test" elementFormDefault="qualified">
<element name="LoginApplicationCallParameter"> <complexType> <attribute name="password" type="xsd:string"/> <attribute name="userName" type="xsd:string"/> </complexType> </element>
<element name="LoginApplicationResponseParameter"> <complexType> <attribute name="applicationDate" type="xsd:dateTime"/> <attribute name="securityToken" type="xsd:string"/> <attribute name="userName" type="xsd:string"/> </complexType> </element> </schema>
Any ideas where I've gone wrong?
Tim.
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
