File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes see error  ServletException: Exception creating DataSource: org.hsql.jdbcDriver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "see error  ServletException: Exception creating DataSource: org.hsql.jdbcDriver" Watch "see error  ServletException: Exception creating DataSource: org.hsql.jdbcDriver" New topic
Author

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

muhammad fahim
Ranch Hand

Joined: Dec 17, 2006
Posts: 45
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: see error ServletException: Exception creating DataSource: org.hsql.jdbcDriver
 
Similar Threads
jsp page not show oracle data
Listener started twice
javax. servlet. ServletException: Name myoracle is not bound in this Context
Class LoginServlet not a Servlet?
Login problem