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&...]