You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Snigdha Pandit <Sn...@NIIT.com> on 2002/06/13 08:06:01 UTC

Cannot deploy StockQuote service

hi,

I need axis to make SOAP send and receive calls from Microsoft Exchange
Server. 

I followed the following steps 
1. I downloaded axis beta 2 and copied the following entries in
webapps\axis\WEB-INF\web.xml to the web.xml for our app.

	<servlet>
  	  	<servlet-name>AxisServlet</servlet-name>
   	 	<display-name>Apache-Axis Servlet</display-name>
    	<servlet-class>
     	   org.apache.axis.transport.http.AxisServlet
    	</servlet-class>
	</servlet>
 
	  <servlet>
	    <servlet-name>AdminServlet</servlet-name>
	    <display-name>Axis Admin Servlet</display-name>
	    <servlet-class>
		org.apache.axis.transport.http.AdminServlet
	    </servlet-class>
	    <load-on-startup>100</load-on-startup>
	  </servlet>
	  <servlet-mapping>
	    <servlet-name>AxisServlet</servlet-name>
	    <url-pattern>/servlet/AxisServlet</url-pattern>
	  </servlet-mapping>

	  <servlet-mapping>
	    <servlet-name>AxisServlet</servlet-name>
	    <url-pattern>*.jws</url-pattern>
	  </servlet-mapping>

	  <servlet-mapping>
	    <servlet-name>AxisServlet</servlet-name>
	    <url-pattern>/services/*</url-pattern>
	  </servlet-mapping>


2. I copied the entire samples folder from webapps\axis\WEB-INF\classes to
the classes folder in my app
3. I copied the all the file from webapps\axis\WEB-INF\lib folder to the lib
folder in my app

Now, when I try to deploy the stockquote service using the following command
	java org.apache.axis.client.AdminClient -l
http://localhost:8080/engWeb/services/AdminService deploy.wsdd

I get the following error
        stackTrace: org.xml.sax.SAXParseException: White space is required
between the public identifier and the system identifier. 

	- Processing file deploy.wsdd
	- AxisFault: AxisFault
	 faultCode: http://xml.apache.org/axis/:Server.userException
	 faultString: org.xml.sax.SAXParseException: White space is required
between the public identifier and the system identifier.
	 faultActor: null
	 faultDetail:
	        stackTrace: org.xml.sax.SAXParseException: White space is
required between the public identifier and the system identifier.
		        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
		        at
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.
java:651)
		        at
org.apache.xerces.framework.XMLDTDScanner.scanExternalID(XMLDTDScanner.java:
1198)
		        at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
:1104)
		        at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
anner.java:2145)
		        at
org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.j
ava:2100)
		        at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:720)
		        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
		        at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
		        at
javax.xml.parsers.SAXParser.parse(SAXParser.java:393)
		        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:202)
		        at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
		        at
org.apache.axis.client.Call.invoke(Call.java:1919)
		        at
org.apache.axis.client.Call.invoke(Call.java:1155)
		        at
org.apache.axis.client.AdminClient.process(AdminClient.java:313)
		        at
org.apache.axis.client.AdminClient.process(AdminClient.java:292)
		        at
org.apache.axis.client.AdminClient.process(AdminClient.java:299)
		        at
org.apache.axis.client.AdminClient.process(AdminClient.java:250)
		        at
org.apache.axis.client.AdminClient.main(AdminClient.java:335)

Interestingly, the console window where the server is running shows the
following error
[6/13/02 9:48:00:848 GMT+05:30] 2fa58d57 WebGroup      I SRVE0091I: [Servlet
LOG]: AxisServlet: init
[6/13/02 9:48:13:192 GMT+05:30] 2fa58d57 WebGroup      X Servlet Error:
javax.xml.parsers.SAXParser: method
parse&#40;Lorg/xml/sax/InputSource&#59;Lorg/xml/sax/helpers/DefaultHandler&#
59;&#41;V not found: java.lang.NoSuchMethodError:
javax.xml.parsers.SAXParser: method
parse(Lorg/xml/sax/InputSource;Lorg/xml/sax/helpers/DefaultHandler;)V not
found
	at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:202)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:306)
	at
org.apache.axis.handlers.soap.SOAPService$SOAPRequestHandler.invoke(SOAPServ
ice.java:138)
	at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:288)
	at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:576)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:827)
	at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:167)
	at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:297)
	at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:110)
	at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
2)
	at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:1012)
	at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:913)
	at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:523)
	at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:282)
	at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:112)
	at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
	at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:184)
	at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)
	at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:122)
	at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:315)
	at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
va:60)
	at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
	at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)


If I remove the default Namespace declaration, parsing is successful but the
call function fails and I get the following trace

	- Processing file deploy.wsdd
	- AxisFault: AxisFault
	 faultCode: http://xml.apache.org/axis/:Call.invoke
	 faultString: Cannot invoke Call with null namespace URI for method
deployment
	 faultActor: null
	 faultDetail:
	        stackTrace: Cannot invoke Call with null namespace URI for
method deployment
		        at
org.apache.axis.client.Call.invoke(Call.java:1862)
		        at
org.apache.axis.client.Call.invoke(Call.java:1155)
		        at
org.apache.axis.client.AdminClient.process(AdminClient.java:313)
		        at
org.apache.axis.client.AdminClient.process(AdminClient.java:292)
		        at
org.apache.axis.client.AdminClient.process(AdminClient.java:299)
		        at
org.apache.axis.client.AdminClient.process(AdminClient.java:250)
		        at
org.apache.axis.client.AdminClient.main(AdminClient.java:335)




I am using Websphere Studio Application Developer. It uses WAS HTTP Server
and WAS Application Server.


Can anyone guide me as to how I can deploy the stockquote service.

thanks and regards,
snigdha

Power your enterprise with custom solutions in eLearning and Knowledge
Management from NIIT - Knowledge Solutions. For details visit our website
http://www.ksb.niit.com 

___________________NOTICE____________________________ 
This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited. If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of NIIT shall be
understood to be neither given nor endorsed by NIIT When addressed to NIIT
clients, any information contained in this e-mail is subject to the terms
and conditions in the governing client contract.