On Sep 5, 2007, at 10:01 AM, David Avendasora wrote:
> Yep. Has the little "R". That was actually the last thing I did
> before posting the question!
>
> So, it looks like maybe it _is_ how I'm initializing log4j then.
> Here's what I have in the Application() constructor:
>
> URL configURL = resourceManager().pathURLForResourceNamed
> ("log4j.xml", null, null);
> NSLog.out.appendln("Initializing log4j from " + configURL.toString());
> DOMConfigurator.configure(configURL);
That code is correct. Is the app constructor getting executed? How
are you running this in Eclipse? As a WebObjects Application?
> For what it's worth, I'm not seeing the "Initializing log4j
> from..." show up in the Eclipse console either, so maybe it's not
> even getting called? Am I missing something really fundamental?
Try a System.out to see if you get any output.
Chuck
> On Sep 5, 2007, at 11:30 AM, Chuck Hill wrote:
>
>> Does the icon for log4j.xml have a little black R (R is for
>> Resource! ;-) on it? If not, it is not getting added to the
>> incremental builder's product at <Project>/dist/
>> BakeryManagement_WebUI.woa/Contents/Resources/
>>
>> Right click on it and select WOLips Tools - Include as Resource
>>
>> Chuck
>>
>>
>>
>> On Sep 5, 2007, at 9:22 AM, David Avendasora wrote:
>>
>>> Hello all,
>>>
>>> I just moved my project over from Xcode and everything seemed to
>>> go smoothy, but I'm now getting the following warning about log4j
>>> not being properly initialized when I run the application through
>>> Eclipse.
>>>
>>> log4j:WARN No appenders could be found for logger
>>> (com.bestmaid.bakeryManagement.scheduling.ManufacturingSchedule).
>>> log4j:WARN Please initialize the log4j system properly.
>>>
>>> This is a servlet deployment to Tomcat.
>>>
>>> Logging worked just fine in Xcode, so I have a feeling that it is
>>> simply that my log4j.xml file is not ending up in the correct
>>> location. Right now it is simply sitting in the "Resources"
>>> directory in the Eclipse project, and in /WEB-INF/
>>> BakeryManagement_WebUI.woa/Contents/Resources/. Where should I be
>>> putting the file at?
>>>
>>> Thanks!
>>>
>>> Dave
>>>
>>
>> --
>>
>> Practical WebObjects - for developers who want to increase their
>> overall knowledge of WebObjects or who are trying to solve
>> specific problems.
>> http://www.global-village.net/products/practical_webobjects
>>
>>
>>
>>
>>
>>
>>
>
>
--Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects
This archive was generated by hypermail 2.0.0 : Wed Sep 05 2007 - 13:35:01 EDT