aspose file tools*
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
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: 5843
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection pooling using datasource with JNDI - Jboss server