• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Services with missing/unavailable dependencies

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i am trying to deploy my first ejb 3 sample application on Jboss AS 7.0, but I am getting below error message while starting the server.

I am using Jboss tools for Eclipse.



I have only one entity in the Entity Bean(Domain) and below is the persistence.xml in META-INF folder. And i am using Annotations rather then mapping xml file.


and below is the content of the standalone.xml from jboss



I haven't used entity manager to perform any database operations on entity.

I am just trying to test the Web project in which i am using Struts 2.3.

I have created on MYSQLDS DataSource from the Jboss Admin Console which i am specifying in persistence.xml file.

Can anybody help me out in solving this issue. Please let me know if you need any other information.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a typo in persistence.xml:

java:jboss/datasource/MYSQLDS


Based on your standalone.xml, that should have been:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic