You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Peter Courcoux <pe...@courcoux.biz> on 2002/11/07 18:08:59 UTC

Re: Reposting! Problem deploying Turbine Application with tomcat, apache using a ProxyServer!

Fabio,

I think that dtd is for a tomcat 3 server. Are you deploying on a tomcat
4 server? If so I think the dtd should be a 2.3 one. I can vaguely
recall having to change the web.xml file from one based on the 2.2 dtd
to one based on 2.3 dtd for one of my apps developed with the 2.1 tdk on
tomcat 3.2 which was deployed on tomcat 4. I cannot remember why though.

I hope this helps.

Peter 

On Thu, 2002-11-07 at 16:14, Fabio Daprile wrote:
> hello Rodney,
> 
> maybe it is a configuration problem.
> I haven't changed anything in the web.xml of tomcat.
> hereafter the web.xml of my servlet:
> 
> greetings
> 
> FD
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <!DOCTYPE web-app
>   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>   "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> 
> <web-app>
> <servlet>
>   <servlet-name>bugtrack</servlet-name>
>   <servlet-class>org.apache.turbine.Turbine</servlet-class>
>   <init-param>
>     <param-name>applicationRoot</param-name>
>     <param-value>webContext</param-value>
>   </init-param>
>   <init-param>
>     <param-name>properties</param-name>
>     <param-value>/WEB-INF/conf/TurbineResources.properties</param-value>
>   </init-param>
>   <load-on-startup>1</load-on-startup>
> </servlet>
> 
>  <servlet-mapping>
>     <servlet-name>bugtrack</servlet-name>
>     <url-pattern>/*</url-pattern>
>  </servlet-mapping>
> 
> <security-constraint>
>   <web-resource-collection>
>     <web-resource-name>templates</web-resource-name>
>     <url-pattern>/templates/*</url-pattern>
>   </web-resource-collection>
>   <web-resource-collection>
>     <web-resource-name>logs</web-resource-name>
>     <url-pattern>/logs/*</url-pattern>
>   </web-resource-collection>
>   <auth-constraint>
>     <role-name>admin</role-name>
>   </auth-constraint>
> </security-constraint>
> <login-config>
>   <auth-method>BASIC</auth-method>
>   <realm-name>Templates</realm-name>
> </login-config>
> </web-app>
> 
> 
> 
> Rodney Schneider wrote:
> 
> >On Wed, 6 Nov 2002 20:34, you wrote:
> >
> >  
> >
> >>Hello Rodney,
> >>
> >>Thx for the answer.
> >>
> >>When i hit the image link directly i get redirect to the Login page of
> >>the site.
> >>Do you have an hint on this?
> >>    
> >>
> >
> >It sounds like a configuration problem to me.  What does your web.xml file 
> >look like?  Image files should be handled by Tomcat's DefaultServlet, not by 
> >the Turbine servlet.
> >
> >Regards,
> >
> >-- Rodney
> >
> >--
> >To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> >For additional commands, e-mail: <ma...@jakarta.apache.org>
> >
> >  
> >
> 
> -- 
> Fabio Daprile
> 
> Würth Phoenix srl - GmbH
> Via Kravoglstrasse 4
> 39100 Bolzano / Bozen
> Tel.  +39 0471 564 111 - (direct 564068)
> Fax  + 39 0471 564 122
> fabio.daprile@wuerth-phoenix.com
> 
> http://www.wuerth-phoenix.com
> http://www.wuerth.com
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Reposting! Problem deploying Turbine Application with tomcat, apache using a ProxyServer!

Posted by Rodney Schneider <ro...@actf.com.au>.
Hi Fabio,

On Tue, 12 Nov 2002 19:22, you wrote:
> i tried to change the dtd file but nothing changes.
> I'm sure that somebody has already solved the problem.
> What i'll like to have is a clear example of how to configure tomcat.

I just noticed your servlet mapping:
> >> <servlet-mapping>
> >>    <servlet-name>bugtrack</servlet-name>
> >>    <url-pattern>/*</url-pattern>
> >> </servlet-mapping>

Using "/*" is not a good idea as it means that your bugtrack servlet 
(Turbine) must handle all requests (including static html, images etc.). The 
Turbine servlet was not designed to do this.  Tomcat's DefaultServlet usually 
does this job.

On our site (http://www.kahootz.com) we use a url pattern of "/kz/*" for 
Turbine.

Regards,

-- Rodney

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Reposting! Problem deploying Turbine Application with tomcat, apache using a ProxyServer!

Posted by Fabio Daprile <fa...@wuerth-phoenix.com>.
Hello,

i tried to change the dtd file but nothing changes.
I'm sure that somebody has already solved the problem.
What i'll like to have is a clear example of how to configure tomcat.

thx

Fabio

Peter Courcoux wrote:

>Fabio,
>
>I think that dtd is for a tomcat 3 server. Are you deploying on a tomcat
>4 server? If so I think the dtd should be a 2.3 one. I can vaguely
>recall having to change the web.xml file from one based on the 2.2 dtd
>to one based on 2.3 dtd for one of my apps developed with the 2.1 tdk on
>tomcat 3.2 which was deployed on tomcat 4. I cannot remember why though.
>
>I hope this helps.
>
>Peter 
>
>On Thu, 2002-11-07 at 16:14, Fabio Daprile wrote:
>  
>
>>hello Rodney,
>>
>>maybe it is a configuration problem.
>>I haven't changed anything in the web.xml of tomcat.
>>hereafter the web.xml of my servlet:
>>
>>greetings
>>
>>FD
>>
>><?xml version="1.0" encoding="ISO-8859-1"?>
>>
>><!DOCTYPE web-app
>>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>>  "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>>
>><web-app>
>><servlet>
>>  <servlet-name>bugtrack</servlet-name>
>>  <servlet-class>org.apache.turbine.Turbine</servlet-class>
>>  <init-param>
>>    <param-name>applicationRoot</param-name>
>>    <param-value>webContext</param-value>
>>  </init-param>
>>  <init-param>
>>    <param-name>properties</param-name>
>>    <param-value>/WEB-INF/conf/TurbineResources.properties</param-value>
>>  </init-param>
>>  <load-on-startup>1</load-on-startup>
>></servlet>
>>
>> <servlet-mapping>
>>    <servlet-name>bugtrack</servlet-name>
>>    <url-pattern>/*</url-pattern>
>> </servlet-mapping>
>>
>><security-constraint>
>>  <web-resource-collection>
>>    <web-resource-name>templates</web-resource-name>
>>    <url-pattern>/templates/*</url-pattern>
>>  </web-resource-collection>
>>  <web-resource-collection>
>>    <web-resource-name>logs</web-resource-name>
>>    <url-pattern>/logs/*</url-pattern>
>>  </web-resource-collection>
>>  <auth-constraint>
>>    <role-name>admin</role-name>
>>  </auth-constraint>
>></security-constraint>
>><login-config>
>>  <auth-method>BASIC</auth-method>
>>  <realm-name>Templates</realm-name>
>></login-config>
>></web-app>
>>
>>
>>
>>Rodney Schneider wrote:
>>
>>    
>>
>>>On Wed, 6 Nov 2002 20:34, you wrote:
>>>
>>> 
>>>
>>>      
>>>
>>>>Hello Rodney,
>>>>
>>>>Thx for the answer.
>>>>
>>>>When i hit the image link directly i get redirect to the Login page of
>>>>the site.
>>>>Do you have an hint on this?
>>>>   
>>>>
>>>>        
>>>>
>>>It sounds like a configuration problem to me.  What does your web.xml file 
>>>look like?  Image files should be handled by Tomcat's DefaultServlet, not by 
>>>the Turbine servlet.
>>>
>>>Regards,
>>>
>>>-- Rodney
>>>
>>>--
>>>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>>>For additional commands, e-mail: <ma...@jakarta.apache.org>
>>>
>>> 
>>>
>>>      
>>>
>>-- 
>>Fabio Daprile
>>
>>Würth Phoenix srl - GmbH
>>Via Kravoglstrasse 4
>>39100 Bolzano / Bozen
>>Tel.  +39 0471 564 111 - (direct 564068)
>>Fax  + 39 0471 564 122
>>fabio.daprile@wuerth-phoenix.com
>>
>>http://www.wuerth-phoenix.com
>>http://www.wuerth.com
>>
>>
>>    
>>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>

-- 
Fabio Daprile

Würth Phoenix srl - GmbH
Via Kravoglstrasse 4
39100 Bolzano / Bozen
Tel.  +39 0471 564 111 - (direct 564068)
Fax  + 39 0471 564 122
fabio.daprile@wuerth-phoenix.com

http://www.wuerth-phoenix.com
http://www.wuerth.com