-
1. Re: NoClassDefFoundError and ClassNotFoundException errors d
naguilar Aug 19, 2008 12:36 PM (in response to naguilar)Since the post isn't showing the XML tags for the ear-deployer.xml, Here are the attribute settings:
attribute name="Isolated" -> false
attribute name="CallByValue" -> false
attribute name="EnablelibDirectoryByDefault" -> true -
2. Re: NoClassDefFoundError and ClassNotFoundException errors d
naguilar Aug 21, 2008 8:47 AM (in response to naguilar)Issue Resolved. The reason why I was getting this error was not not because isolation was turned on, it was because the servlets in my WAR file were loading on startup and they referenced classes that existed in the EAR file. Since the WAR and EAR were deployed seperately, the WAR was being loaded before the EAR file and therefore the classes were not found.
The solution was to fix the deployment order so that the EAR file was loaded before the WAR file and this was done by updating the \conf\xmdesc\org.jboss.deployment.MainDeployer-xmbean.xml file.
The following is the line I changed:<value value="250:.rar,300:-ds.xml,400:.jar,500:.ear,550:.jse,650:.war,800:.bsh"/>
As you can see, ear now comes before war.