You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2015/10/10 05:52:05 UTC

[jira] [Assigned] (SMX4-1978) spring-jdbc incorrect websphere imports

     [ https://issues.apache.org/jira/browse/SMX4-1978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned SMX4-1978:
----------------------------------

    Assignee: Freeman Fang

> spring-jdbc incorrect websphere imports
> ---------------------------------------
>
>                 Key: SMX4-1978
>                 URL: https://issues.apache.org/jira/browse/SMX4-1978
>             Project: ServiceMix 4
>          Issue Type: Bug
>          Components: Bundles
>            Reporter: Andrew Clemons
>            Assignee: Freeman Fang
>         Attachments: 0001-SMX4-1978-Fix-incorrect-WAS-jdbc-imports-in-spring-j.patch
>
>
> I just upgraded an OSGi application from Spring 3.1 to Spring 3.2. I am now using the servicemix wrappers since upstream no longer ship bundles with OSGi metadata.
> There is a regression in the imports for the websphere helper classes in spring-jdbc.
> In 3.1.4.RELEASE, the imports looked like this:
> {noformat}
> com.ibm.websphere.rsadapter;version="0";resolution:="optional"
> com.ibm.ws.rsadapter.jdbc;version="0";resolution:="optional"
> {noformat}
> In ServiceMix' 3.2.14.RELEASE_1, they look like this:
> {noformat}
> com.ibm.websphere.rsadapter;resolution:=optional
> com.ibm.websphere.rsadapter.jdbc;resolution:=optional
> {noformat}
> The second package changed in 3.2 (ws changed to websphere in the second import). This causes the following error:
> {noformat}
> Caused by: java.lang.IllegalStateException: Could not initialize WebSphereNativeJdbcExtractor because WebSphere API classes are not available: java.lang.ClassNotFoundException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection not found by org.apache.servicemix.bundles.spring-jdbc [106]
> 	at org.springframework.jdbc.support.nativejdbc.WebSphereNativeJdbcExtractor.<init>(WebSphereNativeJdbcExtractor.java:65)
> 	at java.lang.J9VMInternals.newInstanceImpl(Native Method)
> 	at java.lang.Class.newInstance(Class.java:1357)
> {noformat}
> I attached a fragment bundle to org.apache.servicemix.bundles.spring-jdbc which has the old optional import and then things worked again. Could you update your build to import the correct WAS package?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)