[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Hibernate and J2EE RCP

Is it possible that it has something to do with classpath/class loader ?
Following is the VM arguments I am using to run my application:

-Xbootclasspath/p:C:\progra~1\WebSphere\AppClient\java\jre\lib\ext;C:\progra
~1\WebSphere\AppClient\classes;C:\progra~1\WebSphere\AppClient\lib;C:\progra
~1\WebSphere\AppClient\lib\ext;C:\progra~1\WebSphere\AppClient\java\lib;C:\p
rogra~1\WebSphere\AppClient\java\jre\lib;C:\progra~1\WebSphere\AppClient\pro
perties;C:\progra~1\Java\j2re1.5.0\lib;C:\progra~1\Java\j2re1.5.0\lib\ext; -
Djava.ext.dirs=C:\progra~1\WebSphere\AppClient\java\jre\lib\ext;C:\progra~1\
WebSphere\AppClient\classes;C:\progra~1\WebSphere\AppClient\lib;C:\progra~1\
WebSphere\AppClient\lib\ext;C:\progra~1\WebSphere\AppClient\java\lib;C:\prog
ra~1\WebSphere\AppClient\java\jre\lib;C:\progra~1\WebSphere\AppClient\proper
ties;C:\progra~1\Java\j2re1.5.0\lib;C:\progra~1\Java\j2re1.5.0\lib\ext; -Dja
va.naming.provider.url=iiop://localhost -Djava.naming.factory.initial=com.ib
m.websphere.naming.WsnInitialContextFactory -Dserver.root=C:\Progra~1\WebSph
ere\AppClient -Dcom.ibm.CORBA.ConfigURL=file:C:\Progra~1\WebSphere\AppClient
/properties/sas.client.props

This is the same arguments I am using to run Test.java (that has main
method) and it's working fine. but when I run my RCP based application it
gives Mismatched Serialization UIDs exception.

I am using Websphere Application Server 5.1.2 and Websphere Application
Server Client on client side.

Thank you

"Muhammad Aamir" <aamir_1975@xxxxxxxxx> wrote in message
news:cu1qib$rof$1@xxxxxxxxxxxxxxxxxx
> Hmmm... This is the way I am referring to another folder that contains
class
> files and it's working. However, I copied both jar files in plugin folder
> and change the library tag accordingly but unfortunately it didn't do any
> good.
>
> Thanx
>
> "Pascal Rapicault" <pascal@xxxxxxxxxx> wrote in message
> news:ctuc52$8sg$1@xxxxxxxxxxxxxxxxxx
> > A plugin must contain the jars that are referred to inside the library
> > statements. Therefore it is not possible to refer to any full path.
> >
> > PaScaL
> >
> > Muhammad Aamir wrote:
> > > I tried by putting in lib/ext file of JRE, I put it in plugin.xml like
> this:
> > >
> > > <library name="C:\\hibernate2.jar">
> > >   <export name="*"/>
> > > </library>
> > > <library name="C:\\odmg-3.0.jar">
> > >   <export name="*"/>
> > > </library>
> > >
> > > I tried to put it in the VM arguments (by using -cp hibernate.jar etc)
> but
> > > still having the problem.
> > >
> > > Thanx a lot for replying promptly
> > >
> > > Muhammad Aamir
> > >
> > > "Pascal Rapicault" <pascal@xxxxxxxxxx> wrote in message
> > > news:ctqhnd$k6d$1@xxxxxxxxxxxxxxxxxx
> > >
> > >>Where did you put hibernate2.jar and odmg.jar, in the case of the RCP
> App?
> > >>
> > >>Muhammad Aamir wrote:
> > >>
> > >>>We are developing a HMS based on Eclipse RCP. We have one-to-many
> > >
> > > relations
> > >
> > >>>and that is implemented using Set. When we return the object ( from
> > >
> > > session
> > >
> > >>>EJBs to our RCP based application) that have one-to-many relation
e.g.
> > >>>Invoice has  Set, that containes InvoiceItems, it gives an exception
on
> > >>>client side like the following :
> > >>>
> > >>>java.rmi.MarshalException: CORBA MARSHAL 1229125786 No; nested
> exception
> > >
> > > is:
> > >
> > >>>org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge :
> > >>>Mismatched serialization UIDs : Source (Rep.
> > >>>IDRMI:java.util.HashMap:86573568A211C011:0507DAC1C31660D1) =
> > >>>0507DAC1C31660D1 whereas Target (Rep. ID
> > >>>
> > >
> > >
> RMI:dash.hms.common.bo.ServiceCategory:ED162ABB6FFDC0FF:45A41691EA4BC44E)
=
> > >
> > >>>45A41691EA4BC44E vmcid: 0x4942f000 minor code: 2202 completed: No
> > >>>at
> > >>>
> > >
> > >
>
com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:197)
> > >
> > >>>at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
> > >>>at
> > >>>
> > >
> > >
>
dash.hms.client._SetupService_Stub.getServiceCategory(_SetupService_Stub.jav
> > >
> > >>>a:772)
> > >>>
> > >>>I read on Hibernate forums that you need to have hibernate2.jar and
> > >
> > > odmg.jar
> > >
> > >>>in your class path. I tried it with a non RCP based simplest
Test.java
> > >>>application and it's working after including those two jar files in
> > >>>classpath.
> > >>>
> > >>>But even when I do the same ( including jar files in classfile) in my
> > >>>eclipse based RCP application it give me the same exception. I am
> trying
> > >
> > > to
> > >
> > >>>solve this issue for hours but didn't succeed. I'd be really
thankful,
> > >
> > > if
> > >
> > >>>someone can give me a some hint.
> > >>>
> > >>>Thank you
> > >>>Muhammad Aamir
> > >>>
> > >>>
> > >>>
> > >
> > >
> > >
>
>