当我用axis2服务编译aspectj文件时,我发现了这个错误。有人知道我该怎么办

时间:2013-11-27 07:22:22

标签: java glassfish axis2 aspect netbeans6.5

此Web axisService存在部署错误 错误:java.lang.Class中的java.lang.Class.Class.declaredMethods(Class.java:2427)中的java.lang.CoC.Merods上的java.lang.NoClassDefFoundError:org / aspectj / runtime / internal / AroundClosure .getDeclaredMethods(Class.java:1791)位于org.apache.axis.devloyment.util.Utils.fillAxisService(Utils.java:468)的org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:273) )org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388)位于org.apache.axis.deployment.repository的org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)。 util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)atg.apache.axis.deployment.repository.ArchiveReader.processServiceGroup(ArchiveReader.java:143)org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer。 java:82)at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentF) ileData.java:136)org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)at org .apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine) .java:142)org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)位于org.apache.axis上的org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)。位于org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:454)的transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper。 java:1194)at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1023)a t org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4917)位于com.sun.enterprise.web.WebModule.start的org.apache.catalina.core.StandardContext.start(StandardContext.java:5324) (WebModule.java:353)位于org.apache的org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)。 catalina.core.StandardHost.addChild(StandardHost.java:704)位于com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)的com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java: 1232)com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)at com.sun.enterprise.admin.event com.com.enter上的.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)com.sun.enterprise.admin.event.AdminEventMul com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)的com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:)中的ticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992): 182)com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)at com.sun位于com.sun.enterprise.deployment.phasing.ApplicationPhase.runPhase(ApplicationStartPhase.java:132)的com.sun.enterprise.deployment.phasing.DeploymentPhase上的.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298) .executePhase(DeploymentPhase.java:108)位于com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)的com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen) tService.java:280)com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:298)at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:584)at sun at.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)com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)位于com.sun的com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)。企业.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)位于com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)的com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer。 java:761)at s的sun.reflect.GeneratedMethodAccessor17.invoke(未知来源) un.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass。 java:90)at $ Proxy1.invoke(Unknown Source)at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)at com.sun.enterprise.interceptor.DynamicInterceptor.invoke (DynamicInterceptor.java:174)com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:583)at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:564)at at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:495)位于com.sun.enterprise.deployment的com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:270)。 java.util中的java.util.TimerThread.mainLoop(Timer.java:512)中的autodeploy.AutoDeployControllerImpl $ AutoDeployTask.run(AutoDeployControllerImpl.java:374) .TimerThread.run(Timer.java:462)引起:java.lang.ClassNotFoundException:未找到类:org.apache.axis2.deployment.DeploymentClassLoader.findClass中的org.aspectj.runtime.internal.AroundClosure(DeploymentClassLoader.java: 96)java.lang.ClassLoader.loadClass(ClassLoader.java:267)at org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:277)at java.lang.ClassLoader.loadClass(ClassLoader.java:247) )......还有68个

1 个答案:

答案 0 :(得分:0)

是“java.lang.NoClassDefFoundError”。这意味着在类路径中找不到特定的类。您是否将所需的库放在“lib”文件夹中? 检查,所需的罐子是否在axis2类路径