This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Connection pooling using datasource with JNDI - Jboss server 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 "Connection pooling using datasource with JNDI - Jboss server" Watch "Connection pooling using datasource with JNDI - Jboss server" New topic
Author

Connection pooling using datasource with JNDI - Jboss server

K Padmavathi
Greenhorn

Joined: Apr 23, 2013
Posts: 1
Hi,
I need one help from you. In JDBC connection pool using jboss server, It is compiled successfully but when I am trying to run that program it is showing request resourse not found (DSMain1.java) but it is there in .war file (WEB-INF folder). please tel me the solution.

I placed mysql-ds.xml file in server/default/deploy.
mysql-ds.xml



java classes are

DSUtil.java


DSMain.java


I added all .jar to the class path. please tel me solution........

it is showing the error

HTTP Status 404 - /JDBCConnectionPool/WEB-INF/classes/DSMain1.java
--------------------------------------------------------------------------------
type Status report
message /JDBCConnectionPool/WEB-INF/classes/DSMain1.java
description The requested resource (/JDBCConnectionPool/WEB-INF/classes/DSMain1.java) is not available.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

The error message you posted comes from a browser, but the DSMain1 class you posted is for a standalone Java application. It appears that you are trying to run a standalone Java class as a servlet, you cannot do that.


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Connection pooling using datasource with JNDI - Jboss server
 
Similar Threads
SQLException
OracleDS not Bound in JBOSS
issue in getting more than one data
How to use ConnectionPool in jsp
How to access websphere datasource using Java client