-
2. Re: ClassCastException with EJBs
spelux May 20, 2005 12:25 PM (in response to spelux)So what i have to do?
I understood that probably it is a problem of version, now i'm trying to test it on an older version of JBoss. But if that test would fail what i could do?
Thx a lot ;) -
3. Re: ClassCastException with EJBs
spelux May 20, 2005 1:01 PM (in response to spelux)It was just a problem of JBoss version!! Now it runs!!!
Bye bye! ;) -
4. Re: ClassCastException with EJBs
shardulkhatri Jun 3, 2005 1:12 PM (in response to spelux)on which version of jboss, it worked?
-
5. Re: ClassCastException with EJBs
ccalvo Jun 10, 2005 4:53 AM (in response to spelux)Hi all,
I have the same problem. It's works with JBoss 3.2.7, but fails when I deploy in JBoss 4.0.2.
What is the problem? I'm new in this environment. -
6. Re: ClassCastException with EJBs
dickp Jun 10, 2005 7:57 AM (in response to spelux)I experienced the same problem on 4.0.2. I rolled back to 4.0.1 (SP1) and it worked.
-
7. Re: ClassCastException with EJBs
darranl Jun 10, 2005 8:21 AM (in response to spelux)Have any of you read the links posted by Scott earlier in this thread?
They may help you understand the problem without needing to roll back to earlier releases. -
8. Re: ClassCastException with EJBs
svetzal Jun 25, 2005 10:26 AM (in response to spelux)"darranl" wrote:
Have any of you read the links posted by Scott earlier in this thread?
I realize everybody's busy and all, but perhaps a short summary of the problem (a sentence or two) before referring the world to 25 pages of detailed technical description containing _far_ more than we really need to understand the issue is not what we want here.
So, perhaps this will help future visitors to this page:
From 4.0.2 JBoss has changed to the Servlet spec classloading model, i.e. it uses the Tomcat classloader.
The first link Scott provided details the hows and whys of the ClassLoader architecture implemented in JBoss. If you have time, read this, it will help you - but get a cup of coffee and spend some time with it, don't just gloss it over. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases
The second link Scott provided has some specific examples and reading the configurations and their implications triggered my brain far faster than the more exhaustive technical description. Since then, however the first link was helpful when I couldn't reason something out. http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
So, while I digest all this, I've set the UseJBossWebLoader to true (the standard distribution of JBossAS 4.0.2 sets this false) in the jbossweb-tomcat55.sar\META-INF\jboss-service.xml so that the rest of my team can keep going unhindered, and I can figure out what I need to do in terms of changing our deployment structure to be compliant.
Steve -
9. Re: ClassCastException with EJBs
nirmalyaghosh Jul 17, 2005 4:17 AM (in response to spelux)Thankyou svetzal, setting UseJBossWebLoader to true (in 4.0.2), solved the problem.
-
10. Re: ClassCastException with EJBs
bvogt May 16, 2008 10:16 AM (in response to spelux)what is the preferred way of accessing an ejb within a war, which is deployed on the same container?