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 14:58:09 UTC

Re[2]: testing the new tdk2.3 v20030905

Hi Wei,

20 września 2003, 14:57:43, zastalo napisane:


WH> This may have something to do the servlet.jar or servlet-2.3.jar is in 
WH> the WEB-INF/lib in the deployment directory.

hmm well as I wrote there was an error that I removed by removing the
servlet.jar from the webapps/../web-inf/lib dir because there is one
in the common/lib of the tdk,

that gets the error out but changes nothing ..

hmm?


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



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

Posted by ilfrin <il...@poczta.onet.pl>.
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



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


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

Posted by ilfrin <il...@poczta.onet.pl>.
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



Re[4]: testing the new tdk2.3 v20030905

Posted by ilfrin <il...@poczta.onet.pl>.
Hi ,

i> /logs/turbine.log .. well my question is .. how in heaven did he get
i> those paths from if the props file is empty, are they also default ??
i> well then how to turn it off?

why do I get the feeling I'm talking to myself ;), so I found another
(!!) log4j.props file .. win web-inf/classes .. (why are there two
identical files ??) .. nevermind that .. but it didn't change nothing
, i get a nice  start of tomcat , telling me that all services are
successfully started et cetera .. but the there's still that 404
error.

the only suspicious things are 5 messages that like this one

"[ERROR] AbstractDataSourceFactory - -Property: logInterval value: 0
is not suppo rted by DataSource:
org.apache.commons.dbcp.datasources.SharedPoolDataSource"
all refering to the same thing but a different prop value..

might that be it? I get a feeling that that's not the reason..

ps. I don't know if you also get some of my mails in 4 copies .. I
don't know what's doing that, so please ignore it

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



Re[4]: testing the new tdk2.3 v20030905

Posted by ilfrin <il...@poczta.onet.pl>.
Hi ,

i> /logs/turbine.log .. well my question is .. how in heaven did he get
i> those paths from if the props file is empty, are they also default ??
i> well then how to turn it off?

why do I get the feeling I'm talking to myself ;), so I found another
(!!) log4j.props file .. win web-inf/classes .. (why are there two
identical files ??) .. nevermind that .. but it didn't change nothing
, i get a nice  start of tomcat , telling me that all services are
successfully started et cetera .. but the there's still that 404
error.

the only suspicious things are 5 messages that like this one

"[ERROR] AbstractDataSourceFactory - -Property: logInterval value: 0
is not suppo rted by DataSource:
org.apache.commons.dbcp.datasources.SharedPoolDataSource"
all refering to the same thing but a different prop value..

might that be it? I get a feeling that that's not the reason..

ps. I don't know if you also get some of my mails in 4 copies .. I
don't know what's doing that, so please ignore it

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



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


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

Posted by ilfrin <il...@poczta.onet.pl>.
Hi

i> I don't know where to start the debugging from

the first thing I am trying is to get rid of the errors while starting
Tomcat, the FileNotFounds regarding /logs/turbine.log .. well i
removed the line log4j.file = /WEB-INF/conf/Log4j.properties .. but at
startup log4j.props was still loading .. ok it may be a default one so
I deleted it, then I had a error saying that he can't find the conf
file for log4j, so I put it back but empty (0 b) ... and to my
surprise I got back my error about FileNotFounds regarding
/logs/turbine.log .. well my question is .. how in heaven did he get
those paths from if the props file is empty, are they also default ??
well then how to turn it off?
maybe turbine is not startign properly due to those error and at the
end I get a 404 error form Tomcat .. I hope thats true .. ehh why do I
feel like a blind fortune-teller?

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



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


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

Posted by ilfrin <il...@poczta.onet.pl>.
Hi

i> I don't know where to start the debugging from

