Hi Siamak
I don't have an answer, but I think we are both having the same problem,
except that I'm using the 0.94 binary release so I'm not as up-to-date as
you. (See thread 'wss4j').
My initial solution to this problem was to start adding individual jars to
the lib directory. (I think your missing class is from xalan.)
As I understand it, the real probelm is that - for some reason - the class
loader isn't finding the jars in the 'mar' files. Below is the full
exception stack for a similar problem (I think you hit this one next, after
you drop xalan into your lib directory!)
Rob
[java] PurchasingStub: create factory
[java] PurchasingStub: create context
[java] - Deploying module : addressing
[java] - Deploying module : logging
[java] java.lang.ClassNotFoundException:
org.apache.ws.security.transform.STRTransform
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native
Method)
[java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:164)
[java] at
org.apache.xml.security.transforms.Transform.register(Unknown Source)
[java] at
org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:78)
[java] at
org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:89)
[java] at
org.apache.ws.security.WSSConfig.<clinit>(WSSConfig.java:53)
[java] at
org.apache.ws.security.WSSecurityEngine.<clinit>(WSSecurityEngine.java:49)
[java] at
org.apache.ws.security.handler.WSHandler.<clinit>(WSHandler.java:60)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:242)
[java] at
org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:157)
[java] at
org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:55)
[java] at
org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:137)
[java] at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:453)
[java] at
org.apache.axis2.deployment.listener.RepositoryListenerImpl.init(RepositoryListenerImpl.java:100)
[java] at
org.apache.axis2.deployment.listener.RepositoryListenerImpl.<init>(RepositoryListenerImpl.java:55)
[java] at
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:532)
[java] at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:56)
[java] at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:39)
[java] at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:53)
[java] at org.apache.axis2.PurchasingStub.<init>(Unknown Source)
[java] at samples.purchasing1.ClientTest.main(Unknown Source)
[java] - Deploying module : security
[java] PurchasingStub: create client
[java] client: caught Exception
[java] java.lang.NullPointerException
[java] at
org.apache.axis2.context.ServiceGroupContext.getServiceContext(ServiceGroupContext.java:58)
[java] at
org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:105)
[java] at org.apache.axis2.PurchasingStub.<init>(Unknown Source)
[java] at samples.purchasing1.ClientTest.main(Unknown Source)
----- Original Message -----
From: "Siamak Haschemi" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 21, 2006 10:51 AM
Subject: Re: [axis2] Using the security module
Thank you for your help.
After removing the "wss4j-SNAPSHOT.jar" a new error message occurs:
java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader
...
So, what file do I need to delete now? :-)
What is the background about this. I'm using the current svn-sources. Does
it denpend on the current refactorings?
Thanks,
Siamak Haschemi
Ruchith Fernando schrieb:
Do you have the wss4j-SNAPSHOT.jar in the 'WEB-INF/lib' directory. If
so please remove it.
Thanks,
Ruchith
On 3/21/06, Siamak Haschemi <[EMAIL PROTECTED]> wrote:
Hello to all.
I want to use the security module shipped with axis2.
I use the current svn sources to build the war file.
I place the "security-0.95-SNAPSHOT.mar" to the
"${CATALINA_HOME}\webapps\axis2\WEB-INF\modules" folder
I add the line "<module ref="security"/>" to the axis2.xml
While starting Tomcat the following error occures:
java.lang.NoClassDefFoundError: org/apache/xml/security/Init
....
Please help me to fix this.
regards
Siamak Haschemi