tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Flaherty <pflah...@rampageinc.com>
Subject Re: servlet access to static resources (pictures)
Date Thu, 14 Jan 2010 17:55:58 GMT
That make sense.

Thank you.

-P

On Jan 14, 2010, at 10:20 AM, Caldarale, Charles R wrote:

>> From: Patrick Flaherty [mailto:pflahrty@rampageinc.com]
>> Subject: Re: servlet access to static resources (pictures)
>>
>> Can I remove the <context> from the www.ft.com <host> altogether ?
>
> (It's <Context> and <Host> - be precise; case matters, even on  
> Windows.)  The <Context> element should never have been in server.xml.
>
>> I don't need <context> for this <host>.
>
> Yes, you do, since there are <Resource> and numerous <Environment>  
> elements included in it.  The <Context> element should be placed in  
> C:\all-my-apps\ROOT\META-INF\context.xml or in conf\Catalina 
> \www.ft.com\ROOT.xml.  The contents of the file should be:
>
> <Context reloadable="true">
>   <Resource name="jdbc/rampage" auth="Container"  
> type="javax.sql.DataSource" description="database" maxActive="100"  
> maxIdle="5" maxWait="15000" username="dbuser" password="!Flyover"  
> driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql:// 
> 192.168.2.13:3306/ft" driverName="jdbc:mysql://192.168.2.13:3306/ft"/>
>   <Environment name="company.id" value="0" type="java.lang.Long"  
> override="false"/>
>   <Environment name="site.id" value="0" type="java.lang.Integer"  
> override="false"/>
>   <Environment name="timeout.interval" value="3600"  
> type="java.lang.Integer" override="false"/>
>   <Environment name="service.jobs"  
> value="com.rampageinc.services.JobService" type="java.lang.String"  
> override="false"/>
>   <Environment name="service.useraccesscontrol"  
> value="com.rampageinc.services.UserAccessControlService"  
> type="java.lang.String" override="false"/>
>   <Environment name="service.cms"  
> value="com.rampageinc.services.CMSService" type="java.lang.String"  
> override="false"/>
>   <Environment name="root.upload" value="C:\TempUpload"  
> type="java.lang.String" override="false"/>
>   <Environment name="root.job" value="\\Winserve-2008\Pat-10-3 
> \Jobs" type="java.lang.String" override="false"/>
>   <Environment name="root.db" value="\\Winserve-2008\Pat-10-3\DB"  
> type="java.lang.String" override="false"/>
>   <Environment name="root.preps" value="\\win2k3-xeon\pat-10-3 
> \Preps" type="java.lang.String" override="false"/>
> </Context>
>
> Note that unused junk (such as <Logger> and debug) have been  
> removed, along with the illegal path and docBase attributes.
>
>  - 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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


Mime
View raw message