tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Tomcat 4.1.29 and WAR context settings
Date Mon, 28 Mar 2005 22:43:40 GMT
Greetings,

I am using Tomcat 4.1.29 and trying to deploy a WAR named meridian.war
with context configuration values. The WAR is not unpacking and I keep
getting the following error...

java.lang.NullPointerException
	at java.io.File.<init>(File.java:180)
	at org.apache.catalina.core.StandardContext.getBasePath(StandardContext.java:3902)
	at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3344)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3474)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	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:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

My server.xml configuration is as follows (minus passwords and sensitive stuff):

<Server port="18006" shutdown="SHUTDOWN" debug="0">

  <Service name="Tomcat-Standalone">

    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="18081" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="60000"/>
     <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>

    <Engine name="Standalone" defaultHost="localhost" debug="0">

      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>
      
      <Host name="localhost" debug="0"
appBase="D:\java\projects\meridian\dist\war" autoDeploy="true">
      
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
                 pattern="common"/>
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost_log." suffix=".txt"
	        timestamp="true"/>
		
	<Realm className="com.plumcreek.commons.security.ReverseProxyRealm" />

	<Context path="/meridian" debug="0" reloadable="true" crossContext="false">

		<Resource name="jdbc/as400" auth="Container" type="javax.sql.DataSource"/>
		<ResourceParams name="jdbc/as400">
			<parameter>
				<name>factory</name>
				<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
			</parameter>
			<parameter>
				<name>driverClassName</name>
				<value>com.ibm.as400.access.AS400JDBCDriver</value>
			</parameter>
			<parameter>
				<name>url</name>
				<value>jdbc:as400://some.place.net;naming=system</value>
			</parameter>
			<parameter>
				<name>username</name>
				<value>someusername</value>
			</parameter>
			<parameter>
				<name>password</name>
				<value>somepassword</value>
			</parameter>
			<parameter>
				<name>maxActive</name>
				<value>10</value>
			</parameter>
			<parameter>
				<name>maxIdle</name>
				<value>5</value>
			</parameter>
			<parameter>
				<name>maxWait</name>
				<value>-1</value>
			</parameter>
		</ResourceParams>

	</Context>

      </Host>

    </Engine>

  </Service>

</Server>

Any help would be appreciated.

Thanks
Brandon

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message