You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by GOOSSENS Wim <WG...@cipal.be> on 2009/08/11 13:17:47 UTC

Context elements not applied since version 6.0.20

Hi all,
 
After upgrading from tomcat 6.0.18 to 6.0.20 , 
elements in $CATALINA_BASE/conf/context.xml 
or in $CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default 
are no longer available (loaded) for the webapps.
 
According to the documentation and the behavior until 6.0.18, they
should be
loaded for all the webapps (or for de webapps of that host)
 
I tested it with resourcelinks, transaction and environment elements.
Tested on VISTA and REDHAT.
 
Example :

 <Environment name="jx.host.code" 
    value="host001"
    type="java.lang.String" 
    override="true" />
 
<ResourceLink name="mail"
   global="mail/Session"
   type="javax.mail.Session" />   
 
 <ResourceLink name="db"
    global="jdbc/dev1"
    type="javax.sql.DataSource" /> 
 
<Transaction factory="com.atomikos.icatch.jta.UserTransactionFactory" />
 
My question : is this a bug or should I now specify something somewhere
to get the behaviour I want back?
 
(When I put the elements in each applications .xml in
$CATALINA_BASE/conf/[enginename]/[hostname]/application.xml
everything works again)
 
Kind Regards,
Wim
 
 

RE: Context elements not applied since version 6.0.20

Posted by GOOSSENS Wim <WG...@cipal.be>.
Yes, but I was wondering if maybe there was a parameter I missed.
Something similar to deployXML.
I understand there is nothing like that.
I should have asked it here before posting the bug report.

Thanks for helping.

Regards
Wim


-----Oorspronkelijk bericht-----
Van: Mark Thomas [mailto:markt@apache.org] 
Verzonden: dinsdag 11 augustus 2009 13:35
Aan: Tomcat Users List
Onderwerp: Re: Context elements not applied since version 6.0.20

GOOSSENS Wim wrote:
> Hi all,
>  
> After upgrading from tomcat 6.0.18 to 6.0.20 , elements in 
> $CATALINA_BASE/conf/context.xml or in 
> $CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default
> are no longer available (loaded) for the webapps.
>  
> According to the documentation and the behavior until 6.0.18, they 
> should be loaded for all the webapps (or for de webapps of that host)
>  
> I tested it with resourcelinks, transaction and environment elements.
> Tested on VISTA and REDHAT.
>  
> Example :
> 
>  <Environment name="jx.host.code" 
>     value="host001"
>     type="java.lang.String" 
>     override="true" />
>  
> <ResourceLink name="mail"
>    global="mail/Session"
>    type="javax.mail.Session" />   
>  
>  <ResourceLink name="db"
>     global="jdbc/dev1"
>     type="javax.sql.DataSource" />
>  
> <Transaction factory="com.atomikos.icatch.jta.UserTransactionFactory" 
> />
>  
> My question : is this a bug or should I now specify something 
> somewhere to get the behaviour I want back?

You've already ready raised a bug for this.

https://issues.apache.org/bugzilla/show_bug.cgi?id=47516

Mark



---------------------------------------------------------------------
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


Re: Context elements not applied since version 6.0.20

Posted by Mark Thomas <ma...@apache.org>.
GOOSSENS Wim wrote:
> Hi all,
>  
> After upgrading from tomcat 6.0.18 to 6.0.20 , 
> elements in $CATALINA_BASE/conf/context.xml 
> or in $CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default 
> are no longer available (loaded) for the webapps.
>  
> According to the documentation and the behavior until 6.0.18, they
> should be
> loaded for all the webapps (or for de webapps of that host)
>  
> I tested it with resourcelinks, transaction and environment elements.
> Tested on VISTA and REDHAT.
>  
> Example :
> 
>  <Environment name="jx.host.code" 
>     value="host001"
>     type="java.lang.String" 
>     override="true" />
>  
> <ResourceLink name="mail"
>    global="mail/Session"
>    type="javax.mail.Session" />   
>  
>  <ResourceLink name="db"
>     global="jdbc/dev1"
>     type="javax.sql.DataSource" /> 
>  
> <Transaction factory="com.atomikos.icatch.jta.UserTransactionFactory" />
>  
> My question : is this a bug or should I now specify something somewhere
> to get the behaviour I want back?

You've already ready raised a bug for this.

https://issues.apache.org/bugzilla/show_bug.cgi?id=47516

Mark



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