Re: [morph-user] Problem running a Morph-ed app in WebSphere AppServer
Brought to you by:
orangeherbert,
sgarlatm
|
From: Matt B. <gud...@ya...> - 2007-01-30 13:13:56
|
Hi Alan, Sorry PARENT_LAST didn't help. I know it's a tall order, but if you can possibly throw together a small mock application that exhibits the problem I'll be happy to look further. :( Other than that I'm not sure what I can do, unless I run into the same problem on my own. But at my shop we're still on WAS 5.1--that's why I asked about earlier versions. br, Matt --- Stewart Alan <ASt...@wo...> wrote: > 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 > > > > -----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 > ==. 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: > > > > Could not find a transformer that can transform > > objects of (class > > java.lang.String) to objects of (class > > java.lang.String) > > > > Could this be a class-loading issue? > > > > Thanks > > Alan > > > > > *********************************************************** > > CAUTION: This email and files included in its > > transmission > > are solely intended for the use of the > addressee(s) > > and may > > contain information that is confidential and > > privileged. > > If you receive this email in error, please advise > us > > > > immediately and delete it without copying the > > contents > > contained within. Woolworths Limited (including > its > > group > > of companies) do not accept liability for the > views > > expressed within or the consequences of any > computer > > > > viruses that may be transmitted with this email. > The > > > > contents are also subject to copyright. No part of > > it > > should be reproduced, adapted or transmitted > without > > the > > 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=join.php&p=sourceforge&CID=DEVDE > V> > _______________________________________________ > > morph-user mailing list > > mor...@li... > > > https://lists.sourceforge.net/lists/listinfo/morph-user > > > > > > > ________________________________________________________________________ > ____________ > Expecting? Get great news right away with email > Auto-Check. > Try the Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html > > > ------------------------------------------------------------------------ > - > 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=join.php&p=sourceforge&CID=DEVDE > V > _______________________________________________ > morph-user mailing list > mor...@li... > https://lists.sourceforge.net/lists/listinfo/morph-user > > *********************************************************** > CAUTION: This email and files included in its > transmission > are solely intended for the use of the addressee(s) > and may > contain information that is confidential and > privileged. > If you receive this email in error, please advise us > > immediately and delete it without copying the > contents > contained within. Woolworths Limited (including its > group > of companies) do not accept liability for the views > expressed within or the consequences of any computer > > viruses that may be transmitted with this email. The > > contents are also subject to copyright. No part of > it > should be reproduced, adapted or transmitted without > the > 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=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > morph-user mailing list > mor...@li... > https://lists.sourceforge.net/lists/listinfo/morph-user > ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com |