cancel
Showing results for 
Search instead for 
Did you mean: 

org.apache.axis.ConfigurationException: No service named

bala_28
Champ in-the-making
Champ in-the-making
hi
    i am getting the below exceptions

org.apache.axis.ConfigurationException: No service named AuthenticationService is available
org.apache.axis.ConfigurationException: No service named AuthenticationService 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:756)
   at org.apache.axis.client.Call.invoke(Call.java:2690)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.endSession(AuthenticationServiceSoapBindingStub.java:229)
   at org.alfresco.webservice.util.AuthenticationUtils.endSession(AuthenticationUtils.java:109)

org.apache.axis.ConfigurationException: No service named http://www.alfresco.org/ws/service/authentication/1.0/endSession is available
org.apache.axis.ConfigurationException: No service named http://www.alfresco.org/ws/service/authentication/1.0/endSession 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:756)
   at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(HTTPTransport.java:89)
   at org.apache.axis.client.Transport.setupMessageContext(Transport.java:46)
   at org.apache.axis.client.Call.invoke(Call.java:2738)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)


when i deployed my application in Tomcat 7 , i had got these errors occasionally in glassfish 3 when i tried to get the content of Reference.Even i got some error like content service not available when i tried to check in .The Alfresco session is available and provided the end point address while starting the session .The questions i have are,

1) what are the reasons behind these error ?
2) how to resolve the service not found exceptions ?


i am using 3.3 community edition of alfresco.

Thanks in advance,

Bala.
6 REPLIES 6

jcustovic
Champ in-the-making
Champ in-the-making
What endpoint address are you using? It has to be http://appHost:appPort/appName/api (Example: http://localhost:8080/alfresco/api). Are other services working?

bala_28
Champ in-the-making
Champ in-the-making
hi
   Thanks for the reply.

  i am using the same format , what you had mentioned. i am getting these errors occasionally , sometimes in glassfish 3.1.In Tomcat 7 ,every time i am getting this error.some times i would get other service exceptions also , but could not guess why i am getting these errors ? some times all services are working fine and some times some are getting exceptions.

Any idea ?

Thanks
Bala.

jcustovic
Champ in-the-making
Champ in-the-making
Hm… Check that you have all dependencies  (axis.jar, commons-discovery-0.2.jar, jaxrpc.jar, wsdl4j-1.5.1.jar, wss4j.jar, bcprov-jdk15-137.jar, opensaml-1.0.1.jar, xmlsec-1.4.1.jar).
The only other thing I can think of is if you are using a domain name that it sometimes doesn't point to your alfresco (dns problem). In that case you can try using IP instead.

bala_28
Champ in-the-making
Champ in-the-making
Hi jcustovic,
 
      Thanks for reply. i have all the jars but having the same problem and i am calling the ip address only. Any guess , i am posting all the debug logs of alfresco…

Closing connection.TICKET_7397a0143a41fe013610bf967cf34a1f961ee31d
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(engineFactory)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.configuration.EngineConfigurationFactoryFinder] Got EngineFactory: org.apache.axis.configuration.EngineConfigurationFactoryDefault
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.AxisEngine] Enter: AxisEngine::init
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.AxisEngine] Exit: AxisEngine::init
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(transport00)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.client.Call] Transport is org.apache.axis.transport.http.HTTPTransport@182aacf
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.client.Call] Enter: Call::invoke(ns, meth, args)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.client.Call] operation=name:        endSession
returnQName: null
returnType:  {http://xml.apache.org/axis/}Void
returnClass: null
elementQName:null
soapAction:  null
style:       wrapped
use:         literal
numInParams: 1
method:null
ParameterDesc[0]:
  name:       {http://www.alfresco.org/ws/service/authentication/1.0}ticket
  typeEntry:  null
  mode:       IN
  position:   0
  isReturn:   false
  typeQName:  {http://www.w3.org/2001/XMLSchema}string
  javaType:   class java.lang.String
  inHeader:   false
  outHeader:  false

FaultDesc[0]:
  name: null
  qname: {http://www.alfresco.org/ws/service/authentication/1.0}AuthenticationFault
  type: {http://www.alfresco.org/ws/service/authentication/1.0}AuthenticationFault
  Class: org.alfresco.webservice.authentication.AuthenticationFault


[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.client.Call] operation.getNumParams()=1
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.client.Call] getParamList number of params: 1
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.client.Call] Enter: Call::invoke(RPCElement)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.SOAPPart] Enter: SOAPPart ctor(FORM_SOAPENVELOPE)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(setMsgForm)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.SOAPPart] Setting current message form to: FORM_SOAPENVELOPE (currentMessage is now org.apache.axis.message.SOAPEnvelope)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.SOAPPart] Exit: SOAPPart ctor()
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(addBody00)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.message.SOAPBody] Adding body element to message…
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.client.Call] Enter: Call::invoke()
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.MessageContext] MessageContext: setTargetService(AuthenticationService)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.i18n.ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(noService10)
[2011-03-02 11:20:30,593] DEBUG [org.apache.axis.ConfigurationException] Exception: 
org.apache.axis.ConfigurationException: No service named AuthenticationService is available
org.apache.axis.ConfigurationException: No service named AuthenticationService 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:756)
   at org.apache.axis.client.Call.invoke(Call.java:2690)
   at org.apache.axis.client.Call.invoke(Call.java:2443)
   at org.apache.axis.client.Call.invoke(Call.java:2366)
   at org.apache.axis.client.Call.invoke(Call.java:1812)
   at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.endSession(AuthenticationServiceSoapBindingStub.java:229)
        at org.alfresco.webservice.util.AuthenticationUtils.endSession(AuthenticationUtils.java:109)

could any one help me with this ?


Thanks
Bala.

mrogers
Star Contributor
Star Contributor
These "debugs" are from your client application rather than Alfresco aren't they?

The first thing to look at would be whether Alfresco is running.    Or possibly not accepting new connections.
Are there corresponding errors logged in Alfresco at or around the same time?

It may also help if you could post a snippet of your code showing how you are calling the web services.

bala_28
Champ in-the-making
Champ in-the-making
Hi Mrogers,

               Thanks for the reply,

  The debug logs are from the client side of application and not of alfresco , i had checked the alfresco logs and there is no such errors present there.

Code Used to start a session,



         // setSessionProperties();
         logger.debug("Connecting to: " + "http://" + server_host
               + ":" + server_port + "/alfresco");

         WebServiceFactory.setEndpointAddress("http://" + server_host + ":"
               + server_port + "/alfresco/api");

                         //server host is an ip address

         //set infinite time out
         WebServiceFactory.setTimeoutMilliseconds(0);
         //start session
         AuthenticationUtils.startSession(server_username, server_password);


Code to get content,
          

                        Reference reference = new Reference(STORE, null, emscmsFile.getCmsPath());
                                   Predicate itemsToCheckOut = new Predicate(
                            new Reference[] { reference }, null, null);               
                    Content[] contents = WebServiceFactory.getContentService().read(itemsToCheckOut, Constants.TYPE_CONTENT);
                    if(contents != null){
                        InputStream inputStream = ContentUtils.getContentAsInputStream(contents[0]);
          

Code to End Session,

         

           logger.debug("Closing connection."
                + AuthenticationUtils.getTicket());
        if (AuthenticationUtils.getTicket() != null)
            AuthenticationUtils.endSession();
          

These are some codes i am using , let me know if you need more info.

Thanks,
Bala.