websphere7.0下启动web应用失败

jndiname是 jdbc/rb ,

数据源配置如下:

       

               

        

       

启动war包应用,报如下错误,请哪位高手指点,谢谢!


[16-9-2 14:43:40:828 CST] 0000001e InternalDB2Un W   DSRA8200W: DataSource 配置:DSRA8020E: 警告:在 DataSource 类 com.ibm.db2.jcc.DB2ConnectionPoolDataSource 中不存在属性“enableClientAffinitiesList”。

[16-9-2 14:43:40:831 CST] 0000001e DSConfigurati W   DSRA8200W: DataSource 配置:DSRA8020E: 警告:在 DataSource 类 com.ibm.db2.jcc.DB2ConnectionPoolDataSource 中不存在属性“enableClientAffinitiesList”。

[16-9-2 14:43:40:839 CST] 0000001e ConnectionFac E   J2CA0009E: 尝试将资源 jdbc/rb 使用的 ManagedConnectionFactory 类 com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl 实例化时发生异常:java.lang.IllegalArgumentException: 参数类型不匹配

参与13
  • 哪位有部署SSH项目的经验,项目迁移至WebSphere上各种冲突
    2016-09-02

3同行回答

sangmin214sangmin214系统工程师SS
1. 有没有成功过1.1 如果成功过,那可能是环境的问题1.2 如果没有成功过,那就先解决提示的错误,比如把不适合的属性先去掉之类的。显示全部

1. 有没有成功过

1.1 如果成功过,那可能是环境的问题

1.2 如果没有成功过,那就先解决提示的错误,比如把不适合的属性先去掉之类的。

收起
系统集成 · 2016-09-02
浏览2360
  • 谢谢!没有成功过,第一次用was,从tongweb迁移至was7.0,配置的jndi测试连接成功,但是spring-hibernate配置文件里一直无法正确读取jndi。
    2016-09-02
夏中成夏中成研发工程师迪科
重启又换错误了Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is jav...显示全部

重启又换错误了

Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found

        at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

        ... 154 more

收起
软件开发 · 2016-09-02
浏览2378
  • ,。。想点关注问题的。。汗个。。个人觉得还是代码问题,was和tomcat之间的转换没做好。
    2016-09-03
YuLiminYuLimin资深技术顾问IBM广州
用Spring 2.5以上,然后配置之web.xmljdbc/rbContainerShareablejavax.sql.DataSourceSpring显示全部

用Spring 2.5以上,然后配置之

web.xml

jdbc/rb

Container

Shareable

javax.sql.DataSource


Spring

    jndi-name="jdbc/rb"

    cache="true"

    resource-ref="true"

    lookup-on-startup="false"

    proxy-interface="javax.sql.DataSource"/>

收起
互联网服务 · 2016-09-12
浏览2114

提问者

夏中成
研发工程师迪科

问题状态

  • 发布时间:2016-09-02
  • 关注会员:4 人
  • 问题浏览:4953
  • 最近回答:2016-09-12
  • X社区推广