RE: sandesh2 v1.0 module load throws NoClassDefFoundError: org/apache/ws/security/WSSecurityException

2006-10-18 Thread Yadav, Yogendra \(IT\)
I downloaded axis2-security-1.1-SNAPSHOT.jar from
http://ws.zones.apache.org/~dims/maven/org.apache.axis2/jars/ 
Now, I get this error:
java.lang.NoClassDefFoundError:
org/apache/ws/security/WSSecurityException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at
org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:63)
at
org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngi
ne.java:311)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:599)
at
org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(Repo
sitoryListener.java:124)
at
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener
.java:55)
at
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEn
gine.java:100)
at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:116)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:61)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:179)
at
org.apache.axis2.transport.http.SimpleHTTPServer.main(SimpleHTTPServer.j
ava:157)
[SimpleHTTPServer] Shutting down





-Original Message-
From: Yadav, Yogendra (IT) 
Sent: Wednesday, October 18, 2006 5:29 PM
To: axis-user@ws.apache.org; Thilina Gunarathne
Subject: RE: sandesh2 v1.0 module load throws NoClassDefFoundError:
org/apache/rampart/RampartException

I downloaded axis2-rahas-1.1-SNAPSHOT.jar  from
http://ws.zones.apache.org/~dims/maven/org.apache.axis2/jars/
Now, I get this error:
java.lang.NoClassDefFoundError: org/apache/rampart/RampartException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at
org.apache.sandesha2.util.SandeshaUtil.getSecurityManagerInstance(Sandes
haUtil.java:986)
at
org.apache.sandesha2.util.SandeshaUtil.getSecurityManager(SandeshaUtil.j
ava:970)
at
org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:102)
 

-Original Message-
From: Yadav, Yogendra (IT)
Sent: Wednesday, October 18, 2006 4:57 PM
To: axis-user@ws.apache.org; Thilina Gunarathne
Subject: RE: sandesh2 v1.0 module load throws NoSuchMethodError

Hi Thilina,
As you said, I am using the snapshot, now I am getting this error:
java.lang.NoClassDefFoundError: org/apache/rahas/TokenStorage
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at
org.apache.sandesha2.util.SandeshaUtil.getSecurityManagerInstance(Sandes
haUtil.java:986)
at
org.apache.sandesha2.util.SandeshaUtil.getSecurityManager(SandeshaUtil.j
ava:970)
at
org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:102)



-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Sent: Friday, October 13, 2006 10:07 AM
To: axis-user@ws.apache.org
Subject: Re: sandesh2 v1.0 module load throws NoSuchMethodError

Please use the snapshots available at
http://ws.zones.apache.org/~dims/maven/sandesha2/

~Thilina

On 10/13/06, Yadav, Yogendra (IT) [EMAIL PROTECTED]
wrote:



 I am testing Sandesh2 v1.0 with AXIS2 RC1. The
 org.apache.axis2.description.PolicyInclude.getEffectivePolicy()
 returns org.apache.neethi.Policy whereas sandesh2 expects 
 org.apache.ws.policy.Policy

 java.lang.NoSuchMethodError:
 org.apache.axis2.description.PolicyInclude.getEffectivePolicy()Lorg/ap
 ache/ws/policy/Policy;
  at
 org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDesc
 Policy(PropertyManager.java:158)
  at
 org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:50)
  at
 org.apache.axis2.context.ConfigurationContextFactory.initModules(Confi
 gurationContextFactory.java:217)
  at
 org.apache.axis2.context.ConfigurationContextFactory.init(Configuratio
 nContextFactory.java:193)
  at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurati
 onContext(ConfigurationContextFactory.java:70)
  at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurati
 onContextFromFileSystem(ConfigurationContextFactory.java:179)
  at
 org.apache.axis2.transport.http.SimpleHTTPServer.main(SimpleHTTPServer
 .java:157)


  


 NOTICE: If received 

RE: sandesh2 v1.0 module load throws NoClassDefFoundError: org/apache/ws/security/WSSecurityException

2006-10-18 Thread Yadav, Yogendra \(IT\)
Okay...after downloading 2 more jars the module loaded fine, now I get
Phase Order related exception:

