aspose file tools*
The moose likes JDBC and the fly likes Cannot deploy simple WS in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Cannot deploy simple WS in eclipse" Watch "Cannot deploy simple WS in eclipse" New topic

Cannot deploy simple WS in eclipse

Bobby Anderson
Ranch Hand

Joined: Oct 28, 2008
Posts: 114
I am trying to deploy a simple web service using eclipse v3.4. I am running into a problem with hibernate I think.

When I deploy I get the following error:
10:29:41,398 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/T2Datasource
javax.naming.NameNotFoundException: T2Datasource not bound

Here is ds.xml file:
<?xml version="1.0" encoding="UTF-8"?>



I can do a successful test connection to the test DB using eclipse and that works, so I am not really sure what my problem is.

I have found a ton of posts on this error throughout the web but none of them explain what the problem is.

Any ideas would be greatly appreciated!

David Young

Joined: Apr 01, 2005
Posts: 4
Try to add one additional line like this:
Bobby Anderson
Ranch Hand

Joined: Oct 28, 2008
Posts: 114
Crossed my fingers and tried it out, but no luck same exact error message. I am very new to java and I have been hitting my head against the wall on this one for over 2 weeks.

I am using eclipse to create a dynamic web project but cannot even publish the default project with no changes without this error. One of my problems stems from the fact the eclipse FORCES me to choose a DB connection when I create a dynamic web project. Well that just seems wrong becuase I do not even need a DB to create a simple hello world web service. Regardless even with the DB setup I cannot deploy.

Anyone else run into this or have any other ideas.

Again I am using eclipse 3.4, with JBOSS 4.2.x, and mySQL 5.1

Thanks again, and please help I am STUCK!

I agree. Here's the link:
subject: Cannot deploy simple WS in eclipse