Re: [morph-user] Problem running a Morph-ed app in WebSphere AppServer
Brought to you by:
orangeherbert,
sgarlatm
|
From: Stewart A. <ASt...@wo...> - 2007-01-30 06:18:37
|
I configured our WebSphere (6.1.0.5) app server to use "Parent last" as the class loading mode, but still get the same problem. I haven't tried the app in any earlier version of WebSphere (we don't have any version apart from 6.1 installed) and I use Eclipse instead of RAD. Not sure how to proceed now. It is blowing up on a search of our "User" objects. The User object overrides hashCode and equals. The only different thing about this domain object is that the Hibernate "id" attribute uses a generator class of "assigned" and is in fact the username, which is a String. All other domain objects use db sequences (ie numerics) in the Hibernate mappings, as the primary keys are synthetic. User uses a natural key. I can't see how this would affect the operation of Morph anyway, considering it works fine in Tomcat and JBoss. Alan=20 -----Original Message----- From: mor...@li... [mailto:mor...@li...] On Behalf Of Matt Benson Sent: Tuesday, 30 January 2007 7:56 AM To: For questions about Morph Subject: Re: [morph-user] Problem running a Morph-ed app in WebSphere AppServer Yes, it sounds as though morph and the application trying to use it are getting String.class from different classloaders. Libraries that deal extensively with class equality, AFAIK, can either compare classes by name (ugh!) or use .equals() which, not being overridden in Class.class, is equivalent to =3D=3D. Your best bet is to do what you can to eliminate classloader weirdness in your application deployment setup. Do you know if earlier versions of WAS suffer from the same problem? If you are using RAD, you may have additional test environments available to you for testing. FWIW/HTH, Matt --- Stewart Alan <ASt...@wo...> wrote: > Hi, > We're using Morph to do 2-way transformations > between our domain objects > and data transfer objects. My application works > perfectly when deployed > to a Tomcat 5.5 or Jboss 4.0 server, but the exact > same WAR deployed to > WebSphere 6.1.0.3 gives me an error when I try to do > a transformation: >=20 > Could not find a transformer that can transform > objects of (class > java.lang.String) to objects of (class > java.lang.String) >=20 > Could this be a class-loading issue? >=20 > Thanks > Alan >=20 > *********************************************************** > CAUTION: This email and files included in its > transmission=20 > are solely intended for the use of the addressee(s) > and may=20 > contain information that is confidential and > privileged.=20 > If you receive this email in error, please advise us >=20 > immediately and delete it without copying the > contents=20 > contained within. Woolworths Limited (including its > group=20 > of companies) do not accept liability for the views=20 > expressed within or the consequences of any computer >=20 > viruses that may be transmitted with this email. The >=20 > contents are also subject to copyright. No part of > it=20 > should be reproduced, adapted or transmitted without > the=20 > written consent of the copyright owner. > *********************************************************** > > ------------------------------------------------------------------------ - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE= VDE V> _______________________________________________ > morph-user mailing list > mor...@li... > https://lists.sourceforge.net/lists/listinfo/morph-user >=20 =20 ________________________________________________________________________ ____________ Expecting? Get great news right away with email Auto-Check.=20 Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html=20 ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE= VDE V _______________________________________________ morph-user mailing list mor...@li... https://lists.sourceforge.net/lists/listinfo/morph-user *********************************************************** CAUTION: This email and files included in its transmission=20 are solely intended for the use of the addressee(s) and may=20 contain information that is confidential and privileged.=20 If you receive this email in error, please advise us=20 immediately and delete it without copying the contents=20 contained within. Woolworths Limited (including its group=20 of companies) do not accept liability for the views=20 expressed within or the consequences of any computer=20 viruses that may be transmitted with this email. The=20 contents are also subject to copyright. No part of it=20 should be reproduced, adapted or transmitted without the=20 written consent of the copyright owner. *********************************************************** |