Hi,
it definitely should be
<array-list/>
as long as you do not supply a mapping file and rely on the default
naming mechanism.
To be honest, I have no idea what might cause the switch when deploying
on WAS 7.X.
Regards
Werner
On 11.12.2010 19:35, 魏昕路 wrote:
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!
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email