I am writing an Axis2 client which will not have access to a repository folder on the filesystem. Is there a way to load the modules which axis need for instance rampart and addressing, from the classpath.
1
votes
2 Answers
1
votes
0
votes
Simply install axis2 on your filesystem and add it's lib directory to the CLASSPATH. You can set it system wide or create batch/shell script to run your client. I prefer batch/shell script where I can also set some other options. With axis2 libs it can look like:
SET CLASSPATH=my_axis_client.jar;c:/axis2-1.5.1/lib/*
java -Dfile.encoding=utf8 yyy.zzz.my_axis_client
If you work on unix then instead of such
SET CLASSPATH=...
use
export CLASSPATH=my_axis_client.jar:/my/axis/lib/*
(be aware, on unix use : instead of ; to separate directories in the CLASSPATH)