Bugs item #1065491, was opened at 2004-11-12 14:51
Message generated for change (Comment added) made by starksm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1065491&group_id=22866

Category: JBossMX
Group: v4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Don Hill (ssswdon)
Assigned to: Scott M Stark (starksm)
Summary: war isolation issue

Initial Comment:
I am trying to get war isolation to work for the
default configuration of jboss-4.0.0, The issue I have
is that there exist a older version of castor in
default/lib folder and I need to use a newer version, I
know I can just remove it but the problem is I am
trying to use war isolation for the classloader or get
the CL to look for a class in the web-inf/lib first
before going to the parent, Here is the jboss-web.xml I
am using
<class-loading java2ClassLoadingCompliance='false'>
   <loader-repository>
      test.issue.com:loader=issue.war
      <loader-repository-config>
         java2ParentDelegaton=false
      </loader-repository-config>
   </loader-repository>
   </class-loading>
I have tried several options and the only way I can get
it to work is by changing the setting in
jboss-service.xml to <attribute
name="Java2ClassLoadingCompliance">false</attribute>. I
have attached a war file that will dump some xml after
running through castor that is in the web-inf/lib if
the older castor is in the default/lib it will throw a
NPE, I am not sure but I think this will also be the
case in the server/all config.



----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2004-11-20 09:13

Message:
Logged In: YES 
user_id=175228

Can you provide the war doing the parsing or at least a
servlet that produces the indicated output.

----------------------------------------------------------------------

Comment By: Don Hill (ssswdon)
Date: 2004-11-12 14:53

Message:
Logged In: YES 
user_id=1158015

When it works you will get the following output
16:30:57,451 INFO  [STDOUT] FieldName=:timestamp
16:30:57,451 INFO  [STDOUT] Order total price = 257.5
16:30:57,521 INFO  [STDOUT] FieldName=:timestamp
16:30:57,521 INFO  [STDOUT] FieldName=:timestamp
16:30:57,531 INFO  [STDOUT] <?xml version="1.0"
encoding="UTF-8"?>
<Order reference="12343-AHSHE-314159" total-price="257.5"
Timestamp="1100298657521"><Client><Name>Jean Smith</Name><Addr
ess>2000, Alameda de las Pulgas, San Mateo, CA
94403</Address></Client><Item
reference="RF-0001"><Quantity>10</Quantity>
<UnitPrice>8.95</UnitPrice><Description>Stuffed
Penguin</Description></Item><Item
reference="RF-0034"><Quantity>5</Quant
ity><UnitPrice>28.5</UnitPrice><Description>Chocolate</Description></Item><Item
reference="RF-3341"><Quantity>30</Quanti
ty><UnitPrice>0.85</UnitPrice><Description>Cookie</Description></Item></Order>

What we are trying to achive is to be able to deploy the war
in any config with the client having to make modifications
to the server.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1065491&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to