[jboss-dev-forums] [JBoss Web Development] - Re: problem occurs in jboss when two wars are deployed

Robert Pattinson do-not-reply at jboss.com
Sat Dec 10 02:41:10 EST 2011


Robert Pattinson [http://community.jboss.org/people/robertpattinson] created the discussion

"Re: problem occurs in jboss when two wars are deployed"

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

--------------------------------------------------------------
Hey  http://community.jboss.org/people/jack_chi Yuanjia Chi,

 Sorry its taken so long to get back to you - the problem you are seeing is because the war that you are deploying contains ALL the jars needed to build and run the platform. All of these jars are not necessary in JBoss, because JBoss has its own version of some of them that it prefers to use. Unfortunately, some of them actually cause JBoss to not deploy your war, but because the war is packaged as generically as possible we don't just exclude these jars.

 So the solution is for you to open up the war, delete the necessary jars, repackage the war file and redeploy it. The list of jars that COULD cause trouble are:

 activation.jar
 concurrent.jar
 dom4j-1.5.2.jar
 hsqldb.jar
 jaxen.jar
 mail.jar
 saaj.jar
 jaxrpc.jar
 xercesImpl.jar
 xml-apis.jar
 cglib-2.1.jar
 commons-httpclient-2.0.2.jar
 commons-logging.jar
 log4j-1.2.8.jar
 jsp-api.jar
 servlet-api.jar
 asm.jar
 asm-attrs.jar
 ehcache-1.1.jar
 hibernate3.jar
 jta.jar
 foEmitter.jar
 htmlEmitter.jar
 portlet-api-1.0.jar
 The jars that are most likely the root of your problem are servlet-api.jar and jsp-api.jar. I would recommend removing atleast those two, redeploying and seeing if you experience any other troubles. Let me know how it goes for you!

Thanks
*Robert Pattinson* (http://community.jboss.org/people/robertpattinson) 
Hope you wont mind
 http://www.moovieland.com/watch-mission-impossible-iv-online.htm Watch Full Mission: Impossible Ghost Protocol Movie Online
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111210/537ac092/attachment.html 


More information about the jboss-dev-forums mailing list