Michele, 
Did you use the included ant script to generate the sample logging module? 

I ran into similar issues this past week as I tried to use the tutorial on the 
axis website, and it was combining the tutorial with the readme that is located 
in the AXIS2_HOME/samples/userguide directory that helped me out. To use their 
script to generate the module, first run the command "ant" (from the userguide 
directory) to compile the classes, and then use "ant generate.module" to create 
the module. 

As a word of caution: the tutorial says that you are creating a "logging" 
module. The 
AXIS2_HOME/samples/userguide/src/userguide/loggingmodule/META-INF/module.xml 
actually names the module "sample-logging," and the example webservice's 
service.xml 
(AXIS2_HOME/samples/userguide/src/userguide/example2/META-INF/services.xml) 
references a "sample-logging" module - NOT a "logging" module as the tutorial 
states. You either need to update these files to create/reference a "logging" 
module, or you need to substitute "sample-logging" into everywhere you 
reference a "logging" module in the tutorial. 

To be concise: your module.xml, service.xml and axis2.xml must all refer to the 
same module. 

Best of luck. 

Jon


Jon Smith
Software Developer
1000 5th Ave
Columbus, GA 31901
Phone:  (706) 644-3485
E-Mail: [EMAIL PROTECTED]


>>> Michele Mazzucco <[EMAIL PROTECTED]> 12/10/07 12:19 PM >>>
Just a quick update. I've tried with the last nightly build and I get
the same problem.
Is there anybody who can successfully deploy modules?

Thanks,
Michele



On Mon, 2007-12-10 at 17:11 +0000, Michele Mazzucco wrote:
> Hi all,
>
> after the upgrade to axis2 1.3 (official release) I cannot deploy
> modules any more, the system throws a ClassNotFoundException (saying it
> doesn't find one of the handlers even if the class is available) during
> system startup:
>
> org.apache.axis2.deployment.DeploymentException: mic.module.FakeHandler
>         at
> org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:132)
>         at
> org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfigBuilder.java:405)
>         at
> org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisConfigBuilder.java:433)
>         at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:133)
>         at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:615)
>         at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:146)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet..java:500)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>         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:566)
>         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:597)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: java.lang.ClassNotFoundException: mic.module.FakeHandler
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         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.util.Utils.loadHandler(Utils.java:117)
>         ... 33 more
>
>
> I've tried to deploy the logging module (available in the binary
> distribution) but it fails as well (from the stack trace I understand
> that the problem is the same):
>
> The sample-logging.mar module, which is not valid, caused
> userguide.loggingmodule.LoggingModule
> org.apache.axis2.deployment.DeploymentException:
> userguide.loggingmodule.LoggingModule
>         at
> org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:493)
>         at
> org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:69)
>         at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)
>         at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571)
>         at
> org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:231)
>         at
> org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:64)
>         at
> org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:59)
>         at
> org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:134)
>         at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:218)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet..java:500)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>         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:566)
>         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:597)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: org.apache.axis2.deployment.DeploymentException:
> userguide.loggingmodule.LoggingModule
>         at
> org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:82)
>         at
> org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:96)
>         at
> org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:480)
>         ... 37 more
> Caused by: java.lang.ClassNotFoundException:
> userguide.loggingmodule.LoggingModule
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         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:66)
>         ... 39 more
>
>
>
> What's wrong?
>
>
> Michele
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-----------------------------------------
NOTICE: This communication is intended only for the person or
entity to whom it is addressed and may contain confidential,
proprietary, and/or privileged material. Unless you are the
intended addressee, any review, reliance, dissemination,
distribution, copying or use whatsoever of this communication is
strictly prohibited. If you received this in error, please reply
immediately and delete the material from all computers. Email sent
through the Internet is not secure. Do not use email to send us
confidential information such as credit card numbers, PIN numbers,
passwords, Social Security Numbers, Account numbers, or other
important and confidential information.

Reply via email to