You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by David Wynter <da...@roamware.co.uk> on 2003/06/25 11:13:53 UTC

Was: Extending TurbineURI... Now beware Eclipse

Hi,

Well, my TR.props was correct, but Eclipse is picking up something from
somewhere that is causing the error below. I have checked the config of
Eclpise and the sysdeo plugin for Tomcat to make sure it is all pointing at
the right directories and it appears to all be coorect.

When I run startup.bat for Tomcat direct I do not get the error below, so it
is definitely Eclipse screwing things up here, so beware.

Now I have uncovered a problem with the logging setup as follows:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
log4j:WARN No appenders could be found for logger
(org.apache.turbine.Turbine).
log4j:WARN Please initialize the log4j system properly.
log4j:ERROR Could not find value for key log4j.appender.turbine
log4j:ERROR Could not instantiate appender named "turbine".
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: .\logs\turbine.log (The system cannot find
the pa
th specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)

Here is my log4j.props

#
# Currently, we use Log4J for all Torque, Fulcrum and Stratum logging
#
log4j.rootLogger = DEBUG, turbine

log4j.category.org.apache.stratum.component.ComponentLoader = ALL,
org.apache.stratum.component.ComponentLoader
log4j.appender.org.apache.stratum.component.ComponentLoader =
org.apache.log4j.FileAppender
log4j.appender.org.apache.stratum.component.ComponentLoader.file =
./logs/turbine.log
log4j.appender.org.apache.stratum.component.ComponentLoader.layout =
org.apache.log4j.PatternLayout
log4j.appender.org.apache.stratum.component.ComponentLoader.layout.conversio
nPattern = %d [%t] %-5p %c - %m%n
log4j.appender.org.apache.stratum.component.ComponentLoader.append = false

log4j.category.org.apache.torque = ALL, org.apache.torque
log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file = ./logs/turbine.log
log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p %c-
%m%n
log4j.appender.org.apache.torque.append = false

log4j.category.org.apache.fulcrum = ALL, org.apache.fulcrum
log4j.appender.org.apache.fulcrum = org.apache.log4j.FileAppender
log4j.appender.org.apache.fulcrum.file = ./logs/turbine.log
log4j.appender.org.apache.fulcrum.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.fulcrum.layout.conversionPattern = %d [%t] %-5p
%c- %m%n
log4j.appender.org.apache.fulcrum.append = false

log4j.category.org.apache.turbine = DEBUG, org.apache.turbine
log4j.appender.org.apache.turbine = org.apache.log4j.FileAppender
log4j.appender.org.apache.turbine.file = ./logs/turbine.log
log4j.appender.org.apache.turbine.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.turbine.layout.conversionPattern = %d [%t] %-5p
%c - %m%n
log4j.appender.org.apache.turbine.append = false

Seems OK, a hybrid between that shown in the Serives help on th esite and
the log4j.props from th edistribution.

Ideas?

David

-----Original Message-----
From: Henning P. Schmiedehausen [mailto:hps@intermeta.de]
Sent: 24 June 2003 17:54
To: turbine-user@jakarta.apache.org
Subject: Re: Extending TurbineURI to allow Google to include site


"David Wynter" <da...@roamware.co.uk> writes:

>Hi Quinton,

>Yes, I have been through the full T2.1->T2.2 guide and the T2.2->T2.3 guide
>in the Wiki. So all changes to the TR.props have been carried out. The
error
>I reported below is after this complete process of changes based on these
>guides. It may relate to me dropping in the lib directories from T2.3 into
a
>TDK 2.2 installation even with all the changes there may be something else.

I don't believe you. :-) If you really made all these changes, you should
no longer have a LoggingService

>> > org.apache.turbine.services.logging.TurbineLoggingService.getR
>> > esources(Turbi
>> > neLoggingService.java:218)

Error from the Logging Service.

	Regards
		Henning

--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development  -- hero for hire

--- Quote of the week: "It is pointless to tell people anything when
you know that they won't process the message." --- Jonathan Revusky

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


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