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 Dave Searle <da...@davesearle.co.uk> on 2003/04/10 03:27:43 UTC

RE: Peer to Peer Web Service

Hi Larry,
 
Take a look at JXTA. This may meet your requirements
 
Dave

-----Original Message-----
From: Larry Edwardson [mailto:bunnys@tpg.com.au] 
Sent: 10 April 2003 08:35
To: axis-user@ws.apache.org
Subject: Peer to Peer Web Service


Hello, hope someone can help.
I am trying to implement a peer to peer model using Axis, I have two
versions of the same Web Service running on different ports on my local
machine, I start a search from the first, which calls the second Web
service and so on, when the second Web Service tries to call a third Web
Service Axis throws this
 
java.lang.ExceptionInInitializerError
 at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.
java:218)
 at org.apache.axis.AxisEngine.init(AxisEngine.java:185)
 at org.apache.axis.AxisEngine.<init>(AxisEngine.java:170)
 at org.apache.axis.client.AxisClient.<init>(AxisClient.java:88)
 at org.apache.axis.client.Service.getAxisClient(Service.java:140)
 at org.apache.axis.client.Service.<init>(Service.java:149)
 at
com.viewdu.service.VWebServiceHandler.<init>(VWebServiceHandler.java:95)
 at com.viewdu.service.VDNavTreeSearch.run(VDNavTreeSearch.java:85)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
 at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:555)
 at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:289)
 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
 at
org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76)
 at
org.apache.axis.ConfigurationException.<clinit>(ConfigurationException.j
ava:84)
 ... 8 more
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
 at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:420)
 at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:548)
 ... 12 more
Caused by: org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
 at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:416)
 ... 13 more
 
Is it possible for a remote method to call another Service method, or am
I barking up the wrong tree or just barking mad.
It seems one can only use one instance of the Axis engine.
 
Any comments will be gladley recieved.


RE: Peer to Peer Web Service

Posted by Larry Edwardson <bu...@tpg.com.au>.
MessageMost of app works fine with Axis, when I said Peer to Peer, it was
just a way to explain my search model, it calls a Web Service which in turn
tries to call another by creating a new Service Object, when I call:
service = new Service();
that's when Axis falls over, if JXTA implemented the Soap protocol for it's
transport that might of been an option.

  -----Original Message-----
  From: Dave Searle [mailto:dave@davesearle.co.uk]
  Sent: Thursday, April 10, 2003 4:28 AM
  To: axis-user@ws.apache.org
  Subject: RE: Peer to Peer Web Service


  Hi Larry,

  Take a look at JXTA. This may meet your requirements

  Dave
    -----Original Message-----
    From: Larry Edwardson [mailto:bunnys@tpg.com.au]
    Sent: 10 April 2003 08:35
    To: axis-user@ws.apache.org
    Subject: Peer to Peer Web Service


    Hello, hope someone can help.
    I am trying to implement a peer to peer model using Axis, I have two
versions of the same Web Service running on different ports on my local
machine, I start a search from the first, which calls the second Web service
and so on, when the second Web Service tries to call a third Web Service
Axis throws this

    java.lang.ExceptionInInitializerError
     at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java
:218)
     at org.apache.axis.AxisEngine.init(AxisEngine.java:185)
     at org.apache.axis.AxisEngine.<init>(AxisEngine.java:170)
     at org.apache.axis.client.AxisClient.<init>(AxisClient.java:88)
     at org.apache.axis.client.Service.getAxisClient(Service.java:140)
     at org.apache.axis.client.Service.<init>(Service.java:149)
     at
com.viewdu.service.VWebServiceHandler.<init>(VWebServiceHandler.java:95)
     at com.viewdu.service.VDNavTreeSearch.run(VDNavTreeSearch.java:85)
    Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
     at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:555)
     at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:289)
     at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
     at
org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76)
     at
org.apache.axis.ConfigurationException.<clinit>(ConfigurationException.java:
84)
     ... 8 more
    Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
     at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:420)
     at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:548)
     ... 12 more
    Caused by: org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
     at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:416)
     ... 13 more

    Is it possible for a remote method to call another Service method, or am
I barking up the wrong tree or just barking mad.
    It seems one can only use one instance of the Axis engine.

    Any comments will be gladley recieved.