You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Siamak Haschemi <si...@gmx.de> on 2006/03/21 11:17:16 UTC

[axis2] Using the security module

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

Re: [axis2] Using the security module

Posted by Siamak Haschemi <si...@gmx.de>.
Hello Rob.

But I don't find the xalan.jar in the extracted 
"security-0.95-SNAPSHOT.mar" module.
I added the file manually and it works.

I hope that this problem will be solved in the 0.95 version.

Thanks a lot!

Siamak Haschemi



Rob Henley schrieb:
> 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" <si...@gmx.de>
> To: <ax...@ws.apache.org>
> 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 <si...@gmx.de> 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
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>
>


Re: [axis2] Using the security module

Posted by Rob Henley <ro...@freeuk.com>.
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" <si...@gmx.de>
To: <ax...@ws.apache.org>
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 <si...@gmx.de> 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
>>>
>>>
>>
>>
>
>
>
> 



Re: [axis2] Using the security module

Posted by Deepal Jayasinghe <de...@opensource.lk>.
hmmm , I can not understand  what we should fix to solve this problem,
for me its seems that this is due to class loading issue. Since we have
separate class loader for each services and modules , accessing service
resources from module class loader may have problems. So how do we solve
this preserving the concept of module isolation?


Ruchith Fernando wrote:

