File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes help on webservices with java/axis Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "help on webservices with java/axis" Watch "help on webservices with java/axis" New topic
Author

help on webservices with java/axis

Ravi Veerla
Greenhorn

Joined: Sep 14, 2005
Posts: 5
I am writing a web service using java/axis. I am using a third party java api, and build webservices using the class files developed by them. initially i had trouble using their packages, as i dint know where to place the third party class files. then i could figure out that the classes folder in webinf folder in axis is meant for the classes that are used by the jws classes. and it solved my problem with using those packages.

but i have another problems. the third party api's use some config files(typically xml) and when i run them as normal applications i include the path of these config files in the class path. im confused as to where these config files should be placed for axis to find them when it runs the class files.

can anyone suggest me a solution or point me to resources where i can find information.

thanks in advance.
Ravi
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32767
If it works in a desktop app by including the config files in the classpath, why wouldn't it work the same way in a web app? What happens if you put those files in WEB-INF/classes?


Android appsImageJ pluginsJava web charts
Ravi Veerla
Greenhorn

Joined: Sep 14, 2005
Posts: 5
Ulf,

It throwns an exception saying it cannot load the url for one of the config files. it is the first config file that the api uses. i tried by copying those config files in to the java home directory too. it dint seem to work. i think il get with those third party people to see what im missing.

if anyone can find a solution to this problem, please let me know.

thanks
Ravi
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
What does the exeption say? Where is it trying to locate the property files?
Ravi Veerla
Greenhorn

Joined: Sep 14, 2005
Posts: 5
java.lang.Exception: ERROR: failed to load URL for file = webmail.xml
this is what it says .. the rest is the stack trace of the classes of the third party api.. i dont have access to the source code so, i dont where it is looking for
Ravi Veerla
Greenhorn

Joined: Sep 14, 2005
Posts: 5
Hey guys,
I figured out a solution. i added the path of the config files to the classpath int the tomcat setclasspath.bat/setclasspath.sh. so tomcat is able to find these files now. the default was to the java home directory.

thanks,
Ravi
 
IntelliJ Java IDE
 
subject: help on webservices with java/axis
 
Threads others viewed
[solved]Adding classes to PATH in windows
Eclipse: What, exactly, does the "Add External Class Folder" button really do?
Axis 2 Client
Object "Savvy"
property files in ejb tier
MyEclipse, The Clear Choice