aspose file tools*
The moose likes JBoss/WildFly and the fly likes In jboss ClassNotFoundException: No ClassLoaders found for: org.richfaces.function.RichFunction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "In jboss ClassNotFoundException: No ClassLoaders found for: org.richfaces.function.RichFunction" Watch "In jboss ClassNotFoundException: No ClassLoaders found for: org.richfaces.function.RichFunction" New topic
Author

In jboss ClassNotFoundException: No ClassLoaders found for: org.richfaces.function.RichFunction

Ashraf Abu-Aisheh
Ranch Hand

Joined: Apr 17, 2009
Posts: 88
I started jboss 4.3.0.GA_CP03 and run it successfully but when I tried to login I got the following errors:

1) java.lang.ClassNotFoundException: No ClassLoaders found for: org.richfaces.function.RichFunction
But I have include these library to my WEB-INF/lib/
commons-collections-3.2.1.jar
commons-digester-1.8.jar
commons-logging-1.1.1.jar
laguna-3.2.2.GA.jar
richfaces-api-3.2.2.SR1.jar
richfaces-impl-3.2.2.SR1.jar
richfaces-ui-3.2.2.SR1.jar

2) java.lang.ClassNotFoundException: No ClassLoaders found for: com.zzzz.pppp.web.util.ELUtility
But the class is exists in the same path in my war file as WEB-INF/classes/com.zzzz.pppp.web.util.ELUtility
I have used tld functions in this class.

Note that the same war file is working properly in Tomcat, but in JBoss still not working

Please Help..


SCJP 5 - 79%
SCWCD 5 - 100%
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

Please post the entire exception stacktrace. Also you seem to be using the EAP edition of JBoss which has a support contract. You can get quicker support for your issues from the EAP support portal.


[My Blog] [JavaRanch Journal]
Ashraf Abu-Aisheh
Ranch Hand

Joined: Apr 17, 2009
Posts: 88
I tried also with jboss-5.1.0.GA version, and got the same exception
Find the following the entire exception stack trace....,


and the following error also


I think the errors regarding the tld's, please help
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Did you include the richfaces JAR file in your app? It doesn't come with JBoss AS (well, admin-console uses it, but it packages the richfaces JAR within itself).


JBoss In Action
Ashraf Abu-Aisheh
Ranch Hand

Joined: Apr 17, 2009
Posts: 88
Peter Johnson wrote:Did you include the richfaces JAR file in your app? It doesn't come with JBoss AS (well, admin-console uses it, but it packages the richfaces JAR within itself).


I have already included these library to my WEB-INF/lib/

richfaces-api-3.2.2.SR1.jar
richfaces-impl-3.2.2.SR1.jar
richfaces-ui-3.2.2.SR1.jar

Did you mean the above library with "richfaces JAR" or there are other libraries missed.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

I don't use RichFaces. I was posting in response to the first error:

java.lang.ClassNotFoundException: No ClassLoaders found for: org.richfaces.function.RichFunction

Does one of the files you listed contain this class?

I always prefer solving the first error first (and ignoring all other errors) because often once the first error is solved many of the others errors go away also. So looking at any error other than the first is usually a waste of time.
Ashraf Abu-Aisheh
Ranch Hand

Joined: Apr 17, 2009
Posts: 88
Peter Johnson wrote:I don't use RichFaces. I was posting in response to the first error:

java.lang.ClassNotFoundException: No ClassLoaders found for: org.richfaces.function.RichFunction

Does one of the files you listed contain this class?

I always prefer solving the first error first (and ignoring all other errors) because often once the first error is solved many of the others errors go away also. So looking at any error other than the first is usually a waste of time.


I fixed it by copying the following libraries to the jboss-as\server\default\lib directory
richfaces-api-3.2.2.SR1.jar
richfaces-impl-3.2.2.SR1.jar
richfaces-ui-3.2.2.SR1.jar

Thank you Mr.Peter Johnson to reply to my post, your replying is a dignity to me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In jboss ClassNotFoundException: No ClassLoaders found for: org.richfaces.function.RichFunction
 
Similar Threads
Still getting Exception on configuring richfaces
how to move the jar from the war web-inf directory?
Eclipse + Tomcat 6.0 + Jsf 1.2 Problem
JSF richfaces with OC4J Problem
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener