Robert,
are you using the M2 release, or something later built from the trunk. My
first thought is that this is a class loader problem, where the fact that
you are using the singleton INSTANCE for DataFactory is causing you the
problems.
The SDO Spec addressed this issue in the 2.1 revision by the introduction of
the HelperContext, which allows types to be registered within the scope of
selected HelperContext instances created by the program, and we have the
implemented in Tuscany now, but not in a release yet. I am just getting a
release candidate together for Tuscany, and hope to post it very shortly
(with a following wind I hope to do it today). Off the top of my head I'm
not sure what the best workaround for you is if you must solve your issue
with the M2 release, but I know other's have come across and worked around
this problem; perhaps they could post a response.
Regards, Kelvin.
On 15/03/07, Robert Zdanowicz <[EMAIL PROTECTED]> wrote:
Hi,
I've problem with convert SDO to XML when I use method save from
XMLHelper. Problem this oocure only on server (JBOSS) not in standalone
application.
I init Data Object:
cjddo1 = DataFactory.INSTANCE.create("http://com.xyz",
"adapter_FindAccountInput");
And print this Data Object:
System.out.println(XMLHelper.INSTANCE.save(cjddo1,null,"FindAcc"));
------------------------------------------------------------------------------------------------------STANDALONE
IS
OK--------------------------------------------------------------------------------------------
And result:
<?xml version="1.0" encoding="ASCII"?>
<FindAcc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:adapter="http://com.xyz"
xsi:type="adapter:adapter_FindAccountInput">
<header>
<errorCode>333</errorCode>
<functionName>search</functionName>
<offset>no i offset</offset>
<accessKey>key</accessKey>
</header>
<accountSearchQuery>
<productGroup>ZZX</productGroup>
</accountSearchQuery>
</FindAcc>
---------------------------------------------------------------------------------------------------SERVER-----------------------------------------------------------------------------------------------------------------------------
And result from server:
<?xml version="1.0" encoding="ASCII"?>
<findAcc href="root.xml#/"/>
Does anyone know how can i resolve this problem??