Deployment von Java Server Faces
Software:
Ich verwende die WTP 3.2 Version von Eclipse mit Apache Tomcat 5.5.
Inklusive der Java Server Faces Referenz Implementation von SUN und dem Java Server Faces Tool Plugin für Eclipse.
Einleitung:
Ich beginne erst mich mit dem Thema J2EE Anwendungen zu beschäftigen.
Bisher habe ich "normale" Java Applikationen entwickelt.
Das Deployment von JSP Seiten macht mir eigentl. keine Probleme mehr, aber mit Server Faces schaffe ich nicht mal "Hallo World".
Soviel zur Einleitung.
Das Problem:
Ich habe, um ein verständnis für diese Matierie zu bekommen, die Anleitung auf folgender Seite Schritt für Schritt durchgemacht.
http://www.eclipse.org/webtools/jsf/..._tutorial.html
Ich hatte beim durcharbeiten auch keinerlei Probleme, alles klappte wie in der Anleitung beschrieben.
Doch als ich zum Schluss deployed habe, bekam ich immer nur folgende Fehlermeldung:
Code:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jf/core cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jf/core cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
Apache Tomcat/5.5.20
Folgende Libraries habe ich eingebunden:
jsf-api.jar
jsf-impl.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jstl.jar
standard.jar
Hat jemand eine Ahnung wieso das nicht funktioniert?
Bei Bedarf kann ich natürlich auch die Files (z.B. web.xml und die pages posten , wenn nötig.)
|