SEVERE: Invalid service  Axis2SampleDocLitService.aar due to Invalid
phases please recheck axis2.xml RMPhase for the handler
SandeshaInHandler
org.apache.axis2.phaseresolver.PhaseException: Invalid phases please
recheck axis2.xml RMPhase for the handler SandeshaInHandler
at
org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:6
6)
at
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(Pha
seResolver.java:191)
at
org.apache.axis2.description.AxisOperation.engageModuleToOperation(AxisO
peration.java:154)
at
org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.ja
va:128)
at
org.apache.axis2.description.AxisService.engageModule(AxisService.java:4
91)
at
org.apache.axis2.description.AxisServiceGroup.engageModule(AxisServiceGr
oup.java:136)
at
org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfigurat
ion.java:275)
at
org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentE
ngine.java:411)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:534)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
.java:200)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
.java:210)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
istener.java:157)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi
ne.java:84)
at
org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSyst
emConfigurator.java:129)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:72)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:179)
at
org.apache.axis2.transport.http.SimpleHTTPServer.main(SimpleHTTPServer.j
ava:157)

-Original Message-
From: Yadav, Yogendra (IT) 
Sent: Wednesday, October 18, 2006 5:43 PM
To: axis-user@ws.apache.org; Thilina Gunarathne
Subject: RE: sandesh2 v1.0 module load throws NoClassDefFoundError:
org/apache/ws/security/WSSecurityException

I downloaded axis2-security-1.1-SNAPSHOT.jar from
http://ws.zones.apache.org/~dims/maven/org.apache.axis2/jars/
Now, I get this error:
java.lang.NoClassDefFoundError:
org/apache/ws/security/WSSecurityException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at
org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:63)
at
org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngi
ne.java:311)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:599)
at
org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(Repo
sitoryListener.java:124)
at
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener
.java:55)
at
org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEn
gine.java:100)
at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(
FileSystemConfigurator.java:116)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:61)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:179)
at
org.apache.axis2.transport.http.SimpleHTTPServer.main(SimpleHTTPServer.j
ava:157)
[SimpleHTTPServer] Shutting down





-Original Message-
From: Yadav, Yogendra (IT) 
Sent: Wednesday, October 18, 2006 5:29 PM
To: axis-user@ws.apache.org; Thilina Gunarathne
Subject: RE: sandesh2 v1.0 module load throws NoClassDefFoundError:
org/apache/rampart/RampartException

I downloaded axis2-rahas-1.1-SNAPSHOT.jar  from
http://ws.zones.apache.org/~dims/maven/org.apache.axis2/jars/
Now, I get this error:
java.lang.NoClassDefFoundError: org/apache/rampart/RampartException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at
org.apache.sandesha2.util.SandeshaUtil.getSecurityManagerInstance(Sandes
haUtil.java:986)
at
org.apache.sandesha2.util.SandeshaUtil.getSecurityManager(SandeshaUtil.j
ava:970)
at
org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:102)
 

-Original Message-
From

Re: sandesh2 v1.0 module load throws NoClassDefFoundError: org/apache/ws/security/WSSecurityException