the first thing I am trying is to get rid of the errors while starting
Tomcat, the FileNotFounds regarding /logs/turbine.log .. well i
removed the line log4j.file = /WEB-INF/conf/Log4j.properties .. but at
startup log4j.props was still loading .. ok it may be a default one so
I deleted it, then I had a error saying that he can't find the conf
file for log4j, so I put it back but empty (0 b) ... and to my
surprise I got back my error about FileNotFounds regarding
/logs/turbine.log .. well my question is .. how in heaven did he get
those paths from if the props file is empty, are they also default ??
well then how to turn it off?
maybe turbine is not startign properly due to those error and at the
end I get a 404 error form Tomcat .. I hope thats true .. ehh why do I
feel like a blind fortune-teller?

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



Re[2]: testing the new tdk2.3 v20030905

Posted by ilfrin <il...@poczta.onet.pl>.
Hi Wei,

20 września 2003, 15:36:01, zastalo napisane:

WH> Sorry.  I did no read deep into your notes. This may be the default 
WH> servlet mapping that tomcat 4.1 does.

WH> I modified the web.xml under tomcat/conf.

WH> The invoker servlet must be uncommented if you want to use 
WH> /servlet/appname style.  E,g,

yeah, I noticed that and changed it yesterday

forgot to say about that ..

still HTTP Status 404 :(

I don't know where to start the debugging from

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



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re[2]: testing the new tdk2.3 v20030905

Posted by ilfrin <il...@poczta.onet.pl>.
Hi Wei,

20 września 2003, 15:36:01, zastalo napisane:

WH> Sorry.  I did no read deep into your notes. This may be the default 
WH> servlet mapping that tomcat 4.1 does.

WH> I modified the web.xml under tomcat/conf.

WH> The invoker servlet must be uncommented if you want to use 
WH> /servlet/appname style.  E,g,

yeah, I noticed that and changed it yesterday

forgot to say about that ..

still HTTP Status 404 :(

I don't know where to start the debugging from

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



Re: testing the new tdk2.3 v20030905

Posted by Wei He <we...@ldeo.columbia.edu>.
Sorry.  I did no read deep into your notes. This may be the default 
servlet mapping that tomcat 4.1 does.

I modified the web.xml under tomcat/conf.

The invoker servlet must be uncommented if you want to use 
/servlet/appname style.  E,g,

    <!-- The mapping for the invoker servlet -->
    <!--
    -->
    <servlet-mapping>
        <servlet-name>invoker</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>

  Hope this will solve you problem.

Wei


ilfrin wrote:

>Hi Wei,
>
>20 września 2003, 14:57:43, zastalo napisane:
>
>
>WH> This may have something to do the servlet.jar or servlet-2.3.jar is in 
>WH> the WEB-INF/lib in the deployment directory.
>
>hmm well as I wrote there was an error that I removed by removing the
>servlet.jar from the webapps/../web-inf/lib dir because there is one
>in the common/lib of the tdk,
>
>that gets the error out but changes nothing ..
>
>hmm?
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: testing the new tdk2.3 v20030905

Posted by Wei He <we...@ldeo.columbia.edu>.
Sorry.  I did no read deep into your notes. This may be the default 
servlet mapping that tomcat 4.1 does.

I modified the web.xml under tomcat/conf.

The invoker servlet must be uncommented if you want to use 
/servlet/appname style.  E,g,

    <!-- The mapping for the invoker servlet -->
    <!--
    -->
    <servlet-mapping>
        <servlet-name>invoker</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>

  Hope this will solve you problem.

Wei


ilfrin wrote:

>Hi Wei,
>
>20 września 2003, 14:57:43, zastalo napisane:
>
>
>WH> This may have something to do the servlet.jar or servlet-2.3.jar is in 
>WH> the WEB-INF/lib in the deployment directory.
>
>hmm well as I wrote there was an error that I removed by removing the
>servlet.jar from the webapps/../web-inf/lib dir because there is one
>in the common/lib of the tdk,
>
>that gets the error out but changes nothing ..
>
>hmm?
>
>
>  
>