Tomcat is running when i run it from startup.bat and my application gets started, but when i run the server from the eclipse I am getting the below error,
log4j:WARN No such property [maxFileSize] in org.apache.log4j.FileAppender.
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
27 Sep 2014 22:15:30,301 INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].log():653 [main] - Initializing Spring root WebApplicationContext
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading jar:file:/D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/captcha.properties
27 Sep 2014 22:15:36,874 INFO com.liferay.portal.util.PortalImpl.<init>():252 [main] - Portal lib directory /D:/liferay-portal-5.2.3/tomcat-5.5.35/webapps/ROOT/WEB-INF/lib/
27 Sep 2014 22:15:41,076 INFO com.liferay.portal.kernel.util.ServerDetector.getServerId():104 [main] - Detected server tomcat
Exception in thread "Timer-0" java.lang.OutOfMemoryError: PermGen space
Found a way by addding the below parameters in optional jvm arguments.(window -> preference -> tomcat 5.x -> JDK)
-XX:+DisableExplicitGC
-XX:MaxPermSize=512m
-XX:PermSize=256m
-XX:MaxNewSize=256m
-XX:NewSize=512m
Related
I have upgrade from log4j-1.2.17 to log4j-2.17.1 with needed code changes. Code builds fine without errors. I have included proper jar files(only log4j-api-2.17.1.jar and log4j-core-2.17.1.jar) in the build path and WEB-INF path.
Upon deploying on to Tomcat 8.x version, seeing 404 error with below exception in the log file. Tried project clean, tomcat clean, rebuild etc. but no success.
Any pointers?
Thanks in advance.
INFO: Starting Servlet Engine: Apache Tomcat/8.5.61
Jan 07, 2022 4:24:29 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 07, 2022 4:24:31 PM org.apache.catalina.core.StandardContext filterStart
**SEVERE: Exception starting filter [authfilter]
java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger;**
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
at org.apache.catalina.core.DefaultInstanceManager.populateAnnotationsCache(DefaultInstanceManager.java:403)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:173)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:151)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:106)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4538)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
... 18 more
Jan 07, 2022 4:24:31 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more Filters failed to start. Full details will be found in the appropriate container log file
You may need his dependency sl4j to log4j adapter
"org.apache.logging.log4j" name="log4j-slf4j-impl" rev="2.17.0"
We are using below Technologies/frameworks:
Spring 2_5 -> Spring 5_0_9
JSF 1_2 -> 2_2
Java 6 -> Java 8
Tomcat 6 -> Tomcat 8_5
Below is the error which i am facing while upgradation process:
INFO: Starting Servlet Engine: Apache Tomcat/8.5.4
Oct 03, 2018 3:32:59 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Oct 03, 2018 3:33:07 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Oct 03, 2018 3:33:07 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TEST]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:911)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:890)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TEST]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
... 6 more
Caused by: java.lang.IllegalArgumentException: Unable to create an instance of type [com.sun.faces.util.ReflectionUtils$ReflectionUtilsListener]
at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1027)
at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:647)
at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:110)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
... 6 more
Caused by: java.lang.ClassNotFoundException: com.sun.faces.util.ReflectionUtils$ReflectionUtilsListener
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1284)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1118)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:520)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:501)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1009)
... 10 more
Check if your project contains .TLD file from jsf-impl.jar file. Compare it with older jar's TLD. If they both are same, than do this: Open new JAR file from JD-GUI and take new .TLD file and replace with you project's existing TLD than clean everything and try again.
I have download Pentaho 7 CE edition and I have not been able to make it work. I have noticed that there is System Error 0014 that pops up in the log.
I have also downloaded Java jre1.8.0_131 and I am using Windows 10 machine. The following is a snippet of the error log in the tomcat.
20:39:08,993 ERROR [OSGIBoot] Error starting Karaf
java.lang.RuntimeException: Could not resolve mvn:org.apache.felix/org.apache.felix.framework/4.2.1
at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
at org.apache.karaf.main.Main.createClassLoader(Main.java:309)
at org.apache.karaf.main.Main.launch(Main.java:229)
at org.pentaho.platform.osgi.KarafBoot$4.run(KarafBoot.java:239)
at java.lang.Thread.run(Unknown Source)
at org.pentaho.platform.osgi.KarafBoot.startup(KarafBoot.java:247)
at org.pentaho.platform.engine.core.system.PentahoSystem$2.call(PentahoSystem.java:443)
at org.pentaho.platform.engine.core.system.PentahoSystem$2.call(PentahoSystem.java:434)
at org.pentaho.platform.engine.core.system.PentahoSystem.runAsSystem(PentahoSystem.java:413)
at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:434)
at org.pentaho.platform.engine.core.system.PentahoSystem.access$000(PentahoSystem.java:84)
at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:365)
at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:362)
at org.pentaho.platform.engine.core.system.PentahoSystem.runAsSystem(PentahoSystem.java:413)
at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:362)
at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:332)
at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:228)
at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:162)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
20:39:09,001 ERROR [Logger] Error: Pentaho
20:39:09,005 ERROR [Logger] misc-org.pentaho.platform.engine.core.system.PentahoSystem: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.osgi.OSGIBoot
org.pentaho.platform.api.engine.PentahoSystemException: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.osgi.OSGIBoot
at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:370)
at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:332)
at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:228)
at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:162)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.osgi.OSGIBoot
at org.pentaho.platform.engine.core.system.PentahoSystem$2.call(PentahoSystem.java:452)
at org.pentaho.platform.engine.core.system.PentahoSystem$2.call(PentahoSystem.java:434)
at org.pentaho.platform.engine.core.system.PentahoSystem.runAsSystem(PentahoSystem.java:413)
at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:434)
at org.pentaho.platform.engine.core.system.PentahoSystem.access$000(PentahoSystem.java:84)
at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:365)
at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:362)
at org.pentaho.platform.engine.core.system.PentahoSystem.runAsSystem(PentahoSystem.java:413)
at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:362)
... 16 more
Caused by: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.osgi.OSGIBoot
at org.pentaho.platform.engine.core.system.PentahoSystem$2.call(PentahoSystem.java:444)
... 24 more
20:39:09,009 ERROR [Logger] Error end:
20:39:09,009 INFO [PeriodicStatusLogger] Warning, one or more errors occurred during the initialization process.
Pentaho BI Platform server failed to properly initialize. The system will not be available for requests. (pentaho-platform-core 7.1.0.0-12) Fully Qualified Server Url = http://localhost:8080/pentaho/, Solution Path = C:\Program Files\Pentaho_BI\pentaho-server-ce-7.1.0.0-12\pentaho-server\pentaho-solutions
10-Jul-2018 20:39:29.970 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Pentaho_BI\pentaho-server-ce-7.1.0.0-12\pentaho-server\tomcat\webapps\pentaho has finished in 295,164 ms
10-Jul-2018 20:39:29.970 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Pentaho_BI\pentaho-server-ce-7.1.0.0-12\pentaho-server\tomcat\webapps\pentaho-style
10-Jul-2018 20:39:30.894 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
10-Jul-2018 20:39:30.910 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Pentaho_BI\pentaho-server-ce-7.1.0.0-12\pentaho-server\tomcat\webapps\pentaho-style has finished in 940 ms
10-Jul-2018 20:39:30.910 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Pentaho_BI\pentaho-server-ce-7.1.0.0-12\pentaho-server\tomcat\webapps\ROOT
10-Jul-2018 20:39:31.640 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
10-Jul-2018 20:39:31.656 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Pentaho_BI\pentaho-server-ce-7.1.0.0-12\pentaho-server\tomcat\webapps\ROOT has finished in 730 ms
10-Jul-2018 20:39:31.656 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Pentaho_BI\pentaho-server-ce-7.1.0.0-12\pentaho-server\tomcat\webapps\sw-style
10-Jul-2018 20:39:32.398 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
10-Jul-2018 20:39:32.414 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Pentaho_BI\pentaho-server-ce-7.1.0.0-12\pentaho-server\tomcat\webapps\sw-style has finished in 758 ms
10-Jul-2018 20:39:32.445 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
10-Jul-2018 20:39:32.632 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
10-Jul-2018 20:39:32.632 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 298043 ms
I would appreciate anyone help in resolving my issue.
Following this I have deployed GeoServer on Azure AppService using Tomcat 8.0.
Initially Tomcat automatically deploy it without any trouble except that it took over 5 minutes and any request to the website will just timeout after couple minutes showing a CGI related error message. However it will be up and running eventually.
However, I notice it from time to time randomly a request comes in would hit a cold start and Tomcat will re-deploy the web archive which would make the request having to wait for over 3 minutes. For example, examining the Catalina logs for 3rd Jan, it cold start re-deploy the web archive at 8am and then at 2pm it happens again. However there is no change to the web archive at all.
If user will get a 4 minutes wait randomly throughout the day on hitting the cold start, this would not be acceptable for our production use. So any help would be appreciated.
Not sure if this is related but I notice Tomcat has a bunch of setting like autoDeploy etc however I have zero experience with Tomcat and therefore if setting these setting will resolve my problem, I would like some help what would be the correct setting and more importantly how to set it on Azure AppService to disable the auto re-deploy?
Here is the Catalina logs:
03-Jan-2018 14:29:38.950 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.46
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Aug 10 2017 10:10:31 UTC
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.46.0
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows Server 2016
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: D:\Program Files\Java\zulu8.23.0.3-jdk8.0.144-win_x64\jre
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_144-b01
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Azul Systems, Inc.
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: D:\Program Files (x86)\apache-tomcat-8.0.46
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: D:\Program Files (x86)\apache-tomcat-8.0.46
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=D:\Program Files (x86)\apache-tomcat-8.0.46\conf\logging.properties
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
03-Jan-2018 14:29:38.964 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=D:\Program Files (x86)\apache-tomcat-8.0.46\conf\logging.properties
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsite.logdir=d:\home\LogFiles\
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dsite.tempdir=D:\local\Temp
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dport.http=11790
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.net.preferIPv4Stack=true
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=D:\Program Files (x86)\apache-tomcat-8.0.46\endorsed
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=D:\Program Files (x86)\apache-tomcat-8.0.46
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\Program Files (x86)\apache-tomcat-8.0.46
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\local\Temp
03-Jan-2018 14:29:38.979 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\zulu8.23.0.3-jdk8.0.144-win_x64\bin;D:\Windows\Sun\Java\bin;D:\Windows\system32;D:\Windows;D:\Program Files (x86)\nodejs;D:\Windows\system32;D:\Windows;D:\Windows\System32\Wbem;D:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\Git\cmd;D:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;D:\Program Files (x86)\dotnet;D:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;D:\Python27;;D:\home\GDAL\gdal-1.9.2-MSVC2010-x64;.
03-Jan-2018 14:29:39.701 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-11790"]
03-Jan-2018 14:29:46.213 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
03-Jan-2018 14:29:46.225 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 10916 ms
03-Jan-2018 14:29:47.866 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
03-Jan-2018 14:29:47.866 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.46
03-Jan-2018 14:29:50.553 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive D:\home\site\wwwroot\webapps\geoserver.war
03-Jan-2018 14:31:13.696 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
03-Jan-2018 14:31:19.054 INFO [localhost-startStop-1] it.geosolutions.imageio.gdalframework.GDALUtilities.loadGDAL GDAL Native Library loaded (version: 1.9.2)
03-Jan-2018 14:31:25.527 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'XStreamPersisterInitializer', but ApplicationContext is unset.
03-Jan-2018 14:31:25.527 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
03-Jan-2018 14:31:25.544 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionProvider', but ApplicationContext is unset.
03-Jan-2018 14:31:25.544 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
03-Jan-2018 14:31:44.183 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'GeoServerSecurityProvider', but ApplicationContext is unset.
03-Jan-2018 14:31:44.183 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
03-Jan-2018 14:31:44.183 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionProvider', but ApplicationContext is unset.
03-Jan-2018 14:31:44.183 WARNING [localhost-startStop-1] org.geoserver.platform.GeoServerExtensions.checkContext Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
03-Jan-2018 14:33:32.300 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive D:\home\site\wwwroot\webapps\geoserver.war has finished in 221,747 ms
03-Jan-2018 14:33:32.349 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\home\site\wwwroot\webapps\ROOT
03-Jan-2018 14:33:32.409 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\home\site\wwwroot\webapps\ROOT has finished in 60 ms
03-Jan-2018 14:33:32.409 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\home\site\wwwroot\webapps\target
03-Jan-2018 14:33:32.458 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\home\site\wwwroot\webapps\target has finished in 49 ms
03-Jan-2018 14:33:32.615 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-11790"]
03-Jan-2018 14:33:32.723 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 226502 ms
I'm trying add richfaces to my JSF 2 project using this jboss guide. I've did what they say in point 2.6, but after restart my tomcat server, HTTP Status 404 is reported.
Have I missed something??
UPDATE:
When I add richfaces-components-ui-4.0.0.Final.jar and richfaces-core-impl-4.0.0.Final.jar, and restart the tomcat server, it reports:
INFO: Unsanitized stacktrace from failed start...
com.sun.faces.config.ConfigurationException:
Source Document: jar:file:/D:/WORKSPACE/BC/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PORTAL/WEB-INF/lib/richfaces-core-impl-4.0.0.Final.jar!/META-INF/faces-config.xml
Cause: Unable to create a new instance of 'org.richfaces.resource.ResourceHandlerImpl': java.lang.reflect.InvocationTargetException
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:293)
....
13.5.2011 8:41:52 com.sun.faces.config.ConfigureListener contextInitialized
SEVERE: Critical error during deployment:
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.google.common.base.Function
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:379)
....
13.5.2011 8:41:52 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.google.common.base.Function
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
....
13.5.2011 8:41:52 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
13.5.2011 8:41:52 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/PORTAL] startup failed due to previous errors
13.5.2011 8:41:52 com.sun.faces.config.ConfigureListener contextDestroyed
SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:894)
....
And now I'm not sure which libraries are neccessary for JSF2 and which for RICHFACES..
According to readme.txt of RichFaces 4 the following JARs are required:
In addition to the RichFaces jars, a number of dependencies are required in order to properly configure the framework.
a. sac-1.3, cssparser-0.9.5 - required for components CSS work.
b. google-guava-r08 - core runtime dependency.
c. annotations.jar - from org.richfaces.cdk.
It's optional and only needs to be added if RichFaces components will be created/accessed dynamically in your apps actions/listeners.
d. validation-api.jar and any implementation like hibernate-validators.jar
It's optional and should be added if you using Client or Graph
Validation. Should be added only if it's not provided by a
server (Java EE 6 servers).
Your exception suggests that you don't have the Google Guava library.