1 Reply Latest reply on Apr 17, 2007 1:16 PM by Sergey Smirnov

    NewBee has a problem with RichFaces and JSPs...

    Gerald Zum Gahr Newbie

      Hello!

      I am just testing out Rich Faces... it looks very cool, but I cant get it to run...

      I made the step by step-tutorial to set up a first application, but I only get a error-msg from my TomCat if I try to look at my page...

      I am using a TomCat 5.5.23 with RichFaces 3.0 (last built) on a Windows XP Machine with JSPs. I am new to JSPs too, so I dont know much about the web.xml-file and I assume that the problem lies anywhere there.

      This is the error-msg I get from TomCat:

      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: javax/faces/webapp/UIComponentTag
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      
      root cause
      
      java.lang.NoClassDefFoundError: javax/faces/webapp/UIComponentTag
       java.lang.ClassLoader.defineClass1(Native Method)
       java.lang.ClassLoader.defineClass(Unknown Source)
       java.security.SecureClassLoader.defineClass(Unknown Source)
       org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
       org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326)
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
       java.lang.ClassLoader.loadClassInternal(Unknown Source)
       java.lang.ClassLoader.defineClass1(Native Method)
       java.lang.ClassLoader.defineClass(Unknown Source)
       java.security.SecureClassLoader.defineClass(Unknown Source)
       org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
       org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326)
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
       java.lang.ClassLoader.loadClassInternal(Unknown Source)
       java.lang.ClassLoader.defineClass1(Native Method)
       java.lang.ClassLoader.defineClass(Unknown Source)
       java.security.SecureClassLoader.defineClass(Unknown Source)
       org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
       org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1326)
       org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
       org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1326)
       org.apache.jasper.compiler.Parser.parseElements(Parser.java:1578)
       org.apache.jasper.compiler.Parser.parse(Parser.java:127)
       org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
       org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
       org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
       org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      
      note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.


      And this is what is in my web.xml-file:
      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!--
       Licensed to the Apache Software Foundation (ASF) under one or more
       contributor license agreements. See the NOTICE file distributed with
       this work for additional information regarding copyright ownership.
       The ASF licenses this file to You under the Apache License, Version 2.0
       (the "License"); you may not use this file except in compliance with
       the License. You may obtain a copy of the License at
      
       http://www.apache.org/licenses/LICENSE-2.0
      
       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.
      -->
      
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
       version="2.4">
      
       <display-name>Welcome to Tomcat</display-name>
       <description>
       Welcome to Tomcat
       </description>
      
      <!-- JSPC servlet mappings start -->
      
       <servlet>
       <servlet-name>org.apache.jsp.index_jsp</servlet-name>
       <servlet-class>org.apache.jsp.index_jsp</servlet-class>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>org.apache.jsp.index_jsp</servlet-name>
       <url-pattern>/index.jsp</url-pattern>
       </servlet-mapping>
      <!--
      <context-param>
      
       <param-name>org.ajax4jsf.SKIN</param-name>
      
       <param-value>blueSky</param-value>
      
       </context-param>
      
       <filter>
      
       <display-name>Ajax4jsf Filter</display-name>
      
       <filter-name>ajax4jsf</filter-name>
      
       <filter-class>org.ajax4jsf.Filter</filter-class>
      
       </filter>
      
       <filter-mapping>
      
       <filter-name>ajax4jsf</filter-name>
      
       <servlet-name>Faces Servlet</servlet-name>
      
       <dispatcher>REQUEST</dispatcher>
      
       <dispatcher>FORWARD</dispatcher>
      
       <dispatcher>INCLUDE</dispatcher>
      
       </filter-mapping>
      -->
      <!-- JSPC servlet mappings end -->
      
      </web-app>
      


      I dont know, if that are enough informations... when not, please tell me and I will give you more.

      May someone could have a look at the code and tell me, what I am doing wrong?

      Thanks in advance for every answer...
      See you
      *Fuchur*