JSF V1.2_02 & Tomcat
I have an application running on Tomcat 5.5.16, using JSF1.1_01 & Hibernate 3.2.0, and jdk1.5.0_06. I replaced the two JSF jars with V1.2_02, and my application does not now run. I note from the install notes that I need Java Servlet 2.5, but Tomcat does not have a version with 2.5 in it.
Am I missing something?
Hello,
You did not miss something. In order to use JSF1.2 on tomcat 5, you need
to use it with facelets, or wait for tomcat 6. You could also use Glassfish,
or Jetty 6. More on this here : http://blog.exadel.com/?p=23
Hope this helps,
Olivier
Similar Messages
-
Deploy problem of JSF WebApp on Tomcat 5.5.17 SEVERE: Error listenerStart
Hi there,
My installation configuration is as followed:
Tomcat5.5.17 using the following connector:
<Connector
port="8083"
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="true"
redirectPort="8080"
acceptCount="100"
debug="1"
connectionTimeout="20000"
disableUploadTimeout="true" />tomcat-user.xml defines:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="manager,admin"/>
</tomcat-users>Tomcat starts up correctly with the following url and is runs while deploying:
http://localhost:8083/manager/html
My WebApp is a simple Test App and is the following:
index.html:
<html>
<head>
<meta http-equiv="Refresh" content= "0; URL=index.faces"/>
<title>Start Web Application</title>
</head>
<body>
<p>Please wait for the web application to start.</p>
</body>
</html>
index.jsp:
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<head>
<title>A Simple JavaServer Faces Application</title>
</head>
<body>
<h:form>
<h3>Please enter your name and password.</h3>
<table>
<tr>
<td>Name:</td>
<td>
<h:inputText value="#{user.name}"/>
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<h:inputSecret value="#{user.password}"/>
</td>
</tr>
</table>
<p>
<h:commandButton value="Login" action="login"/>
</p>
</h:form>
</body>
</f:view>
</html>welcome.jsp:
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<head>
<title>A Simple JavaServer Faces Application</title>
</head>
<body>
<h:form>
<h3>
Welcome to JavaServer Faces,
<h:outputText value="#{user.name}"/>!
</h3>
</h:form>
</body>
</f:view>
</html>
UserBean.java:
package com.jsfcore;
public class UserBean {
private String name;
private String password;
public UserBean() {
super();
private String getName() {
return this.name;
private void setName(String name) {
this.name = name;
private String getPassword() {
return this.password;
private void setPassword(String password) {
this.password = password;
web.xml:
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Simple Login Applications</display-name>
<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>/faces/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
faces-config.xml:
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>com.corejsf.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>I have downloaded jsf-1_1_01.zip and installed it.
I have downloaded java_ee_sdk-5-windows.exe and installed it too.
Path login/WEB-INF/lib contains the following jars:
jsf/lib/jsf-api.jar
jsf/lib/jsf-impl.jar
tomcat/servler/lib/commons-digester.jar (fr. tomcat 4.1.3)
tomcat/server/lib/commons-beanutils.jar (fr. tomcat 4.1.3)
tomcat/webapps/jsp-examples/lib/jstl.jar (fr. tomcat 5.5.17)
tomcat/webapps/jsp-examples/lib/standard.jar (fr. tomcat 5.5.17)
The compilation and deployment was successful.
With my build.xml, I have deployed the login.war file into path
tomcat/webapps
The login.war file was unpacked into the normal web application directory structure.
That is where the problem appeared with the output display on the consol:
Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8083
Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8082
Jul 27, 2006 11:10:39 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 750 ms
Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 27, 2006 11:10:41 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive login.war
Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [login] startup failed due to previous errors
Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8083
Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8082
Jul 27, 2006 11:10:42 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 27, 2006 11:10:43 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3047 ms
I am unable to start the login application on the Tomcat Web Application Manager.
The following Message appears on top:
FAIL - Application at context path /login could not be started
Let me say, that I have already continued developing more code for this application up to this point and wanted to test in the meantime. Since I had this failure I mentioned above, I have stripped down the application to the code above and I still have no success. I cannot go further until I am getting this very small application up and running on the server.
Is anybody out there who could give me a hint to solve this problem?
I really appreciate any hints, since I am circeling around the problem for guit a while.
Thanks very much
MarkusHi there,
My installation configuration is as followed:
Tomcat5.5.17 using the following connector:
<Connector
port="8083"
maxHttpHeaderSize="8192"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="true"
redirectPort="8080"
acceptCount="100"
debug="1"
connectionTimeout="20000"
disableUploadTimeout="true" />tomcat-user.xml defines:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="manager,admin"/>
</tomcat-users>Tomcat starts up correctly with the following url and is runs while deploying:
http://localhost:8083/manager/html
My WebApp is a simple Test App and is the following:
index.html:
<html>
<head>
<meta http-equiv="Refresh" content= "0; URL=index.faces"/>
<title>Start Web Application</title>
</head>
<body>
<p>Please wait for the web application to start.</p>
</body>
</html>
index.jsp:
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<head>
<title>A Simple JavaServer Faces Application</title>
</head>
<body>
<h:form>
<h3>Please enter your name and password.</h3>
<table>
<tr>
<td>Name:</td>
<td>
<h:inputText value="#{user.name}"/>
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<h:inputSecret value="#{user.password}"/>
</td>
</tr>
</table>
<p>
<h:commandButton value="Login" action="login"/>
</p>
</h:form>
</body>
</f:view>
</html>welcome.jsp:
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<head>
<title>A Simple JavaServer Faces Application</title>
</head>
<body>
<h:form>
<h3>
Welcome to JavaServer Faces,
<h:outputText value="#{user.name}"/>!
</h3>
</h:form>
</body>
</f:view>
</html>
UserBean.java:
package com.jsfcore;
public class UserBean {
private String name;
private String password;
public UserBean() {
super();
private String getName() {
return this.name;
private void setName(String name) {
this.name = name;
private String getPassword() {
return this.password;
private void setPassword(String password) {
this.password = password;
web.xml:
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Simple Login Applications</display-name>
<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>/faces/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
faces-config.xml:
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>com.corejsf.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>I have downloaded jsf-1_1_01.zip and installed it.
I have downloaded java_ee_sdk-5-windows.exe and installed it too.
Path login/WEB-INF/lib contains the following jars:
jsf/lib/jsf-api.jar
jsf/lib/jsf-impl.jar
tomcat/servler/lib/commons-digester.jar (fr. tomcat 4.1.3)
tomcat/server/lib/commons-beanutils.jar (fr. tomcat 4.1.3)
tomcat/webapps/jsp-examples/lib/jstl.jar (fr. tomcat 5.5.17)
tomcat/webapps/jsp-examples/lib/standard.jar (fr. tomcat 5.5.17)
The compilation and deployment was successful.
With my build.xml, I have deployed the login.war file into path
tomcat/webapps
The login.war file was unpacked into the normal web application directory structure.
That is where the problem appeared with the output display on the consol:
Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8083
Jul 27, 2006 11:10:39 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8082
Jul 27, 2006 11:10:39 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 750 ms
Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jul 27, 2006 11:10:40 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 27, 2006 11:10:41 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive login.war
Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 27, 2006 11:10:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [login] startup failed due to previous errors
Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8083
Jul 27, 2006 11:10:42 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8082
Jul 27, 2006 11:10:42 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 27, 2006 11:10:43 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3047 ms
I am unable to start the login application on the Tomcat Web Application Manager.
The following Message appears on top:
FAIL - Application at context path /login could not be started
Let me say, that I have already continued developing more code for this application up to this point and wanted to test in the meantime. Since I had this failure I mentioned above, I have stripped down the application to the code above and I still have no success. I cannot go further until I am getting this very small application up and running on the server.
Is anybody out there who could give me a hint to solve this problem?
I really appreciate any hints, since I am circeling around the problem for guit a while.
Thanks very much
Markus -
Has anyone tried running JSF2 on Tomcat 6? I tried to do this but running into EL compatibility issues. Tried various combinations but nothing worked. I did the setup and test based on the following post.
http://weblogs.java.net/blog/cayhorstmann/archive/2009/12/29/jsf-20-and-tomcat
If anyone accomplished this, please post the following
1) list of libraries in tomcat lib
2) list of libraries in WEB-INF/lib
3) web.xml configuration
I have the following config and my sample page only displays plain HTML but not any JSF text box fields.
I added the following to tomcat lib
el-api-2.2.jar
el-impl-2.2.jar
jstl-api-1.2.jar
jstl-impl-1.2.jar
I have the following in WEB-INF/lib
jsf-api.jar
jsf-impl.jar
jstl-api-1.2.jar
jstl-impl-1.2.jar
weld-servlet.jar
My web.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID"
version="2.5">
<display-name>JsfTest</display-name>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
I also have an empty beans.xml in my WEB-INF folder. This is required for Weld.
Anyone, plese help.user1093102 wrote:
Has anyone tried running JSF2 on Tomcat 6? Yep, I use the Mojarra JSF 2 implementation in Tomcat 6 all the time, and many of my students and clients have as well.
I have used various different Mojarra 2.0.x releases without problems on Tomcat 6, Tomcat 7, Glassfish 3, and JBoss 6
(minus the JAR files in the Java EE 6 containers). JSF 2 is supposed to run in any container that supports servlets 2.5 and later,
and I have gotten reports of it running on the Google Cloud Server, which I think is running Jetty.
Maybe you could be more specific about the constructs that caused problems and the error messages that you got?
Here are some details:
1) Here is my web.xml. The PROJECT_STAGE and welcome-file-list entries are optional. Your sample app had some
extra things in the web.xml that were not related to JSF; I would suggest removing them first to test a barebones
JSF 2 app before trying to combine technologies.
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>2) The JAR files I have in WEB-INF/lib are jsf-api.jar, jsf-impl.jar, jstl-api-1.2.jar, and jstl-impl-1.2.jar.
The JSTL JAR files are actually not needed for the simple apps I link to below, but are needed for
any JSF 2.0 app that uses ui:repeat, so IMHO should be considered a required part of a JSF 2.0 app.
3) Here is my faces-config.xml file (the trivial apps below don't use any declarations in it,
so it just has start and end tags):
<?xml version="1.0"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
</faces-config>4) Of course, it is not used by the server at all, but I also think it is a good practice to add the JSF 2.0
project facet if you are using Eclipse 3.6. That way, you get some help from the IDE when editing faces-config.xml and any .xhtml file.
5) Here are two very simple Eclipse projects that you can download and try. They follow the structure outlined above, and they work
for me in Tomcat 6, Tomcat 7, and Glassfish 3 as is. They will run in JBoss 6 if you remove the JAR files from WEB-INF/lib (and, removing
the JAR files is really the right thing to do in Glassfish also, although they do in fact run as is).
[url http://www.coreservlets.com/JSF-Tutorial/jsf2/#Getting-Started]Sample JSF 2 App for Testing.
Cheers-
- Marty -
Deploying JSF application on Tomcat 5.0.28
Hi,
I am having problems deploying JSF application (developed using Studio Creator) on Tomcat. Any suggessions ....
HTTP Status 404 - Servlet Faces Servlet is not available....
Thanks in advanceI ran into this same problem moving from Tomcat 4.1.31 to Tomcat 5.0.28. This one was definitely a headscratcher, but the solution turned out to be simple as I had an older servlet api jar (2.3) in my J2SE's jre/lib/ext directory. I replaced the existing servlet.api with servlet-api.jar and jsp-api.jar from the Tomcat 5.0.28 common/lib directory, restarted Tomcat, and the problem disappeared.
-
JSF app on Tomcat 5.0.27
Hi I'm reading (and I guess I'm not the only one here) the Core JSF Book, I've installed all the jar files needed in the app of the Chapter 1 to the .../common/lib folder, I have this errors when I try to access to the localhost:8080/login app
2004-07-28 16:09:13 StandardContext[login]Excepci?n enviando evento inicializado de contexto a instancia de escuchador de clase com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: javax/faces/el/MethodBinding
at com.sun.faces.config.ConfigureListener.initialized(ConfigureListener.java:1014)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:146)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:687)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1068)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
at java.lang.Thread.run(Unknown Source)
2004-07-28 16:09:13 StandardContext[login]Excepci?n enviando evento de contexto destru?do a instancia de escuchador de clase com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: javax/faces/el/MethodBinding
at com.sun.faces.config.ConfigureListener.release(ConfigureListener.java:1250)
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:337)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3868)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4500)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:687)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1068)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:800)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608)
at java.lang.Thread.run(Unknown Source)
I checked and re-checked the web and config-faces xml files, I even copy the login folder of the example book!
what should I do ? or what is else more to configure ?hi there
Hmmmm. I think this issue is quite subtle:
my expanded \WEB-INF\lib shows:
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-discovery-0.2.jar
myapp-20050627.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
log4j-1.3alpha-6.jar
spring.jar
standard.jar
( i have excluded commons-logging.jar as this caused errors when reading the existing log4j.properties file)
Once the build script is run and I copy my .war to ${CATALINA_HOME}/webapps
I get the following shown in STDOUT although my does deploy
27-Jun-2005 13:22:04 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3203 ms
27-Jun-2005 13:22:25 org.apache.catalina.startup.HostConfig deployWARs
WARNING: Exception while expanding web application archive myapp.war
27-Jun-2005 13:22:36 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /myapp from URL file:E:/Apache/
jakarta/Tomcat5.0/webapps/myapp
27-Jun-2005 13:22:39 org.springframework.web.context.ContextLoader initWebApplic
.....My tomcat localhost log shows
2005-06-27 13:22:39 StandardContext[/myapp]Loading Spring root WebApplicationContext
2005-06-27 13:26:02 StandardContext[/myapp]Closing Spring root WebApplicationContext
2005-06-27 13:26:02 StandardContext[/myapp]Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)I guess I need to turn on trace logging in Tomcat ( and make sure I redirect all statements to tomcat localhost .log) as I need to find which unchecked exception
causes the Tomcat autodeploy mechanism to stop working
Regards
Daniel -
Tiles 2 and JSF integration in tomcat 5.5.25
hi all,
"Tiles 2" is a new project extracted from Struts and is now integrated with various frameworks...
I'm wondering if anyone here succeed to run Tiles 2 with JSF on tomcat 5.5.25.
I'd downloaded a test from maven: (The test application is not working in my environment... i'll be happy to hear about any success from one of you...
http://repo1.maven.org/maven2/org/apache/tiles/tiles-test/2.0.5/
File name: tiles-test-2.0.5.war
This test application should work on java 5.0.
I will be glad to here some advice,
thanks
Edited by: buz_word on Nov 19, 2007 6:50 PMAre you sure that a new session is being created in step 6? Tomcat can be configured to persist sessions between restarts. Maybe check getCreationTime() on the session?
--Jon -
JSF: Problem during Tomcat Startup
Hi, I am having a strange problem with a JSF-application.
I am using jdk 1.3.1 (13), Tomcat 5.0.28 and the Sun JSF-Ref. implementation. On my dev-environment all is well. On the system-test environment of the customer, Tomcat would not initialize the FacesServlet claiming that it can not find the faces-config-file.
I have tries all 3 ways of referencing the config-file (put it into a jar, put faces-config.xml directly into WEB-INF, add a context-param to web.xml with the URI of the file and param-name javax.faces.CONFIG_FILES). All three work fine on my dev, none of them works on sys-test.
Funny enough, if I use the context-param in web.xml, where the web-app context is ctx, for the URI /WEB-INF/the-faces-config.xml I get an error during startup, for the URI /ctx/WEB-INF/the-faces-config.xml I don't have a problem on startup but the servlet does not actually read the config-file (you can tell from the fact that it can't resolve any of the Bean-methods).
Any idea would be much appreciated!
Cheers, BastianHi, thanks - unfortunately that did not help. The system (in the original configuration) does find the jars ok in WEB-INF/lib (I can tell since there is code in the jar which is executed before the problems hit me and the stack-trace when it can't resolve the bean-methods is from com.sun.faces.el.impl). It looks like the beans are not actually initialized (which is consistent, since the system can't find the config-file which wires the beans).
-
JSF 1.2/Tomcat 6.x
I'm having trouble getting JSF 1.2 (myFaces implementation) running with Tomcat 6. Pretty much any JSF tag I use gives me this error:
javax.servlet.ServletException: /index.jsp(22,4) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)I've done a search, and found some old threads that offer many different solutions that don't work (replace jars in tomcat lib dir, or other wierd configuration changes). It seems tomcat 6 shouldn't need any wierd hacks to play nice with JSF 1.2, as it meets the Servlet and JSP spec required. Any idea whats going on here?
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<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>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>faces-config.xml
<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
<managed-bean>
<managed-bean-name>TestFace</managed-bean-name>
<managed-bean-class>com.jacked.TestFace</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>index.jsp
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<title>enter your name page</title>
</head>
<body>
<f:view>
<h1>
<h:outputText value="JSF 1.2 Tutorial"/>
</h1>
<h:form id="UserEntryForm">
<h:outputText value="Enter Your Name:"/>
<h:inputText value="#{TestFace.test}" />
<h:commandButton action="welcome" value="OK" />
</h:form>
</f:view>
</body>
</html>Any help is greatly appreciated.
ThanksYou could compare with this Pre-configured 6.0.1.0 version. I've done a manual install, but you're right, there are too many possible solutions that just don't work
http://www.coreservlets.com/Apache-Tomcat-Tutorial/Preconfigured-Tomcat-Version.html -
How do i configure tomcat to have my own jsf web application as the default startup application when i enter http://localhost:8080 ?
Pleae help anyoneYou need to configure the context path of your application to be /. I don't use Tomcat but perhaps this will be enough to get you going.
-
Hi I am getting a strange error when I deploy the war file for JSF on tomcat as follows 2006-12-01 10:19:51 StandardContext[/manager]HTMLManager: start: Starting web application at '/campman'
2006-12-01 10:19:51 StandardContext[/campman]Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: com.sun.faces.lifecycle.LifecycleFactoryImpl
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:411)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:702)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:991)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1322)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.faces.FacesException: ApplicationFactory
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:540)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:426)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
at com.sun.faces.lifecycle.RestoreViewPhase.<init>(RestoreViewPhase.java:69)
at com.sun.faces.lifecycle.LifecycleImpl.<init>(LifecycleImpl.java:53)
at com.sun.faces.lifecycle.LifecycleFactoryImpl.<init>(LifecycleFactoryImpl.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:551)
... 40 more
Caused by: java.lang.ClassNotFoundException: ApplicationFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:528)
... 52 more
2006-12-01 10:19:51 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2006-12-01 10:19:55 StandardContext[/manager]HTMLManager: start: Starting web application at '/campman'
2006-12-01 10:19:55 StandardContext[/campman]Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: com.sun.faces.lifecycle.LifecycleFactoryImpl
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:411)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:702)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:398)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:991)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1322)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.faces.FacesException: ApplicationFactory
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:540)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:426)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:229)
at com.sun.faces.lifecycle.RestoreViewPhase.<init>(RestoreViewPhase.java:69)
at com.sun.faces.lifecycle.LifecycleImpl.<init>(LifecycleImpl.java:53)
at com.sun.faces.lifecycle.LifecycleFactoryImpl.<init>(LifecycleFactoryImpl.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:551)
... 40 more
Caused by: java.lang.ClassNotFoundException: ApplicationFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:528)
... 52 more
2006-12-01 10:19:55 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'Sounds like a classloader problem. Do you have multiple jsf-api.jar files in your environment? Check the shared lib directories.
If you have the flexibility to use a different app server for development, GlassFish is the best JSF application server (IMO): https://glassfish.dev.java.net
Ken Paulsen
https://jsftemplating.dev.java.net -
Tomahawk + Facelets + JSF 1.1 + Tomcat 4.1
When I try to run my server with the latest Tomahawk jar, I get the following exception on server startup:
2006-06-30 08:10:15 org.apache.myfaces.component.html.ext.HtmlDataTable
javax.faces.FacesException: Can't instantiate class: 'org.apache.myfaces.component.html.ext.HtmlDataTable'.
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:792)
at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:372)
at com.sun.faces.config.ConfigureListener.verifyObjects(ConfigureListener.java:1088)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:362)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3212)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3554)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)These are the jars I'm including in my library:
antlr-2.7.6rc1.jar
asm.jar
cglib-2.1.3.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
dom4j-1.4.jar
el-api.jar
el-ri.jar
hibernate3.jar
httpunit.jar
itext-1.4.jar
jsf-api.jar
jsf-facelets.jar
JUnit.3.8.1.jar
junitee.1.11.jar
log4j-1.2.13.jar
nekohtml.jar
spring.jar
tomahawk-1.1.3.jar
jsf-impl.jarI've searched google and these forums for any related problems, but have come up short. Does anyone see a problem with my setup? Thanks in advance!Me as well I have the same problem when I tried to use a simple datatable in my JSP
<t:dataTable id="data" var="searchResult" border="1">
<h:column>
<h:outputText value="test" />
</h:column>
</t:dataTable>The libraries I am using are :
common-annotations.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jsf-api.jar
jsf-impl.jar
jstl.jar.jar
standard.jar
tomahawk-1.1.3.jarMy error :
org.apache.jasper.JasperException: Can't instantiate class: 'org.apache.myfaces.component.html.ext.HtmlDataTable'.
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:627)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:306)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:225)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:138)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2459)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:132)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:126)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)I tried some other component of Tomahawk and it works, but I am struggling with the extended datatable.
Thanks,
Paul -
Hi All,
Can JSF work on JDK 1.3.1 and tomcat 4.0.3I think not to both questions.
https://javaserverfaces.dev.java.net/faq.html#Code_build -
Failed to load or instantiate HtmlBasicValidator (JSf ref impl - Tomcat)
Using the JSF reference implementation 1.0.1 under tomcat 5.5 (in jboss 4) I get the following exception when accesing a page:
org.apache.jasper.JasperException: Unable to read TLD "META-INF/html_basic.tld" from JAR file "file:/C:/develop/appserv/jboss-4.0.2/server/javacareers/./tmp/deploy/tmp32260javacareers-webclient-exp.war/WEB-INF/lib/jsf-impl-1.1.01.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: com.sun.faces.taglib.html_basic.HtmlBasicValidator
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:179)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:181)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
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:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
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:810)
net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292)
================================================================
A debug showed that there is ClassCastException getting eaten up by jasper under there.
It looks like HtmlBasicValidator isn't on the classpath, but it is, in jsf-impl-1.1.01.jar
Yet that class isn't in a shared JBoss or Tomcat library as far as my research shows.
Anyone any ideas?I had a very similar problem, and I learned how to fix it from this page:
http://ryandaigle.com/pebble/2005/01/27/1106856324774.html
Turns out that I was including a copy of jsp-api-2.0.jar in my WEB-INF/lib directory, and Tomcat already had one. Deleting the jar from my WEB-INF/lib directory fixed the problem. -
Tomcat 5.5 issues, has anyone got JSF working with tomcat 5.5 yet?
Hi,
Firstly I'm wondering if anyone has got JSF 1.1 working with tomcat 5.5 yet.
I'm trying to move from tomcat 5.0.25 to 5.5.4 and my JSF webapps have not liked the move at all.
The classpath doesn't seem to be a problem as I have all the .jars that are required in the classpath of tomcat just like before.
I see the error log in stdout.log (catalina.out on linux) have been reduced to only show the precise error. Or at least is seems at lot easier to read.
My error is simply
SEVERE: Error listenerStart
SEVERE: Context startup failed due to previous errors
I reverted back to using the examples provided like jsf-guessNumber and the car-demo but neither of these will start-up.
This issue seems to have occurred to lots of other people previously but I couldn't find a particular fix or direct compatability issue with tomcat.
Has anyone encountered this before?Back again,
Allright well after a little thought I concluded that this issue had to be some to do with the classpath and the changes between the two tomcat versions.
I had a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt
and noticed that tomcat 5.5 leaves out some important .jar as they are only needed for java 1.4.
-------------------- EXTRACT ------------------------
Installing the compatibility package will add the following to the list, which are
needed when running on J2SE 1.4:
* jmx.jar (Java Management Extensions API 1.2 or later)
* xercesImpl.jar (Xerces XML Parser, version 2.6.2 or later)
--------------------END EXTRACT ------------------------
Therefore I tried putting xercexImpl.jar back onto the tomcat classpath and JSF works once again.
Ah what a relief. -
Ll / seeking FREE open source JSP / JSF Web application Tomcat/5.5.15
hi all,
We have a need to set-up a web site for a community based (non profit organisation) football / soccer) club.
The web hosting machine is based on JSP / JSF running on Apache Tomcat/5.5.15 & Sun Microsystems Inc. VM 1.5.0_06-b05.
OS is Windows 2003 V 5.2
The database backend is based on MySQL, mysql-essential-5.0.18-win32.
We need to add content related to:
a) Players contact details;
b) Teams;
c) Match reports;
d) News;
... and other dynamic content
We are looking for an out-of-the box FREE open source Web application we can deploy on the web hosting machine.
Any suggestions will be appreciated.
Thanks
TrajanoI haven't tried ICEFaces or JBoss seam or Apache MyFaces, so I can't really compare them.
ICEFaces appears to be a nice framework/tool from looking at their site, even though it's open source I think one has to pay for support, you might want to take that into consideration while making your decision.
Apache MyFaces, is fully community driven - so you get free support from the community.
I don't know about JBoss seam.
Maybe you are looking for
-
iphone 4 is not recognized by itunes and is only on emergency mode, keeps telling me to connect to itunes but when I connect iphone to computer it does not recognize it
-
What format do I use to upload a 5 min. movie to a website?
What 'format' in the drop down options do I use if I want the video to be flash on the website? ie: wave, FLC..... Any other settings that I should have as presets? - fps? - Quality? - Size? Thanks in advance!
-
I am very frantic. I am in charge of teh rehearsal DVD for my daugther's wedding and I have run into the problem. Does anybody have any ideas? My iMovie looked great. I moved it into iDVD and burned it. When I play the iDVD, on any screen with a blac
-
Why does SUMIF and SUMIFS not work with decimals as the condition?
I'm trying to do a budget report. The items in the budget are number 2.1, 2.2 all the way up to 2.43. On another page I am subtracting the amounts used each month from the allotted budget for each item. The problem that I am having is that when I
-
Hi Demantra experts, In server expression, we can write expression referring only to sales_data and mdp_matrix table. (check column list in server expression editor) Only two tables are avaialble for selection. How can I bring some other table say it