My java version is:
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
The Exxeption with any GET is:
java.lang.NullPointerException
ca.ucalgary.services.SoapServlet.doGet(SoapServlet.java:109)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
And checked out that recorder==null
Jerzy
[email protected] wrote:
> Hi Jerzy,
>
> What version of Java are you using? The Java WS libraries pre-Java1.6
> update 6 are known to be essentially non-functional. Since it seems
> you're quite keen on getting this working before next week, lets continue
> this off the mailing list so as not to bore the others :-)
>
> -Paul
>
> P.S. you should only need one parameter, "wsdl", the rest is for
> interactive use. The key is to use GET, not POST, as GET vs. POST is how
> the servlet distinguished between calls to its methods and calls that
> should be passed through to the remote service.
>
>> And when I put enough number of parameters I get:
>>
>> javax.servlet.ServletException: Could not initialize class
>> com.sun.org.apache.xml.internal.resolver.CatalogManager
>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:294)
>>
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
>>
>> root cause
>>
>> java.lang.NoClassDefFoundError: Could not initialize class
>> com.sun.org.apache.xml.internal.resolver.CatalogManager
>>
>> com.sun.xml.internal.ws.util.xml.XmlUtil.createDefaultCatalogResolver(XmlUtil.java:273)
>>
>> com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:254)
>>
>> com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:217)
>>
>> com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:165)
>>
>> com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:93)
>> javax.xml.ws.Service.<init>(Service.java:56)
>> javax.xml.ws.Service.create(Service.java:680)
>> ca.ucalgary.services.SoapServlet.doPost(SoapServlet.java:202)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:597)
>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
>> java.security.AccessController.doPrivileged(Native Method)
>> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
>>
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
>>
>>
>>
>> Jerzy Orlowski wrote:
>>> For example I get messages like:
>>>
>>> The 'service' parameter (specifying the
>>> service/port/operation/action/use) did not contain 8 space-separated
>>> values as expected
>>>
>>> or NullPointerException because recorder==null
>>>
>>> Jerzy
>>>
>>>
>>> Paul Gordon wrote:
>>>> Hi Jerzy,
>>>>
>>>> I am in the middle of putting together better documentation for this,
>>>> as
>>>> it seems several people want to use it. To answer your question, the
>>>> WSDL file is provided at runtime as a parameter to the servlet, not in
>>>> the code. If you just run the servlet, the first form that pops up is
>>>> the one asking what WSDL URL you want to wrap. To by pass this, just
>>>> call a GET to the URL for the servlet with the parameter "wsdl" already
>>>> filled in. I am traveling for the next couple of days, so I won't be
>>>> able to create the minimal WAR/JAR and documentation for SoapServlet
>>>> until next week, but I can still answer any questions in the interim.
>>>>
>>>> Regards,
>>>>
>>>> Paul
>>>>
>>>> P.S. WRT complex data types, the nested members are filled in
>>>> individually, and the complex type is constructed and sent my the
>>>> servlet. If there is an array type, a text area is given and a
>>>> drop-down list of value separators made available. The only thing not
>>>> really supported right now is enumerated XML schema elements, which
>>>> should really be a combobox.
>>>>
>>>> Jerzy Orlowski wrote:
>>>>> OK. I have made one step forward...
>>>>> How do I provide the wsdl file?
>>>>>
>>>>> Jerzy
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Jerzy Orlowski wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> Currently I am stuck with
>>>>>>
>>>>>> java.lang.ClassNotFoundException:
>>>>>> org.biomoby.service.test.StringBufferServletOutputStream
>>>>>>
>>>>>> It seems that StringBufferServletOutputStream is not present in
>>>>>> ant-generated jmoby-1.1.1.jar
>>>>>>
>>>>>> Jerzy Orlowski
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Jerzy Orlowski wrote:
>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Currently I am trying to do this in Tomcat.
>>>>>>> By copying and modifying example services I managed to call
>>>>>>> SoapServlet
>>>>>>> but I am facing missing dependencies now. Could you please list all
>>>>>>> the
>>>>>>> jars I would need to include to make it run or provide any method
>>>>>>> for
>>>>>>> getting it (I suppose ant knows how to do it). I suppose I would
>>>>>>> need
>>>>>>> them in Tiny Java Web Server anyway.
>>>>>>>
>>>>>>> The second thing is what does the servlet actually do?
>>>>>>> What happens if a SOAP service has complex types as input/output?
>>>>>>> My services have complex types as input but this is mostly becaouse
>>>>>>> Python soaplib cannot take several values as input but only complex
>>>>>>> types consstructed out of several simple types (which i compose and
>>>>>>> decompose using XML splitters in Taverna)
>>>>>>>
>>>>>>> Would I be able to construct complex types using SoapServlet?
>>>>>>> Could you provide any screenshots of the program?
>>>>>>>
>>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>>>>> 30-Day
>>>>>> trial. Simplify your report design, integration and deployment - and
>>>>>> focus on
>>>>>> what you do best, core application coding. Discover what's new with
>>>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>>>>> _______________________________________________
>>>>>> taverna-hackers mailing list
>>>>>> [email protected]
>>>>>> Web site: http://www.taverna.org.uk
>>>>>> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
>>>>>> Developers Guide:
>>>>>> http://www.mygrid.org.uk/tools/developer-information
>>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>>>> 30-Day
>>>>> trial. Simplify your report design, integration and deployment - and
>>>>> focus on
>>>>> what you do best, core application coding. Discover what's new with
>>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>>>> _______________________________________________
>>>>> taverna-hackers mailing list
>>>>> [email protected]
>>>>> Web site: http://www.taverna.org.uk
>>>>> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
>>>>> Developers Guide:
>>>>> http://www.mygrid.org.uk/tools/developer-information
>>>>>
>>>>>
>>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> Scanned for malicious content. See headers for details.
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>>> 30-Day
>>>> trial. Simplify your report design, integration and deployment - and
>>>> focus on
>>>> what you do best, core application coding. Discover what's new with
>>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> taverna-hackers mailing list
>>>> [email protected]
>>>> Web site: http://www.taverna.org.uk
>>>> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
>>>> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>> 30-Day
>>> trial. Simplify your report design, integration and deployment - and
>>> focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> taverna-hackers mailing list
>>> [email protected]
>>> Web site: http://www.taverna.org.uk
>>> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
>>> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>>
>> --
>>
>> Best regards,
>>
>> Jerzy Orlowski
>> Laboratory of Bioinformatics and Protein Engineering
>> International Institute of Molecular and Cell Biology
>> Trojdena 4, Warsaw, Poland
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> taverna-hackers mailing list
>> [email protected]
>> Web site: http://www.taverna.org.uk
>> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
>> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>>
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> taverna-hackers mailing list
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information