• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

no suitable driver  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect to oracle database by a jndi lookup.I am using sun's blackbox resource adapter (blackboxnotx.rar).

app server-embedded oc4j.I have configured all the files(datasources.xml,oc4j.xml,ra.xml,oc4j-connectors.xml etc..)to include blackbox resource adapter.

when i do the jndi look up for the datasource i get the following error
I have added classes12.zip on my classpath.

08/12/09 10:28:57 com.sun.connector.blackbox.JdbcDataSource@241391
08/12/09 10:28:57 Exception raisedSQLException: No suitable driver
08/12/09 10:28:57 java.sql.SQLException: SQLException: No suitable driver
08/12/09 10:28:57 at com.sun.connector.blackbox.JdbcDataSource.getConnection(JdbcDataSource.java:77)
08/12/09 10:28:57 at Dao.MainDao.getconnection(MainDao.java:31)
08/12/09 10:28:57 at struts.LoginAction.execute(LoginAction.java:20)
08/12/09 10:28:57 at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
08/12/09 10:28:57 at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
08/12/09 10:28:57 at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
08/12/09 10:28:57 at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
08/12/09 10:28:57 at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
08/12/09 10:28:57 at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
08/12/09 10:28:57 at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
08/12/09 10:28:57 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
08/12/09 10:28:57 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
08/12/09 10:28:57 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
08/12/09 10:28:57 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
08/12/09 10:28:57 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
08/12/09 10:28:57 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
08/12/09 10:28:57 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
08/12/09 10:28:57 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
08/12/09 10:28:57 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
08/12/09 10:28:57 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
08/12/09 10:28:57 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
08/12/09 10:28:57 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
08/12/09 10:28:57 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
08/12/09 10:28:57 at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
08/12/09 10:28:57 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
08/12/09 10:28:57 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
08/12/09 10:28:57 at java.lang.Thread.run(Thread.java:595)

Please help me find a solution.
Thanks
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rename classes12.zip to classes12.jar and see if that helps.
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!