• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Deployment unsuccessful: " service=DataSourceBinding State: NOTYETINSTALLED"

 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They run in my local.

Here they are.

jboss-ds.xml




persistence.xml

 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesus Angeles:

It is ok now.



Great!
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic