Eric B [http://community.jboss.org/people/benze] created the discussion

"jboss-classloading.xml ignored in a war?"

To view the discussion, visit: http://community.jboss.org/message/630151#630151

--------------------------------------------------------------
Hi,

I'm running JBoss AS6.1 and have a war application that I am trying to deploy.  
In my war, I have the slf4j libraries included.  When I start the war, I get 
the following error messages:


17:16:01,288 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
17:16:01,290 ERROR [STDERR] SLF4J: Found binding in 
[vfs:/home/eric/.eclipse/workspace3/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.1_Runtime_Server_-_ALL/deploy/webapp.war/WEB-INF/lib/slf4j-log4j12-1.6.1.jar/org/slf4j/impl/StaticLoggerBinder.class]
17:16:01,294 ERROR [STDERR] SLF4J: Found binding in 
[vfs:/opt/jboss/jboss-6.1.0.Final/common/lib/slf4j-jboss-logmanager.jar/org/slf4j/impl/StaticLoggerBinder.class]



I tried adding a jboss-classloading.xml file in my WEB-INF/ folder, but it has 
made no difference.  That error still remains:

WEB-INF/jboss-classloading.xml


<?xml version="1.0" encoding="UTF-8"?>


<classloading xmlns="urn:jboss:classloading:1.0"
                             name="myApp.war"
              domain="myApp.war"
              import-all="false"
              export-all="NON_EMPTY"
              parent-domain="DefaultDomain"
              parent-first="false">
</classloading>





And yet, I still get that error message.  Which would imply to me that the 
classloader is still finding JBoss' SLF4J libs instead of ignoring them 
completely.

Am I don't something wrong?  Is the classloading file being ignored in a war?  
Do I have something improperly strcutred in the file?

Thanks,

Eric
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/630151#630151]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to