5 Replies Latest reply on Mar 4, 2008 9:00 PM by Julien Godin-Viau

    Components.xml Class loader not found

    Julien Godin-Viau Newbie

      I have created a Patato project who has an entity class PrettyPatato. Eclipse creates 2 more classes deriving EntityHome and EntityQuery. Their names are PrettyPatatoHome and PrettyPatatoList respectively.


      Then in components.xml I define a component named componentPotato.
      Here is my component.xml code


      <component class="org.domain.patato.session.PrettyPatatoList" name="componentPotato"/>



      When I start the JBoss Server through Eclipse it gives me this error



      Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      
      java.lang.RuntimeException: error while reading /WEB-INF/components.xml
      
           at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:154)
      
           at org.jboss.seam.init.Initialization.create(Initialization.java:104)
      
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
      
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
      
      ......
      
           at java.lang.Thread.run(Unknown Source)
      
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.domain.patato.session.PrettyPatatoList
      
           at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
      
      ......



      No other modifications have been made to the project.


      Here is my configuration
      Java 1.5,
      Seam 2.0.1GA,
      JBoss 4.2.2GA


      Any help will be highly appreciated.


      Jugovi