tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manca Davide" <>
Subject RE: tomcat 6 and system property
Date Tue, 08 May 2007 08:39:48 GMT


This didn't worked out, I tried to write in my server.xml to let Jfig work.



        <Environment name="config.filename" value="/myhost/doc_root/webapps/mywebapp/WEB-INF/classes/myconfig.xml"
type="java.lang.String" override="false"/>

        <Environment name="config.location" value="file" type="java.lang.String" override="false"/>



But the output was:


May 8, 2007 10:37:05 AM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Allocate exception for servlet DestinationSearchServlet

org.igfay.jfig.JFigException: ConfigurationDictionary.getValueReally() ***Exception ***

Section DESTINATION not found.

        at org.igfay.jfig.JFigDictionary.getValueReally(

        at org.igfay.jfig.JFigDictionary.getValue(

        at org.igfay.jfig.JFig.getValue(

        at it.matrix.planner.DestinationSearchServlet.loadApplicationConfiguration(

        at it.matrix.planner.DestinationSearchServlet.init(

        at org.apache.catalina.core.StandardWrapper.loadServlet(

        at org.apache.catalina.core.StandardWrapper.allocate(

        at org.apache.catalina.core.StandardWrapperValve.invoke(

        at org.apache.catalina.core.StandardContextValve.invoke(

        at org.apache.catalina.core.StandardHostValve.invoke(

        at org.apache.catalina.valves.ErrorReportValve.invoke(

        at org.apache.catalina.core.StandardEngineValve.invoke(

        at org.apache.catalina.connector.CoyoteAdapter.service(

        at org.apache.jk.server.JkCoyoteHandler.invoke(

        at org.apache.jk.common.HandlerRequest.invoke(

        at org.apache.jk.common.ChannelSocket.invoke(

        at org.apache.jk.common.ChannelSocket.processConnection(

        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(

        at org.apache.tomcat.util.threads.ThreadPool$



I tried also



<Parameter name="config.filename" value="/myhost/doc_root/webapps/mywebapp/WEB-INF/classes/myconfig.xml
" type="java.lang.String" override="false"/>

        <Parameter name="config.location" value="file" type="java.lang.String" override="false"/>



But it didn't work out...what do I wrong?


I need help please!


Thank you in advance


-----Original Message-----
From: Mikolaj Rydzewski [] 
Sent: lunedì 7 maggio 2007 12.47
To: Tomcat Users List
Subject: Re: tomcat 6 and system property


Manca Davide wrote:

> I have various webapp under various hosts under one Tomcat. I'm trying

> to set system-properties for every webapps, I mean that every single

> webapp should have one or more system-property. In resin 2 or 3 it is

> possible setting them in the webapp web.xml like that:




>   <system-property config.filename="/tmp/commenti.config.xml"/>




>   <system-property log4j.configuration="file:////tmp/"/>


>   <system-property config.location="file" />




> I tried the same way in Tomcat 6 but it doesn't see system-properties.


So? The <system-property /> syntax is Resin specific.

> And I cannot use the -D into the Java or Tomcat start command because of

> I have a lot of webapps under one Tomcat.


I'd rather use context parameters or environment entries 

( than 

system properties.



Mikolaj Rydzewski <>


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message