Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis problem  RSS feed

 
Suneesh Raman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed axis and checked as per http://ws.apache.org/axis/java/install.html it is giving the desired results till testing the JWS end point .

http://localhost:7001/axis/services/Version?method=getVersion
but while accessing a JWS Endpoint I am getting the following exception

<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faultcode>
<faultstring>The AXIS engine could not find a target service to invoke! targetService is null</faultstring>
- <detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">pc-svraman-in</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope



I tried with a new sample application but I am getting the same exception


AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoService
faultSubcode:
faultString: The AXIS engine could not find a target service to invoke! target
Service is null
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname c-svraman-in

The AXIS engine could not find a target service to invoke! targetService is nul
l
at org.apache.axis.message.SOAPFaultBuilder.createFault()V(SOAPFaultBuil
der.java:222)

Any one can help ?

Thanks
Suneesh
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Version included on the page listing all services? Can you retrieve its WSDL by following the link on that page?
 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you set your CLASSPATH correct for the jars that are required like axis.jar, commons-discovery.jar, commons-logging.jar, jaxrpc.jar, saaj.jar, log4j-1.2.4.jar .etc. ?
 
Suneesh Raman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have missed the xmlsec-1.2.1.jar . When I have done that I am getting the following exception

<?xml version="1.0" encoding="UTF-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faultcode>
<faultstring>The AXIS engine could not find a target service to invoke! targetService is EchoHeaders.jws</faultstring>
- <detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">pc-svraman-in</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

The following are the parameters getting while I accessing happyaxis.jsp

Axis Happiness Page
Examining webapp configuration

