Hi,
I have an app that works fine in JBoss 3.2.1 with Tomcat. It uses a log4j appender
that I wrote myself; this is packaged in a jar file in the lib directory of the server
instance that I use. This is the relevant part of the log when JBoss is started:
15:26:30,703 INFO [MainDeployer] Starting deployment of package:
file:/C:/jboss-3.2.1_tomcat-4.1.24/server/default/conf/jboss-service.xml
15:26:32,609 INFO [Log4jService] Creating
15:26:32,703 INFO [Log4jService$URLWatchTimerTask] Configuring from URL:
resource:log4j.xml
15:26:32,984 INFO [Log4jService] Created
But in 3.2.3, with exactly the same setup, this is what I'm getting:
15:28:02,171 INFO [MainDeployer] Starting deployment of package:
file:/C:/jboss-3.2.3/server/default/conf/jboss-service.xml
15:28:03,593 INFO [Log4jService$URLWatchTimerTask] Configuring from URL:
resource:log4j.xml
log4j:ERROR Could not create an Appender. Reported error follows.
java.lang.ClassNotFoundException: mp.sql.MyJDBCAppender
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.apache.log4j.helpers.Loader.loadClass(Loader.java:160)
I have tried putting the jar containing the JDBC appender in the main lib directory of
JBoss (yes I know this is bad form, but if it can't find it there, where can it find
it!), but it still doesn't work.
Anyone have any ideas?
Thanks
Simon
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836256#3836256
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836256
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user