AXIS2 与SSH 集成 事物代理不可用

 

 

 

 

 

2012-5-28 18:17:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.5.0_17\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\Program Files\Java\jdk1.5.0_17\jre\bin;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\windows\system32\;D:\tools\android-sdk_r16-windows\android-sdk-windows\tools;D:\tools\jprofiler_windows_5_1_\jprofiler5\bin\windows;F:\软件\eclipse-SDK-3.7.1-win32\eclipse;
2012-5-28 18:17:50 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8088
2012-5-28 18:17:50 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 672 ms
2012-5-28 18:17:50 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-5-28 18:17:50 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.28
2012-5-28 18:17:50 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
UTF-8
2012-5-28 18:17:50 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive axis2.war
[2012-05-28 18:17:51,339][INFO ]<main>(ApplicationContext.java:653) - Initializing Spring root WebApplicationContext
[2012-05-28 18:17:51,339][INFO ]<main>(ContextLoader.java:189) - Root WebApplicationContext: initialization started
[2012-05-28 18:17:51,417][INFO ]<main>(AbstractApplicationContext.java:400) - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1f2be27: display name [Root WebApplicationContext]; startup date [Mon May 28 18:17:51 CST 2012]; root of context hierarchy
[2012-05-28 18:17:51,589][INFO ]<main>(XmlBeanDefinitionReader.java:323) - Loading XML bean definitions from file [D:\tomcat\webapps\axis2\WEB-INF\classes\application-aop.xml]
[2012-05-28 18:17:52,824][INFO ]<main>(XmlBeanDefinitionReader.java:323) - Loading XML bean definitions from file [D:\tomcat\webapps\axis2\WEB-INF\classes\application-dao.xml]
[2012-05-28 18:17:53,027][INFO ]<main>(XmlBeanDefinitionReader.java:323) - Loading XML bean definitions from file [D:\tomcat\webapps\axis2\WEB-INF\classes\application-manager.xml]
[2012-05-28 18:17:53,136][INFO ]<main>(AbstractApplicationContext.java:415) - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@1f2be27]: org.springframework.beans.factory.support.DefaultListableBeanFactory@e77781
[2012-05-28 18:17:53,386][INFO ]<main>(PropertiesLoaderSupport.java:178) - Loading properties file from class path resource [jdbc.properties]
[2012-05-28 18:17:53,558][INFO ]<main>(DefaultListableBeanFactory.java:414) - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e77781: defining beans [org.springframework.aop.config.internalAutoProxyCreator,aspectBean,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,org.springframework.aop.aspectj.AspectJPointcutAdvisor#1,org.springframework.aop.aspectj.AspectJPointcutAdvisor#2,org.springframework.aop.aspectj.AspectJPointcutAdvisor#3,businessService,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,SayHelloDao,applicationContext,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,threadPool,collectSalesOrderExecutor,springScheduleExecutorTask,springScheduledExecutorFactoryBean,SayHelloManager]; root of factory hierarchy
[2012-05-28 18:17:54,402][INFO ]<main>(ThreadPoolTaskExecutor.java:213) - Initializing ThreadPoolExecutor 'threadPool'
[2012-05-28 18:17:54,949][INFO ]<main>(ScheduledExecutorFactoryBean.java:170) - Initializing ScheduledExecutorService 'springScheduledExecutorFactoryBean'
[2012-05-28 18:17:55,058][INFO ]<main>(ContextLoader.java:209) - Root WebApplicationContext: initialization completed in 3719 ms
[2012-05-28 18:17:56,058][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: addressing - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/addressing-1.4.1.mar
[2012-05-28 18:17:56,089][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: addressing - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/addressing-1.5.5.mar
[2012-05-28 18:17:56,105][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: jaxws - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.5.5.mar
[2012-05-28 18:17:56,120][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: script-1.41 - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/axis2-scripting-1.41.mar
[2012-05-28 18:17:56,152][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: metadataExchange-1.41 - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/mex-1.41.mar
[2012-05-28 18:17:56,245][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: metadataExchange - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/mex-1.5.5.mar
[2012-05-28 18:17:56,261][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: mtompolicy - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/mtompolicy-1.5.5.mar
[2012-05-28 18:17:56,277][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: ping-1.41 - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/ping-1.41.mar
[2012-05-28 18:17:56,292][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: ping - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/ping-1.5.5.mar
[2012-05-28 18:17:56,308][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: script - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/scripting-1.5.5.mar
[2012-05-28 18:17:56,339][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: soapmonitor-1.41 - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/soapmonitor-1.41.mar
[2012-05-28 18:17:56,355][INFO ]<main>(ModuleDeployer.java:75) - Deploying module: soapmonitor - file:/D:/tomcat/webapps/axis2/WEB-INF/modules/soapmonitor-1.5.5.mar
org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:151)
 at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81)
 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.repository.util.WSInfoList.update(WSInfoList.java:144)
 at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
 at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
 at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
 at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
 at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:82)
 at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
 at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
 at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.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(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106)
 at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:110)
 at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:144)
 ... 37 more
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:431)
 at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
 ... 39 more
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:394)
 ... 40 more
Caused by: java.io.IOException: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.description.java2wsdl.bytecode.ClassReader.getBytes(ClassReader.java:84)
 at org.apache.axis2.description.java2wsdl.bytecode.ParamReader.<init>(ParamReader.java:57)
 at org.apache.axis2.description.java2wsdl.bytecode.ChainedParamReader.<init>(ChainedParamReader.java:52)
 at org.apache.axis2.description.java2wsdl.bytecode.MethodTable.<init>(MethodTable.java:31)
 at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:158)
 at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:524)
 at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:386)
 ... 40 more
[2012-05-28 18:17:56,574][ERROR]<main>(ServiceDeployer.java:96) - The meta-info.aar service, which is not valid, caused The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:151)
 at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81)
 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.repository.util.WSInfoList.update(WSInfoList.java:144)
 at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
 at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
 at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
 at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
 at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:82)
 at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
 at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
 at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.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(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106)
 at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:110)
 at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:144)
 ... 37 more
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:431)
 at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
 ... 39 more
Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:394)
 ... 40 more
