think it comes from the fact persistence.xml is shared, can you try moving it in webapps?
Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-11-17 19:26 GMT+01:00 benerridge <[email protected]>: > I made another GitHub project that demonstrates this behaviour. > > https://github.com/cyberoblivion/ear-sso-test.git > > Install: > Tomee Plume should be used as the base app server. Hibernate libs will need > to be copied into the plume/lib folder. > All necessary hibernate libs are included in the /lib folder as well as a > tomee.xml to configure necessary resources. > > > When deployed go to > localhost:8080/webappA > > click on "Set Cookie" button and links will appear to navigate you to > two other applications. If all goes well you will see the welcome pages of > the other two apps when you click the links. > Otherwise the links will direct you back to the current page. > > When deployed as separate wars the application works as expected. When > deployed with ear packaging you will get error: > Cannot cast com.ciminc.domain.SingleSignOn as com.ciminc.domain.SingleSignOn > > Let me know if you have any issues with this and thanks for your help. > > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Ear-Classloading-issue-tp4672836p4672892.html > Sent from the TomEE Users mailing list archive at Nabble.com.
