[jboss-dev-forums] [JBoss AS 7 Development] - On the topic of missing resources
Nicklas Karlsson
do-not-reply at jboss.com
Wed Jan 2 04:06:59 EST 2013
Nicklas Karlsson [https://community.jboss.org/people/nickarls] created the discussion
"On the topic of missing resources"
To view the discussion, visit: https://community.jboss.org/message/787009#787009
--------------------------------------------------------------
The current upstream master currently says upon finding a mismatch in datasource definition/lookup something like
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.naming.context.java.jboss.datasources.testDS (missing) depen
> dents: [service jboss.persistenceunit."Test.war#primary"]
Although it well, says what happens, is the contextual information available so that the message could be something like
> *"Sorry to bother you but when I tried to deploy test.war I noticed that it was JPA enabled (I found a persistence.xml in test.war/WEB-INF\classes\META-INF).*
> *Upon futher investigation I noticed that the persistence unit called "primary" was looking for a JNDI bound datasource at "java:jboss/datasources/testDS". This, however,*
> *was not found but I found these instead:*
>
> *java:jboss/datasources/badtestDS (defined in test-ds-xml in the standalone/deployments folder)*
> *java:jboss/datasources/exampleDS (defined in standalone/configuration/xml in the datasources subsystem)*
>
> *I might of course guess but I suggest that you match the two JNDI names yourself (perhaps there was a typo or difference in the JNDI prefix)?*
>
> *Have a nice day!*
> * Yours truly, AS 7.2.0"*
other messages could be
> *"While I was looking through the datasource definition I noticed that you referenced a driver named "ojdbc6" in the datasource "foo" defined in standalone/configuration/xml in the datasources subsystem,*
> *however, no driver matching that name was found defined. What I found was a driver named*
>
> *"com.oracle.db"*
>
> *Perhaps you were referring to that?*
>
> *Have a nice day!*
> * Yours truly, AS 7.2.0"*
or
> *"**While I was looking through the datasource definition I noticed that you referenced a driver named "ojdbc6" in the datasource "foo" defined in standalone/configuration/xml in the datasources subsystem,*
> *however, the driver definition references a module "com.oracle.db.drv" which was not found in the JBoss Modules system. I found the following interesting modules*
>
> *"com.oracle.db.drivermodule"
> *
> *
> *
> *Perhaps you were referring to that?*
>
> *Have a nice day!*
> * Yours truly, AS 7.2.0"*
*
*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/787009#787009]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130102/7cd5f293/attachment-0001.html
More information about the jboss-dev-forums
mailing list