[jboss-user] error connecting jboss to oracle

Koxkorrita koxkorrita at laudio.info
Tue May 12 16:36:40 EDT 2009


Hello

this is my first question .

My name is Koxkorrita.

I have one jboss into one SLES 10.

for running the jboss i make ${JBOSS_HOME/bin/run.sh -c default -b 0.0.0.0

 

i have put the oracle drivers (ojdbc14.jar) into the
${JBOSS_HOME/servers/default/lib

but when i try to load my app appears this error:

22:17:26,651 WARN  [JBossManagedConnectionPool] Throwable while attempting
to get a new connection: null

org.jboss.resource.JBossResourceException: Could not create connection; -
nested throwable: (org.jboss.resource.JBossResourceException: Failed to
register driver for: oracle.jdbc.driver.OracleDriver; - nested throwable:
(java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver))

        at
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createMa
nagedConnection(LocalManagedConnectionFactory.java:179)

        at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createCon
nectionEventListener(InternalManagedConnectionPool.java:577)

        at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnec
tion(InternalManagedConnectionPool.java:262)

        at
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.get
Connection(JBossManagedConnectionPool.java:500)

        at
org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnec
tion(BaseConnectionManager2.java:341)

        at
org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnectio
n(TxConnectionManager.java:315)

        at
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnecti
on(BaseConnectionManager2.java:396)

        at
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManage
rProxy.allocateConnection(BaseConnectionManager2.java:842)

        at
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataS
ource.java:88)

        at
org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(Dat
aSourceTransactionManager.java:200)

        at
org.springframework.transaction.support.AbstractPlatformTransactionManager.g
etTransaction(AbstractPlatformTransactionManager.java:350)

        at
org.springframework.transaction.interceptor.TransactionAspectSupport.createT
ransactionIfNecessary(TransactionAspectSupport.java:262)

        at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Tr
ansactionInterceptor.java:101)

        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:171)

        at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Expos
eInvocationInterceptor.java:89)

        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflect
iveMethodInvocation.java:171)

        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPro
xy.java:204)

        at $Proxy64.obtenerRolesByPerfilToken(Unknown Source)

        at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl
et.java:865)

        at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle
t.java:807)

        at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSer
vlet.java:571)

        at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java
:501)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

        at
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter
.java:125)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:96)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:230)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:175)

        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci
ationValve.java:179)

        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
84)

        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)

        at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnecti
onValve.java:157)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)

        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:583)

        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

        at java.lang.Thread.run(Thread.java:619)

Caused by: org.jboss.resource.JBossResourceException: Failed to register
driver for: oracle.jdbc.driver.OracleDriver; - nested throwable:
(java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver)

 

 

Can anybody helps me for solving it?

thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20090512/26f3488e/attachment.html 


More information about the jboss-user mailing list