I have installed EJB3 RC9 Patch1 on my existing jboss-4.0.5 to fix the redeploy problem as suggested then I recompiled and redeployed the code. But, the "wrong target class" problem still appears. Is there anything i missed?
Maybe i should go back to jboss-4.0.4?
SOLUTION:
We just released JEMS Installer 1.2.0.GA which includes EJB3.CR9-patch1. You can download the new installer from:
http://easynews.dl.sourceforge.net/sourceforge/jboss/jems-installer-1.2.0.GA.jar?download
EJB3 patch 1 should have solved you problems with the hot-redeployment as announced in the release notes:
The EJB 3.0 RC9 Patch 1 implementation is only usable with JBoss 4.0.5.GA. The patch has been released to provide compatibility with the full (non-installer) release for JBossAS 4.0.5. The patch also corrects a problem with the installer version that caused hot redeploys to fail with a classloading issue.
You can download the RC9 patch 1 release here: http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=132063&release_id=471103
Please follow the instructions in INSTALL.html to install the patch.
SUBPROBLEM:
It seems that this only works properly with the "all" configuration. The install script installs the "ejb3-clustered-sfsbcache-service" and "entity-cache-service" services regardless of the configuration chosen. Removing those from the deploy directory solved the problem (I used the "default" configuration with only ejb3 installed).
REPLY:
Migrating From EJB 3.0 RC8 -> RC9
- MDBs are no longer JMS specific. They work entirely from JCA Message Inflow. This means that the JBoss JMS Resource Adapter is used if you are using JBoss MQ. How to configure the JMS RA.
- For Embedded EJB 3.0, if you are using JMS and MDBs, you must have the lib/ directory of the distribution in your classpath. The deployer will be looking for jms-ra.rar in the classpath so that it can deploy the JMS RAR.
- If you are patching a server configuration other than one using clustering from the "all" configuration from the JEMS Installer, you must remove ejb3-clustered-sfsbcache-service.xml and ejb3-entity-cache-service.xml as they'll be unable to find org.jboss.cache.TreeCache.
- References to javax.annotation.EJB must be changed to javax.ejb.EJB for proper injection. javax.ejb.EJB lives in RC9's jboss-ejb3x.jar. When running the patch installer, this file gets updated in $JBOSS_HOME/server/instancename?/deploy/ejb3.deployer, but not $JBOSS_HOME/client at time of this writing.
No comments:
Post a Comment