Hi
I am unable to invoke the webservice that i managed to deploy on the weblogic
server, the error message that i get is
And now... Some Services
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - Could not find class for the service named: dit.ops.wserv.MyWebService
Hint: you may need to copy your class files/tree into the right location (which
depends on the servlet system you are using).; nested exception is:
java.lang.ClassNotFoundException: dit.ops.wserv.MyWebService
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: Could not find class for the service named:
dit.ops.wserv.MyWebService
Hint: you may need to copy your class files/tree into the right location (which
depends on the servlet system you are using).; nested exception is:
java.lang.ClassNotFoundException: dit.ops.wserv.MyWebService
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:lns45a-4193
My deploy.wsdd is
<!-- Use this file to deploy some handlers/chains and services -->
<!-- Two ways to do this: -->
<!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
<!-- after the axis server is running -->
<!-- or -->
<!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
<!-- from the same directory that the Axis engine runs -->
<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<!-- Services from IMyWebServiceService WSDL service -->
<service name="wserv" provider="java:RPC" style="rpc" use="encoded">
<parameter name="wsdlTargetNamespace" value="wserv.ops.dit"/>
<parameter name="wsdlServiceElement" value="IMyWebServiceService"/>
<parameter name="wsdlServicePort" value="wserv"/>
<parameter name="className" value="dit.ops.wserv.MyWebService"/>
<parameter name="wsdlPortType" value="IMyWebService"/>
<parameter name="typeMappingVersion" value="1.2"/>
<operation name="getReturnClass" qname="operNS:getReturnClass" xmlns:operN
S="wserv.ops.dit" returnQName="getReturnClassReturn" returnType="rtns:int" xmlns
:rtns="http://www.w3.org/2001/XMLSchema" soapAction="" >
</operation>
<parameter name="allowedMethods" value="getReturnClass"/>
</service>
</deployment>
I have created a jar file and have put the jar file in the classes folder.
Also i have run the ant task to deploy this webservice.
There are other webservices also in this folder deployed as jar files which are
getting invoked, except this one
lns45a-4193% pwd
/app/fao/compass/config/mydomain/applications/axis/WEB-INF/classes
lns45a-4193% ls -lt *.jar
-rw-rw-r-- 1 moadmin develop 5632 Sep 19 05:58 wserv.jar
-rw-rw-r-- 1 taldis summit 19801 Sep 18 17:58 JavaTools.jar
-rw-rw---- 1 moadmin develop 108422 Sep 18 17:58 JniCppUtils.jar
-rw-rw-r-- 1 moadmin develop 6144 Sep 18 17:58 CapsClientJni.jar
-rw-rw-r-- 1 moadmin develop 10416 Sep 18 17:58 CapsClientWs.jar
-rw-rw-r-- 1 moadmin develop 9200 Sep 18 17:58 CapsJava.jar
-rw-rw-r-- 1 taldis summit 11971 Aug 17 17:05 Ofs.jar
lns45a-4193% jar -tvf wserv.jar
0 Tue Sep 19 05:52:00 GMT+00:00 2006 META-INF/
55 Tue Sep 19 05:52:00 GMT+00:00 2006 META-INF/MANIFEST.MF
0 Tue Sep 19 05:18:24 GMT+00:00 2006 dit/
0 Tue Sep 19 05:18:24 GMT+00:00 2006 dit/ops/
0 Tue Sep 19 05:18:34 GMT+00:00 2006 dit/ops/wserv/
186 Tue Sep 19 05:48:34 GMT+00:00 2006 dit/ops/wserv/IMyWebService.class
283 Tue Sep 19 05:18:24 GMT+00:00 2006 dit/ops/wserv/MyWebService.class
342 Tue Sep 19 05:48:34 GMT+00:00 2006
dit/ops/wserv/IMyWebServiceService.class
3360 Tue Sep 19 05:48:34 GMT+00:00 2006
dit/ops/wserv/IMyWebServiceServiceLocator.class
4160 Tue Sep 19 05:48:34 GMT+00:00 2006
dit/ops/wserv/WservSoapBindingStub.class
lns45a-4193%
The other jar files are working fine, for eg: Ofs.jar works fine
lns45a-4193% jar tvf Ofs.jar
0 Thu Aug 17 17:05:00 GMT+00:00 2006 META-INF/
55 Thu Aug 17 17:05:00 GMT+00:00 2006 META-INF/MANIFEST.MF
0 Tue Aug 01 18:05:58 GMT+00:00 2006 dit/
0 Tue Aug 01 18:05:58 GMT+00:00 2006 dit/ops/
0 Thu Aug 17 16:24:56 GMT+00:00 2006 dit/ops/test/
0 Thu Aug 17 16:26:08 GMT+00:00 2006 dit/ops/ofs/
1497 Thu Aug 17 16:24:56 GMT+00:00 2006 dit/ops/test/Ofs.class
203 Thu Aug 17 17:04:58 GMT+00:00 2006 dit/ops/ofs/IOfsService.class
1089 Thu Aug 17 16:24:56 GMT+00:00 2006 dit/ops/ofs/OfsTrade.class
634 Thu Aug 17 16:24:56 GMT+00:00 2006 dit/ops/ofs/NdtDataTableSource.class
334 Thu Aug 17 16:24:56 GMT+00:00 2006 dit/ops/ofs/OfsClient.class
1346 Thu Aug 17 16:24:56 GMT+00:00 2006 dit/ops/ofs/OfsService.class
919 Thu Aug 17 16:24:56 GMT+00:00 2006 dit/ops/ofs/CapsPayment.class
326 Thu Aug 17 17:04:58 GMT+00:00 2006 dit/ops/ofs/IOfsServiceService.class
3310 Thu Aug 17 17:04:58 GMT+00:00 2006
dit/ops/ofs/IOfsServiceServiceLocator.class
7931 Thu Aug 17 17:05:00 GMT+00:00 2006 dit/ops/ofs/OfsSoapBindingStub.class
3927 Tue Aug 01 18:05:58 GMT+00:00 2006 build.xml
lns45a-4193%
The ant file that i use to deploy this webservice end to end is given below
<project basedir="." default="deploy">
<property environment="env"/>
<property name="home.dir" location="/home/aamm/WebService" />
<property name="weblogic.lib.dir" location="/app/bea/weblogic700sp4/serv
er/lib" />
<property name="axis.home" location="/app/fao/compass/config/mydomain/ap
plications/axis/WEB-INF"/>
<property name="axis.lib.dir" location="${axis.home}/lib" />
<property name="build.webserver" location="/app/fao/compass/config/mydom
ain/applications/axis/WEB-INF/classes" />
<property name="deploy.dir" location="${home.dir}/websrc/dit/ops/wserv"
/>
<property name="webserver" value="lns45a-4193.csfp.co.uk" />
<property name="webport" value="9300" />
<property name="src.dir" location="${home.dir}/src" />
<property name="websrc.dir" location="${home.dir}/websrc" />
<property name="webclass.dir" location="${home.dir}/classes" />
<!-- add all the axis, junit and weblogic jar files to the classpath -->
<path id="classpath">
<fileset dir ="${axis.lib.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${weblogic.lib.dir}">
<include name="webservices.jar" />
<include name="weblogic.jar" />
</fileset>
<pathelement location="${home.dir}" />
<pathelement location="${webclass.dir}" />
<pathelement location="." />
</path>
<taskdef name="java2wsdl" classname="org.apache.axis.tools.ant.wsdl.Java
2WsdlAntTask">
<classpath refid="classpath" />
</taskdef>
<taskdef name="wsdl2java" classname="org.apache.axis.tools.ant.wsdl.Wsdl
2javaAntTask">
<classpath refid="classpath" />
</taskdef>
<taskdef name="admin" classname="org.apache.axis.tools.ant.axis.AdminCli
entTask">
<classpath refid="classpath" />
</taskdef>
<target name="cleanup">
<delete file="wserv.wsdl" />
<delete>
<fileset dir="${websrc.dir}" includes="**/*.*"/>
</delete>
</target>
<target name="myCompile" depends="cleanup">
<javac destdir="${webclass.dir}" >
<src path="${src.dir}" />
<classpath refid="classpath"/>
</javac>
</target>
<target name="createJava" depends="myCompile">
<java2wsdl
output="wserv.wsdl"
location="http://lns45a-4193.csfp.co.uk:9300/axis/se
rvices/wserv"
classname="dit.ops.wserv.IMyWebService"
namespace="wserv.ops.dit">
</java2wsdl>
</target>
<target name="generateJava" depends="createJava">
<wsdl2java
debug="false"
helperGen="false"
output="${websrc.dir}"
implementationClassName="dit.ops.wserv.MyWebService"
serverside="true"
testCase="false"
url="wserv.wsdl">
</wsdl2java>
</target>
<target name="compile" depends="generateJava">
<delete file="${websrc.dir}/dit/ops/wserv/MyWebService.java" />
<javac destdir="${webclass.dir}" >
<src path="${websrc.dir}" />
<classpath refid="classpath"/>
</javac>
</target>
<target name="create_jar">
<jar destfile="${home.dir}/lib/wserv.jar"
basedir="${webclass.dir}"
/>
</target>
<!-- Copy the jar files for JniUtils and JavaTools as well -->
<target name="copytowebserver">
<copy todir="${build.webserver}" file="${home.dir}/lib/wserv.jar" overwrite="tru
e" verbose="true" />
</target>
<target name="deploy" depends="copytowebserver">
<admin port="${webport}" hostname="${webserver}"
servletpath="axis/services/AdminService"
xmlfile="${deploy.dir}/deploy.wsdd" />
</target>
</project>
==============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]