2006-10-18 Thread Chamikara Jayalath
Hi Yadav,Guess you'll have to get the wss4j-SNAPSHOT jar file as well.I think this is a good reason not to make the RampartBasedSecurityManager the default in sandesha2. Axis2 war file does not come with {rampart,rahas,wss4j} jars.
ChamikaraOn 10/19/06, Yadav, Yogendra (IT) [EMAIL PROTECTED] wrote:
I downloaded axis2-security-1.1-SNAPSHOT.jar from
http://ws.zones.apache.org/~dims/maven/org.apache.axis2/jars/Now, I get this error:java.lang.NoClassDefFoundError:org/apache/ws/security/WSSecurityExceptionat java.lang.Class.getDeclaredConstructors0
(Native Method)atjava.lang.Class.privateGetDeclaredConstructors(Class.java:2328)at java.lang.Class.getConstructor0(Class.java:2640)at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)atorg.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:63)atorg.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngi
ne.java:311)atorg.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:599)atorg.apache.axis2.deployment.RepositoryListener.loadClassPathModules(RepositoryListener.java
:124)atorg.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:55)atorg.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:100)
atorg.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)atorg.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(
ConfigurationContextFactory.java:61)atorg.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:179)atorg.apache.axis2.transport.http.SimpleHTTPServer.main
(SimpleHTTPServer.java:157)[SimpleHTTPServer] Shutting down-Original Message-From: Yadav, Yogendra (IT)Sent: Wednesday, October 18, 2006 5:29 PMTo: 
axis-user@ws.apache.org; Thilina GunarathneSubject: RE: sandesh2 v1.0 module load throws NoClassDefFoundError:org/apache/rampart/RampartExceptionI downloaded axis2-rahas-1.1-SNAPSHOT.jarfrom
http://ws.zones.apache.org/~dims/maven/org.apache.axis2/jars/Now, I get this error:java.lang.NoClassDefFoundError: org/apache/rampart/RampartExceptionat java.lang.Class.getDeclaredConstructors0(Native Method)
atjava.lang.Class.privateGetDeclaredConstructors(Class.java:2328)at java.lang.Class.getConstructor0(Class.java:2640)at java.lang.Class.getConstructor(Class.java:1629)at
org.apache.sandesha2.util.SandeshaUtil.getSecurityManagerInstance(SandeshaUtil.java:986)atorg.apache.sandesha2.util.SandeshaUtil.getSecurityManager(SandeshaUtil.java:970)atorg.apache.sandesha2.SandeshaModule.init
(SandeshaModule.java:102)-Original Message-From: Yadav, Yogendra (IT)Sent: Wednesday, October 18, 2006 4:57 PMTo: axis-user@ws.apache.org; Thilina Gunarathne
Subject: RE: sandesh2 v1.0 module load throws NoSuchMethodErrorHi Thilina,As you said, I am using the snapshot, now I am getting this error:java.lang.NoClassDefFoundError: org/apache/rahas/TokenStorage
at java.lang.Class.getDeclaredConstructors0(Native Method)atjava.lang.Class.privateGetDeclaredConstructors(Class.java:2328)at java.lang.Class.getConstructor0(Class.java:2640)at 
java.lang.Class.getConstructor(Class.java:1629)atorg.apache.sandesha2.util.SandeshaUtil.getSecurityManagerInstance(SandeshaUtil.java:986)atorg.apache.sandesha2.util.SandeshaUtil.getSecurityManager
(SandeshaUtil.java:970)atorg.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:102)-Original Message-From: Thilina Gunarathne [mailto:
[EMAIL PROTECTED]]Sent: Friday, October 13, 2006 10:07 AMTo: axis-user@ws.apache.orgSubject: Re: sandesh2 v1.0 module load throws NoSuchMethodErrorPlease use the snapshots available at
http://ws.zones.apache.org/~dims/maven/sandesha2/~ThilinaOn 10/13/06, Yadav, Yogendra (IT) 
[EMAIL PROTECTED]wrote: I am testing Sandesh2 v1.0 with AXIS2 RC1. The org.apache.axis2.description.PolicyInclude.getEffectivePolicy() returns org.apache.neethi.Policy
 whereas sandesh2 expects org.apache.ws.policy.Policy java.lang.NoSuchMethodError: org.apache.axis2.description.PolicyInclude.getEffectivePolicy()Lorg/ap ache/ws/policy/Policy;at
 org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDesc Policy(PropertyManager.java:158)at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:50)at
 org.apache.axis2.context.ConfigurationContextFactory.initModules(Confi gurationContextFactory.java:217)at org.apache.axis2.context.ConfigurationContextFactory.init(Configuratio nContextFactory.java
:193)at org.apache.axis2.context.ConfigurationContextFactory.createConfigurati onContext(ConfigurationContextFactory.java:70)at org.apache.axis2.context.ConfigurationContextFactory.createConfigurati
 onContextFromFileSystem(ConfigurationContextFactory.java:179)at org.apache.axis2.transport.http.SimpleHTTPServer.main(SimpleHTTPServer .java:157)
 NOTICE: If received in error, please destroy and notify sender. Sender does not intend to