Different behavior when running in Eclipse and on Tomcat

I am having a problem because the program that I wrote, tested, and work fine on Eclipse doesn't have the same behavior when I convert it to a Web Service and called by a client.

I have not this strange behavior. See this code:

NamedNodeMap attrs = node.getAttributes();

System.out.println(attrs.getNamedItem("performance"));

When I run it on exist I got something like this:

org.apache.crimson.tree.AttributeNode1@11bed71

which should be correct since attrs.getNamedItem() return a Node.

But! When I run it as a web service on Axis hosted on Tomcat I got

performance="3758.0"

?!!!

Also, when I do something like

System.out.println(node)

In Eclipse I got the whole XML file like this:

<root><sequence name="main" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">

<switch name="switch-1" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">

<case condition="bpws:getVariableData('i') = 0" performance="3425.0" cost="77.0" reliability="1.0" availability="1.0" integrity="1.0" security="128.0">

<invoke name="invoke-2" partnerLink="HotelBooking" portType="nsxml2:HotelBooking" operation="searchHotel" inputVariable="searchHotelParam" outputVariable="searchHotelResult" serviceKey="95EDCDE0-46F6-11DA-BEB0-90CACF0DCD6A" />

</case>

<otherwise performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">

<while name="while-1" condition="bpws:getVariableData('i') > 0" performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">

<sequence performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">

<invoke name="invoke-1" partnerLink="FlightBooking" portType="nsxml0:FlightBooking" operation="searchFlight" inputVariable="searchFlightParam" outputVariable="searchFlightResult" serviceKey="AD5A1880-46EC-11DA-B399-97115D85E15E" />

</sequence>

</while>

</otherwise>

</switch>

</sequence></root>

but on Axis I got:

[root:null]

I'm confused. I think it might be because of the different version of the library between eclipse environment and axis environment. But the problem is, I can't figure out what JAR should I change. Can you give me a clue?

[4179 byte] By [devilpima] at [2007-10-2 4:45:39]
# 1

DOM doesn't specify what the toString() method of Node etc. should return. So each implementation of DOM chooses something that seems reasonable to the implementers. If this isn't suitable for you then don't use the toString() method. (That's what System.out.println calls when you pass it an Object, in case you didn't know.)

DrClapa at 2007-7-16 0:50:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...