Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Problem with mex-1.5.mar(Problem with mex-1.5.mar)
Problem with mex-1.5.mar [message #496712] Wed, 11 November 2009 06:05 Go to next message
Richard  is currently offline Richard Friend
Messages: 4
Registered: November 2009
Junior Member
Please help, I've been playing with WTP, Eclipse and AXIS for a short time and can't seem to get rid of the following error when I start the Tomcat Server. Any help would be great.

[INFO] Clustering has been disabled
[INFO] Deploying module: script-1.5 - file:/home/richard/Stuff/Software/Eclipse/workspace/.metadat a/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test1 00/WEB-INF/modules/scripting-1.5.mar
[INFO] Deploying module: mtompolicy-1.5 - file:/home/richard/Stuff/Software/Eclipse/workspace/.metadat a/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test1 00/WEB-INF/modules/mtompolicy-1.5.mar
[INFO] Deploying module: soapmonitor-1.5 - file:/home/richard/Stuff/Software/Eclipse/workspace/.metadat a/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test1 00/WEB-INF/modules/soapmonitor-1.5.mar
[ERROR] The mex-1.5.mar module, which is not valid, caused org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
org.apache.axis2.deployment.DeploymentException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.repository.util.ArchiveReader.re adModuleArchive(ArchiveReader.java:531)
at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDepl oyer.java:71)
at org.apache.axis2.deployment.repository.util.DeploymentFileDa ta.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(Deploy mentEngine.java:663)
at org.apache.axis2.deployment.RepositoryListener.init(Reposito ryListener.java:251)
at org.apache.axis2.deployment.RepositoryListener.init2(Reposit oryListener.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.getAxis Configuration(WarBasedAxisConfigurator.java:229)
at org.apache.axis2.context.ConfigurationContextFactory.createC onfigurationContext(ConfigurationContextFactory.java:64)
at org.apache.axis2.transport.http.AxisServlet.initConfigContex t(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet .java:443)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServl et.java:56)
at org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
at org.apache.catalina.core.StandardService.start(StandardServi ce.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 95)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:43 3)
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.ModuleBuilder.populateModule(Mod uleBuilder.java:217)
at org.apache.axis2.deployment.repository.util.ArchiveReader.re adModuleArchive(ArchiveReader.java:518)
... 29 more
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(Mo duleBuilder.java:83)
at org.apache.axis2.deployment.ModuleBuilder.populateModule(Mod uleBuilder.java:106)
... 30 more
Caused by: java.lang.ClassCastException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.ModuleBuilder$1.run(ModuleBuilde r.java:73)
at org.apache.axis2.java.security.AccessController.doPrivileged (AccessController.java:132)
at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(Mo duleBuilder.java:71)
... 31 more
[INFO] Deploying module: addressing-1.5 - file:/home/richard/Stuff/Software/Eclipse/workspace/.metadat a/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test1 00/WEB-INF/modules/addressing-1.5.mar
[INFO] Deploying module: ping-1.5 - file:/home/richard/Stuff/Software/Eclipse/workspace/.metadat a/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Test1 00/WEB-INF/modules/ping-1.5.mar
[ERROR] The mex-1.5.jar module, which is not valid, caused org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
org.apache.axis2.deployment.DeploymentException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.repository.util.ArchiveReader.re adModuleArchive(ArchiveReader.java:531)
at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDepl oyer.java:71)
at org.apache.axis2.deployment.repository.util.DeploymentFileDa ta.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(Deploy mentEngine.java:663)
at org.apache.axis2.deployment.RepositoryListener.loadClassPath Modules(RepositoryListener.java:209)
at org.apache.axis2.deployment.RepositoryListener.init2(Reposit oryListener.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.getAxis Configuration(WarBasedAxisConfigurator.java:229)
at org.apache.axis2.context.ConfigurationContextFactory.createC onfigurationContext(ConfigurationContextFactory.java:64)
at org.apache.axis2.transport.http.AxisServlet.initConfigContex t(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet .java:443)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServl et.java:56)
at org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
at org.apache.catalina.core.StandardService.start(StandardServi ce.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 95)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:43 3)
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.ModuleBuilder.populateModule(Mod uleBuilder.java:217)
at org.apache.axis2.deployment.repository.util.ArchiveReader.re adModuleArchive(ArchiveReader.java:518)
... 29 more
Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(Mo duleBuilder.java:83)
at org.apache.axis2.deployment.ModuleBuilder.populateModule(Mod uleBuilder.java:106)
... 30 more
Caused by: java.lang.ClassCastException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.ModuleBuilder$1.run(ModuleBuilde r.java:73)
at org.apache.axis2.java.security.AccessController.doPrivileged (AccessController.java:132)
at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(Mo duleBuilder.java:71)
... 31 more
Re: Problem with mex-1.5.mar [message #496714 is a reply to message #496712] Wed, 11 November 2009 06:37 Go to previous messageGo to next message
Richard  is currently offline Richard Friend
Messages: 4
Registered: November 2009
Junior Member
Well this is great news, managed to fix my own problem.

I forgot that I copied all the AXIS jar files to my Tomcat directory.

So I deleted tomcat and extracted it again from tar.za , then only copied of the following jars.


httpcore-4.0-beta1.jar
httpcore-nio-4.0-beta1.jar

to tomcat comm/lib

This seems to do the trick.

Laughing
Re: Problem with mex-1.5.mar [message #1081236 is a reply to message #496712] Wed, 07 August 2013 01:30 Go to previous messageGo to next message
Kala Kotamarthi is currently offline Kala KotamarthiFriend
Messages: 3
Registered: May 2013
Junior Member
Hi,

I am trying to deploy a simple web service in Eclipse using axis2 and tomcat. I am getting this error. Please any help is greatly appreciated trying hard to solve this for many days.





org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: BP
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:432)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:60)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1189)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1103)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1010)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4935)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5262)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5257)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: BP
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)
... 25 more
Caused by: org.apache.axis2.AxisFault: BP
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.util.Utils.getServiceClass(Utils.java:804)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:430)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388)
... 25 more
Caused by: java.lang.ClassNotFoundException: BP
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:188)
at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
at org.apache.axis2.util.Loader.loadClass(Loader.java:229)
at org.apache.axis2.util.Utils.getServiceClass(Utils.java:801)
... 27 more
[ERROR] The BP service, which is not valid, caused The following error occurred during schema generation: BP
org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: BP
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:432)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:60)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1189)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1103)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1010)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4935)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5262)
at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5257)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: BP
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)
... 25 more
Caused by: org.apache.axis2.AxisFault: BP
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.util.Utils.getServiceClass(Utils.java:804)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:430)
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388)
... 25 more
Caused by: java.lang.ClassNotFoundException: BP
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:188)
at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
at org.apache.axis2.util.Loader.loadClass(Loader.java:229)
at org.apache.axis2.util.Utils.getServiceClass(Utils.java:801)
... 27 moreI copied all the axis2 jar files to tomcat lib files.
Thanks,
Kala
Re: Problem with mex-1.5.mar [message #1261272 is a reply to message #1081236] Sun, 02 March 2014 11:37 Go to previous message
Pubudu Gunatilaka is currently offline Pubudu GunatilakaFriend
Messages: 1
Registered: March 2014
Junior Member
I faced this problem too. In my case I haven't followed the steps clearly in this article. In step 12, do not change the "Service Project" name.


Previous Topic:NPE at 99% validation in Kepler Static Web Project
Next Topic:Web Service on Tomcat 7 not available
Goto Forum:
  


Current Time: Sat Nov 22 16:59:15 GMT 2014

Powered by FUDForum. Page generated in 0.01846 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software