Here it is...

It seems like a component of our application uses the eclipse OSGI
framework (org.eclipse.birt.core.framework.osgi.OSGILauncher) during
its startup. I'm looking into how it might result in this issue. But
I'm curious as to how such an error can cause the whole Tomcat to go
down.

Thanks,
Riyaz

On 5/7/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
Please display the web.xml for the webapp

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message -----
From: "Riyaz Shaikh" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, May 07, 2007 7:07 PM
Subject: "Error allocating a servlet instance" after editing web.xml.


> Problem: If I make any change to my application's web.xml (even as
> small as a single space), I can't access any of Tomcat's
> pages/servlets.
>
> Info to narrow things down (hopefully):
> - I think Tomcat reloads things whenever a change is made to web.xml.
> But I haven't been able to find some good information on this yet.
>
> - The application is located under CATALINA_HOME\webapps. I tried
> creating a context file under conf/catalina/localhost and set
> reloadable="false", but it didn't help.
>
> - Since this problem isn't seen if I edit the web.xml of any of
> Tomcat's example applications, it might have something to do with how
> my application initializes. But nothing shows up in the logs anywhere,
> other than the stack trace I get when I try to access any page. Would
> anyone know which tomcat elements I should enable the debugging info
> for, to get more info about the re-initialization.
>
> - This is the stack trace I get if I try to access anything, after the
> web.xml editing:
>
> exception
>
> javax.servlet.ServletException: Error allocating a servlet instance
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:135)
> 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:706)
> java.lang.Thread.run(Thread.java:595)
>
> root cause
>
> java.lang.NullPointerException
> 
org.eclipse.osgi.framework.internal.core.FrameworkProperties.getProperty(FrameworkProperties.java:58)
> 
org.eclipse.osgi.framework.internal.core.FrameworkProperties.getProperty(FrameworkProperties.java:51)
> org.eclipse.osgi.framework.util.SecureAction.getProperty(SecureAction.java:49)
> 
org.eclipse.osgi.framework.internal.protocol.StreamHandlerFactory.createURLStreamHandler(StreamHandlerFactory.java:85)
> java.net.URL.getURLStreamHandler(URL.java:1104)
> java.net.URL.<init>(URL.java:393)
> java.net.URL.<init>(URL.java:283)
> java.net.URL.<init>(URL.java:306)
> java.io.File.toURL(File.java:594)
> 
org.apache.catalina.loader.WebappClassLoader.getURL(WebappClassLoader.java:2292)
> 
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1966)
> 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1749)
> 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
> 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
> 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:135)
> 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:706)
> java.lang.Thread.run(Thread.java:595)
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<?xml version="1.0" encoding="ISO-8859-1"?>

