Unable to access datasource remotely through JBoss

吃可爱长大的小学妹 提交于 2019-12-04 14:32:22

This guide says that you have to set

<use-java-context>false</use-java-context>

in mydatasource-ds.xml. Not sure if you did.

work.asr

If you get a

javax.naming.Reference 

that means you are missing runtime dependencies that are required for it to resolve. You can inspect the classFactory member of the Reference object via

getFactoryClassName() 

to figure out the first dependency you are missing.

In my case using JBoss6.1 it was:

org.jboss.resource.adapter.jdbc.remote.DataSourceFactory

Putting the jar this class is in on the classpath (common/lib/jbosscx-client.jar) got me past the first step and then it was a matter of tracking down all the ClassNotFoundException errors.

The full list for JBoss6.1 turned out to be:

- client/jnp-client.jar
- client/jboss-logging.jar
- common/lib/jbosscx-client.jar
- client/concurrent.jar
- client/jboss-client.jar
- client/jboss-common-core.jar
- client/jboss-integration.jar
- client/jboss-remoting.jar
- client/jboss-security-spi.jar
- client/jboss-serialization.jar
- client/jboss-transaction-api_1.1_spec.jar
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!