Caused by: java.io.IOException: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
 at org.apache.axis2.description.java2wsdl.bytecode.ClassReader.getBytes(ClassReader.java:84)
 at org.apache.axis2.description.java2wsdl.bytecode.ParamReader.<init>(ParamReader.java:57)
 at org.apache.axis2.description.java2wsdl.bytecode.ChainedParamReader.<init>(ChainedParamReader.java:52)
 at org.apache.axis2.description.java2wsdl.bytecode.MethodTable.<init>(MethodTable.java:31)
 at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:158)
 at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:524)
 at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:386)
 ... 40 more
[2012-05-28 18:17:56,574][INFO ]<main>(DeploymentEngine.java:600) - org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Unable to load bytecode for class cn.com.ld.manager.impl.SayHelloManagerImpl$$EnhancerByCGLIB$$45ddd918
[2012-05-28 18:17:56,761][INFO ]<main>(ServiceDeployer.java:91) - Deploying Web service: version-1.5.5.aar - file:/D:/tomcat/webapps/axis2/WEB-INF/services/version-1.5.5.aar
2012-5-28 18:17:56 org.apache.catalina.core.ApplicationContext log
信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2012-5-28 18:17:57 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2012-5-28 18:17:57 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2012-5-28 18:17:57 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2012-5-28 18:17:57 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2012-5-28 18:17:57 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8088
2012-5-28 18:17:57 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-5-28 18:17:57 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/31  config=null
2012-5-28 18:17:57 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2012-5-28 18:17:57 org.apache.catalina.startup.Catalina start
信息: Server startup in 7625 ms

 

 

applicationContext-service.xml

 

 <bean id="SayHelloManager" class="cn.com.ld.manager.impl.SayHelloManagerImpl">
      <property name="sayHelloDao" ref="SayHelloDao"/>
    </bean> 

applicationContext-dao.xml

 <bean id="SayHelloDao" class="cn.com.ld.dao.impl.SayHelloDaoImpl"/>

 

tomcat\webapps\axis2\WEB-INF\lib已经加入 jar包

 

 

asm-2.2.3.jar
asm-commons-2.2.3.jar
asm-util-2.2.3.jar
aspectjrt-1.5.2.jar
aspectjweaver.jar
c3p0-0.9.0.4.jar
c3p0-0.9.1.jar
cglib-nodep-2.1_3.jar
cglib.jar
commons-logging.jar
log4j-1.2.8.jar
spring-context-2.5.jar
spring-context.jar
spring-jdbc-1.2.1.jar
spring.jar

 

发布服务中代码

@Autowired
 private SayHelloDao sayHelloDao;

 @Transactional(propagation = Propagation.REQUIRED, timeout = 10)
 public void sayHello() {
  System.out.println("-----------------");
  sayHelloDao.sayHello();
 }

 

Transactional 注解不支持

@Autowired
 private SayHelloDao sayHelloDao;

 

 //@Transactional(propagation = Propagation.REQUIRED, timeout = 10)
 public void sayHello() {
  System.out.println("-----------------");
  sayHelloDao.sayHello();
 }

 

当然spring-aop 也无法与集成

 

你可能感兴趣的:(AXIS2 与SSH 集成 事物代理不可用)