aspose file tools*
The moose likes JBoss/WildFly and the fly likes ServletException related to linking , can not understand Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "ServletException related to linking , can not understand" Watch "ServletException related to linking , can not understand" New topic
Author

ServletException related to linking , can not understand

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 234
Hi all,

I am encountering a strange problem when clicking to a jsp page. Can not figure out the reason. Please help.
The exception is given below:-




Thanks in Advance,
Kousik
Kuldip Shetty
Ranch Hand

Joined: Jan 07, 2010
Posts: 42

Kousik,

Its a class loader issue where com/test/member/entity/business/MemberPk class is loaded more then one. Verify in your JBoss Environment if the same class is present in more than one archive file.

Kuldip
Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 234
Yes, that is true.
It is in multiple jar file inside a .ear.
So what is the way out other than keeping it in only one jar file?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

So what is the way out other than keeping it in only one jar file?

None, that is the only way. Unless you want to write your own classloader.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServletException related to linking , can not understand