Frustrating refusal to serve *some* pages, scripts, images.
We have tomcat 6 (Tomcat/6.0.16) installed on a Redhat ES4 server in a production environment (although it's not being depended-upon at this moment; we're in the installation phase). I installed it via the tarball binary, not from an RPM. When I deployed a WAR that was running bug-free on my own localhost (debian sid, but also Tomcat 6.0.16), there were several errors. First, Tomcat refused to load my jQuery library (jQuery latest; 1.3.2). I considered perhaps there were some bad characters in the jQuery library because it was the /only/ file Tomcat would fail to load, so I downgraded jQuery, which actually solved the problem. Then, however, when I redeployed, I got the same exact error on the background image for my web app. And also on index.jsp. There are probably other problematic files, but I felt I could stop there... So I'm now convinced the problem is Tomcat; it never should have had problems with jQuery either, as I said it ran just fine on localhost. The full text of the stack trace follows ... it doesn't mean anything to me, though. Seems to be a red herring. SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Thanks, Zaq - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Frustrating refusal to serve *some* pages, scripts, images.
From: Zaq Rizer [mailto:idhindsi...@gmail.com] Subject: Frustrating refusal to serve *some* pages, scripts, images. The full text of the stack trace follows ... Since this appears to be reproducible, you might want to stop Tomcat, clear out the logs, restart Tomcat, and try the failing request again. Then stop Tomcat, and post all the non-empty logs here. There's likely something in addition to the stack trace you provided that contains more information about the problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Frustrating refusal to serve *some* pages, scripts, images.
On Mon, Jun 8, 2009 at 4:14 PM, Caldarale, Charles Rchuck.caldar...@unisys.com wrote: From: Zaq Rizer [mailto:idhindsi...@gmail.com] Subject: Frustrating refusal to serve *some* pages, scripts, images. The full text of the stack trace follows ... Since this appears to be reproducible, you might want to stop Tomcat, clear out the logs, restart Tomcat, and try the failing request again. Then stop Tomcat, and post all the non-empty logs here. There's likely something in addition to the stack trace you provided that contains more information about the problem. Chuck, thanks for the idea. I did exactly that, and here are the logs. localhost.2009-06-08.log Jun 8, 2009 3:35:01 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jun 8, 2009 3:35:01 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jun 8, 2009 3:35:15 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) catalina.2009-06-08.log Jun 8, 2009 3:35:00 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/java/jdk1.6.0_10/jre/lib/i386/server:/usr/java/jdk1.6.0_10/jre/lib/i386:/usr/java/jdk1.6.0_10/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib Jun 8, 2009 3:35:00 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jun 8, 2009 3:35:00 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 345 ms Jun 8, 2009 3:35:00 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jun 8, 2009 3:35:00 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Jun 8, 2009 3:35:00 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener org.apache.tiles.web.startup.TilesListener is already configured for this context. The duplicate definition has been ignored. Jun 8, 2009 3:35:00 PM org.apache.tiles.context.AbstractTilesApplicationContextFactory createFactory INFO: Initializing Tiles2 application context. . . Jun 8, 2009 3:35:00 PM org.apache.tiles.context.ChainedTilesApplicationContextFactory init WARNING: Cannot find TilesContextFactory class org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory Jun 8, 2009 3:35:00 PM org.apache.tiles.context.AbstractTilesApplicationContextFactory createFactory INFO: Finished initializing Tiles2 application context. Jun 8, 2009 3:35:00 PM org.apache.tiles.context.ChainedTilesApplicationContextFactory init WARNING: Cannot find TilesContextFactory class org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory Jun 8, 2009 3:35:00 PM org.apache.tiles.factory.TilesContainerFactory initializeContainer INFO: Initializing Tiles2 container. . . Jun 8, 2009 3:35:00 PM org.apache.tiles.context.ChainedTilesApplicationContextFactory init WARNING: Cannot find TilesContextFactory class org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory Jun 8, 2009 3:35:00 PM org.apache.tiles.context.ChainedTilesRequestContextFactory init WARNING: Cannot find TilesRequestContextFactory class org.apache.tiles.portlet.context.PortletTilesRequestContextFactory Jun 8, 2009 3:35:00 PM org.apache.tiles.definition.dao.BaseLocaleUrlDefinitionDAO identifySources WARNING: Unable to find configured definition '/WEB-INF/tiles.xml' Jun 8, 2009 3:35:00 PM org.apache.tiles.factory.TilesContainerFactory initializeContainer INFO
Re: Frustrating refusal to serve *some* pages, scripts, images.
Zaq Rizer wrote: We have tomcat 6 (Tomcat/6.0.16) installed on a Redhat ES4 server in a production environment (although it's not being depended-upon at this moment; we're in the installation phase). I installed it via the tarball binary, not from an RPM. When I deployed a WAR that was running bug-free on my own localhost (debian sid, but also Tomcat 6.0.16), there were several errors. First, Tomcat refused to load my jQuery library (jQuery latest; 1.3.2). I considered perhaps there were some bad characters in the jQuery library because it was the /only/ file Tomcat would fail to load, so I downgraded jQuery, which actually solved the problem. Then, however, when I redeployed, I got the same exact error on the background image for my web app. And also on index.jsp. There are probably other problematic files, but I felt I could stop there... Wild stab in the dark. Could you post your server.xml and any context.xml file for your app please. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Frustrating refusal to serve *some* pages, scripts, images.
From: Zaq Rizer [mailto:idhindsi...@gmail.com] Subject: Re: Frustrating refusal to serve *some* pages, scripts, images. Jun 8, 2009 3:35:15 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet default threw exception javax.servlet.ServletException: Servlet execution threw an exception This is odd; I would have expected another stack trace of the original exception to be displayed, immediately following this one. Why is this stack trace different from the one you posted before? What changed? The original one should have also had an additional caused by stack trace with it. It's very odd that you don't seem to be getting those. Jun 8, 2009 3:35:00 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener org.apache.tiles.web.startup.TilesListener is already configured for this context. The duplicate definition has been ignored. The above is a cosmetic bug in the version of Tomcat you're using and can be ignored. Jun 8, 2009 3:35:00 PM org.apache.tiles.context.ChainedTilesApplicationContextFactory init WARNING: Cannot find TilesContextFactory class org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory I'm not familiar with tiles, but the above doesn't look good. Jun 8, 2009 3:35:01 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener listeners.ContextListener is already configured for this context. The duplicate definition has been ignored. Another cosmetic-only message. /I/ don't see anything, do you? Just the TilesContextFactory warning. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Frustrating refusal to serve *some* pages, scripts, images.
I retained my entire conf and logs directory, and installed .0.20, and it works perfectly fine. I'm not confident enough to say it's a bug in .0.16, but it certainly could be Bad Unix Admin syndrome (not me). Btw, apologies for top-posting; I'm on my iPhone now... On Jun 8, 2009, at 17:03, Mark Thomas ma...@apache.org wrote: Zaq Rizer wrote: We have tomcat 6 (Tomcat/6.0.16) installed on a Redhat ES4 server in a production environment (although it's not being depended-upon at this moment; we're in the installation phase). I installed it via the tarball binary, not from an RPM. When I deployed a WAR that was running bug-free on my own localhost (debian sid, but also Tomcat 6.0.16), there were several errors. First, Tomcat refused to load my jQuery library (jQuery latest; 1.3.2). I considered perhaps there were some bad characters in the jQuery library because it was the /only/ file Tomcat would fail to load, so I downgraded jQuery, which actually solved the problem. Then, however, when I redeployed, I got the same exact error on the background image for my web app. And also on index.jsp. There are probably other problematic files, but I felt I could stop there... Wild stab in the dark. Could you post your server.xml and any context.xml file for your app please. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Frustrating refusal to serve *some* pages, scripts, images.
--- On Mon, 6/8/09, Zaq Rizer idhindsi...@gmail.com wrote: WARNING: Unable to find configured definition '/WEB-INF/tiles.xml' Jun 8, 2009 3:35:00 PM org.apache.tiles.factory.TilesContainerFactory initializeContainer Just a random thought, which you've alluded to from your iPhone-posted message: Could there be permissions / file ownership issues? Also, are there any SE Linux issues outstanding? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org