Results 1 to 1 of 1
- 09-17-2008, 01:36 PM #1
Member
- Join Date
- Apr 2008
- Posts
- 11
- Rep Power
- 0
Unable to get connection, DataSource invalid:
Hi,
I developed a jsp web app in netbeans. Then I loaded it to the remote server which uses a Tomcat. However, I got an error say;
"Unable to get connection, DataSource invalid:"
Yet it works alright on my PC. I have the META-IMF/ context set as;
and the WEB-IMF/web.xml set as;Java Code:<Context path="/myData"> <Resource name="jdbc/myData" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="root" password="kwesiaryee" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/myData"/> </Context>
Yet when I launch the website from the remote tomcat 5.25 server it gives me the above errors. I even have the mysql driver installed in the WEB-INF/ lib folder, still I get the same problems.Java Code:<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <resource-ref> <description>jdbc:mysql://localhost:3306/myData</description> <res-ref-name>jdbc/myData</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref>
Can someone help me solve this problem.
Similar Threads
-
How to check a "connection" from datasource is in Container and part of Transaction
By alexendra in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 05-24-2008, 08:51 AM -
How to check a "connection" from datasource is in Container and part of Transaction
By alexendra in forum JDBCReplies: 0Last Post: 05-24-2008, 08:50 AM -
Unable to get a XAConnection from the DataSource.
By Eric in forum Enterprise JavaBeans (EJB)Replies: 3Last Post: 05-16-2008, 11:17 AM -
Cannot set DataSource for RowSet
By piterskiy in forum JDBCReplies: 0Last Post: 12-07-2007, 07:58 PM -
Datasource
By samson in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 04-02-2007, 11:06 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks