• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Where to put derbyclient.jar in jboss7?

 
Ranch Hand
Posts: 78
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does this link help?
https://docs.jboss.org/author/display/AS71/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7
 
Avinash Ga
Ranch Hand
Posts: 78
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks bill. That blog is having really cool info.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic