0 Replies Latest reply on Oct 22, 2010 10:34 AM by Francesco Guidi

    SeamTools project configuration issue (TagLibraryConfig loadImplicit)

    Francesco Guidi Newbie

      Hi everyone, I'm facing what probably is a configuration problem which I was unable to resolve. I have a Seam project generated by Seam-Tools (3.1.0.v201003050540R). I'm running Seam 2.2.0.GA on JBoss 4.2.3.GA. I'm getting this log whenever I make the first access to any page in my project after a redeploy.



      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jboss-seam-excel.jar!/META-INF/seam-excel.taglib.xml
      14:44:30,947 ERROR [STDERR] 22-ott-2010 14.44.30 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
      14:44:30,950 ERROR [STDERR] 22-ott-2010 14.44.30 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
      14:44:30,973 ERROR [STDERR] 22-ott-2010 14.44.30 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
      14:44:31,004 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
      14:44:31,010 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
      14:44:31,028 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
      14:44:31,044 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
      14:44:31,051 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
      14:44:31,075 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
      14:44:31,079 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/jsp.taglib.xml
      14:44:31,083 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
      14:44:31,183 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
      14:44:31,191 ERROR [STDERR] 22-ott-2010 14.44.31 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/D:/Dev/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1285854828170/deploy/Incarichi-ear.ear/Incarichi.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml



      I have read that this shouldn't be an issue, but I'm facing problems with rich:FileUpload and all suggestion I've come across mentioned a classpath issue, without stating what did the trick. I have richfaces-api.jar in EARroot/lib and richfaces-impl.jar and richfaces-ui.jar in my WEB-INF/lib directory. Any help would be appreciated, I include my config files just in case.


      components.xml


         <core:init debug="true" jndi-pattern="@jndiPattern@"/>
      
         <core:manager concurrent-request-timeout="500"
                       conversation-timeout="120000"
                       conversation-id-parameter="cid"
                       parent-conversation-id-parameter="pid"/>
      
         <!-- Make sure this URL pattern is the same as that used by the Faces Servlet -->
         <web:hot-deploy-filter url-pattern="*.seam"/>
         <web:character-encoding-filter encoding="UTF-8" override-client="true" url-pattern="*.seam"/>
         <web:multipart-filter create-temp-files="true" max-request-size="20485760" url-pattern="*.seam" />
      
           <persistence:entity-manager-factory name="Incarichi"
                installed="false"/>
           <persistence:managed-persistence-context name="entityManager" auto-create="true" 
                entity-manager-factory="#{Incarichi}"
              persistence-unit-jndi-name="java:/IncarichiEntityManagerFactory"/>
      
         <drools:rule-base name="securityRules">
            <drools:rule-files>
               <value>/security.drl</value>
            </drools:rule-files>
         </drools:rule-base>
      
         <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
      
         <security:jpa-identity-store
            user-class="org.domain.incarichi.entity.UserAccount"
            role-class="org.domain.incarichi.entity.UserRole"/>
      
         <security:jpa-permission-store user-permission-class="org.domain.incarichi.entity.UserPermission"/>
         
      <!--     Si utilizza l'observer sul postAuthenticate
           <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
      -->
      
         <event type="org.jboss.seam.security.notLoggedIn">
            <action execute="#{redirect.captureCurrentView}"/>
         </event>
         <event type="org.jboss.seam.security.loginSuccessful">
            <action execute="#{redirect.returnToCapturedView}"/>
         </event>
      
         <mail:mail-session host="localhost" port="25"/>
      
         <!-- Processi e pageflow -->
         
         <bpm:jbpm>
            <bpm:process-definitions>
                 <value>Registrazione.jpdl.xml/processdefinition.xml</value>
            </bpm:process-definitions>
            <bpm:pageflow-definitions></bpm:pageflow-definitions>
         </bpm:jbpm>
      
      



      web.xml


        <display-name>Incarichi</display-name>
        <welcome-file-list>
          <welcome-file>index.html</welcome-file>
          <welcome-file>index.htm</welcome-file>
          <welcome-file>index.jsp</welcome-file>
          <welcome-file>default.html</welcome-file>
          <welcome-file>default.htm</welcome-file>
          <welcome-file>default.jsp</welcome-file>
        </welcome-file-list>
        <filter>
          <filter-name>Seam Filter</filter-name>
          <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
           <init-param>
           <param-name>createTempFiles</param-name>
           <param-value>false</param-value>
           </init-param>
           <init-param>
           <param-name>maxRequestSize</param-name>
           <param-value>102400</param-value>
           </init-param>
        </filter>
        <filter-mapping>
          <filter-name>Seam Filter</filter-name>
          <url-pattern>/*</url-pattern>
        </filter-mapping>
        <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.seam</url-pattern>
        </servlet-mapping>
        <context-param>
          <param-name>org.richfaces.SKIN</param-name>
          <param-value>darkX</param-value>
        </context-param>
        <listener>
          <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
        </listener>  
        <servlet>
          <servlet-name>Seam Resource Servlet</servlet-name>
          <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
        </servlet>
        <servlet-mapping>
          <servlet-name>Seam Resource Servlet</servlet-name>
          <url-pattern>/seam/resource/*</url-pattern>
        </servlet-mapping>
        <context-param>
          <param-name>facelets.DEVELOPMENT</param-name>
          <param-value>true</param-value>
        </context-param>
        <context-param>
          <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
          <param-value>.xhtml</param-value>
        </context-param>
             <resource-ref>
                <description>DB Connection</description>
                <res-ref-name>IncarichiDatasource</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
           </resource-ref>
        <security-constraint>
          <display-name>Restrict raw XHTML Documents</display-name>
          <web-resource-collection>
            <web-resource-name>XHTML</web-resource-name>
            <url-pattern>*.xhtml</url-pattern>
          </web-resource-collection>
          <auth-constraint/>
        </security-constraint>
      



      faces-config.xml
      
           <application>
                <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
                <locale-config>
                     <default-locale>en</default-locale>
                     <supported-locale>bg</supported-locale>
                     <supported-locale>de</supported-locale>
                     <supported-locale>en</supported-locale>
                     <supported-locale>fr</supported-locale>
                     <supported-locale>tr</supported-locale>
                </locale-config>
           </application>
      



      Thanks again, Francesco.