[jboss-user] [EJB 3.0] - Re: ClassCastException: $Proxy94 cannot be cast ...

ttrepper do-not-reply at jboss.com
Wed Apr 9 04:31:17 EDT 2008


Hi jaikiran, hi ALRubinger, 

thank you for your replies and your hints. I have the same anticipation, that in my application is something wrong with the classes (and class-loaders).

My question now is how an ear-file is best packed and with which structure?

I am developing in eclipse and I have a "main"-project, which is an ear-project. Then I have a components and a util-project with classes needed by the ejbs and the web. furthermore I have a web-project and an ejb-project. The structure looks similar like this:

test (ear)
 + testEJB   (holds EJBs)
 + testWeb  (holds JSPs)
 + testUtil    (holds Helper-Classes and Utils) (needed by web and ejb)
 + testComponents  (holds components - only needed by web)

What is the best structure to pack the libs (incl. third-party like tomahawk) into the ear? What in ear-web-inf/lib, what in web.jar-web-inf/lib, etc?

Thank you very much for the help

Thomas

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142611#4142611

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142611



More information about the jboss-user mailing list