Re: Log4j Exception get after upgrade to 3.6

"Joe Panico" <[email protected]>
Newsgroups gmane.comp.web.pixory
Message-ID <[email protected]>
Carfield,

There's an error in the log.configuration.xml file that I included
with the web-app distribution. If you used the PXJettyLogSink entry
from there you will get an error. I'm not sure how you are configuring
the jboss logging system, but here's what I did.

In JBoss 3.2.3 (should be the same for you).

I modify the log4j.xml file in the [jboss]/server/default/conf
directory. I add the following entries:

	<category name="org.pixory" additivity="false">
		<priority value="info" />
		<appender-ref ref="FILE" />
	</category>

	<!-- set this to 'debug' in order to see http requests -->
	<category name="org.pixory.pxjetty.PXRequestLog" additivity="false">
		<priority value="info"/>
		<appender-ref ref="FILE" />
	</category>

	<!-- this configures debugging information for the mail system -->
	<category name="org.pixory.pxnet.PXMailSender" additivity="false">
		<priority value="info"/>
		<appender-ref ref="FILE" />
	</category>
	
	<!-- this configures hibernate (object-relational mapping) -->
	<category name="net.sf.hibernate" additivity="false">
		<priority value="info"/>
		<appender-ref ref="FILE" />
	</category>

	<!-- turns off the incredibly spammy property handling stuff -->
	<category name="net.sf.tapestry.util.prop" additivity="false">
		<priority value="warn"/>
		<appender-ref ref="FILE" />
	</category>


Note that each category I've added uses the appender-ref "FILE", which
is in the default (unmodified) version of the included log4j.xml file.

With the above additions, I get all pixory output sent to the defined
"FILE" appender, and the logs look clean.

regards,

joe


--- In [email protected], "Carfield Yim" <carfield@c...> wrote:
> Get the following error, however pixory can still run. Anyone know how
> to solve?
> 
> 2004-02-07 00:00:48,793 ERROR [STDERR] log4j:ERROR Could not create an
> Appender. Reported error follows.
> 2004-02-07 00:00:48,794 ERROR [STDERR] java.lang.ClassCastException
> 2004-02-07 00:00:48,796 ERROR [STDERR]  at
> 

[snip]




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/EGnolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/pixory-beta/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.