🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #313

*** JBuilder + Log4J API + web server = I AM GETTING MAD ***

#313
From: iffriganovitch
Date: Wed, 21 Jan 2004 22:37
44 lines
2623 bytes
Hi,

I am starting with Jbuilder - I am trying to create a simple web
application using JbuilderX Struts built in support.
I follow the wizard steps, one by one, checking all of the options.
I have created a simple JSP, Struts Action and Struts ActionForm (I
know Struts OK).

The problem is that when I start the Tomcat Server through JBuilder
GUI, the Server starts, but I get the following Log4J error:-

------------------------------------------------------------------
log4j:WARN No appenders could be found for logger
(org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
------------------------------------------------------------------

log4j.properties file was not automatically generated by the wizard,
so I have created it manually and copied it in the webapp
/WEB-INF/class directory.

This has not sorted my problem - same error time :o(

I would appreciate if anybody could help me out on this one...

Could it me that my log4j.properties file is erroneous? What is the
most simple log4j.properties I could use to make sure does not come
from there?

Where shall I put the log4j.properties file in the project so it is
not deleted each time I "clean" the project?

Also, another question - When I look in the project's setting I cannot
see Log4J in the list or libraries used by the project - so I presume
that the Log4J used comes from somewhere else (?) what other lib
archive can contains it? (as apparently it is there somehow as I see
it complaine about its configuration).


This is quite a lot of questions - but I am really stuck - I have
tried to sort this out alone (I am not a Java but C++ expert) for at
least 4 hours but nothing does :o(

Thanks!
Technical Details
Message-ID: <7f003b70.0401211437.157da631@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,6cc6b7527d7a8562,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2004-01-21 14:37:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: vidaubannais@caramail.com (iffriganovitch)
Newsgroups: borland.public.jbuilder.java.api
Subject: *** JBuilder + Log4J API + web server = I AM GETTING MAD ***
Date: 21 Jan 2004 14:37:05 -0800
Organization: http://groups.google.com
Lines: 44
Message-ID: <7f003b70.0401211437.157da631@posting.google.com>
NNTP-Posting-Host: 80.128.253.217
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1074724625 9386 127.0.0.1 (21 Jan 2004 22:37:05 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 21 Jan 2004 22:37:05 +0000 (UTC)