-
1. Re: ClassNotFoundException
peterj Apr 2, 2012 10:10 AM (in response to vairam_sm)Where is the missing class located?
-
2. Re: ClassNotFoundException
vairam_sm Apr 3, 2012 12:08 AM (in response to peterj)The missing class is inside the bean jar file. May i know the reason why in jboss 6.1.0, its checking for the specific class while dealing with object class level compression and decomprsssion.
This case is not occuring in jboss 4.2.2. the same file is working fine in jboss 4.2.2.
-
filedir.jpg 126.4 KB
-
-
3. Re: ClassNotFoundException
stmarci Apr 3, 2012 3:09 AM (in response to vairam_sm)It is possible that you have two jars (or classes) in your classpath which implement the same class. I encountered the same problem when I put an slf4j.jar into my eclipse project and ivy pulled in an slf4j-api.jar as a dependency of Hibernate. When I started the application I got a class not found exception even though I had them twice.
Make sure you have only one .class in your classpath.
Best regards,
Márton
-
4. Re: ClassNotFoundException
vairam_sm Apr 3, 2012 7:19 AM (in response to stmarci)Your right, but in my case i have deployed my ear file in jboss 6.1.0 deploy folder, which contains the class(lrp.settings.control.Vo.NotificationAliasVo). When i try to decompress my client "NotificationAliasVo" object in server side, i'm getting ClassNotFoundException in server side, eventhough the "NotificationAliasVo" class present in below path.
File : E:\servers\jboss-6.1.0.Final\server\default\deploy\NotificationAliasEar.ear
lrp/settings/control/Vo/NotificationAliasVo.class
File : E:\servers\jboss-6.1.0.Final\server\default\tmp\vfs\automountdb7a572aa381488c\NotificationAlias-ejb.jar-78336969b24a45a9\NotificationAlias-ejb.jar
lrp/settings/control/Vo/NotificationAliasVo.class
File : E:\servers\jboss-6.1.0.Final\server\default\tmp\vfs\automountdb7a572aa381488c\NotificationAliasEar.ear-434e8b4b52652219\NotificationAliasEar.ear
lrp/settings/control/Vo/NotificationAliasVo.class
-
5. Re: ClassNotFoundException
vairam_sm Apr 5, 2012 12:01 AM (in response to vairam_sm)Hi,
I have placed the class (Class which compress and decompress the object) inside the ejb jar. in this case ClassNotFoundException found exception is not occuring. So there is some security restriction which is not allowing to load the class from other jar. Is there any security, which restrict the access of class from other jar. If so, kindly provide the detail to diable it.
-
6. Re: ClassNotFoundException
stmarci Apr 5, 2012 3:12 AM (in response to vairam_sm)Hi,
I encountered the same thing with jBPM when I tried to upload a POJO model jar and jbpm-console couldn't found my class, even if I placed it inside the deployment folder. I had to explode that war and put my jar into the WEB-INF/lib directory. I think you've just experienced the very same thing.
Best regards,
Márton -
7. Re: ClassNotFoundException
vairam_sm Apr 7, 2012 3:17 AM (in response to stmarci)Hi
I hvae found solution for my JBoss 6.1.0 ClassNotFoundException issue, its due to the below isolated flag true status.
File name: %JBOSS_HOME%/server/default/deployers/ear-deployer-jboss-beans.xml
<bean name="EARClassLoaderDeployer" class="org.jboss.deployment.EarClassLoaderDeployer">
<!-- A flag indicating if ear deployments should have their own scoped
class loader to isolate their classes from other deployments.
-->
<property name="isolated">true</property> // i have changed it to false. now its working fine.
</bean>