Hi Joana, Thanx that moved me a little bit forward. Now deployment works without Exception, but when i want to list all services i get the following error:
java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/codegen/extension/ModulePolicyExtension 2008-04-23 17:47:14,401 [http-8080-Processor24] ERROR org.apache.axis2.deployment.ModuleDeployer - The rampart-642231.mar module, which is not valid, caused So rampart is not deployed properly. Any Ideas? thanx in advance Stefan The complete StackTrace 2008-04-23 17:47:14,384 [http-8080-Processor24] DEBUG org.apache.axis2.deployment.util.Utils - Created temporary file : /usr/share/tomcat/work/Catalina/localhost/axis2/_axis2/axis212063rampart-642231.mar 2008-04-23 17:47:14,385 [http-8080-Processor24] DEBUG org.apache.axiom.om.util.StAXUtils - XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader 2008-04-23 17:47:14,389 [http-8080-Processor24] DEBUG org.apache.axis2.util.Loader - java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/codegen/extension/ModulePolicyExtension 2008-04-23 17:47:14,392 [http-8080-Processor24] DEBUG org.apache.axis2.util.Loader - java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/codegen/extension/ModulePolicyExtension 2008-04-23 17:47:14,401 [http-8080-Processor24] DEBUG org.apache.axis2.i18n.ProjectResourceBundle - org.apache.axis2.i18n.resource::handleGetObject(invalidmodule) 2008-04-23 17:47:14,401 [http-8080-Processor24] ERROR org.apache.axis2.deployment.ModuleDeployer - The rampart-642231.mar module, which is not valid, caused org/apache/axis2/wsdl/codegen/extension/ModulePolicyExtension java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/codegen/extension/ModulePolicyExtension at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.axis2.util.Loader.loadClass(Loader.java:261) at org.apache.axis2.util.Loader.loadClass(Loader.java:229) at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:68) at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:102) at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:518) at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:71) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597) at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:237) at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68) at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63) at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147) at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:511) Joana M. F. Trindade wrote: > Hi Stefan, > > You should enable the rampart module in the "global modules" section of the > axis2 configuration file (conf/axis2.xml), and in the service configuration > file (services.xml). You can do this by adding <module ref="rampart"> to > these files. > > Cheers, > Joana > > On Tue, May 6, 2008 at 9:48 AM, Stefan Lischke <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> Hmm, i'm using latest Axis2 1.4 and there is already a Security phase in >> OutFaultFlow axis2.xml. >> >> My Question, do i have to modify anything on axis2.xml if i use <module >> ref="rampart"> in the >> service.xml of my service. >> >> I dont want to add the module globally for all services used in my axis2 >> instance. Or do i have to >> add <module ref="rampart"> to the axis2.xml ? >> >> thanx in advance >> >> Stefan >> >> >> Sanjay Vivek wrote: >>> Hi Stefan, >>> >>> You can find out more about how to enable this in axis2.xml at [1]. This >>> was incidentally posted by Joana :). >>> >>> [1] - >>> http://mail-archives.apache.org/mod_mbox/ws-rampart-dev/200802.mbox/%3cf >>> [EMAIL PROTECTED] >>> >>> Regards >>> Sanjay >>> >>>> -----Original Message----- >>>> From: Stefan Lischke [mailto:[EMAIL PROTECTED] On Behalf >>>> Of Stefan Lischke >>>> Sent: 06 May 2008 13:23 >>>> To: rampart-dev@ws.apache.org >>>> Subject: Re: where to put the rampart-*.jars >>>> >>>> Hi, >>>> >>>> I just enabled it in the service.xml. Do i have to enable it >>>> also in the axis2.xml? >>>> Please tell me how or link me to a proper documentation >>>> >>>> thanx in advance >>>> >>>> Stefan >>>> >>>> Joana M. F. Trindade wrote: >>>>> Hi Stefan, >>>>> >>>>> Yes, you should enable it using <module ref="rampart">. Are you >>>>> enabling it also in the axis2.xml file? >>>>> >>>>> Cheers, >>>>> Joana >>>>> >>>>> On Tue, May 6, 2008 at 9:11 AM, Stefan Lischke >>>> <[EMAIL PROTECTED]> wrote: >>>>>> thanks for your answer, >>>>>> >>>>>> so my libs are in the right place, and i also added "<module >>>>>> ref="rampart"/>" to my service.xml it seems to deploy in >>>>>> org.apache.axis2.transport.http.SimpleHTTPServer but not in tomcat >>>>>> >>>>>> ;-( >>>>>> >>>>>> i did not used any client stuff yet, just wanted to deploy >>>> without error. >>>>>> is it possible that i have to use >>>>>> <module ref="rampart-642231"/> >>>>>> >>>>>> instead of >>>>>> >>>>>> "<module ref="rampart"/>" >>>>>> >>>>>> beacuse there are >>>>>> tomcat/webapps/axis2/WEB-INF/modules/rahas-642231.mar >>>>>> tomcat/webapps/axis2/WEB-INF/modules/rampart-642231.mar >>>>>> >>>>>> >>>>>> Stefan >>>>>> >>>>>> >>>>>> Joana M. F. Trindade wrote: >>>>>>> Hi Stefan, >>>>>>> >>>>>>> Yes, this is the right place to put the rampart .jars at the server >>>>>> side. >>>>>>> For the client application side, they should be put in the >>>> classpath >>>>>>> of >>>>>> the >>>>>>> application. Did you put the rampart module in a "modules" folder, >>>>>>> and informed this path to a ConfigurationContext object in the >>>>>>> client application? >>>>>>> >>>>>>> Cheers, >>>>>>> Joana >>>>>>> >>>>>>> On Tue, May 6, 2008 at 8:54 AM, Stefan Lischke <[EMAIL PROTECTED]> >>>>>> wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> I have a problem with deployment. When using >>>>>>>> org.apache.axis2.transport.http.SimpleHTTPServer i put >>>> the rampart >>>>>>>> jars in the classpath and everything works fine. >>>>>>>> >>>>>>>> But when using axis2 in a real tomcat, i got the Error: >>>>>>>> org.apache.axis2.deployment.DeploymentException: The >>>> rampart module >>>>>>>> is >>>>>> not >>>>>>>> valid or has not been >>>>>>>> deployed. at >>>>>>>> >>>>>>>> it seems that the jars are not found. They are present in >>>>>>>> >>>>>>>> tomcat/webapps/axis2/WEB-INF/lib/ >>>>>>>> >>>>>>>> Is this the right position or should i put them in a lib directory >>>>>> under >>>>>>>> modules? >>>>>>>> >>>>>>>> >>>>>>>> thanx in advance >>>>>>>> >>>>>>>> Stefan >>>>>>>> >> > >