• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO WebServices AxisFault
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO WebServices AxisFault


  • Subject: Re: WO WebServices AxisFault
  • From: Kieran Kelleher <email@hidden>
  • Date: Sat, 07 May 2011 20:34:29 -0400

That is not what he is looking for exactly.

Just paste the following code into your over-ride of ERXExtensions.didFinishLaunching() in your Application class and set logging to INFO or DEBUG for your Application class. Then start your app and grab the classpath info from the console/log output.


        // Output classpaths
        if (log.isInfoEnabled()) {
            // Classpath debugging
            // When launched by wotaskd in deployment, the classpath property is
            // com.webobjects.classpath
            String classpath = ERXProperties.stringForKey("com.webobjects.classpath");

            // When launched manually or from within IDE, the classpath is the
            // regular java.class.path
            if (classpath == null) {
                classpath = ERXProperties.stringForKey("java.class.path");
            } // ~ if (classpath == null)

            // Clean it up so a dir prints on each line of console or log file
            if (classpath != null) {
                classpath = classpath.replace(':', '\n');
            } // ~ if (classpath != null)

            log.info("java app classpath = \n" + classpath);

            // Also, we have the boot class path to contend with, so output that
            // since variations in that can cause JCE encryption classes to not be found
            classpath = ERXProperties.stringForKey("sun.boot.class.path");

            if (classpath != null) {
            	classpath = classpath.replace(':', '\n');
			}

            log.info("sun boot classpath = \n" + classpath);
        }




On May 7, 2011, at 3:19 PM, JR Ruggentaler wrote:

>
> On 2011-05-07, at 5:27 AM, Lachlan Deck wrote:
>
>> What's your classpath?
>> Axis 1.4 is what you want for WO5.4.3, Axis 1.1 (I believe) for WO5.3.x
> I have WO version 5.4.3 installed. Axis Implementation-Version: 1.4 1855 April 22 2006. I don't think Wonder includes Axis but it does include xml-apis-xerces-2.9.1.jar.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
> 	<classpathentry kind="src" path="Sources"/>
> 	<classpathentry kind="con" path="WOFramework/ERExtensions"/>
> 	<classpathentry kind="con" path="WOFramework/ERJars"/>
> 	<classpathentry kind="con" path="WOFramework/ERPrototypes"/>
> 	<classpathentry kind="con" path="WOFramework/JavaWOExtensions"/>
> 	<classpathentry kind="con" path="WOFramework/WOOgnl"/>
> 	<classpathentry kind="con" path="WOFramework/JavaEOAccess"/>
> 	<classpathentry kind="con" path="WOFramework/JavaEOControl"/>
> 	<classpathentry kind="con" path="WOFramework/JavaFoundation"/>
> 	<classpathentry kind="con" path="WOFramework/JavaJDBCAdaptor"/>
> 	<classpathentry kind="con" path="WOFramework/JavaWebObjects"/>
> 	<classpathentry kind="con" path="WOFramework/JavaWebServicesClient"/>
> 	<classpathentry kind="con" path="WOFramework/JavaWebServicesSupport"/>
> 	<classpathentry kind="con" path="WOFramework/JavaXML"/>
> 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> 	<classpathentry kind="con" path="WOFramework/Ajax"/>
> 	<classpathentry kind="con" path="WOFramework/MPVAppServices"/>
> 	<classpathentry kind="con" path="WOFramework/MPVBusinessLogic"/>
> 	<classpathentry kind="con" path="WOFramework/MPVCoreServices"/>
> 	<classpathentry kind="con" path="WOFramework/MPVHelp"/>
> 	<classpathentry kind="con" path="WOFramework/MPVMohawkComponents"/>
> 	<classpathentry kind="con" path="WOFramework/MPVReports"/>
> 	<classpathentry kind="con" path="WOFramework/MPVWebComponents"/>
> 	<classpathentry kind="con" path="WOFramework/OracleJDBCClient"/>
> 	<classpathentry kind="con" path="WOFramework/JavaMail"/>
> 	<classpathentry kind="con" path="WOFramework/ThirdPartyJars"/>
> 	<classpathentry kind="con" path="WOFramework/ERPDFGeneration"/>
> 	<classpathentry kind="output" path="bin"/>
> </classpath>
>
> JR
>>
>> On 07/05/2011, at 2:59 AM, JR Ruggentaler wrote:
>>
>>> I have a WO App that provides a WO/Axis WebService interface. This works in production and I wanted to add some new services. We recently added Wonder to our applications and the app stills works (Browser and WebService) in production. When I start the app in my development environment (eclipse WOLips) the web interface works but the web service does not. When I enter the URL to the WSDL in my browser I get the exception below. This seems like it could be some sort of version/jar conflict. We are running Java 1.5 in production and I have a MacBook Pro OS X 10.6.7 for development. Anyone encountered this exception? Is WO WebService still being developed/used or is this dead and REST is the way to go?
>>>
>>> [2011-5-6 11:13:38 CDT] <WorkerThread10> AxisFault
>>> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>>> faultSubcode:
>>> faultString: org.xml.sax.SAXParseException: Premature end of file.
>>> faultActor:
>>> faultNode:
>>> faultDetail:
>>> 	{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file.
>>> 	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
>>> 	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>>> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>>> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>>> 	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
>>> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>>> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>>> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>>> 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>>> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>>> 	at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
>>> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>>> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
>>> 	at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:471)
>>> 	at com.webobjects.appserver._private.WOWebService.performActionNamed(WOWebService.java:414)
>>> 	at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
>>> 	at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
>>> 	at com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequest(WOWebServiceRequestHandler.java:109)
>>> 	at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>> 	at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
>>> 	at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)
>>> 	at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>> 	at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>> 	at java.lang.Thread.run(Thread.java:680)
>>>
>>> 	{http://xml.apache.org/axis/}hostname:strongbow
>>>
>>> JR _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>> with regards,
>> -
>>
>> Lachlan Deck
>>
>>
>>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WO WebServices AxisFault
      • From: JR Ruggentaler <email@hidden>
References: 
 >WO WebServices AxisFault (From: JR Ruggentaler <email@hidden>)
 >Re: WO WebServices AxisFault (From: Lachlan Deck <email@hidden>)
 >Re: WO WebServices AxisFault (From: JR Ruggentaler <email@hidden>)

  • Prev by Date: Re: Ideas? Weird WOWorkerThread hang on Solaris
  • Next by Date: Re: InOverMyHead {"obviously"};
  • Previous by thread: Re: WO WebServices AxisFault
  • Next by thread: Re: WO WebServices AxisFault
  • Index(es):
    • Date
    • Thread