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-31 06:15:02
|
Matt, I'll see what I can do about a mock application. In the meantime, I am now getting another exception when running in Tomcat (and WebSphere) when booleans are converted: net.sf.morph.transform.TransformationException: Could not find a transformer that can transform objects of (class java.lang.Boolean) to objects of (class java.lang.Boolean) I have the net.sf.morph.transform.converters.DefaultToBooleanConverter added to the list in SimpleDelegatingTransformer. Do I need other converters? Thanks Alan -----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. *********************************************************** |