• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

see error ServletException: Exception creating DataSource: org.hsql.jdbcDriver

 
muhammad fahim
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi master
sir
jsp page give me this error

javax.servlet.ServletException: Exception creating DataSource: org.hsql.jdbcDriver

i am use web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>testconn</servlet-name>
<servlet-class>testconn</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>testconn</servlet-name>
<url-pattern>/servlet/testconn</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
</welcome-file-list>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/postgres</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>


and Context.xml this

<?xml version="1.0" encoding="UTF-8" ?>
<Context path="/dcp" privileged="true">
<Resource name="jdbc/postgres" auth="Container"
type=" javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbcracle:thin:@127.0.0.1:1521:aamir"
username="muhammad" password="mfa786" maxActive="1" maxIdle="0" maxWait="-1"/>
</Context>

please give me idea how i slove this error

thank's

aamir
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic