Hi,
I have to call the FedEx Address Validation Web service using java technology. I have downloaded the java sample code provided on the FedEx site. I have taken the following steps for running the code on windows platform.
1- Installed the jdk framework and set path in environment variable.
2- Downloaded all the following jar files as mentioned in ".classpath" file -
" activation.jar
" axis.jar
" axis-ant.jar
" commons-discovery-0.2.jar
" commons-logging-1.0.4.jar
" jaxrpc.jar
" og4j-1.2.8.jar
" mailapi.jar
" saaj.jar
" wsdl4j-1.5.1.jar
Set the classpath in the environment variable for all the jar files
3- Created "Axis_Home" environment variable and made the path setting as mentioned in .classpath file.
4- Compiled the "AddressValidationWebServi
ceClient.j
ava" file after setting the test account number, meter number, key and password provided by the FedEx site after registration. This java file is successfully complied without any error. After running this compiled class I get the response from the web service.
It worked successfully on windows platform but I m getting error while running the code on Linux server.
I have made the following setting in Linux Environment.
" All the sample code files are in the $JAVA_TOP location for e.g. /crp/applmgr/common/java/o
racle/apps
/fnd/cp.
" Set the CLASSPATH of all the mentioned JAR files in .profile file.
" Created the AXIS_HOME environment variable which point to the jar files location.
" Compiled the "AddressValidationWebServi
ceClient.j
ava" file after setting the test account number, meter number, key and password provided by the FedEx site after registration. This java file is successfully complied without any error.
" Created a Java Concurrent program on Application Object Library (AOL). After executing the this concurrent program I got the following java exception-
java.lang.NoClassDefFoundE
rror: org/apache/axis/client/Ser
vice
at java.lang.ClassLoader.defi
neClass0(N
ative Method)
at java.lang.ClassLoader.defi
neClass(Cl
assLoader.
java:539)
at java.security.SecureClassL
oader.defi
neClass(Se
cureClassL
oader.java
:123)
at java.net.URLClassLoader.de
fineClass(
URLClassLo
ader.java:
251)
at java.net.URLClassLoader.ac
cess$100(U
RLClassLoa
der.java:5
5)
at java.net.URLClassLoader$1.
run(URLCla
ssLoader.j
ava:194)
at java.security.AccessContro
ller.doPri
vileged(Na
tive Method)
at java.net.URLClassLoader.fi
ndClass(UR
LClassLoad
er.java:18
7)
at java.lang.ClassLoader.load
Class(Clas
sLoader.ja
va:289)
at sun.misc.Launcher$AppClass
Loader.loa
dClass(Lau
ncher.java
:274)
at java.lang.ClassLoader.load
Class(Clas
sLoader.ja
va:235)
at java.lang.ClassLoader.load
ClassInter
nal(ClassL
oader.java
:302)
at java.lang.Class.forName0(N
ative Method)
at java.lang.Class.forName(Cl
ass.java:1
41)
at oracle.apps.fnd.cp.request
.Run.main(
Run.java:1
57)
Please help me where i m missing the steps..
Any help would be appriciated.
Thanks