`

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 也无法与集成

 

1
1
分享到:
评论
2 楼 zld406504302 2012-05-30  
List<SpArea> spAreaList = template.query(sql, new BeanPropertyRowMapper(SpArea.class));
用RowMapper 实现类 BeanPropertyRowMapper 会抛出类型无法转换异常,
  org.springframework.jdbc.support.JdbcUtils.lookupColumnName  (Ljava/sql/ResultSetMetaData;I)Ljava/lang/String;

可以自定义实现类
  public class SpAreaRowMapper implements RowMapper {

public Object mapRow(ResultSet resultset, int i) throws SQLException {
SpArea spArea = new SpArea();
spArea.setId(resultset.getInt(1));
spArea.setAreaCode(resultset.getString(2));
spArea.setAreaName(resultset.getString(3));
return spArea;
}

}

改成如下方式 就可以映射成javabean list 
List<SpArea> spAreaList = (List<SpArea>) template.query(sql, new SpAreaRowMapper()); 
1 楼 zld406504302 2012-05-29  

    axis2 对于在services.xml 中发布的spring bean ,不支持bean中Java的动态代理 或是CGLIB代理技术,所以直接将使用java动态代理或是cglib代理的springbean 发布,就会抛出异常。
     目前,小生仅是通过在spring 使用代理的bean外层加了一层,用其发布

相关推荐

    axis2的配置以及与ssh框架结合实例

    配置Axis2与SSH集成的具体步骤如下: 1. **安装和配置Axis2**:下载并解压Axis2的最新版本,设置AXIS2_HOME环境变量,将bin目录添加到PATH环境变量中。 2. **创建Web服务**:编写Java服务接口和实现,使用Axis2的...

    java开源包2

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包4

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包1

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包11

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包3

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包6

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包5

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包10

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包8

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包7

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包9

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    java开源包101

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    Java资源包01

    JFile 是 JActor 的文件持久化组件,以及一个高吞吐量的可靠事务日志组件。 Google地图JSP标签库 利用Google:maps JSP标签库就能够在你的Web站点上实现GoogleMaps的所有功能而且不需要javascript或AJAX编程。它还...

    JAVA上百实例源码以及开源项目源代码

    Tcp服务端与客户端的JAVA实例源代码 2个目标文件 摘要:Java源码,文件操作,TCP,服务器 Tcp服务端与客户端的JAVA实例源代码,一个简单的Java TCP服务器端程序,别外还有一个客户端的程序,两者互相配合可以开发出超多...

Global site tag (gtag.js) - Google Analytics