-
1. Re: JBoss 4 to Jboss 5 migration: JSF, EJB3...
jaikiran Mar 2, 2011 3:11 AM (in response to faraon02)Anton Gavazuk wrote:
1) All org.jboss.annotation.ejb imports must be replaced with org.jboss.ejb3.annotation
That's correct. The package changed between AS4.x and AS5.
Anton Gavazuk wrote:
2) Now most irritating - errors related with CDI implementation. I had such error during startup - but my application DOESNT have any dependency on webbeans!!! Why I'm getting this?
Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:67)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
... 34 more
Caused by: java.lang.ClassNotFoundException: org.jboss.webbeans.bootstrap.WebBeansBootstrap from BaseClassLoader
Because by default webbeans deployer will treat your application as the app with webbeans support...
Solution: remove from your server/deploeyrs webbeans.deployer folder
I haven't seen anyone bring up an issue related to this. So this looks new. Can you please add a bit more details about your application contents, especially the packaging? You shouldn't have seen that ClasstNotFoundException.
-
2. Re: JBoss 4 to Jboss 5 migration: JSF, EJB3...
jaikiran Mar 2, 2011 3:12 AM (in response to jaikiran)By the way, if it's an option then you should consider using the latest JBoss AS 6.0.0.Final instead of JBoss AS 5.1.0.