[jboss-dev-forums] [JBoss AS 7 Development] - AS7 Class Cast Exceptions from common jar

Bill Rosenberg do-not-reply at jboss.com
Sat Oct 27 18:41:36 EDT 2012


Bill Rosenberg [https://community.jboss.org/people/bill.rosenberg] created the discussion

"AS7 Class Cast Exceptions from common jar"

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

--------------------------------------------------------------
My app is structured pretty simply:

App.Ear
     -AppEJB.jar
     -AppWeb.war
     -/lib
          -AppCommon.jar


Both the ejb and web share the AppCommon classes by default since it is int he /lib directory under the EAR. I do not reference  the AppCommon.jar in any manifest or in jboss-deployment-structure.xml files. In the application i am seeing exceptions like the following, where they seem to be the same class type, but jboss is throwing a ClassCastException. The 'com.lightspeed.dao.availability.Rate' class is inside the AppCommon.jar which
is shared.


16:22:46,331 ERROR [stderr] (http-localhost/127.0.0.1:8443-1) java.lang.ClassCastException: com.lightspeed.dao.availability.Rate cannot be cast to com.lightspeed.dao.availability.Rate

Any ideas?

Thanks,

Bill
--------------------------------------------------------------

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

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/20121027/895f481d/attachment.html 


More information about the jboss-dev-forums mailing list