Bugs item #689562, was opened at 2003-02-19 12:22
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=689562&group_id=22866
Category: JBossServer
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: James Higginbotham (jwhigginbotham)
Assigned to: Scott M Stark (starksm)
Summary: Hotdeploy of ear w/ war fails under 3.0.6, not under 3.0.4
Initial Comment:
OS: Windows XP
JDK: 1.4.1_01
(see attached boot.log, ucl.log, server.log)
I have an ear with the following structure:
$ jar -tvf controlpanel.ear
0 Wed Feb 19 14:01:10 CST 2003 META-INF/
55 Wed Feb 19 14:01:10 CST 2003 META-
INF/MANIFEST.MF
91982 Wed Feb 19 14:01:10 CST 2003 controlpanel.war
0 Wed Feb 19 14:01:10 CST 2003 lib/
18079 Wed Feb 19 13:20:24 CST 2003 lib/calvary-
controlpanel.jar
9807 Wed Feb 19 13:20:20 CST 2003 lib/calvary-
cms.jar
118453 Wed Feb 12 16:08:14 CST 2003 lib/commons-
beanutils.jar
297992 Wed Feb 12 16:08:20 CST 2003 lib/commons-
collections.jar
81927 Wed Feb 12 16:08:22 CST 2003 lib/commons-
dbcp.jar
100160 Wed Feb 12 16:08:24 CST 2003 lib/commons-
digester.jar
14248 Wed Feb 12 16:08:24 CST 2003 lib/commons-
fileupload-1.0-dev.jar
90424 Wed Feb 12 16:08:28 CST 2003 lib/commons-
io.jar
196279 Wed Feb 12 16:08:30 CST 2003 lib/commons-
lang-1.1-dev.jar
28618 Wed Feb 12 16:08:30 CST 2003 lib/commons-
logging.jar
37499 Wed Feb 12 16:08:32 CST 2003 lib/commons-
pool.jar
35675 Wed Feb 12 16:08:32 CST 2003 lib/commons-
resources.jar
44391 Wed Feb 12 16:08:34 CST 2003 lib/commons-
validator.jar
65368 Wed Feb 12 16:08:36 CST 2003 lib/jakarta-oro.jar
350677 Wed Feb 12 16:16:44 CST 2003 lib/log4j-
1.2.7.jar
1728861 Wed Feb 12 16:07:56 CST 2003
lib/xercesImpl.jar
108484 Wed Feb 12 16:07:58 CST 2003 lib/xml-apis.jar
6727 Wed Feb 12 16:16:16 CST 2003 lib/jdbc2_0-
stdext.jar
488695 Wed Feb 12 16:16:28 CST 2003 lib/struts.jar
29922 Wed Feb 12 16:14:08 CST 2003 lib/slide-taglib-
common.jar
16939 Wed Feb 12 16:14:08 CST 2003 lib/slide-taglib-
struts.jar
479 Wed Feb 12 16:06:56 CST 2003 META-
INF/application.xml
it has the following application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems,
Inc.//DTD J2EE Application
1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.d
td">
<application>
<display-name>Calvary Austin Control Panel</display-
name>
<description>The content management system control
panel</description>
<module>
<web>
<web-uri>controlpanel.war</web-uri>
<context-root>/controlpanel</context-root>
</web>
</module>
</application>
the contained war has the following structure:
$ jar -tvf controlpanel.war
0 Wed Feb 19 14:01:10 CST 2003 META-INF/
1191 Wed Feb 19 14:01:10 CST 2003 META-
INF/MANIFEST.MF
0 Wed Feb 19 12:30:06 CST 2003 browser/
0 Wed Feb 12 17:17:58 CST 2003 images/
0 Wed Feb 19 12:32:04 CST 2003 layouts/
0 Wed Feb 12 17:17:58 CST 2003 locks/
0 Wed Feb 12 17:17:58 CST 2003 Templates/
0 Wed Feb 12 17:17:58 CST 2003 WEB-INF/
0 Wed Feb 12 17:17:58 CST 2003 WEB-INF/classes/
4346 Wed Feb 12 16:06:56 CST 2003 addUser.jsp
45 Wed Feb 19 12:30:06 CST 2003
browser/browser_tile.jsp
3964 Wed Feb 12 16:06:56 CST 2003 editUser.jsp
526 Wed Feb 12 16:06:56 CST 2003
images/background.jpg
1081 Wed Feb 12 16:06:56 CST 2003 images/dot.jpg
622 Wed Feb 12 16:06:56 CST 2003 images/logo
blank.jpg
15882 Wed Feb 12 16:06:58 CST 2003 images/logo.jpg
1283 Wed Feb 12 16:06:58 CST 2003 images/subhead
blank.jpg
3235 Wed Feb 12 16:06:58 CST 2003
images/subhead1.jpg
3378 Wed Feb 12 16:06:58 CST 2003
images/subhead2.jpg
176 Wed Feb 12 16:06:56 CST 2003 index.jsp
416 Wed Feb 12 16:06:56 CST 2003 index_tile.jsp
6711 Wed Feb 19 14:00:56 CST 2003
layouts/masterlayout.jsp
4014 Wed Feb 12 16:06:58 CST 2003
locks/locks_tile.jsp
4267 Wed Feb 12 16:06:56 CST 2003 locks.jsp
2349 Wed Feb 12 16:06:56 CST 2003 orig-index.jsp
4488 Wed Feb 12 16:06:56 CST 2003 style.css
6602 Wed Feb 12 16:06:56 CST 2003 template.html
6212 Wed Feb 12 16:06:58 CST 2003
Templates/standard-page.dwt
4401 Wed Feb 12 16:06:56 CST 2003 users.jsp
1973 Wed Feb 12 16:07:00 CST 2003 WEB-
INF/classes/controlpanel-resources.properties
12443 Wed Feb 12 16:07:00 CST 2003 WEB-
INF/classes/Domain.xml
7489 Wed Feb 12 16:06:58 CST 2003 WEB-INF/slide-
struts.tld
8486 Wed Feb 12 16:06:58 CST 2003 WEB-INF/struts-
bean.tld
4832 Wed Feb 19 12:22:58 CST 2003 WEB-INF/struts-
config.xml
18346 Wed Feb 12 16:06:58 CST 2003 WEB-INF/struts-
config_1_0.dtd
33776 Wed Feb 12 16:06:58 CST 2003 WEB-INF/struts-
config_1_1.dtd
63186 Wed Feb 12 16:06:58 CST 2003 WEB-INF/struts-
html.tld
13869 Wed Feb 12 16:06:58 CST 2003 WEB-INF/struts-
logic.tld
61672 Wed Feb 12 16:06:58 CST 2003 WEB-INF/struts-
nested.tld
1558 Wed Feb 12 16:06:58 CST 2003 WEB-INF/struts-
template.tld
7518 Wed Feb 12 16:06:58 CST 2003 WEB-INF/struts-
tiles.tld
1598 Wed Feb 12 16:06:58 CST 2003 WEB-INF/tiles-
config.dtd
12119 Wed Feb 12 16:06:58 CST 2003 WEB-INF/tiles-
config_1_1.dtd
977 Wed Feb 19 12:22:02 CST 2003 WEB-INF/tiles-
defs.xml
1511 Wed Feb 12 16:06:58 CST 2003 WEB-
INF/validation.xml
9829 Wed Feb 12 16:06:58 CST 2003 WEB-
INF/validation_1_1.dtd
39221 Wed Feb 12 16:07:00 CST 2003 WEB-
INF/validator-rules.xml
11029 Wed Feb 12 16:07:00 CST 2003 WEB-
INF/validator-rules_1_1.dtd
15429 Wed Feb 12 16:07:00 CST 2003 WEB-INF/web-
app_2_2.dtd
32560 Wed Feb 12 16:07:00 CST 2003 WEB-INF/web-
app_2_3.dtd
3253 Wed Feb 12 16:07:00 CST 2003 WEB-
INF/web.xml
It has the following manifest entry:
Class-Path: ./lib/log4j.jar ./lib/calvary-
controlpanel.jar ./lib/commons-
beanutils.jar ./lib/commons-collections.jar ./lib/commons-
dbcp.jar ./lib/comm
ons-digester.jar ./lib/commons-fileupload-1.0-
dev.jar ./lib/commons-io.jar ./lib/commons-lang-1.1-
dev.jar ./lib/commons-logging.jar ./lib/commons-pool
.jar ./lib/commons-resources.jar ./lib/jakarta-
oro.jar ./lib/log4j-1.2.7.jar ./lib/xercesImpl.jar ./lib/xml-
apis.jar ./lib/jdbc2_0-stdext.jar ./lib/st
ruts.jar ./lib/antlr.jar ./lib/commons-httpclient.jar ./lib/jaxp-
api.jar ./lib/slide-anttasks.jar ./lib/slide-
client.jar ./lib/slide-swing.jar ./lib/s
lide-webdavlib.jar ./lib/xml-apis.jar ./lib/antlr-
tools.jar ./lib/antlr.jar ./lib/commons-
dbcp.jar ./lib/commons-modeler.jar ./lib/commons-
pool.jar ./
lib/commons-validator.jar ./lib/hsqldb.jar ./lib/jaxp-
api.jar ./lib/jdom-dev.jar ./lib/jdom.jar ./lib/jta-
spec1_0_1.jar ./lib/slide-kernel.jar ./lib/s
lide-roles.jar ./lib/slide-stores.jar ./lib/slide-taglib-
common.jar ./lib/slide-taglib-struts.jar ./lib/slide-
webdavservlet.jar ./lib/xercesImpl.jar .
/lib/xml-apis.jar ./lib/calvary-cms.jar
I also deploy a webdav framework as a dir called
slide.war and it has the following structure:
C:\Projects\calvary-cms\thirdparty\jboss-3.0.6_tomcat-
4.1.18\server\default\deploy>dir /s slide.war
Volume in drive C has no label.
Volume Serial Number is 0006-8ECB
Directory of C:\Projects\calvary-cms\thirdparty\jboss-
3.0.6_tomcat-4.1.18\server\default\deploy\slide.war
02/19/2003 01:49 PM <DIR> .
02/19/2003 01:49 PM <DIR> ..
02/19/2003 01:49 PM 12,443 Domain.xml
12/09/2002 05:43 AM <DIR> META-INF
12/09/2002 05:43 AM <DIR> WEB-INF
1 File(s) 12,443 bytes
Directory of C:\Projects\calvary-cms\thirdparty\jboss-
3.0.6_tomcat-4.1.18
\server\default\deploy\slide.war\META-INF
12/09/2002 05:43 AM <DIR> .
12/09/2002 05:43 AM <DIR> ..
12/09/2002 05:43 AM 58 MANIFEST.MF
1 File(s) 58 bytes
Directory of C:\Projects\calvary-cms\thirdparty\jboss-
3.0.6_tomcat-4.1.18
\server\default\deploy\slide.war\WEB-INF
12/09/2002 05:43 AM <DIR> .
12/09/2002 05:43 AM <DIR> ..
12/09/2002 05:43 AM <DIR> classes
12/09/2002 05:43 AM <DIR> lib
12/09/2002 05:43 AM 20,525 web.xml
1 File(s) 20,525 bytes
Directory of C:\Projects\calvary-cms\thirdparty\jboss-
3.0.6_tomcat-4.1.18
\server\default\deploy\slide.war\WEB-INF\classes
12/09/2002 05:43 AM <DIR> .
12/09/2002 05:43 AM <DIR> ..
12/09/2002 05:43 AM 1,253 log4j.properties
02/12/2003 08:39 PM 31 slide.properties
2 File(s) 1,284 bytes
Directory of C:\Projects\calvary-cms\thirdparty\jboss-
3.0.6_tomcat-4.1.18
\server\default\deploy\slide.war\WEB-INF\lib
12/09/2002 05:43 AM <DIR> .
12/09/2002 05:43 AM <DIR> ..
12/09/2002 05:43 AM 21,869 commons-dbcp.jar
12/09/2002 05:43 AM 26,650 commons-
modeler.jar
12/09/2002 05:43 AM 24,285 commons-pool.jar
12/09/2002 05:43 AM 180,902 hsqldb.jar
12/09/2002 05:43 AM 27,052 jaxp-api.jar
12/09/2002 05:43 AM 126,958 jdom-dev.jar
12/09/2002 05:43 AM 128,201 jdom.jar
12/09/2002 05:43 AM 8,809 jta-spec1_0_1.jar
12/09/2002 05:43 AM 394,385 slide-kernel.jar
12/09/2002 05:43 AM 3,030 slide-roles.jar
12/09/2002 05:43 AM 78,304 slide-stores.jar
12/09/2002 05:43 AM 269,890 slide-
webdavservlet.jar
12/09/2002 05:43 AM 858,588 xercesImpl.jar
12/09/2002 05:43 AM 109,197 xml-apis.jar
14 File(s) 2,258,120 bytes
Total Files Listed:
19 File(s) 2,292,430 bytes
When I deploy everything on JB 3.0.4/Tomcat 3.0.6 I
can subsequently hotdeploy with no problem. However,
under JB 3.0.6/Tomcat 4.1.x I get the following
exception (detailed in server.log) after a hotdeploy
(original startup deploy is fine):
java.lang.LinkageError: loader constraints violated when
linking
org/apache/commons/digester/ObjectCreationFactory
class
at
org.apache.struts.config.ConfigRuleSet.addRuleInstance
s(ConfigRuleSet.java:121)
at
org.apache.commons.digester.Digester.addRuleSet
(Digester.java:1658)
at
org.apache.struts.action.ActionServlet.initConfigDigester
(ActionServlet.java:1202)
at
org.apache.struts.action.ActionServlet.initModuleConfig
(ActionServlet.java:914)
at org.apache.struts.action.ActionServlet.init
(ActionServlet.java:459)
at javax.servlet.GenericServlet.init
(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:934)
Any thoughts on what this could be and if this might be
a bug or a problem with how I'm packaging my
application?
Thanks,
James
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2003-03-04 23:42
Message:
Logged In: YES
user_id=175228
Read the classs loading pdf in the Docs section to see what
can cause a LinkageError. The log files you mentioned are
also not attached so add those.
When you say your hot deploy, what is being hot deployed and
what component is being accessed to cause this error. The
LinkageError indicates that you have classes duplicately
deployed in different deployments that are interacting
directly. You do not need all of the jar duplication shown
in you deployments above. The class loading doc also talks
about the JBoss shared class loading model.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=689562&group_id=22866
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development