[jboss-dev-forums] [JBoss AS 7 Development] - my application does not see the oracle classes even if the driver is defined.

Dursun KOC do-not-reply at jboss.com
Tue Jan 8 01:31:00 EST 2013


Dursun KOC [https://community.jboss.org/people/dursunkoc] created the discussion

"my application does not see the oracle classes even if the driver is defined."

To view the discussion, visit: https://community.jboss.org/message/789240#789240

--------------------------------------------------------------
I have created the oracle module at 
$JBOSS_HOME/modules/com/oracle/ojdbc14/main
module.xml  
ojdbc14.jar  
ojdbc14.jar.index

the content of the module.xml is as follows.
<module xmlns="urn:jboss:module:1.0" name="com.oracle.ojdbc14">
  <resources>
    <resource-root path="ojdbc14.jar"/>
  </resources>
  <dependencies>
    <module name="javax.api"/>
  </dependencies>
</module>


when I run my web application 
it fails with the following exception;

[Server:comet_i5] 06:02:44,883 ERROR [stderr] (http--0.0.0.0-8100-2) Caused by: java.lang.ClassNotFoundException: oracle.sql.BLOB from [Module "deployment.Aragorn.war:main" from Service Module Loader]
[Server:comet_i5] 06:02:44,884 ERROR [stderr] (http--0.0.0.0-8100-2)    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
[Server:comet_i5] 06:02:44,884 ERROR [stderr] (http--0.0.0.0-8100-2)    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
[Server:comet_i5] 06:02:44,885 ERROR [stderr] (http--0.0.0.0-8100-2)    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
[Server:comet_i5] 06:02:44,885 ERROR [stderr] (http--0.0.0.0-8100-2)    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
[Server:comet_i5] 06:02:44,885 ERROR [stderr] (http--0.0.0.0-8100-2)    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
[Server:comet_i5] 06:02:44,886 ERROR [stderr] (http--0.0.0.0-8100-2)    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)


should I also add the ojcdb14.jar into the WEB/lib of my war.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/789240#789240]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130108/4a1c833c/attachment-0001.html 


More information about the jboss-dev-forums mailing list