<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6618.4">
<TITLE>[jboss-user] [JCA/JBoss] - Storing SYBASE</TITLE>
</HEAD>
<BODY dir=ltr>
<P>Hi all,</P>
<P>Sorry if this is a basic question, but I've gone through the
documentation and various configuration options and still have a classloader
issue when trying to deploy a new web-application alongside our .ear
file . I wanted to check the list to "make very plain" what I need to
do.</P>
<P>Here's the scenario:</P>
<P>* we use jboss 3.2.6 to deploy "ourapp.ear". </P>
<P>* We wanted to deploy Sun's java directory editor webapp "de.war" alongside
ourapp.ear, i.e. in the "deploy" directory</P>
<P>Here's the problem:</P>
<P>* "ourapp.ear" refers to struts 1.1. de.war refers to struts 1.2 (one
example of class version issues). Jboss gives classloader exceptions.</P>
<P>I have tried the following:</P>
<P>* added jboss-app.xml to ourapp.ear/META-INF directory </P>
<P>* added jboss-web.xml to de.war's WEB-INF/ directory</P>
<P>* tried all four combinations of "JbossWebloader" and
"Java2ClassloaderCompliance" in
jboss-web-tomcat50.sar/META-INF/jboss-service.xml</P>
<P>* I've tried packing the de.war as an ear file and adding
de.ear/META-INF/jboss-web.xml</P>
<P>I still get problems</P>
<P>Problem details:</P>
<P>* Either log4j classcast exception or struts classcast exception
depending on the values of JbossWebLoader and Java2ClassloaderCompliance</P>
<P>* Sun directory editor appears to misbehave if I browse to it before jboss
has finished deploying all the references.</P>
<P>Question:</P>
<P>* I wanted to confirm: do I need to add jboss-web.xml to the de.war? </P>
<P>* Is log4j a special problem? i.e. because jboss uses it itself?</P>
<P>* I got farther by removing the log4j and loggins-common.jar from the sun
'de.war', but this seems a hack.</P>
<P>* Does this sound right? what appears to be incorrect?</P>
<P>This problem is fairly well documented, but could use that extra bit of
clarity. I will update the jboss wiki with your answer to make the problem idiot
proof.</P>
<P>I welcome your suggestions. </P>
<P>thanks</P>
<P>bill m</P>
</BODY>
</HTML>