Don't include a log4j.jar in your portlet WAR. The error message you will see 
is:

  | 2005-05-24 13:55:54,919 INFO  [STDOUT] log4j:ERROR A 
"org.apache.log4j.xml.DOMConfigurator" object is not assignable to a 
"org.apache.log4j.spi.Configurator" variable.
  | 2005-05-24 13:55:54,919 INFO  [STDOUT] log4j:ERROR The class 
"org.apache.log4j.spi.Configurator" was loaded by 
  | 2005-05-24 13:55:54,919 INFO  [STDOUT] log4j:ERROR [WebappClassLoader
  |   delegate: false
  |   repositories:
  |     /WEB-INF/classes/
  | ----------> Parent Classloader:
  | [EMAIL PROTECTED]
  | ] whereas object of type 
  | 2005-05-24 13:55:54,919 INFO  [STDOUT] log4j:ERROR 
"org.apache.log4j.xml.DOMConfigurator" was loaded by [EMAIL PROTECTED] 
url=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp55693jboss-service.xml 
,addedOrder=2}].
  | 2005-05-24 13:55:54,919 INFO  [STDOUT] log4j:ERROR Could not instantiate 
configurator [org.apache.log4j.xml.DOMConfigurator].
  | 

I know using a JAR that is in base JBoss or in a surrounding application is a 
general no-no, and maybe this is a general JBoss 4.0.X exception, but I had not 
seen it before. 

Removing the log4j.jar from your WAR stops the exception and the JBoss logger 
works.


Sherman


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879158#3879158

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879158


-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to