You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by ilfrin <il...@poczta.onet.pl> on 2003/09/20 17:18:30 UTC

[SOLVED] Re[5]: testing the new tdk2.3 v20030905

Hi

hey, I see I am talking to myself .. well after a detailed comparison
of my "working but not loggin in" app (that I was manually changing
from turbine 2.2 and Torque 3.0 to version 2.3 and 3.1 respectively,
but I stopped at some point where I couldn't go further .. ) with the
pre-official tdk 2.3 i realized some little differences in the
web-inf/web.xml files

first of all in 2.2 the <servlet-name> had the value of the app name
as opposed to "turbine" in 2.3, second, there was a additional element
<servlet-mapping> that wasn't present in 2.2, so after I changed the
<servlet-name> value to the app name (bulletins) and put in the
<servlet-mapping> for the mapping to work (i left it even though it
works fine without it but who knows ;)

so my web-inf/web.xml looks now like this and the app is ready to
rubmle ;)

<web-app>
  <servlet>
    <servlet-name>bulletins</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>bulletins</servlet-name>
    <url-pattern>/bulletins/*</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>

-- 
Thanks,
 ilfrin                            mailto:ilfrin@poczta.onet.pl