File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment unsuccessful: " service=DataSourceBinding State: NOTYETINSTALLED"

 
Jesus Angeles
Ranch Hand
Posts: 2068
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They run in my local.

Here they are.

jboss-ds.xml




persistence.xml

 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2068
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2068
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2068
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jesus Angeles:

It is ok now.



Great!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic