Thanks Andreas. When I start up tomcat 6.0.24 I get the following exception.
Any tips on resolving this will be helpful:[INFO] Clustering has been
disabled[ERROR] The addressing-1.5.1.mar module, which is not valid, caused
nulljava.lang.ExceptionInInitializerError at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501) at
java.lang.Class.newInstance0(Class.java:350) at
java.lang.Class.newInstance(Class.java:303) at
org.apache.axis2.deployment.util.Utils$1.run(Utils.java:97) at
org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
at org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:93)
at
org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:531)
at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:74)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
at
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251)
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:64)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
org.apache.catalina.core.StandardService.start(StandardService.java:516) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
org.apache.catalina.startup.Catalina.start(Catalina.java:593) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Caused by:
org.apache.commons.logging.LogConfigurationException: User-specified log class
'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not
useable. at
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:874)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at
org.apache.axis2.handlers.addressing.AddressingInHandler.<clinit>(AddressingInHandler.java:55)
... 39 more[ERROR] The mex-1.5.1.mar module, which is not valid, caused
nulljava.lang.ExceptionInInitializerError at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501) at
java.lang.Class.newInstance0(Class.java:350) at
java.lang.Class.newInstance(Class.java:303) at
org.apache.axis2.deployment.ModuleBuilder$1.run(ModuleBuilder.java:73) at
org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
at
org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:71)
at
org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:106)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:516)
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:659)
at
org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251)
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:64)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
org.apache.catalina.core.StandardService.start(StandardService.java:516) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
org.apache.catalina.startup.Catalina.start(Catalina.java:593) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Caused by:
org.apache.commons.logging.LogConfigurationException: User-specified log class
'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not
useable. at
org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:874)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at
org.apache.axis2.mex.MetadataExchangeModule.<clinit>(MetadataExchangeModule.java:38)
... 40 more[INFO] Deploying module: mtompolicy-1.5.1 - file:/C:/Documents and
Settings/mxshah/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/mtompolicy-1.5.1.mar[INFO]
Deploying module: ping-1.5.1 - file:/C:/Documents and
Settings/mxshah/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/ping-1.5.1.mar[INFO]
Deploying module: script-1.5.1 -
file:/C:/Documents and
Settings/mxshah/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/scripting-1.5.1.mar[INFO]
Deploying module: soapmonitor-1.5.1 - file:/C:/Documents and
Settings/mxshah/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Axis2WSTest/WEB-INF/modules/soapmonitor-1.5.1.mar[ERROR]
The axis2-1.5.jar module, which is not valid, caused
nulljava.lang.NoClassDefFoundError at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501) at
java.lang.Class.newInstance0(Class.java:350) at
java.lang.Class.newInstance(Class.java:303) at
org.apache.axis2.deployment.util.Utils$1.run(Utils.java:97) at
org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
at
org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:93) at
org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:531)
at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:74)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
at
org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(RepositoryListener.java:209)
at
org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:70)
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:64)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
org.apache.catalina.core.StandardService.start(StandardService.java:516) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
org.apache.catalina.startup.Catalina.start(Catalina.java:593) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)[ERROR] The
mex-1.5.1.jar module, which is not valid, caused
nulljava.lang.NoClassDefFoundError at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501) at
java.lang.Class.newInstance0(Class.java:350) at
java.lang.Class.newInstance(Class.java:303) at
org.apache.axis2.deployment.ModuleBuilder$1.run(ModuleBuilder.java:73) at
org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
at
org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:71)
at
org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:106)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:516)
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:659)
at
org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(RepositoryListener.java:209)
at
org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:70)
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:64)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
at
org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
org.apache.catalina.core.StandardService.start(StandardService.java:516) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
org.apache.catalina.startup.Catalina.start(Catalina.java:593) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)[INFO]
org.apache.axis2.AxisFault: The system is attempting to engage a module that is
not available: addressing
Best wishes,Monisha
--- On Fri, 3/26/10, Andreas Veithen <[email protected]> wrote:
From: Andreas Veithen <[email protected]>
Subject: Re: Deploying Axis2 and Secure web service
To: [email protected]
Date: Friday, March 26, 2010, 12:34 PM
Nope, you need to change the generated web.xml to use
org.apache.axis2.webapp.AxisAdminServlet instead of
org.apache.axis2.transport.http.AxisAdminServlet. For an overview of
the compatibility issues between Axis2 1.5 and Eclipse JST, see
AXIS2-4464.
Andreas
On Fri, Mar 26, 2010 at 06:49, Chinmoy Chakraborty <[email protected]> wrote:
>
> You have to add org.apache.axis2.webapp.AxisAdminServlet.class manually. This
> class file is there in the binary distribution. You can look
> at AXIS2-4467 ....
>
>
>
> On Fri, Mar 26, 2010 at 5:37 AM, SM <[email protected]> wrote:
>>
>> Thanks Nandana.
>> I used eclipse Gamypede to generate webservices in the past with tomcat 6.
>> Was using the service archive and the code generator wizard. However the
>> loading of axis2 fails with the following error on a new version of eclipse
>> Galileo 3.5SR2. Tomcat version 6.0 is being used.
>> repositories:
>> /WEB-INF/classes/
>> ----------> Parent Classloader:
>> org.apache.catalina.loader.standardclassloa...@6e70c7
>> org.apache.axis2.transport.http.AxisAdminServlet
>> java.lang.ClassNotFoundException:
>> org.apache.axis2.transport.http.AxisAdminServlet
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
>> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
>> at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
>> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:592)
>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>> at org.apache.catalina.startup.Bootstrap.main(Boots
>> I want to deploy, test and then make it a secure web service. Any tips or
>> pointers will be helpful.
>> Thanks,
>> Monisha
>> --- On Tue, 3/23/10, Nandana Mihindukulasooriya <[email protected]>
>> wrote:
>>
>> From: Nandana Mihindukulasooriya <[email protected]>
>> Subject: Re: Deploying Axis2 and Secure web service
>> To: [email protected], [email protected]
>> Date: Tuesday, March 23, 2010, 4:56 PM
>>
>> Hi Monisha,
>> Apache Rampart is the module which is used to secure Axis2 based
>> web services and the information here [1],[2] will be useful.
>>
>> Best regards,
>> Nandana
>>
>> [1] - http://ws.apache.org/rampart/articles.html
>> [2] - http://wso2.org/library/3190
>>
>> On Wed, Mar 24, 2010 at 12:43 AM, SM <[email protected]> wrote:
>>>
>>> Hi all,
>>> Is there a tutorial that any of u can point me to so that I can create a
>>> secure web service. That is a web service incorporating the ws-security
>>> standards when creating the webservice and also when creating the client
>>> that communicates with this web service.
>>>
>>> Your response in this regards will be appreciated.
>>>
>>> Best,
>>> Monisha
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]