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
Similar Messages
-
** Tomcat JSF App Timeout ---HTTP Status 500 -could not be restored.
** Tomcat JSF App Timeout ---------------HTTP Status 500 -----javax.servlet.ServletException: viewId:/welcome.jsf - View /welcome.jsf could not be restored.
Hi Guys,
I have a JSF app running under Tomcat 6. It works great...fast and Stable...
I have a problem with session timeouts..
I get this error when I leave the browser open to a page and try to use any links..
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: viewId:/welcome.jsf - View /welcome.jsf could not be restored.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
I have this in my web.xml
<error-page>
<error-code>500</error-code>
<location>/error500.jsp</location>
<error-code>404</error-code>
<location>/error500.jsp</location>
<error-code>400</error-code>
<location>/error500.jsp</location>
<error-code>403</error-code>
<location>/error500.jsp</location>
</error-page>Any help out there??
Thanks
PhilThanks BalusC,
I have added
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/errorTimeOut.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/errorTimeOut.jsp</location>
</error-page>and
<context-param>
<param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
<param-value>true</param-value>
</context-param>It now seems to work without any timeout.
Have a great weekend and thanks for your help again.
Phil -
Error while deploying app on Tomcat 6.0
Hi All,
As per https://blogs.oracle.com/dana/entry/how_to_deploy_a_11g_adf_applic_1 , I tried to deploy ADF web app on Tomcat 6.0, but I was blocked by following errors.
Env:
Jdev 11.1.1.6.0
Tomcat 6.0.36
Catalina.log
2013-4-16 10:29:58 oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack contextInitialized
Failed to register config mbean for defaultApplicationName.
2013-4-16 10:29:58 oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack contextInitialized
oracle.jrf.UnknownPlatformException:
at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
at oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack.contextInitialized(ADFConfigLifeCycleCallBack.java:79)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
localhost.log
2013-4-16 10:29:58 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack
oracle.adf.share.ADFShareException: getMDSInstance error
at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:85)
at oracle.adf.share.config.FallbackConfigImpl.getDefaultMDSInstance(FallbackConfigImpl.java:96)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:626)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:606)
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.getMDSInstance(ADFContextMDSConfigHelperImpl.java:277)
at oracle.adf.share.ADFContext.getMDSInstanceAsObject(ADFContext.java:1674)
at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:493)
at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:402)
at oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack.contextInitialized(ADFConnectionLifeCycleCallBack.java:75)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.NoClassDefFoundError: oracle/core/ojdl/MessageType
at oracle.dms.instrument.Level.initLevel(Level.java:215)
at oracle.dms.instrument.LogLevel.initLogLevel(LogLevel.java:41)
at oracle.dms.instrument.LogLevel.<clinit>(LogLevel.java:23)
at oracle.dms.instrument.Noun.<clinit>(Noun.java:2189)
at oracle.adf.share.perf.Timer.createTimer(Timer.java:259)
at oracle.adf.share.perf.Timer.createTimer(Timer.java:156)
at oracle.mds.internal.util.MDSTimer.<init>(MDSTimer.java:350)
at oracle.mds.internal.util.MDSTimer.createTimer(MDSTimer.java:89)
at oracle.mds.core.MDSInstance.<clinit>(MDSInstance.java:3022)
at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:439)
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:597)
at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:65)
... 32 more
Caused by: java.lang.ClassNotFoundException: oracle.core.ojdl.MessageType
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 47 more
2013-4-16 10:29:59 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:2149)
at oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack.contextInitialized(BC4JConfigLifeCycleCallBack.java:109)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.reflect.InvocationTargetException
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:597)
at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:2110)
... 25 more
Caused by: oracle.adf.share.ADFShareException: getMDSInstance error
at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:85)
at oracle.adf.share.config.FallbackConfigImpl.getDefaultMDSInstance(FallbackConfigImpl.java:96)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:626)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:606)
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.getMDSInstance(ADFContextMDSConfigHelperImpl.java:277)
at oracle.adf.share.ADFContext.getMDSInstanceAsObject(ADFContext.java:1674)
at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:493)
at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:402)
at oracle.adf.share.http.ServletADFContext.initThreadContextIfNeeded(ServletADFContext.java:332)
... 30 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class oracle.mds.core.MDSInstance
at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:439)
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:597)
at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:65)
... 38 more
2013-4-16 10:30:02 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack
oracle.adf.share.ADFShareException: getMDSInstance error
at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:85)
at oracle.adf.share.config.FallbackConfigImpl.getDefaultMDSInstance(FallbackConfigImpl.java:96)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:626)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:606)
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.getMDSInstance(ADFContextMDSConfigHelperImpl.java:277)
at oracle.adf.share.ADFContext.getMDSInstanceAsObject(ADFContext.java:1674)
at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:493)
at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:402)
at oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack.contextInitialized(ADFConnectionLifeCycleCallBack.java:75)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class oracle.mds.core.MDSInstance
at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:439)
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:597)
at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:65)
... 32 more
2013-4-16 10:30:02 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:2149)
at oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack.contextInitialized(BC4JConfigLifeCycleCallBack.java:109)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.reflect.InvocationTargetException
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:597)
at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:2110)
... 25 more
Caused by: oracle.adf.share.ADFShareException: getMDSInstance error
at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:85)
at oracle.adf.share.config.FallbackConfigImpl.getDefaultMDSInstance(FallbackConfigImpl.java:96)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:626)
at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:606)
at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.getMDSInstance(ADFContextMDSConfigHelperImpl.java:277)
at oracle.adf.share.ADFContext.getMDSInstanceAsObject(ADFContext.java:1674)
at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:493)
at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:402)
at oracle.adf.share.http.ServletADFContext.initThreadContextIfNeeded(ServletADFContext.java:332)
... 30 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class oracle.mds.core.MDSInstance
at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:439)
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:597)
at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:65)
... 38 more
files in ${catalina.home}/lib
adf-controller-api.jar
adf-controller-rt-common.jar
adf-controller.jar
adf-faces-databinding-rt.jar
adf-pageflow-dtrt.jar
adf-pageflow-fwk.jar
adf-pageflow-impl.jar
adf-pageflow-rc.jar
adf-richclient-api-11.jar
adf-richclient-impl-11.jar
adf-share-base.jar
adf-share-ca.jar
adf-share-support.jar
adflibfilter.jar
adflogginghandler.jar
adfm.jar
adfmweb.jar
adfsharembean.jar
annotations-api.jar
bc4j-mbeans.jar
cache.jar
catalina-ant.jar
catalina-ha.jar
catalina-tribes.jar
catalina.jar
commons-el.jar
db-ca.jar
dms.jar
dvt-faces.jar
dvt-jclient.jar
dvt-utils.jar
ecj-3.7.2.jar
el-api.jar
fmw_audit.jar
identitystore.jar
inspect4.jar
jars.txt
jasper-el.jar
jasper-jdt.jar
jasper.jar
javatools-nodeps.jar
javax.mail.jar
javax.management.j2ee_1.0.jar
jewt4.jar
jmxframework.jar
jmxspi.jar
jps-api.jar
jps-common.jar
jps-ee.jar
jps-internal.jar
jps-unsupported-api.jar
jrf-api.jar
jsf-api.jar
jsf-ri.jar
jsp-api.jar
jstl.jar
mdsrt.jar
ojdbc6.jar
oracle-el.jar
oracle.xdb_11.1.0.jar
oraclepki.jar
org.apache.commons.beanutils_1.6.jar
org.apache.commons.collections-3.1.jar
org.apache.commons.logging_1.0.4.jar
osdt_cert.jar
osdt_core.jar
servlet-api.jar
share.jar
standard.jar
tomcat-coyote.jar
tomcat-dbcp.jar
tomcat-i18n-es.jar
tomcat-i18n-fr.jar
tomcat-i18n-ja.jar
trinidad-api.jar
trinidad-impl.jar
wls-api.jar
xercesImpl.jar
xml.jar
xmlef.jar
xmlparserv2.jar
Any workaround?
Thanks in advance.
Jason
Edited by: 1000221 on Apr 15, 2013 8:11 PMHi,
We are running TREX 6.1.09.00 on EP6.0.9.0.0 and KMC6.0.9.0.0.
We are experiencing the same problems, even after changing the value in the .ini file as specified in NOTE 766197.
After doing changes, I restarted the server after doing the changes.
Alessandro, have you got any ideas for fixing this?
Message was edited by: Bjorn Bjornstad -
Beginners question : http 500 error when starting my first jsf-app
i�ve just read a book about jsf, and now i�ve tried my first own jsf-app, but it seems that i have some kind of configuration problems with my tomcat, but have a look for yourself :
after deploying my app out of eclipse with ant without any errors, i get the following screen in my firefox when i try to get to the first jsf page :
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: Exception in JSP: /pages/start.jsp:13
10: <link rel="stylesheet" type="text/css" href="basic.css">
11: </head>
12: <body>
13: <f:view>
14: <h:form>
15: <h:commandButton action="#{naviHandler.startButton1}" value="Seite Eins" />
16: <h:commandButton action="#{naviHandler.startButton2}" value="Seite Zwei" />
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
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
java.lang.NullPointerException
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
org.apache.jsp.pages.start_jsp._jspx_meth_f_view_0(start_jsp.java:93)
org.apache.jsp.pages.start_jsp._jspService(start_jsp.java:68)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
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.
it says that i have a problem in the line where the first jsf-tag appears : <f:fiew> , but i don�t get it what should be wrong with this?!
i think theres a kind of config problem with my tomcat or something else, but i dont know where to look after it, the book i�ve read didn�t say much about those things, unfortunately..
anyone out here who can help me?
thanks in advance,
stefanok, i use :
tomcat 5.5
myfaces 1.1.4
jre 1.5.0_09
anything more you need? as i said in the topic, i�m a real beginner with this..
and one more thing that i don�t understand :
all example applications that come with the book that i�ve read are working perfectly with this configuration, but when i try to start my own app i get this error. quite strange for me..
Message was edited by:
elliptic -
Deploying jsf app on glassfish
Hello all,
Deploying a JSF app on glassfish I get the followinf error messsage from admin console:
Deploying application in domain failed; JSP Compilation Error: org.apache.jasper.JasperException: jsp.error.tld.invalid.signature -- jsp.error.tld.invalid.signature JSP Compilation Error: org.apache.jasper.JasperException: jsp.error.tld.invalid.signature -- jsp.error.tld.invalid.signature
What does it mean invalod signatureYou are probably missing the ADF Binding layer - You'll need to figure out which JARs are requiered.
Try looking at your project properties->classpath and libraries and make sure all of them are included.
For example check out the libraries this guy used to run ADF on Tomcat:
Re: JDev 11.1.1.1.0 + ADF+ BC4J application on Tomcat6
Here is a little tip to help you find out which JAR is holding any class that you are missing:
http://kingsfleet.blogspot.com/2009/10/know-which-class-you-want-but-not-which.html -
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 -
How to create a single login for multiple apps on tomcat server?
Hello,
I am running the most recent versions of apache and tomcat on several dells with XP pro.
When I login to an app I have created, a session variable is set, but when I browse to one of the other apps on the same computer, it does not recognize that the session variable has been set and I have to login again.
Can somebody please suggest how, or where I can find docs, to configure tomcat to pass the session variables to other apps?
Thank you very much.
Or, can anybody suggest the most effective strategy for creating single-logon functionality for multiple apps with tomcat and apache running on one computer? and with tomcat and apache running on multiple computers? (i.e., each computer has tomcat and apache integrated).
The database is Oracle 10g running on each computer.
Thank you again.A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
"Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded" -
Initial forward in RichFaces app gets 404, but simple JSF app works fine
(I asked about this on the RichFaces forum, but perhaps this isn't a RichFaces issue.)
've just started to look deeply into JSF. I'm deploying some test apps to WebLogic 9.2.2. I have two simple apps I'm testing. One is a plain JSF app, and the other is the "echo" RichFaces app.
When I go to the URL for the plain JSF app, the "index.jsp" successfully forwards to the main page, and it shows up.
When I go to the URL for the RichFaces "echo" app, I immediately get a 404.
I added some debug, so I know that it executes my "index.jsp". I also set a breakpoint in org.ajax4jsf.webapp.BaseFilter.doFilter(), and I see it hit that. I also added a debugging lifecycle listener.
So, with this debug enabled, I get this:
[DEBUG] BaseFilter - Filter start request processing at 12/31/07 12:05 PM for uri: /AjaxEcho/faces/echo.jsp
[DEBUG] BaseFilter - Filter request output to XML
BeforePhase: RESTORE_VIEW 1
AfterPhase: RESTORE_VIEW 1
BeforePhase: RENDER_RESPONSE 6
AfterPhase: RENDER_RESPONSE 6
[DEBUG] BaseFilter - Finished request processing total time 31ms for uri: /AjaxEcho/faces/echo.jsp
As that didn't tell me anything, I enabled debug for "com.sun.faces" and "org.ajax4jsf", which produced the output following this. I still don't see any obvious clues here.
[DEBUG] BaseFilter - Filter start request processing at 12/31/07 1:57 PM for uri: /AjaxEcho/faces/echo.jsp
[DEBUG] BaseFilter - Filter request output to XML
[DEBUG] BaseXMLFilter - XML filter service start processing request
[DEBUG] LifecycleImpl - execute(com.sun.faces.context.FacesContextImpl@1539b09)
[DEBUG] AjaxPhaseListener - Process before phase RESTORE_VIEW 1
[DEBUG] InitPhaseListener - Perform additional framework initialization on first request
BeforePhase: RESTORE_VIEW 1
[DEBUG] RestoreViewPhase - Entering RestoreViewPhase
[DEBUG] ViewHandlerImpl - URL pattern of the FacesServlet executing the current request /faces
[DEBUG] AjaxStateManager - Can't restore view state : no saved view states in se ssion
[DEBUG] AjaxViewHandler - Detect session expiration in AJAX request - view don't restored for a viewId /echo.jsp
[DEBUG] RestoreViewPhase - New request: creating a view for /echo.jsp
[DEBUG] ViewHandlerImpl - Created new view for /echo.jsp
[DEBUG] ViewHandlerImpl - Locale for this view as determined by calculateLocale en
[DEBUG] ViewHandlerImpl - RenderKitId for this view as determined by calculateRenderKitId HTML_BASIC
[DEBUG] RestoreViewPhase - Exiting RestoreViewPhase
AfterPhase: RESTORE_VIEW 1
[DEBUG] InitPhaseListener - Remove init phase listener from factories
[DEBUG] LifecycleImpl - removePhaseListener(ANY 0,org.ajax4jsf.event.InitPhaseListener@b61de0
[DEBUG] AjaxPhaseListener - Process after phase RESTORE_VIEW 1
[DEBUG] LifecycleImpl - Skipping rest of execute() because of a reload
[DEBUG] LifecycleImpl - render(com.sun.faces.context.FacesContextImpl@1539b09)
[DEBUG] AjaxPhaseListener - Process before phase RENDER_RESPONSE 6
[DEBUG] AjaxPhaseListener - PhaseListener enter Before RenderView Phase with ViewId /echo.jsp and RenderKitId HTML_BASIC
BeforePhase: RENDER_RESPONSE 6
[DEBUG] RenderResponsePhase - Entering RenderResponsePhase
[DEBUG] RenderResponsePhase - About to render view /echo.jsp
[DEBUG] ViewHandlerImpl - About to render view /echo.jsp
[DEBUG] ViewHandlerImpl - URL pattern of the FacesServlet executing the current request /faces
[DEBUG] ViewHandlerImpl - Found no URL patterns mapping to FacesServlet
[DEBUG] AjaxContext - Process component tree for collect used scripts and styles
[DEBUG] InternetResourceBuilder - Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@1011211
[DEBUG] RenderResponsePhase - Exiting RenderResponsePhase
AfterPhase: RENDER_RESPONSE 6
[DEBUG] AjaxPhaseListener - Process after phase RENDER_RESPONSE 6
[DEBUG] BaseXMLFilter - create HTML/XML parser for content type: null
[DEBUG] BaseXMLFilter - Parser not have support for the such content type, send response as-is
[DEBUG] BaseFilter - Finished request processing total time 17721ms for uri: /AjaxEcho/faces/echo.jspI got this working, but it sure seems odd to me. In the working JSF app, I didn't notice that the forward from "index.jsp" references "/faces/main.jsp", even though "main.jsp" is in the root of the app. I changed my RichFaces app to do the same, so it references the "fake" root directory of "/faces". Now it works fine, it's just odd looking. I didn't notice this being called out in the JSF book (Complete Reference).
-
Error deploying JSF app on Sun 8.1 (Works fine on 9.0)
Hello All,
I have a simple JSF app which works fine on Sun App server 9.0 but throws the error below on 8.1. Please help!!!
exception
javax.servlet.ServletException: java.lang.Boolean
javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
root cause
java.lang.ClassCastException: java.lang.Boolean
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
javax.faces.component.UICommand.broadcast(UICommand.java:312)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)Thanks.
Message was edited by:
ndnguyMake sure you don't include any JSF implementation jars in your web application.
-
Problems moving app from tomcat 321 to 4.0
I have serious problems moving an old app from tomcat 321 to 4.0. I tried just moving the entire webapps/<myApp> to the new server, and also using a war-file, but I get a message saying that one of my Beans doesn't exist.
Its a bean in the /WEB-INF/classes subdir, so its in an annonymous package. The jsp-page accessing it uses the
<jsp:useBean id="dateBean" class="DateBean" scope="session" />
tag.
Error message from jsp-page says: org.apache.jsp.DateBean not found.
Seems my tomcat4 doesn�t use the web-inf/classes in its classpath???
regards
MarkusI don't believe the current Servlet specs allow for anonymous packages. Try moving your class into its own package (under WEB-INF/classes/packagename/) and see if that fixes the problem. Also be sure to change the <jsp:useBean> tag to give the full classname in the class attribute.
-
I am using xml files as the data for a JSF app. I know how to use dataproviders attached to databases in order to display and update data to and from the jsf page. Is there a simple way to do this with XML as the data source?
Let me just add I would like to be able to do CRUD on the xml
-
Expose JSF app as a remote portlet on OAS 10.1.3.1
Hello,
We have a requirement to expose our JSF app as a remote portlet via WSRP.
Our production platform is OAS 10.1.3.1 SOA and we are using JDeveloper 10.1.3.1 for the development.
We are new to the portal technologies, but what we understood reading the docs is that we must use WEB Center framework to expose the JSF app as a remote portlet. Is this correct?
Also, how can we install the WEB Center to our OAS 10.1.3.1 SOA ?
thank youHi, to expose your JSF application as a portlet you wil need to use the WebCenter Portlet Bridge, this is our implementation of JSR 301:
- http://download.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_java_adv.htm#BABBFDHA
Oracle WebCenter was released with OracleAS 10.1.3.2 and requires a minimum of ADF 10.1.3.2 runtime libraries, you can either deploy the required ADF Runtime Libraries to your 10.1.3.1 OC4J or upgrade to OracleAS 10.1.3.3 which is the latest release. You can find more information here:
- http://www.oracle.com/technology/software/products/jdev/htdocs/adfinstaller.html
Cheers,
Mick. -
JSF app as a remote portlet on OAS 10.1.3.1
Hello,
We have a requirement to expose our JSF app as a remote portlet via WSRP.
Our production platform is OAS 10.1.3.1 SOA and we are using JDeveloper 10.1.3.1 for the development.
We are new to the portal technologies, but what we understood reading the docs is that we must use WEB Center framework to expose the JSF app as a remote portlet. Is this correct?
Also, how can we install the WEB Center to our OAS 10.1.3.1 SOA ?
thank youHi,
In one of our current projects we're using SOA Suite and WebCenter. For example, we're exposing a JSF page containing a custom-built human workflow tasklist as remote portlet.
We have installed a separate WebCenter AS 10.1.3.2.0 besides the AS SOA Suite. (See: http://www.oracle.com/technology/software/products/ias/htdocs/101320ws.html) and patched it to 10.1.3.3.0. For development we use JDeveloper 10.1.3.3.0 and its pre-configured WebCenter OC4J.
We had some issues with the JSF portlet-bridge and opened tar's, but these we're resolved by Oracle.
Regards, Ronald -
JSF app extremely slow - too many ActionListeners?
I'm working on my first JSF app; my assignment is to prepare the next version of an existing app. Currently my testers are complaining that the app is extremely slow. I have observed that page loading takes a very long time; although it isn't nearly so sluggish on my local box (which of course gets bounced more frequently).
The env is JSF RI 1.1.0 (or 1.1_01, we tried both) running in Sun JES 8.2. Stepping through the debugger I have noticed that the LifecyleImpl maintains a list of ActionListeners. It seems that when the pages, which indirectly extend FacesBean, and have request scope, are constructed they are added to this list, and in the RenderResponsePhase are removed (in the FacesBean afterPhase() method).
However I am seeing this list growing very large (several hundred listeners), with multiple instances of the same classes. Is this normal/to be expected? It seems that this could be causing a performance drain with the number of times this list is iterated over. What could be causing the removePhaseListener() call to be skipped? What potential harm could be caused if I were to replace the LifecycleImpl with one that in removePhaseListener() removed all listeners of the specified class (rather than just the specified instance).
I appreciate any clues to what is happening, and how to properly correct it.Are you using creator to build your application?No I'm not, but the original team did. So we are dependent on the jsfcl jar.
Actually, further investigation has revealed at least a part of the problem. And I have to (shamefacedly) admit that I am guilty of poor class structure. The application has a base page class that derives from FacesBean, and provides access to a number of things used throughout the app. I have a utility class that as a convenience extends the base page class in order to take advantage of those objects. But now that I have (at least a rudimentary) grasp on how the PhaseListeners get registered and deregistered, i see that this class will get registered every time one is constructed for use by an actual page. But since it is not itself a real page, it will not get deregistered.
My task for today is to refactor that class the way it should have been done in the first place. Then I'll connect to the app to see what other objects are hanging around in the listener list and see if they are also using improper inheritance.
Thanks
Maybe you are looking for
-
Hi Experts , I want to know where exactly the ALV GRID DISPLAY Function Module has been called in the program of T.code ME55(RM06BF00) , Actually my requirement is to add one more field (available stock of the material ) in the ALV Output of the T.co
-
Issue in uploading data to standerd DSO
Hi Experts, Here I am in a process of loading data to 0SRIV_D3.I followed below steps. 1.Checked data availability in source system using RSA3.30 records were found in source system standerd datasource. 2.Created IP with Initialise with data transfer
-
Where can I find "Notes" backup among backup folder/files?
I had to get a new "old" iPhone from the Apple Store in order to get back to 1.1.4 from 2.0 - which was an unmitigated disaster. Since could not sync my backup file as it was already 2.0 ized, had to just start from scratch. Of course, Notes do not g
-
I copied (imported?) several songs from one of my CDs into iTunes. The filenames appearing on the monitor are something like file01, file02, etc. I transferred (downloaded?) those files to my iPod Namo. So far, so good. I copied several more songs fr
-
Interactive PDF - advice, please
Live and breathe in InDesign, Illustrator and Photoshop, am new-ish to interactive PDFs. New project - a form - requires functionality that InDesign cannot provide. Adobe suggested I use LiveCycle, which of course is not available for Mac. Have outso