• 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
Deploy Webservice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deploy Webservice


  • Subject: Deploy Webservice
  • From: AndrĂ© Rothe <email@hidden>
  • Date: Mon, 25 Jul 2016 13:14:56 +0200

Hi,

I'm new on WebObjects, so I try to test some things along the available
tutorials.

I have created a WO Application in Eclipse and built it as webservice. I
can compile it and start the Application.class as WOApplication:

Your application's URL is:
http://127.0.0.1:53432/cgi-bin/WebObjects/GeoCoding.woa
[2016-7-25 12:55:12 MESZ] <main> Waiting for requests...

I can call

http://127.0.0.1:53432/cgi-bin/WebObjects/GeoCoding.woa/ws/GeoCodingService?wsdl

which returns the description of the service within a browser page.
So it seems to be fine till here.

Now I compile the application with WOLips Ant Tools->Install.
There is no error, two tar.gz will be created.

I copy the archives to the target server as described here:

https://wiki.wocommunity.org/display/WEB/Your+First+Deployment

I can add an application within the JavaMonitor and the app starts
successfully.


[2016-7-25 12:42:38 MESZ] <main> The URL for webserver connect is:
http://xxxxxx/cgi-bin/WebObjects/GeoCoding.woa/-3080
[2016-7-25 12:42:38 MESZ] <main> null
[2016-7-25 12:42:38 MESZ] <main> Waiting for requests...

The LEDs are green, all is fine till here. I can click on the
application link and it returns a page

https://xxxxxx/apps/WebObjects/GeoCoding.woa/1
Hello World

Seems to work.

Now I try to get the wsdl file:

https://xxxxxx/apps/WebObjects/GeoCoding.woa/1/ws/GeoCoding?wsdl

which returns:

[2016-7-25 12:43:41 MESZ] <WorkerThread13> 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:392)
	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:161)
	at
com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequest(WOWebServiceRequestHandler.java:109)
	at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
	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:745)

	{http://xml.apache.org/axis/}hostname:xxxxxx

org.xml.sax.SAXParseException; Premature end of file.
	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
	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:161)
	at
com.webobjects.appserver._private.WOWebServiceRequestHandler.handleRequest(WOWebServiceRequestHandler.java:109)
	at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
	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:745)
Caused by: 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:392)
	at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
	... 10 more


Did I forget some libraries? Or some permissions? There is a difference
between the WebObject installation root on the dev-machine and on the
target server (/opt/Apple/ vs. /opt/WebObject543).

Any ideas?
Thanks a lot
Andre

 _______________________________________________
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


  • Prev by Date: Re: Looking for strategy
  • Next by Date: SquareUp/Square Connect v2 API implementation
  • Previous by thread: Re: Looking for strategy
  • Next by thread: Re: Deploy Webservice
  • Index(es):
    • Date
    • Thread