Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: context.xml in Tomcat 6

Wojtek Kusch

2007-01-16

Replies:

Thanks!
Now I get the default app.
I have my app called "unleashed" (in
"E:/Development/Tomcat/deploy/apps" - conform with appBase in server.xml) .
I can find the name of this app in the "tomcat web application manager".
If I choose this app ("unleashed") I get - 404 _The requested resource
(/unleashed/) is not available.

_My unleashed.xml in conf/Catalina/localhost:

<Context docBase="unleashed" debug="1" reloadable="true">

<Logger className="org.apache.catalina.logger.FileLogger"
 prefix="localhost_unleashed_" suffix=".log"
 timestamp="false"/>

<Resource name="jdbc/unleashed" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/unleashed">
  <parameter>
    <name>driverClassName</name>
     <value>sun.jdbc.odbc.JdbcOdbcDriver</value>
  </parameter>
  <parameter>
    <name>url</name>
     <value>jdbc:odbc:unleashed</value>
  </parameter>
</ResourceParams>

</Context>

Thanks, I hope you can me help again ;)




Caldarale, Charles R schrieb:
>> From: Wojtek Kusch [mailto:w_kusch@(protected)]
>> Subject: Re: context.xml in Tomcat 6
>>
>> <Host name="localhost" appBase="E:/Development/Tomcat/deploy/apps"
>>         unpackWARs="true"
>>         autoDeploy="false" deployOnStartup="false"
>>         xmlValidation="false" xmlNamespaceAware="false">
>>  
>
> The above looks fine.
>
>  
>> My manager.xml in "tomcat 6.0\conf\catalina\localhost":
>>  
>
> Again, Tomcat is case-sensitive, even if Windows isn't. The proper name
> is "Catalina", not "catalina"; it may not make a difference in this
> particular instance, but it will in others.
>
>  
>> <Context path="/manager"
>>  
>
> Another again: remove the path attribute; you may not use it in Tomcat 5
> or 6 unless the <Context> element is inside server.xml, which is
> strongly discouraged.
>
>  
>> docBase="E:/Development/Tomcat/deploy/apps/manager"
>>  
>
> The above could be just "manager", since you've already specified the
> first part of the location via the <Host> appBase attribute.
>
>  
>> If I try "localhost:8080" I get a white page.
>>  
>
> You have no default application deployed, so that's expected.
>
>  
>> If i try "localhost:8080/mamager" I get a white page, too.
>>  
>
> Assuming you meant "manager", not "mamager", that's also expected, since
> the manager app has no welcome file, and you have no default app to
> display the 404 status.
>
>  
>> If i try "localhost:8080/mamager/html" I get a right page
>> (standard page).
>>  
>
> Also as expected.
>
>  
>> I can't undestand this.... Please help!
>>  
>
> It's all working as you have specified; the primary thing you're missing
> is a default app under your appBase. The default app location must be
> the ROOT directory or the ROOT.war file.
>
> - 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 start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
> __________ NOD32 1982 (20070116) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>  


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.