This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Deployment unsuccessful: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deployment unsuccessful: " service=DataSourceBinding State: NOTYETINSTALLED"" Watch "Deployment unsuccessful: " service=DataSourceBinding State: NOTYETINSTALLED"" New topic
Author

Deployment unsuccessful: " service=DataSourceBinding State: NOTYETINSTALLED"

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Hi,

I have an application built on Struts 2, mysql 5, ejb 3, jboss 4.2.1, and netbeans 6.0.1.

I am now attempting to install the ear into a web hosting site.

I get this error below. Any ideas?



This is the only message in the console that is looking like an error message.

The session bean is not appearing on the jndi view.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9961
    
163

I Depend On:
jboss.jca:name=jdbc/gameds,service=DataSourceBinding


You probably have not deployed the datasource (*-ds.xml) file, or the jndi-name in the datasource file is not matching to what you have specified in the persistence.xml file. Can you post the contents to the -ds.xml and the peristentce.xml file?


[My Blog] [JavaRanch Journal]
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
They run in my local.

Here they are.

jboss-ds.xml




persistence.xml

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9961
    
163

Are you sure, the datasource file is in the "deploy" folder and being deployed without any errors? Do you see any log messages like:

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
I will check what you just mentioned.

Just want to add below:

I deployed the ear file so I am assuming that these 2 xmls are also packaged into the ear file, when netbeans generated the ear file.

But now, I searched inside the ear file, and the jboss-ds.xml doesnt seem to be inside it.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9961
    
163

The persistence.xml will be in the META-INF folder of your gamingcity-ejb.jar. However, the -ds.xml will "usually" be outside the EAR and will have to be deployed by placing in the "deploy" folder. I don't know how it is handled through the IDE.
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Originally posted by Jaikiran Pai:
Are you sure, the datasource file is in the "deploy" folder and being deployed without any errors? Do you see any log messages like:



There is not like above.

All of them seem like 'waiting on' and 'depending on' the jdbc/gameds.

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9961
    
163

Originally posted by Jesus Angeles:

There is not like above.



Place the jboss-ds.xml in the "delpoy" folder and restart JBoss.
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
You did it again Jaikiran.

It is ok now.

I have seen your blog on jndi, and it helped me 2 weeks ago past through that error.

Thanks!!!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9961
    
163

Originally posted by Jesus Angeles:

It is ok now.



Great!
 
Consider Paul's rocket mass heater.
 
subject: Deployment unsuccessful: " service=DataSourceBinding State: NOTYETINSTALLED"
 
Similar Threads
State: NOTYETINSTALLED
Problem with EJB 3. Name not bound error
NameNotFoundExcption
Help with ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Reorder the sequence of deployment in jboss