<!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>$$Display_Name$$</display-name>
	<context-param>
		<param-name>ENABLE_CLIENT_SIDE_REDIRECT</param-name>
		<param-value>false</param-value>
	</context-param>

	<context-param>
		<param-name>DEFAULT_WORKGROUP_SKIN</param-name>
		<param-value>classic</param-value>
	</context-param>
	<context-param>
		<param-name>MEMBERSHIP_LIST_SIZE</param-name>
		<param-value>100</param-value>
	</context-param>
	<context-param>
		<param-name>DEFAULT_LOCALE</param-name>
		<param-value>$$Default_Locale$$</param-value>
	</context-param>
	<context-param>
		<param-name>DEFAULT_TIMEZONE</param-name>
		<param-value>$$Default_Timezone$$</param-value>
	</context-param>
	<context-param>
		<param-name>SERVER_DEFAULT</param-name>
		<param-value>$$Default_URL$$</param-value>
	</context-param>
	<context-param>
		<param-name>DEFAULT_VOLUME</param-name>
		<param-value>$$Default_Volume$$</param-value>
	</context-param>
	<context-param>
		<param-name>COOKIE_ENABLED</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>COOKIE_DOMAIN</param-name>
		<param-value></param-value>
	</context-param>

	<context-param>
		<param-name>FORCED_GC_INTERVAL</param-name>
		<param-value>0</param-value>
	</context-param>

	<context-param>
		<param-name>LOGIN_TIMEOUT</param-name>
		<param-value>1200</param-value>
	</context-param>
	<context-param>
		<param-name>ENABLE_ERROR_LOGGING</param-name>
		<param-value>true</param-value>
	</context-param>
	<context-param>
		<param-name>ENABLE_DEBUG_LOGGING</param-name>
		<param-value>false</param-value>
	</context-param>
	<context-param>
		<param-name>ENABLE_STRESS_LOGGING</param-name>
		<param-value>false</param-value>
	</context-param>
	<context-param>
		<param-name>ERROR_LOG_FILE_ROLLOVER</param-name>
		<param-value>MONTHLY</param-value>
	</context-param>
	<context-param>
		<param-name>LOG_FILE_LOCATION</param-name>
		<param-value>$$Logfile_Location$$/logs</param-value>
	</context-param>
	<context-param>
		<param-name>MAX_BACKUP_ERROR_LOGS</param-name>
		<param-value>10</param-value>
	</context-param>
	<context-param>
		<param-name>TEMP_FOLDER_LOCATION</param-name>
		<param-value>$$Temp_Folder$$</param-value>
	</context-param>

	<!-- Listener used to remove session information that are stored in iPortal's servlet
		 context.
	-->
	<listener>
		<listener-class>com.actuate.sso.SSOListener</listener-class>
	</listener>

	<servlet>
		<servlet-name>ServerStatus</servlet-name>
		<servlet-class>com.actuate.reportcast.servlets.StartupServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>FileUpload</servlet-name>
		<servlet-class>com.actuate.reportcast.servlets.FileUploadServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>SetLicenseTerms</servlet-name>
		<servlet-class>com.actuate.reportcast.servlets.SetLicenseTermsServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>ViewEmbeddedObject</servlet-name>
		<servlet-class>com.actuate.reportcast.servlets.ViewEmbeddedObjectServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>GetStyleSheet</servlet-name>
		<servlet-class>com.actuate.reportcast.servlets.GetStyleSheetServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>GetStaticData</servlet-name>
		<servlet-class>com.actuate.reportcast.servlets.GetStaticDataServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>GetDynamicData</servlet-name>
		<servlet-class>com.actuate.reportcast.servlets.GetDynamicDataServlet</servlet-class>
	</servlet>
	<servlet>
		<servlet-name>DownloadFile</servlet-name>
		<servlet-class>com.actuate.reportcast.servlets.FileDownloadServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<!-- Action Servlet Configuration -->
	<servlet>
		<servlet-name>action</servlet-name>
		<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
		<init-param>
			<param-name>config</param-name>
			<param-value>/WEB-INF/struts-config.xml</param-value>
		</init-param>
		<init-param>
			<param-name>debug</param-name>
			<param-value>0</param-value>
		</init-param>
		<init-param>
			<param-name>detail</param-name>
			<param-value>0</param-value>
		</init-param>
		<init-param>
			<param-name>validate</param-name>
			<param-value>true</param-value>
		</init-param>
		<load-on-startup>2</load-on-startup>
	</servlet>
  


	<!-- Action Servlet Mapping -->
	<servlet-mapping>
		<servlet-name>action</servlet-name>
		<url-pattern>*.do</url-pattern>
	</servlet-mapping>

	<welcome-file-list>
		<welcome-file>landing.jsp</welcome-file>
	</welcome-file-list>
	<taglib>
		<taglib-uri>
			/users
		</taglib-uri>
		<taglib-location>
			/WEB-INF/users.tld
		</taglib-location>
	</taglib>

	<taglib>
		<taglib-uri>
			/common
		</taglib-uri>
		<taglib-location>
			/WEB-INF/common.tld
		</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>
			/groups
		</taglib-uri>
		<taglib-location>
			/WEB-INF/groups.tld
		</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>
			/i18n
		</taglib-uri>
		<taglib-location>
			/WEB-INF/i18n.tld
		</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>
			/script
		</taglib-uri>
		<taglib-location>
			/WEB-INF/script.tld
		</taglib-location>
	</taglib>
	<taglib>
		<taglib-uri>
			/login
		</taglib-uri>
		<taglib-location>
			/WEB-INF/login.tld
		</taglib-location>
	</taglib>

	<!-- Actuate utility tag Library -->
	<taglib>
		<taglib-uri>
			/actabpanel
		</taglib-uri>
		<taglib-location>
			/WEB-INF/actabpanel.tld
		</taglib-location>
	</taglib>

	<taglib>
		<taglib-uri>
			/commoncontrols
		</taglib-uri>
		<taglib-location>
			/WEB-INF/commoncontrols.tld
		</taglib-location>
	</taglib>


	<!-- Struts Tag Library Descriptors -->
	<taglib>
		<taglib-uri>
			/struts-bean
		</taglib-uri>
		<taglib-location>
			/WEB-INF/struts-bean.tld
		</taglib-location>
	</taglib>
	
	<taglib>
		<taglib-uri>
    		/struts-html
    	</taglib-uri>
		<taglib-location>
    		/WEB-INF/struts-html.tld
    	</taglib-location>
	</taglib>
    
	<taglib>
		<taglib-uri>
			/struts-logic
		</taglib-uri>
		<taglib-location>
			/WEB-INF/struts-logic.tld
		</taglib-location>
	</taglib>
	
	<taglib>
		<taglib-uri>
			/struts-tiles
		</taglib-uri>
		<taglib-location>
			/WEB-INF/struts-tiles.tld
		</taglib-location>
	</taglib>
		
</web-app>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to