my dog learned polymorphism*
The moose likes JBoss/WildFly and the fly likes Where to put derbyclient.jar in jboss7? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Where to put derbyclient.jar in jboss7?" Watch "Where to put derbyclient.jar in jboss7?" New topic
Author

Where to put derbyclient.jar in jboss7?

Avinash Ga
Ranch Hand

Joined: Aug 13, 2011
Posts: 78

Hi Ranchers,

where to put derbyclient.jar in jboss7? so that hibernate in my deployed web app can access it. i have tried by putting it inside the WEB-INF/lib folder but getting the following error,


17:35:45,235 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-2) SQL Error: 0, SQLState: 08001
17:35:45,235 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http--127.0.0.1-8080-2) No suitable driver found for jdbc:derby://localhost:1527/Hibernate;create=true
17:35:45,238 ERROR [stderr] (http--127.0.0.1-8080-2) javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection
17:35:45,238 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1361)
17:35:45,239 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289)
17:35:45,239 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1371)
17:35:45,239 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
17:35:45,240 ERROR [stderr] (http--127.0.0.1-8080-2) at persistance.service.ORMService.save(Unknown Source)
17:35:45,240 ERROR [stderr] (http--127.0.0.1-8080-2) at webhelper.GoodServletHelper.save(Unknown Source)
17:35:45,240 ERROR [stderr] (http--127.0.0.1-8080-2) at web.GoodServlet.doPost(Unknown Source)
17:35:45,241 ERROR [stderr] (http--127.0.0.1-8080-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
17:35:45,241 ERROR [stderr] (http--127.0.0.1-8080-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
17:35:45,241 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
17:35:45,242 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:35:45,242 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
17:35:45,243 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
17:35:45,243 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
17:35:45,243 ERROR [stderr] (http--127.0.0.1-8080-2) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
17:35:45,244 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
17:35:45,244 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:35:45,245 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:35:45,245 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
17:35:45,245 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
17:35:45,246 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
17:35:45,246 ERROR [stderr] (http--127.0.0.1-8080-2) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
17:35:45,247 ERROR [stderr] (http--127.0.0.1-8080-2) at java.lang.Thread.run(Thread.java:680)
17:35:45,247 ERROR [stderr] (http--127.0.0.1-8080-2) Caused by: org.hibernate.exception.JDBCConnectionException: Could not open connection
17:35:45,247 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:131)
17:35:45,248 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)
17:35:45,248 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
17:35:45,249 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
17:35:45,249 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:304)
17:35:45,249 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169)
17:35:45,250 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67)
17:35:45,250 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160)
17:35:45,251 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1263)
17:35:45,251 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:57)
17:35:45,251 ERROR [stderr] (http--127.0.0.1-8080-2) ... 19 more
17:35:45,252 ERROR [stderr] (http--127.0.0.1-8080-2) Caused by: java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/Hibernate;create=true
17:35:45,252 ERROR [stderr] (http--127.0.0.1-8080-2) at java.sql.DriverManager.getConnection(DriverManager.java:602)
17:35:45,252 ERROR [stderr] (http--127.0.0.1-8080-2) at java.sql.DriverManager.getConnection(DriverManager.java:154)
17:35:45,253 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:173)
17:35:45,253 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:276)
17:35:45,254 ERROR [stderr] (http--127.0.0.1-8080-2) at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297)
17:35:45,254 ERROR [stderr] (http--127.0.0.1-8080-2) ... 24 more

can someone help me how to fix this issue?

Avinash G.A
OCP Java SE 6 Programmer, OCP Java EE 5 Web Component Developer, OCE Java EE 6 Web Services Developer, VMware Certified Core Spring 3.x Developer, EMC Proven Professional (ISM-V2)
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1646
    
    7

Does this link help?
https://docs.jboss.org/author/display/AS71/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7


[How To Ask Questions][Read before you PM me]
Avinash Ga
Ranch Hand

Joined: Aug 13, 2011
Posts: 78

Thanks bill. That blog is having really cool info.
 
 
subject: Where to put derbyclient.jar in jboss7?
 
Similar Threads
NameNotFoundExcption
Exception when accessing Javaranch
JBoss 5 Transaction Exception
how to make java database connectivity with oracle 10g on windows vista operating system.
DriverManager not getting connection.