• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOModel problem with a maven packaged application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModel problem with a maven packaged application


  • Subject: Re: EOModel problem with a maven packaged application
  • From: Frédéric JECKER <email@hidden>
  • Date: Tue, 30 Mar 2010 20:48:24 +0200

So, in case of someone is running into the same problem.
Here is the quick and dirty fix I used :
- Subclass EOModel
- Override the entityNamed method (with the help of any decompiler tool) and add a String.replace ("\\", "/");
- Register a handler for the EOModelGroup.modelAddedNotification in which you replace the EOModels added to the group by your EOModel subclass.

Fred

Le 30 mars 2010 à 15:49, Frédéric JECKER a écrit :

Hi,

I'm facing the following problem while deploying a 5.3.3 maven packaged application on a windows server :

[2010-03-30 14:40:04 CEST] <main> com.webobjects.foundation.NSForwardException for java.io.FileNotFoundException: 
JAR entry Resources/PmsiAmb.eomodeld\Lieu.plist not found in C:\Apple\Local\Library\WebObjects\Applications\ApplicationCariatides.woa\Contents\Resources\Java\com\symaris\cariatides\frameworks\ObjetsMetierCariatides\6.1.0-SNAPSHOT\ObjetsMetierCariatides-6.1.0-SNAPSHOT.jar
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
        at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132)
        at java.net.URL.openStream(URL.java:1010)

The problem is linked to the search path of the plist file, which is mixing slashes and backslashes.
I found the following mail archive from the wodev mailinglist where Don Lindsay had the same problem.
http://www.mail-archive.com/email@hidden/msg19327.html

The bug was visibly fixed in 5.4, has someone a workaround for it for WO 5.3 ? 

Thanks

Regards





Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >EOModel problem with a maven packaged application (From: Frédéric JECKER <email@hidden>)

  • Prev by Date: Strange exception with flattened relationship
  • Next by Date: WOPopUpButton
  • Previous by thread: EOModel problem with a maven packaged application
  • Next by thread: NSTimestampFormatter and the GMT offset
  • Index(es):
    • Date
    • Thread