After installing Jenkins on my Win8 machine, both from the latest/greatest and from the stable line, Jenkins fails to show the website. The logs indicate that Jenkins is running. The error log has the following data in it:
May 31, 2014 10:56:34 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
May 31, 2014 10:56:37 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
May 31, 2014 10:56:39 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
May 31, 2014 10:56:39 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector#0.0.0.0:8080
May 31, 2014 10:56:39 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
May 31, 2014 10:56:40 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
May 31, 2014 10:56:52 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: HttpParser Full for SCEP#11aee49{l(/0:0:0:0:0:0:0:1:58237)<->r(/0:0:0:0:0:0:0:1:8080),s=1,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0r}-{AsyncHttpConnection#1120157,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-1,l=5755,c=-3},r=0}
May 31, 2014 10:56:52 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: HttpParser Full for SCEP#1d5d4e5{l(/0:0:0:0:0:0:0:1:58238)<->r(/0:0:0:0:0:0:0:1:8080),s=1,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection#18c3269,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-1,l=5841,c=-3},r=0}
From searching online it looks like it might be an issue with Jetty. The issue provides states that it can be alleviated by updating some settings in the jetty configuration however I have not been able to find these in the Jenkins configuration where I'd assume they would need to be.
The question is does anybody have any suggestions on how to determine what the issue is and then on how to go about fixing it?
Related
I installed the Jenkins v.2.6 on CENTOS 6.8 server a few months ago and everything working as expected since last week it just stops working.
If I go http://mydomain:8081, the login page not loads up anymore and give me the HTTP 503 errorHTTP ERROR: 503 Problem accessing /login. Reason: Service Unavailable.
I check the port 8081 and it is listening still, checked the status of the Jenkins service, it is running fine with the assigned PID #.
I did check the Jenkins log and see the message below and I have no idea how to fix it, try add the --prefix/Jenkins as Argument and 127.0.0.1 in the Jenkins config file as some other thread suggested, but none of those working.
Even rebooted the server and still not working.
Could anyone help?
Thanks,
Jenkins Log File
Running from: /usr/lib/jenkins/jenkins.war
Apr 17, 2017 3:10:21 PM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Apr 17, 2017 3:10:22 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized #1304ms
Apr 17, 2017 3:10:22 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Apr 17, 2017 3:10:22 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Apr 17, 2017 3:10:22 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Apr 17, 2017 3:10:24 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Apr 17, 2017 3:10:25 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Failed startup of context w.#faf73d2{/,file:/var/cache/jenkins/war/,STARTING}{/var/cache/jenkins/war}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:408)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1340)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:387)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:354)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at winstone.Launcher.<init>(Launcher.java:152)
at winstone.Launcher.main(Launcher.java:352)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at Main._main(Main.java:264)
at Main.main(Main.java:112)
Caused by: java.lang.UnsupportedClassVersionError: jenkins/util/SystemProperties : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
at org.eclipse.jetty.server.handler.ContextHandler.loadClass(ContextHandler.java:1583)
at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1956)
... 25 more
Apr 17, 2017 3:10:25 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector#768f310f{HTTP/1.1}{0.0.0.0:8081}
Apr 17, 2017 3:10:25 PM org.eclipse.jetty.util.log.JavaUtilLog info
After install the JDK 1.8 all working fine for few hours, all sudden I got the timeout without any HTTP error message this time.
I checked the JENKINS log again and here is what it showing this time.
Running from: /usr/lib/jenkins/jenkins.war
Apr 18, 2017 8:53:27 PM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Apr 18, 2017 8:53:27 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized #861ms
Apr 18, 2017 8:53:27 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Apr 18, 2017 8:53:27 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Apr 18, 2017 8:53:27 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Apr 18, 2017 8:53:28 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: /data/jenkins found at: SystemProperties.getProperty("JENKINS_HOME")
Apr 18, 2017 8:53:29 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.#7e057f43{/,file:/var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Apr 18, 2017 8:53:29 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector#305ffe9e{HTTP/1.1}{0.0.0.0:8081}
Apr 18, 2017 8:53:29 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started #2826ms
Apr 18, 2017 8:53:29 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Apr 18, 2017 8:53:30 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Apr 18, 2017 8:53:30 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Apr 18, 2017 8:53:30 PM jenkins.bouncycastle.api.SecurityProviderInitializer addSecurityProvider
INFO: Initializing Bouncy Castle security provider.
Apr 18, 2017 8:53:30 PM jenkins.bouncycastle.api.SecurityProviderInitializer addSecurityProvider
INFO: Bouncy Castle security provider initialized.
Apr 18, 2017 8:53:38 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Apr 18, 2017 8:53:38 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Apr 18, 2017 8:53:40 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
Apr 18, 2017 8:53:40 PM org.jenkinsci.plugins.dockerbuildstep.DockerBuilder$DescriptorImpl <init>
WARNING: Docker URL is not set, docker client won't be initialized
Apr 18, 2017 8:53:41 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Apr 18, 2017 8:53:42 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Apr 18, 2017 8:53:42 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Could anyone help me again? As I said it works after upgraded the JDK to 1.8 and it created more than 10 builds in few hours, then stop working again.
Thanks,
version 52.0 of the java class file means, that the java source code was compiled for jre8 and has to be executed with jre8.
Here the class file versions and theire equivalent java versions:
Java SE 9 = 53 (0x35 hex)
Java SE 8 = 52 (0x34 hex)
Java SE 7 = 51 (0x33 hex)
Java SE 6.0 = 50 (0x32 hex)
Java SE 5.0 = 49 (0x31 hex)
JDK 1.4 = 48 (0x30 hex)
This means you have either to upgrade the jvm or you have to downgrade the jenkins version. You can see the jenkins version right down in the corner of your jenkins installation, when you open it in the webbrowser.
Here is the official blogpost for the upgrade: https://jenkins.io/blog/2017/01/17/Jenkins-is-upgrading-to-Java-8/
Since java 7 doesn't get any public updates since April 2015, the best way is to upgrade your jvm to 8.
The solution for me was:
Install Java8: sudo apt install oracle-java8-jdk/stable
Set Java8 as the default java: sudo update-alternatives --config java
Restart Jenkins: sudo systemctl restart jenkins
After this I haven't had any problem with Jenkins.
When I set up my Jenkins master using the windows installer version and attempt to connect to a slave machine using "Launch Jenkins via Java webstart", I can connect the slave server to the master fine with no issues.
However, I'm now required to launch the jenkins Master using "java -jar jenkins.war" so I can see the GUI interface being tested in realtime, but I cannot seem to create a connection to the slave machine this way (when I try to access the url on the slave machine, it says it cannot be displayed).
Is it possible to connect with jenkins while it is being run as a java program? Or is there an alternative method I can use?
EDIT: Below is a copy of the console output when I start jenkins on the console.
C:\Program Files (x86)\Jenkins>java -jar jenkins.war
Running from: C:\Program Files (x86)\Jenkins\jenkins.war
webroot: $user.home/.jenkins
Oct 11, 2016 3:07:09 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized #279ms
Oct 11, 2016 3:07:09 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
←[33mOct 11, 2016 3:07:09 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
←[0mOct 11, 2016 3:07:09 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Oct 11, 2016 3:07:10 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: C:\Users\user\.jenkins found at: $user.home/.jenkins
Oct 11, 2016 3:07:11 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.#1aac487{/,file:/C:/Users/user/.jenkins/war/,AVAILABLE}{C:\Us
ers\user\.jenkins\war}
Oct 11, 2016 3:07:11 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector#1154ccd{HTTP/1.1}{0.0.0.0:8080}
Oct 11, 2016 3:07:11 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started #1571ms
Oct 11, 2016 3:07:11 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Oct 11, 2016 3:07:11 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 11, 2016 3:07:11 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 11, 2016 3:07:14 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 11, 2016 3:07:15 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1
error
INFO: Failed to instantiate optional component hudson.plugins.build_timeout.oper
ations.AbortAndRestartOperation$DescriptorImpl; skipping
Oct 11, 2016 3:07:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 11, 2016 3:07:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 11, 2016 3:07:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 11, 2016 3:07:16 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Oct 11, 2016 3:07:16 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 4 ms
Oct 11, 2016 3:07:17 PM org.springframework.context.support.AbstractApplicationC
ontext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationCon
text#150b22a: display name [Root WebApplicationContext]; startup date [Tue Oct 1
1 15:07:17 BST 2016]; root of context hierarchy
Oct 11, 2016 3:07:17 PM org.springframework.context.support.AbstractApplicationC
ontext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.supp
ort.StaticWebApplicationContext#150b22a]: org.springframework.beans.factory.supp
ort.DefaultListableBeanFactory#1b4a611
Oct 11, 2016 3:07:17 PM org.springframework.beans.factory.support.DefaultListabl
eBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.
DefaultListableBeanFactory#1b4a611: defining beans [authenticationManager]; root
of factory hierarchy
Oct 11, 2016 3:07:17 PM org.springframework.context.support.AbstractApplicationC
ontext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationCon
text#10920bb: display name [Root WebApplicationContext]; startup date [Tue Oct 1
1 15:07:17 BST 2016]; root of context hierarchy
Oct 11, 2016 3:07:17 PM org.springframework.context.support.AbstractApplicationC
ontext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.supp
ort.StaticWebApplicationContext#10920bb]: org.springframework.beans.factory.supp
ort.DefaultListableBeanFactory#1403952
Oct 11, 2016 3:07:17 PM org.springframework.beans.factory.support.DefaultListabl
eBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.
DefaultListableBeanFactory#1403952: defining beans [filter,legacy]; root of fact
ory hierarchy
Oct 11, 2016 3:07:17 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 56276
Oct 11, 2016 3:07:17 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 11, 2016 3:07:17 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
My app runs on my machine but not im tomcat this is my log :
Oct 12, 2012 2:48:23 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Oct 12, 2012 2:48:24 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Oct 12, 2012 2:48:24 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Oct 12, 2012 2:48:24 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 904 ms
Oct 12, 2012 2:48:24 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 12, 2012 2:48:24 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.32
Oct 12, 2012 2:48:24 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /usr/local/fypTomcat/webapps/FYP.war
log4j:WARN No appenders could be found for logger (org.codehaus.groovy.grails.commons.cfg.ConfigurationHelper).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Configuring Spring Security UI ...
... finished configuring Spring Security UI
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Oct 12, 2012 2:49:15 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Oct 12, 2012 2:49:15 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/FYP] startup failed due to previous errors
Oct 12, 2012 2:49:15 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/FYP] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
Oct 12, 2012 2:49:15 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/FYP] appears to have started a thread named [net.sf.ehcache.CacheManager#16394576] but has failed to stop it. This is very likely to create a memory leak.
Oct 12, 2012 2:49:15 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/FYP] appears to have started a thread named [com.fyp.timeline.Role.data] but has failed to stop it. This is very likely to create a memory leak.
Oct 12, 2012 2:49:15 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/FYP] created a ThreadLocal with key of type [org.codehaus.groovy.reflection.ClassInfo.ThreadLocalMapHandler] (value [org.codehaus.groovy.reflection.ClassInfo$ThreadLocalMapHandler#746231ed]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference#5abbfa4c]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Oct 12, 2012 2:49:15 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Oct 12, 2012 2:49:15 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Oct 12, 2012 2:49:15 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 51609 ms
101,1 Bot
Any Ideas what causes this?
This is a message from catalina.out file. Take a look at localhost.[date].log (e.g. localhost.2012-10-12.log). It should contain all details and stacktrace.
This may be the solution to your problem -
http://java.dzone.com/articles/tomcat-6-infamous-%E2%80%9Csevere
we had this error because of the log4j config. You need to change it to write to the tomcat log directory.
It seems it is now fixed in 2.1.4+ version of Grails. See http://grails.org/2.1.4%20Release%20Notes
I'm trying to learn the Struts2 framework.
I got the HelloWorld example form the site:
`www.vaannila.com/struts/struts-tutorial/struts-tutorial-using-eclipse-1.html
The highlighted code is shown as a warning:
<%#taglib uri="/struts-tags" prefix="s" %>
s:redirect forward="helloWorld"/>
Th warning is given below:
Multiple annotations found at this line:
- Unknown tag (bean:write).
- Unknown tag (bean:write).
I get the same warning in my index.jsp file for the code:
and when i run the tomcat, I get the following in my console. I know my tomcat is running but how do i rectify this?
Jun 13, 2012 1:12:28 PM org.apache.catalina.core.AprLifecycleListener init
**INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32;**
**Jun 13, 2012 1:12:28 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:StrutsExample1' did not find a matching property.**
Jun 13, 2012 1:12:28 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 13, 2012 1:12:28 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 13, 2012 1:12:28 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 735 ms
Jun 13, 2012 1:12:28 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 13, 2012 1:12:28 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
Jun 13, 2012 1:12:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jun 13, 2012 1:12:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jun 13, 2012 1:12:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2586 ms
<bean:write> is struts 1.x you have to use <s:property> in struts 2.x.
See s:property documentation
I have a grails app developed under version 1.3.7It works very well when I run using grails command "grails run-app" .
I created the war file using the grails command "grails war" and deployed it into the tomcat 5.5 version running on my local machine. The app doesnt show up on the url..
When I checked the log files, there were few INFO statements followed by an error saying "Error listenerstart". Below is the text from the log file.
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Sep 20, 2011 1:57:44 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 20, 2011 1:57:44 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Sep 20, 2011 1:57:44 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 484 ms
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.33
Sep 20, 2011 1:57:44 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 20, 2011 1:57:45 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive sample-0.2.war
Sep 20, 2011 1:57:49 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Sep 20, 2011 1:57:49 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Tue Sep 20 13:57:49 MDT 2011]; root of context hierarchy
Sep 20, 2011 1:57:49 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
Sep 20, 2011 1:57:49 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#1cf662f: defining beans [grailsApplication,pluginManager,grailsConfigurator,grailsResourceLoader,grailsResourceHolder,characterEncodingFilter]; root of factory hierarchy
Sep 20, 2011 1:57:49 PM org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean afterPropertiesSet
INFO: Loading Grails application with information from descriptor.
Sep 20, 2011 1:57:49 PM org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean afterPropertiesSet
INFO: No reloading, using standard classloader.
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager findUserPlugins
INFO: Attempting to load [0] user defined plugins
Sep 20, 2011 1:57:50 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.1.GA
Sep 20, 2011 1:57:50 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Sep 20, 2011 1:57:50 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
Sep 20, 2011 1:57:50 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [logging] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [i18n] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [core] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [filters] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [servlets] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [release] with version [1.0.0.M1] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [svn] with version [1.0.0.M1] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [dataSource] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [groovyPages] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [codecs] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [urlMappings] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [controllers] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [scaffolding] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [mimeTypes] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [domainClass] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [converters] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [hibernate] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [services] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:50 PM org.codehaus.groovy.grails.plugins.DefaultGrailsPluginManager registerPlugin
INFO: Grails plug-in [validation] with version [1.3.7] loaded successfully
Sep 20, 2011 1:57:51 PM org.codehaus.groovy.grails.commons.TagLibArtefactHandler initialize
INFO: There are conflicting tags: org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib.g:out vs. org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib.g:out. The former will take precedence.
Sep 20, 2011 1:57:51 PM org.codehaus.groovy.grails.commons.TagLibArtefactHandler initialize
INFO: There are conflicting tags: org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib.g:out vs. org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib.g:out. The former will take precedence.
Sep 20, 2011 1:57:51 PM org.codehaus.groovy.grails.commons.TagLibArtefactHandler initialize
INFO: There are conflicting tags: org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib.g:out vs. org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib.g:out. The former will take precedence.
Sep 20, 2011 1:57:51 PM org.codehaus.groovy.grails.commons.TagLibArtefactHandler initialize
INFO: There are conflicting tags: org.codehaus.groovy.grails.plugins.web.taglib.FormTagLib.g:out vs. org.codehaus.groovy.grails.plugins.web.taglib.RenderTagLib.g:out. The former will take precedence.
Sep 20, 2011 1:57:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 20, 2011 1:57:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/sample-0.2] startup failed due to previous errors
Sep 20, 2011 1:57:55 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 20, 2011 1:57:55 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Sep 20, 2011 1:57:55 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Sep 20, 2011 1:57:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10438 ms
Sep 20, 2011 1:58:09 PM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 20, 2011 1:58:09 PM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
Sep 20, 2011 1:58:10 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 20, 2011 1:58:10 PM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 20, 2011 1:58:10 PM org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
I really appreciate your help here
My colleague Jelmer has written a blog posting about exactly this subject
Read it and you will find out how to get log output for the ERROR:ListenerStart. That will help you solve your problem.
Well, the problem got resolved. In my case, I was using a wrong netcdf JAR file. There are two netcdf-java jar files. One is netcdfAll-{version}.jar and netcdf-{version}.jar. Initially, I was using the netcdfAll-{version}.jar, when I replaced it with netcdf-{version}.jar, the error got resolved. The reason I am thinking is the first specified netcdfAll jar file has logging dependencies that would have caused the error. This is just my opinion, I have no log error evidence to prove that so. Replacing the jar file just worked fine in my case.
I had been solving this issue for the past 4 days and I did an extensive search on Google for this error and read through various forums and Q&A sites to see how people had resolved their error. In most of the cases, the error was due to the JAR files present in the {your-app}/WEB-INF/lib/ directory. It may be missing some required jar files or presence of duplicate JAR files.Something to do with the JAR files. So, just a little tip, we you face an error like this on tomcat be sure to double check your lib directory to see you have the correct set of JAR files. I also tried several logging implementations, to see the system log the cause of the error, in my case I couldn't find any stacktrace being produced.
Anyways, the error is resolved and thanks to "Hans Westerbeek" for helping on this.