Hello,

I met a problem and hope someone here know the reason. I'm using the static
method "Marshaller.marshal(myList, writer);" to marshall "myList":
ArrayList<MyClass>. No mapping file is used. But I get different xml when
the code is run from Eclipse+tomecat and WAS. It works well when running
from Eclipse+tomecat. The xml is <array-list xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xmlns:java="http://java.sun.com";
xsi:type="java:mypackage.MyClass"><my-lass><my-name>name1</my-name></my-class></array-list>.
But when it is deployed on webSphere (7.0) Application Server, the xml will
be <arrayList/> no matter how many MyClass objects in the arrayList.

I'm using castor-1.3.jar in both Eclipse and WebSphere. What would be the
reason?
By the way, how to subscribe the mail list?

Thanks!

Reply via email to