>Hi All,
>
>There's problem in accessing the passwordCallbackClass class provided
>by a service (packaged within the service archive) within the security
>module.
>
>Therefore right now we have to have the following jars in the
>"WEB-INF/lib" directory to enable the security module to work
>properly.
>
>commons-discovery-0.2.jar
>wss4j-SNAPSHOT.jar
>xmlsec-1.3.0.jar
>bcprov-jdk13-131.jar
>
>Thanks,
>Ruchith
>
>On 3/21/06, Ruchith Fernando <ru...@gmail.com> wrote:
>  
>
>>Hi,
>>
>>We have to fix these problems to get the security module working with
>>Axis2 on Java 1.5 and we will fix this for the 0.95 release.
>>
>>With JDK 1.5 we need to have xalan additionally for the security
>>module to function properly.
>>
>>Also we have to revisit how we package the dependency jars in the
>>security module and axis2 to avoid classloader problems.
>>
>>Thanks trying and reporting these issues.
>>
>>- Ruchith
>>
>>On 3/21/06, Siamak Haschemi <si...@gmx.de> wrote:
>>    
>>
>>>Hello Ruchith.
>>>
>>>Yes, you're right. I'm using the java version "1.5.0_06".
>>>
>>>Is the usage of Java 1.5 not recommened?
>>>
>>>
>>>Thanks a lot,
>>>Siamak Haschemi
>>>
>>>Ruchith Fernando schrieb:
>>>      
>>>
>>>>Hi,
>>>>
>>>>are you using JDK 1.5 ?
>>>>
>>>>I'm trying this with JDK 1.4 and didn't get the problem since the
>>>>xalan stuff seems to be available in the Sun JDK 1.4
>>>>
>>>>Thanks,
>>>>Ruchith
>>>>
>>>>On 3/21/06, Siamak Haschemi <si...@gmx.de> wrote:
>>>>
>>>>        
>>>>
>>>>>I solved the problem.
>>>>>
>>>>>For all of you who use the current svn-sources:
>>>>>
>>>>>Download the 2.6.0 of XALAN-J (http://archive.apache.org/dist/xml/xalan-j)
>>>>>
>>>>>Place the "xalan.jar" to the "WEB-INF/lib" directory.
>>>>>
>>>>>That solved the problem for me.
>>>>>
>>>>>Thanks
>>>>>
>>>>>Siamak Haschemi
>>>>>
>>>>>Siamak Haschemi schrieb:
>>>>>
>>>>>          
>>>>>
>>>>>>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 <si...@gmx.de> 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
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>        
>>>>
>>>      
>>>
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



Re: [axis2] Using the security module

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi All,

There's problem in accessing the passwordCallbackClass class provided
by a service (packaged within the service archive) within the security
module.

Therefore right now we have to have the following jars in the
"WEB-INF/lib" directory to enable the security module to work
properly.

commons-discovery-0.2.jar
wss4j-SNAPSHOT.jar
xmlsec-1.3.0.jar
bcprov-jdk13-131.jar

Thanks,
Ruchith

On 3/21/06, Ruchith Fernando <ru...@gmail.com> wrote:
> Hi,
>
> We have to fix these problems to get the security module working with
> Axis2 on Java 1.5 and we will fix this for the 0.95 release.
>
> With JDK 1.5 we need to have xalan additionally for the security
> module to function properly.
>
> Also we have to revisit how we package the dependency jars in the
> security module and axis2 to avoid classloader problems.
>
> Thanks trying and reporting these issues.
>
> - Ruchith
>
> On 3/21/06, Siamak Haschemi <si...@gmx.de> wrote:
> > Hello Ruchith.
> >
> > Yes, you're right. I'm using the java version "1.5.0_06".
> >
> > Is the usage of Java 1.5 not recommened?
> >
> >
> > Thanks a lot,
> > Siamak Haschemi
> >
> > Ruchith Fernando schrieb:
> > > Hi,
> > >
> > > are you using JDK 1.5 ?
> > >
> > > I'm trying this with JDK 1.4 and didn't get the problem since the
> > > xalan stuff seems to be available in the Sun JDK 1.4
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > On 3/21/06, Siamak Haschemi <si...@gmx.de> wrote:
> > >
> > >> I solved the problem.
> > >>
> > >> For all of you who use the current svn-sources:
> > >>
> > >> Download the 2.6.0 of XALAN-J (http://archive.apache.org/dist/xml/xalan-j)
> > >>
> > >> Place the "xalan.jar" to the "WEB-INF/lib" directory.
> > >>
> > >> That solved the problem for me.
> > >>
> > >> Thanks
> > >>
> > >> Siamak Haschemi
> > >>
> > >> Siamak Haschemi schrieb:
> > >>
> > >>> 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 <si...@gmx.de> 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
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>
> > >>
> > >
> > >
> >
> >
>

Re: [axis2] Using the security module

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

We have to fix these problems to get the security module working with
Axis2 on Java 1.5 and we will fix this for the 0.95 release.

With JDK 1.5 we need to have xalan additionally for the security
module to function properly.

Also we have to revisit how we package the dependency jars in the
security module and axis2 to avoid classloader problems.

Thanks trying and reporting these issues.

- Ruchith

On 3/21/06, Siamak Haschemi <si...@gmx.de> wrote:
> Hello Ruchith.
>
> Yes, you're right. I'm using the java version "1.5.0_06".
>
> Is the usage of Java 1.5 not recommened?
>
>
> Thanks a lot,
> Siamak Haschemi
>
> Ruchith Fernando schrieb:
> > Hi,
> >
> > are you using JDK 1.5 ?
> >
> > I'm trying this with JDK 1.4 and didn't get the problem since the
> > xalan stuff seems to be available in the Sun JDK 1.4
> >
> > Thanks,
> > Ruchith
> >
> > On 3/21/06, Siamak Haschemi <si...@gmx.de> wrote:
> >
> >> I solved the problem.
> >>
> >> For all of you who use the current svn-sources:
> >>
> >> Download the 2.6.0 of XALAN-J (http://archive.apache.org/dist/xml/xalan-j)
> >>
> >> Place the "xalan.jar" to the "WEB-INF/lib" directory.
> >>
> >> That solved the problem for me.
> >>
> >> Thanks
> >>
> >> Siamak Haschemi
> >>
> >> Siamak Haschemi schrieb:
> >>
> >>> 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 <si...@gmx.de> 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
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>
> >
> >
>
>

Re: [axis2] Using the security module

Posted by Siamak Haschemi <si...@gmx.de>.
Hello Ruchith.

Yes, you're right. I'm using the java version "1.5.0_06".

Is the usage of Java 1.5 not recommened?


Thanks a lot,
Siamak Haschemi

Ruchith Fernando schrieb:
> Hi,
>
> are you using JDK 1.5 ?
>
> I'm trying this with JDK 1.4 and didn't get the problem since the
> xalan stuff seems to be available in the Sun JDK 1.4
>
> Thanks,
> Ruchith
>
> On 3/21/06, Siamak Haschemi <si...@gmx.de> wrote:
>   
>> I solved the problem.
>>
>> For all of you who use the current svn-sources:
>>
>> Download the 2.6.0 of XALAN-J (http://archive.apache.org/dist/xml/xalan-j)
>>
>> Place the "xalan.jar" to the "WEB-INF/lib" directory.
>>
>> That solved the problem for me.
>>
>> Thanks
>>
>> Siamak Haschemi
>>
>> Siamak Haschemi schrieb:
>>     
>>> 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 <si...@gmx.de> 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
>>>>>
>>>>>
>>>>>           
>>>>         
>>     
>
>   


Re: [axis2] Using the security module

Posted by Ruchith Fernando <ru...@gmail.com>.
Hi,

are you using JDK 1.5 ?

I'm trying this with JDK 1.4 and didn't get the problem since the
xalan stuff seems to be available in the Sun JDK 1.4

Thanks,
Ruchith

On 3/21/06, Siamak Haschemi <si...@gmx.de> wrote:
> I solved the problem.
>
> For all of you who use the current svn-sources:
>
> Download the 2.6.0 of XALAN-J (http://archive.apache.org/dist/xml/xalan-j)
>
> Place the "xalan.jar" to the "WEB-INF/lib" directory.
>
> That solved the problem for me.
>
> Thanks
>
> Siamak Haschemi
>
> Siamak Haschemi schrieb:
> > 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 <si...@gmx.de> 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
> >>>
> >>>
> >>
> >>
> >
>
>

Re: [axis2] Using the security module

Posted by Rodrigo Ruiz <rr...@gridsystems.com>.
Theoretically, a better place to put xalan.jar is the
[TOMCAT]/common/endorsed directory. Putting it in the WEB-INF/lib
directory may not be enough depending on the JDK version you use.

HTH,
Rodrigo Ruiz

Siamak Haschemi wrote:
> I solved the problem.
>
> For all of you who use the current svn-sources:
>
> Download the 2.6.0 of XALAN-J 
> (http://archive.apache.org/dist/xml/xalan-j)
>
> Place the "xalan.jar" to the "WEB-INF/lib" directory.
>
> That solved the problem for me.
>
> Thanks
>
> Siamak Haschemi



Re: [axis2] Using the security module

Posted by Siamak Haschemi <si...@gmx.de>.
I solved the problem.

For all of you who use the current svn-sources:

Download the 2.6.0 of XALAN-J (http://archive.apache.org/dist/xml/xalan-j)

Place the "xalan.jar" to the "WEB-INF/lib" directory.

That solved the problem for me.

Thanks

Siamak Haschemi

Siamak Haschemi schrieb:
> 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 <si...@gmx.de> 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
>>>
>>>     
>>
>>   
>


Re: [axis2] Using the security module

Posted by Siamak Haschemi <si...@gmx.de>.
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 <si...@gmx.de> 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
>>
>>     
>
>   


Re: [axis2] Using the security module

Posted by Ruchith Fernando <ru...@gmail.com>.
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 <si...@gmx.de> 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
>