users@jax-rpc.java.net

casting problems with standard Holder classes

From: Steve Pruitt <SPruitt_at_exstream.com>
Date: Mon, 8 Mar 2004 20:04:22 -0500

I am trying to deploy to Websphere. But, my problem seems to be jax-rpc, or so it appears to me. Apologies if this is not an appropriate question for the group.

My service is implemented as a Session EJB. When I try to deploy, I get a
bunch of casting errors. My service signature looks like:

public int compose(Source reportRequest, ByteArrayHolder composedOutput,
StringHolder metaOutput) throws RemoteException;

I thought the standard jax-rpc holders could be used as service arguments.
Howevever, they are having serialization problems. Maybe the problem is my EBJ implementation choice? Should I give up on the EJB?


The deploy errors are:

        [EJBDeploy] C:\Documents and Settings\spruitt.EXSTREAM\Local
Settings\Temp\app_fb2
cfd694a\dpl\2e0ed0f8\engine\ejbModule\com\exstream\service\engine\_EJSRemote
StatelessEngineServices_94d22ade_Tie.java:156: Invalid cast from java.io.Serializable to
javax.xml.rpc.holders.ByteArrayHolder.
C:\Documents and Settings\spruitt.EXSTREAM\Local
Settings\Temp\app_fb2cfd694a\dpl\2e0ed0f8
\engine\ejbModule\com\exstream\service\engine\_EJSRemoteStatelessEngineServices_94d22ade_Tie.java:156: Invalid cast from java.io.Serializable to
javax.xml.rpc.holders.ByteArrayHolder.
        [EJBDeploy] ByteArrayHolder arg1 = (ByteArrayHolder)in.read_value(ByteArrayHolder.class);
        [EJBDeploy] ^
        [EJBDeploy] C:\Documents and Settings\spruitt.EXSTREAM\Local
Settings\Temp\app_fb2cfd694a\dpl\2e0ed0f8\engine\ejbModule\com\exstream\service\engine\_EJSRemoteStatelessEngineServices_94d22ade_Tie.java:157: Invalid cast fromjava.io.Serializable tojavax.xml.rpc.holders.StringHolder.
C:\Documents and Settings\spruitt.EXSTREAM\Local
Settings\Temp\app_fb2cfd694a\dpl\2e0ed0f8\engine\ejbModule\com\exstream\service\engine\_EJSRemoteStatelessEngineServices_94d22ade_Tie.java:157: Invalid cast from java.io.Serializable to javax.xml.rpc.holders.StringHolder.

        [EJBDeploy] StringHolder arg2 = (StringHolder)in.read_value(StringHolder.class);
        [EJBDeploy] ^
        [EJBDeploy] C:\Documents and Settings\spruitt.EXSTREAM\Local
Settings\Temp\app_fb2
cfd694a\dpl\2e0ed0f8\engine\ejbModule\com\exstream\service\engine\_EngineSer
vice_Stub.java:238: Invalid cast from javax.xml.rpc.holders.ByteArrayHolder to
java.io.Serializable.
C:\Documents and Settings\spruitt.EXSTREAM\LocalSettings\Temp\app_fb2cfd694a\dpl\2e0ed0f8
\engine\ejbModule\com\exstream\service\engine\_EngineService_Stub.java:238:
Invalid cast from javax.xml.rpc.holders.ByteArrayHolder to java.io.Serializable.
        [EJBDeploy]
out.write_value((Serializable)arg1,ByteArrayHolder.class);
        [EJBDeploy] ^
        [EJBDeploy] C:\Documents and Settings\spruitt.EXSTREAM\Local
Settings\Temp\app_fb2
cfd694a\dpl\2e0ed0f8\engine\ejbModule\com\exstream\service\engine\_EngineSer
vice_Stub.java:239: Invalid cast from javax.xml.rpc.holders.StringHolder to
java.io.Serializable.
C:\Documents and Settings\spruitt.EXSTREAM\Local
Settings\Temp\app_fb2cfd694a\dpl\2e0ed0f8
\engine\ejbModule\com\exstream\service\engine\_EngineService_Stub.java:239:
Invalid cast from javax.xml.rpc.holders.StringHolder to java.io.Serializable.
        [EJBDeploy]
out.write_value((Serializable)arg2,StringHolder.class);
        [EJBDeploy] 4 errors
4 errors

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net