[jboss-user] [JBoss Tools] - Re: target/project.war different from project.war that is Run On Server

Tanya Ruttenberg do-not-reply at jboss.com
Mon Apr 2 14:37:03 EDT 2012


Tanya Ruttenberg [https://community.jboss.org/people/daxxy] created the discussion

"Re: target/project.war different from project.war that is Run On Server"

To view the discussion, visit: https://community.jboss.org/message/727822#727822

--------------------------------------------------------------
oh boy, this is a big "DUH" for me!

the 2nd persistence.xml was from my ejb jar (a dependency) -- I left it in there accidentally.  Once I removed it, Run As - > Run On Server worked beautifully.

Maven must have been using an "installed" version of the ejb jar that did not have persistence.xml in it and that's why it looked "correct" to me.

Somehow no matter how long I linger before I press teh "Submit" button when I write one of these up, the answer becomes obvious only AFTER I've pressed it!  Usually within 5 minutes of pressing it, too.

Have a nice day.
TDR
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/727822#727822]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120402/04f3511a/attachment.html 


More information about the jboss-user mailing list