Language: [en] [ja]
Needed Components
Found SAAJ API ( javax.xml.soap.SOAPMessage ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\saaj.jar

Found JAX-RPC API ( javax.xml.rpc.Service ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\jaxrpc.jar

Found Apache-Axis ( org.apache.axis.transport.http.AxisServlet ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\axis.jar

Found Jakarta-Commons Discovery ( org.apache.commons.discovery.Resource ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\commons-discovery-0.2.jar

Found Jakarta-Commons Logging ( org.apache.commons.logging.Log ) at D:\mycode\commons-logging.jar

Found Log4j ( org.apache.log4j.Layout ) at D:\mycode\jars\log4j-1.2.8.jar

Found IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_portal_axis\jarfiles\WEB-INF\lib\wsdl4j-1.5.1.jar

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location

Found Activation API ( javax.activation.DataHandler ) at C:\bea\weblogic81\server\lib\weblogic.jar

Optional Components
Found Mail API ( javax.mail.internet.MimeMessage ) at C:\bea\weblogic81\server\lib\weblogic.jar

Found XML Security API ( org.apache.xml.security.Init ) at D:\mycode\jars\xmlsec-1.2.1.jar

Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory ) at an unknown location

The core axis libraries are present.The optional components are present.
Note: Even if everything this page probes for is present, there is no guarantee your web service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient
--------------------------------------------------------------------------------

Examining Application Server
Servlet version 2.3
XML Parser weblogic.xml.jaxp.RegistrySAXParser
XML ParserLocation C:\bea\weblogic81\server\lib\weblogic.jar

Examining System Properties
java.vendor=BEA Systems, Inc.
org.xml.sax.parser=weblogic.xml.jaxp.RegistryParser
os.name=Windows XP
sun.boot.class.path=C:\bea\JROCKI~1\jre\lib\rt.jar;C:\bea\JROCKI~1\jre\lib\i18n.jar;C:\bea\JROCKI~1\jre\lib\sunrsasign.jar;C:\bea\JROCKI~1\jre\lib\jsse.jar;C:\bea\JROCKI~1\jre\lib\jce.jar;C:\bea\JROCKI~1\jre\lib\charsets.jar;C:\bea\JROCKI~1\jre\classes;C:\bea\JROCKI~1\jre\lib\managementapi.jar
sun.java2d.fontpath=
java.vm.specification.vendor=Sun Microsystems Inc.
java.runtime.version=1.4.2_05-b04
weblogic.Name=myserver
jmx.implementation.vendor=Sun Microsystems
user.name=svraman
jmx.implementation.name=JMX RI
user.language=en
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
sun.boot.library.path=C:\bea\JROCKI~1\jre\bin
jmx.specification.name=Java Management Extensions
java.version=1.4.2_05
user.timezone=Asia/Calcutta
sun.arch.data.model=32
javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
jmx.specification.version=1.0 Final Release
java.endorsed.dirs=C:\bea\JROCKI~1\jre\lib\endorsed
vde.home=.\myserver\ldap
sun.cpu.isalist=pentium i486 i386
jmx.implementation.version=1.0
file.encoding.pkg=sun.io
weblogic.mbeanLegalClause.ByPass=false
file.separator=\
java.specification.name=Java Platform API Specification
java.class.version=48.0
java.vm.vendor.url=http://www.bea.com/
user.country=US
java.home=C:\bea\JROCKI~1\jre
java.vm.info=Native Threads, GC strategy: parallel
os.version=5.1
jrockit.vm=C:\bea\JROCKI~1\jre\bin\jrockit\jvm.dll
jrockit.version=ari-38120-20041118-1131-win-ia32
org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
path.separator=;
java.vm.version=ari-38120-20041118-1131-win-ia32
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
user.variant=
java.protocol.handler.pkgs=weblogic.utils|weblogic.utils|weblogic.net
jmx.specification.vendor=Sun Microsystems
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.security.policy=C:\bea\WEBLOG~1\server\lib\weblogic.policy
sun.io.unicode.encoding=UnicodeLittle
awt.toolkit=sun.awt.windows.WToolkit
java.naming.factory.url.pkgs=weblogic.jndi.factories:weblogic.corba.j2ee.naming.url
user.home=C:\Documents and Settings\svraman.APPLICATIONS
java.specification.vendor=Sun Microsystems Inc.
org.xml.sax.driver=weblogic.apache.xerces.parsers.SAXParser
java.library.path=C:\bea\JROCKI~1\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\bea\WEBLOG~1\server\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\Perl\bin\;D:\oracle\product\10.1.0\Db_2\bin;D:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin\client;D:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin;C:\oracle\ora92\bin;C:\Program Files\Java\jdk1.5.0_04\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;D:\ant\bin;C:\oracle\ora92\jdbc\lib;C:\bea\WEBLOG~1\server\bin\oci920_8
java.vendor.url=http://www.bea.com/
java.vm.vendor=BEA Systems, Inc.
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.class.path=D:/mycode/jars/saaj.jar;C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_sp.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\bea\JROCKI~1\jre\lib\rt.jar;C:\bea\WEBLOG~1\server\lib\webservices.jar;C:\oracle\ora92\jdbc\lib\classes12.jar;D:/mycode/jars/antlr.jar;D:/mycode/jars/commons-beanutils.jar;D:/mycode/jars/commons-collections.jar;D:/mycode/jars/comm ons-digester.jar;D:/mycode/jars/commons-fileupload.jar;D:/mycode/jars/commons-validator.jar;D:/mycode/jars/;D:/mycode/jars/jakarta-oro.jar;D:/mycode/jars/junit-3.8.1.jar;D:/mycode/jars/struts.jar;D:/mycode/jars/soap.jar;D:/mycode/commons-logging.jar;D:/mycode/jars/axis.jar;D:/mycode/jars/jaxrpc.jar;D:/mycode/jars/commons-discovery-0.2.jar;D:/mycode/jars/wsdl4j-1.5.1.jar;D:/mycode/jars/log4j-1.2.8.jar;D:/mycode/jars/xmlsec-1.2.1.jar
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.version=1.0
javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
sun.cpu.endian=little
sun.os.patch.level=Service Pack 2
java.io.tmpdir=C:\DOCUME~1\SVRAMA~1.APP\LOCALS~1\Temp\
java.vendor.url.bug=http://support.bea.com
os.arch=x86
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.ext.dirs=C:\bea\JROCKI~1\jre\lib\ext
user.dir=C:\bea\user_projects\domains\mydomain
line.separator=

java.vm.name=BEA WebLogic JRockit(TM) 1.4.2_05 JVM R24.4.0-1
javax.xml.soap.MessageFactory=weblogic.webservice.core.soap.MessageFactoryImpl
file.encoding=Cp1252
org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB
javax.xml.rpc.ServiceFactory=weblogic.webservice.core.rpc.ServiceFactoryImpl
weblogic.ProductionModeEnabled=
java.specification.version=1.4



--------------------------------------------------------------------------------
Platform: WebLogic Server 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647


The xml parser is still showing weblogic.xml.jaxp.RegistrySAXParser . Is this a problem ??

Thanks,
Suneesh
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!