axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Haller <Mike.Hal...@Innovations.de>
Subject org.apache.axis.ConfigurationException: No service named is available
Date Wed, 18 May 2005 14:15:35 GMT
Hey all,

i'm trying to connect to a self-developed web service from a jsp page.

The web service is deployed in the same tomcat and is working.
I can successfully use Axis: http://../../ServiceName?method=getVersion
I can use a java console application to call getVersion() on my service.

However, trying to use the webservice from within a JSP page, it results 
in the following exception.

I think it has something to do with the client-config.wsdd.
Since the service is defined there.
It is found in standalone mode, but I think that he might have problems 
getting it in Tomcat. The classpath where client-config.wsdd resides, is 
added to the Tomcat classpath (in the Sysdeo Tomcat Eclipse Plugin).

If anyone has a tipp, a comment or anything. Please let me know :-)

regards
Mike



---------CLIENT-CODE IN JSP:------------------

		<% Retriever retriever = new Retriever(); %>
		<%=retriever.getVersion();%>


---------RETRIEVER:------------------


       Service service = new Service();
          // I gave him the service name here for testing,
          // but didn't help.
          //  new QName("","ServiceName");
       call = (Call) service.createCall();
       call.setOperationStyle(Style.WRAPPED);
       call.setOperationUse(Use.LITERAL);
       call.setUsername(username);
       call.setPassword(password);
       call.setTargetEndpointAddress(endpoint); // endpoint is correct
       call.setOperation("GetVersion");
       Object obj = call.invoke(new Object[] { someParameters });



--------VERSIONS---------------


Java 1.4.2_06, running on Windows 2000
Tomcat 5.0.30, running in Eclipse 3.1M7
Axis 1.2 final, running in same Tomcat
Struts 1.2, running in same Tomcat


---------EXCEPTION:------------------


15:57:16,984 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] 
org.apache.axis.i18n.resource::handleGetObject(engineFactory)
15:57:16,984 DEBUG 
[org.apache.axis.configuration.EngineConfigurationFactoryFinder] Got 
EngineFactory: 
org.apache.axis.configuration.EngineConfigurationFactoryDefault
15:57:16,984 DEBUG [org.apache.axis.AxisEngine] Enter: AxisEngine::init
15:57:17,000 DEBUG [org.apache.axis.AxisEngine] Exit: AxisEngine::init
15:57:17,000 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] 
org.apache.axis.i18n.resource::handleGetObject(transport00)
15:57:17,000 DEBUG [org.apache.axis.client.Call] Transport is 
org.apache.axis.transport.http.HTTPTransport@1e91259
15:57:17,000 DEBUG [org.apache.axis.description.OperationDesc] 
@b3951dsetReturnType(null)
15:57:17,000 DEBUG [org.apache.axis.client.Call] Enter: Call::invoke(ns, 
meth, args)
15:57:17,000 DEBUG [org.apache.axis.client.Call] operation=name:        null
returnQName: null
returnType:  null
returnClass: null
elementQName:null
soapAction:  null
style:       rpc
use:         encoded
numInParams: 0
method:null

15:57:17,000 DEBUG [org.apache.axis.client.Call] operation.getNumParams()=0
15:57:17,000 DEBUG [org.apache.axis.client.Call] Enter: 
Call::invoke(RPCElement)
15:57:17,000 DEBUG [org.apache.axis.SOAPPart] Enter: SOAPPart 
ctor(FORM_SOAPENVELOPE)
15:57:17,000 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] 
org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
15:57:17,000 DEBUG [org.apache.axis.SOAPPart] Setting current message 
form to: FORM_SOAPENVELOPE (currentMessage is now 
org.apache.axis.message.SOAPEnvelope)
15:57:17,000 DEBUG [org.apache.axis.SOAPPart] Exit: SOAPPart ctor()
15:57:17,000 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] 
org.apache.axis.i18n.resource::handleGetObject(addBody00)
15:57:17,000 DEBUG [org.apache.axis.message.SOAPBody] Adding body 
element to message...
15:57:17,000 DEBUG [org.apache.axis.client.Call] Enter: Call::invoke()
15:57:17,000 DEBUG [org.apache.axis.SOAPPart] Enter: 
SOAPPart::getAsSOAPEnvelope()
15:57:17,015 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] 
org.apache.axis.i18n.resource::handleGetObject(currForm)
15:57:17,015 DEBUG [org.apache.axis.SOAPPart] current form is 
FORM_SOAPENVELOPE
15:57:17,015 DEBUG [org.apache.axis.MessageContext] MessageContext: 
setTargetService()
15:57:17,015 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] 
org.apache.axis.i18n.resource::handleGetObject(noService10)
15:57:17,015 DEBUG [org.apache.axis.ConfigurationException] Exception:
org.apache.axis.ConfigurationException: No service named  is available
org.apache.axis.ConfigurationException: No service named  is available
	at 
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
	at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
	at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
	at org.apache.axis.client.Call.invoke(Call.java:2689)
	at org.apache.axis.client.Call.invoke(Call.java:2424)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at 
de.innovations.licenseserver.axis.Retriever.getServerStatus(Retriever.java:168)
	at 
org.apache.jsp.serverstatus_jsp._jspService(org.apache.jsp.serverstatus_jsp:77)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
	at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
	at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
	at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
	at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
	at 
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994)
	at 
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:553)
	at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:211)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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:799)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:534)
	at 
org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)
	at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)
	at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)
	at org.apache.axis.client.Call.invoke(Call.java:2689)
	at org.apache.axis.client.Call.invoke(Call.java:2424)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	at 
de.innovations.licenseserver.axis.Retriever.getServerStatus(Retriever.java:168)
	at 
org.apache.jsp.serverstatus_jsp._jspService(org.apache.jsp.serverstatus_jsp:77)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
	at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
	at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
	at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
	at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
	at 
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994)
	at 
org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:553)
	at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:211)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.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:799)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:534)
15:57:17,015 DEBUG [org.apache.axis.MessageContext] MessageContext: 
setServiceHandler(null)
15:57:17,015 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] 
org.apache.axis.i18n.resource::handleGetObject(targetService)
15:57:17,015 DEBUG [org.apache.axis.client.Call] Target service:

Mime
View raw message