Re: WOHTTPConnection WORequest
On Jul 27, 2006, at 7:36 AM, David Griffith wrote: Hi all, I want to allow a user to enter details into a HTML Form (in a WOComponent) and when they click the Submit button, I would like to open a connection to a standard HTTP server with a specific URL and pass it the form values that the user entered. Can someone tell me an easy way to do this? I can create the WOHTTPConnection but I think I need a WORequest to send to it and I can't figure out how to get the form values into that request. It's probably easy I'm sure :-) David, Stupid question, but is there a particular reason why you need to send it through your WO app? Why not point your form's URL straight to the other HTTP server? --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (240) 672-4212 smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: WO WYSIWG textarea editor
Folks, Kupu is nice (I use it as a part of Plone where it is the default editor), but it doesn't work with Safari yet. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (240) 672-4212 On Jul 13, 2006, at 4:57 AM, Frédéric JECKER wrote: Take a look at Kupu (http://kupu.oscom.org/) it's open source and I think it should be easily incuded in a WO app ! smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: WWDC WO Meet
Folks, Two things: 1) setWebObjectsGetTogetherAttendeeCount( webObjectsGetTogetherAttendeeCount() + 1 ) I'll be there on Monday! :-) 2) As a WWDC veteran, I think that the chaos on Thursday at the campus will make it less than practical to have a get together associated with it. --Paul On Tue, July 11, 2006 9:29 am, Alan Ward wrote: Apple Campus is an hour away. On Thursday there will be a fleet of buses. On Monday there won't. Alan On Jul 11, 2006, at 2:06 AM, Miguel Arroz wrote: Hi! I know there's a reception on Apple Campus on Thursday... but it we are a lot of people and if Apple guys are among us, maybe they could arrange something at the Apple Campus itself! :) For me it would be really cool to see the Apple Campus and even having a small guided tour through the WO building... ;) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: JavaMail Props Not Being Set
On Jun 26, 2006, at 7:26 AM, Drew Thoeni wrote: I am trying to set the SMTP host for JavaMail. I have attempted set the properties in the Application, in the component, and in Resources-Properties. None of these approaches seems to get the props set (per exception at the end of this email). In the Application() using this code: public Application() { super(); Properties props = System.getProperties(); //Specify the desired SMTP server props.put( WOSMTPHost, smtp.comcast.net ); props.put( mail.smtp.host, smtp.comcast.net ); } Drew, You code only changes the values inside the props object that you got back as a result of the System.getProperties() call. You need to set them back into the system by using the System.setProperties ( Properties ) call, or two calls to System.setProperty( String, String ). Alternatively, you can specify the properties outside of the code in two places. First, in the Properties file that is located inside the .woa bundle at MyApp.woa/Contents/Resources/Properties, you can put the lines: WOSMTPHost=smtp.comcast.net mail.smtp.host=smtp.comcast.net just as written and they will set the WOSMTPHost and mail.smtp.host properties for the application. Alternatively, you can launch the application with the arguments: -DWOSMTPHost=smtp.comcast.net -Dmail.smtp.host=smtp.comcast.net in addition to any other launch arguments and the properties will be set. Note that there is no space between the -D and the property name, and that any characters that will cause problems for the shell will need to be escaped or quoted. In general, setting properties through code is discouraged -- much better to do it from the Properties file for properties that don't change frequently and from launch arguments for those that do change frequently. BTW, property values specified on the command line override those specified in the Properties file. See the WO API docs on NSProperties for more details. HTH --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (240) 672-4212 smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Nullify on relationship is not working
Logan, A few questions for you, to make sure I'm not missing the obvious. 1) Are you looking at this in the MyEntity objects in Java or are you looking at this in the database tables? 2) Are you looking at this before or after a call to saveChanges()? 3) If you are you looking at the Java objects, are you looking at the myEntityTypeId attribute or are you looking at the value of the myEntityType relationship? --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (240) 672-4212 On Jun 26, 2006, at 7:40 PM, Logan Rebecca Allred wrote: I'm probably missing something obvious, but the nullify on my relationship is not working the way I expected. I have a many-to-one relationship from MyEntity --- MyEntityType. Both sides of the relationship are set to Optional and Nullify, though the back relationship from MyEntityType to MyEntity is not a class property. When I delete an instance of MyEntityType, I expect that all of the instances of MyEntity that are related to that MyEntityType will have their myEntityTypeId set to null. But instead it just deletes the MyEntityType and leaves instances of MyEntity with dangling references. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: EO MySQL error
Pete, Have you installed the MySQL connector in /Library/Java/Extensions? --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (240) 672-4212 On Jun 18, 2006, at 6:59 PM, Pete Rive wrote: Hi guys gals I am trying to use the EO 5.3 wizard to set up a database on a remote server. The host server runs MySQL and I was trying to establish a connection. My URL is jdbc:mysql://myhost However, I get the following error message: JDBC connection failed for driver :'org.gjt.mm.mysql.Driver'. Driver not found in Java Runtime! Please verify your CLASSPATH environment variable. The current CLASSPATH for your application is : /Developer/Applications/WebObjects/EOModeler.app/Contents/ Resources/Java/eomodeler I'm still on XCode 2.0 if that makes any difference. Do I need to upgrade a driver or something? Any ideas? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: many-to-many, worker-threads, save problems
Christian, Random thought -- are you locking your EC? (If it's the session.defaultEC then it's locked automatically for you when the session is checked out of the session store.) At least according to the docs, the EC should then propagate the lock downwards in the EOF stack as needed when you save changes. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (240) 672-4212 On Jun 13, 2006, at 5:15 PM, Christian Pekeler wrote: Lenny's editing context subclass does not solve my problem (I've just tried it). The described symptoms seem to be different, too (unless I'm missing something). Thanks, Christian Been there! Here is an old message that I have saved. I have not tested this, instead I have been using another workaround. I won't publish that unless this one does not work as this fix is far better than my ugly hack. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/paul.suh%40ps- enable.com This email sent to [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Bind WOString to WOActiveImage binding
Marcos, This won't work as the .wod file is never run through the template parser. Why not just put Bullet.jpg into the filename binding directly? I think you're trying to do something more than meets the eye here. A little more info would probably let us understand the problem better. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (240) 672-4212 On Jun 12, 2006, at 6:20 PM, Marcos Trejo Munguia wrote: Hi List: I've been thinking if it is possible to bind a WOString to a WOActiveImage filename binding for example, something like this: String1: WOString { value = Bullet.jpg; } ActiveImage1: WOActiveImage { filename = WEBOBJECT NAME=String1/WEBOBJECT; framework = app; action = cancel; } smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Fast tree scan
Flor, Two things spring to mind. The first is to just have the entity cached in RAM via the setting in EOModeler. Select the entity, inspect it, and go to the advanced entity inspector (the second icon), and select the checkbox at the bottom that says, Cache in Memory. This will pull in all of the snapshots for the entity, and then when you traverse the tree the EO's are generated from the cached snapshots and you avoid the round trip to the database. This works best if you are going to traverse all of the trees and there aren't so many individual EO's that you start running out of RAM. The second technique is to set a prefetching key path. This is made really easy because you already have a single separate root object that has a to-many relationship to all of the nodes of a particular tree. Fetch that root node, but in the fetch specification set a prefetching key path that follows the to-many relationship and gets all of the nodes into memory in one round-trip to the database. This works best if you are going to traverse only one or a few of many trees, or if there are so many nodes that you can't cache them all in memory. Hope this helps. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 On May 31, 2006, at 11:21 AM, Florijan Stamenkovic wrote: Hi all, I have an entity that relates to itself, having a parent and children of the same entity. It works fine. The intention is that the tree can be used to indefinite depth, with an indefinite amount of branches. Practically, this measures let's say ten levels of depth, and involved hundreds of nodes. And there can be quite a number of trees managed. At one point however I need to scan the whole tree. That takes a while because of EOF faulting, where children are not resolved until they are asked for. Since this is used in a Java Client scenario, that means that the children for every node cause a trip to the application server to get the data. It is immensely cheaper to get it all in one. My solution was to relate every node to the root node, which is of a different entity. That way all the nodes belonging to the same tree can be resolved through one request, regardless of how deep they are. This however does not help me, because still the children for every node are faults, and still a round trip is made when I resolve them. So, the question is: does anybody know how this can this be optimized, so that I don't have to have so many round trips? TIA, Flor ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: generating response in different thread
Christian, The problem that you're running into is that when you access a EO's values you're supposed to lock the EO's editing context first. The session's default editing context is locked and unlocked for you as part of the request-response loop, but if you're trying to access the EO's in another thread you're going to run into stalls while the thread waits for the EC lock. You're going to need to create a local editing context in your long response page and bring the necessary objects into it by using EOUtilities.localInstanceOfObject(...). You can then safely lock your local EC and bind to those objects in the long response page's thread. A question that occurs to me is why are the bindings so slow? Is it because you are following many relationships and firing many faults, each of which is making a round trip to the database? If so, you might want to look at attaching prefetching key paths to your original fetch spec, so that you get all of the necessary snapshots into memory in one round trip to the database -- in which case firing the faults is lightning quick and does not require a round trip. I have had a page go from taking over 5 minutes to generate to under a second by putting in some prefetching key paths; instead of several hundred transactions to the database it took only one. Hope this helps. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 On May 25, 2006, at 11:47 AM, Christian Pekeler wrote: I have a bunch of pages that can take a long time to generate. I'd like to show a WOLongResponsePage in the interim. The typical way of using WOLongResponsePage is to run the business logic or whatever is taking a long time in a different thread (kicked off by WOLongResponsePage.performAction()), and once done, generate the final page with the result of that expensive computation (with WOLongResponsePage.pageForResult(Object)). Unfortunately, the pages I have to deal with can't be used with this pattern. They're slow because they contain thousands of bindings which each are partly responsible for the slowness. Getting all the values upfront at once would require me to rewrite the pages - something I don't have time for. So what I'd like to do instead is (simplified): WOLongResponsePage.performAction() { slowPage.generateResponse(); I think I've figured out how to do WOLongResponsePage.pageForResult (the slow pages are basically display-only). My problem is calling generateResponse() from a new thread. Some bindings on the slow pages are hooked up to the session, and to objects in the session's defaultEditingContext causing all sort of issues that I'm having troubles tracking down. So, has anyone ever done this sort of thing and could give me any advice? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Too Many Sessions Are Being Generated
Jon, WOImage is definitely not the culprit. A couple of other places to look: 1) Do you have anything bound to a key in the session? Use a tool like grep to search for session in all of the .wod files in your application. 2) Are you calling a method anywhere in your code that calls session()? Another thing to try: put a log statement in the constructor of *every* WOComponent that you have in your project. Now access your app via the direct action, and see which components are instantiated. Go over those components with a fine-toothed comb to see where a session is being created. Hope this helps. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 On May 8, 2006, at 3:49 PM, Jonathan Miller wrote: Thanks for that and indeed I did have a component action in the parent component (search box). However after moving that to a DirectAction I still have not seemed to have fixed the problem. What is more confusing is that I load all my content out of XML so at this point I shouldn't be talking to EOs at all. Does a session automatically get created for each request if a wosid is not found in the URL? Could WOImage be creating a session? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Too Many Sessions Are Being Generated
Jon, The problem is probably not in the use of the shared EC, but in the page that you are generating. If you have *any* component actions on the page then it will automatically generate a Session object to keep track of the component actions, even if you are getting to the page via a direct action. Beware that component actions may be embedded in subcomponents (e.g. a standard navigation bar that you use on all pages) and may not be immediately obvious. The editing contexts don't know and don't care about sessions at all. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 On May 5, 2006, at 11:42 AM, Jonathan Miller [EMAIL PROTECTED] wrote: In my Direct Actions I'm using the EOSharedEditingContext.defaultSharedEditingContext() to locate an EO that is used for the page generation. For some reason this is creating a session per Direct Action (According to Monitor). Does anyone know why? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: How to selectively save EO
Louis, If I understand your problem correctly, you would like to put in an audit trail whenever a user opens an EO for editing, and again once the EO is actually changed, right? In that case, you can trigger a save to the object graph before the user ever sees the page. The sequence of actions is: 1) User selects which EO he wishes to edit. 2) As a part of the action method, you insert an audit EO into the user's EC, relate it to the EO that is to be edited, then save the EC. 3) Return an edit page to the user with the EO to be edited in a page- level editing context. As a part of instantiating the edit page, insert another audit trail EO, indicating that the object has been edited. 4) If the user hits save, then both the EO to be edited and the audit trail EO that marks the edit will be saved. If the user hits cancel, then all of the changes in the page-level editing context are thrown away, which is exactly the desired behavior. In either case, there is an audit trail EO saved to the DB that marks that there was an edit attempt. You can do similar things if a user wants to create a new EO or delete an EO. Does this make sense? By the way, it's not so much a newbie question as an intermediate- level question. It is getting into the whole concept of multiple editing contexts and how to save changes cleanly. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 On Apr 23, 2006, at 7:03 PM, Louis Demers wrote: At 3:22 PM -0400 2006/04/21, Paul Suh wrote: Louis, Trying to save a single EO while leaving others unsaved is almost always indicative of a problem in your application's design That was my initial concern and the reason I asked the question on how to do it, knowing I would be corrected by this list if that was a NONO 8-), I was worried that my design was flawed because it motivated me to do this. My application is some sort of ERP for our particular needs, and I wanted to record some signature that someone was trying to edit some objects. The object I wanted to save was a signature object referring to an object that already existed in the database but that may have been edited without being committed yet. The object being saved is not at the discretion of the user but my own requirement to keep track of what is being done. I could restrain the user to a very strict paradigm, but knowing the crowd I'm trying to please, I'd rather not. Your comments echoed some feelings I had when I faced this technical difficulty and a re-examination of the task has me fairly well convinced that what I want to do is legitimate. Whether WebObjects has the flexibility is something else, but the solutions proposed so far , in particular EOtilities.localInstanceOfObject support the idea that WebObjects has foreseen this requirement. I do realize this special steps forces me to investigate my model/ paradigm and I will have to take the responsibility to make sure I do not just push forward a problem in my model design. I taught this was a newbie question , but the discussions it raised have been most enlightening. I implemented the solution based on EOUtilities.localInstanceOfObject after reviewing some Use Cases to evaluate the potential impacts, and I'm convinced the need is legitimate and the solution reliable. What more can I ask. On to the next feature. thanks to all. -- Louis Demers ing. [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Transferring data
Randy, What you're thinking of is the old eoutil tool. It's still there, just hidden a bit and turned into a Java application. Open a terminal window and execute /System/Library/WebObjects/JavaApplications/ javaeoutil.woa/javaeoutil -- at first it will look like a typical WO app is launching, then it will print out usage information. For moving data in and out of databases, the typical usage is two steps -- one to dump the data out to a plist file, one to read the plist into a new DB. The nice thing is that as long as the EOModels are set up correctly, this is a great way to move small amounts of data between databases. (The tool is limited by RAM, as it essentially reads in the entire database and turns it into raw rows before pumping it out.) Typical usage is: ./javaeoutil dump /path/to/mymodel1.eomodeld -source database -dest plist /path/to/outputfile.plist ./javaeoutil dump /path/to/mymodel2.eomodeld -source plist /path/to/ outputfile.plist -dest database Your database connection information will be specified in the two EOModel files. Hope this helps. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 On Apr 20, 2006, at 11:35 AM, [EMAIL PROTECTED] wrote: Date: Wed, 19 Apr 2006 15:47:19 -0400 From: Randy Wigginton [EMAIL PROTECTED] Subject: Transferring data To: 'WebObjects-List Apple' webobjects-dev@lists.apple.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii A few years ago with WO 4.5, there was a utility that would download all tables referenced by an EOModel and save a text file. Then you could modify the db info on the model, and upload it to a different Database. Is there any such utility available/working these days? I don't have a lot of data to move... but I'm hoping it can be easy. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: How to selectively save EO
Ondra, This is a situation that cries out for nested and peer editing contexts. Each Volume should have its own peer EC. Each Page then has an EC whose object store is the Volume's EC. Remember that different EC's can each have their own copy of the same EO, each of which has the same EOGlobalID and refers to the same database, but which are different instances. You always build relationships between EO's within the same EC, such as connecting up an Ad to a ColorSpace. If the objects are in different EC's then use EOUtilities.localInstanceOfObject() to get an instance of the EO that is in the right EC. Be careful in your EOModel design so that you have accounted for all of the places where you really need a many-to- many relationship. When a user saves a Page object, the Page's EC flushes changes to its parent, the Volume's EC. When the user is satisfied with the entire Volume, he or she hits save and the Volume's EC flushes to the database. I hope I'm making this clearer for you, not murkier. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 On Apr 21, 2006, at 3:53 PM, Ondra Cada wrote: Paul, On 21.4.2006, at 21:22, Paul Suh wrote: You should probably go back and re-think your design, so that you are no longer trying to save the single EO -- instead, your natural flow will be to save the entire state of the object graph tracked by the EC. My archetypal wanna-save-part-of-graph situation is a simulated document-like environment. For example, one of my projects allows the user to edit a number of volumes (they contain pages, and the user places ads and articles to the pages). All the information is stored in one central database, and there are relationships which intertwine all the objects into a network without clean-cut bounds (for example, all pages and also ads link to the same list of colour spaces; the user who can edit different parts of the network has its own entity, too, and there are relationships between users and objects of all kinds they are editing, and so forth). Now, the user assumes that (a) he can open more volumes at once, (b) he can save changes made inside each of them independent on the others. Possibly I am overlooking something very obvious, but I do not see a general, clean, and easy solution: either I use one EC, in which case I cannot save separately (without some real hackery :)), or I use more EC's, but then there are relationships which cross the EC boundaries. Also, I do not see (perhaps just caused by my blindness of course!) any obvious design error in the above. --- Ondra Čada OCSoftware: [EMAIL PROTECTED] http://www.ocs.cz private [EMAIL PROTECTED] http://www.ocs.cz/oc ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: How to selectively save EO
On Apr 21, 2006, at 3:57 PM, Ken Anderson wrote: Also, I highly suggest never, ever, using hackery in EOF to partially save an EC... and I speak from experience :) AMEN!! --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Webobjects-dev Digest, Vol 3, Issue 250
Mohapatra, Do you have a space character in the path anywhere from the file system root to the location of the actual executable, e.g. in the project name or an enclosing folder? This is a common cause of the Application class not being found. There's a long-standing bug in the launch scripts in the .woa that doesn't like spaces in the path. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] (301) 643-1516 On Apr 21, 2006, at 3:06 PM, [EMAIL PROTECTED] wrote: Date: Fri, 21 Apr 2006 11:55:39 -0700 From: Mohapatra Ashish [EMAIL PROTECTED] Subject: Error in Running any application in Xcode 2.1 To: webobjects-dev@lists.apple.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII Hi All, I am repeatedly getting this error when I try to run any WebObjects Application. Please let me know what element I might be missing on my application or system. --- Can't load Application class, exiting... java.lang.ClassNotFoundException: Application at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:68) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Using compound primary keys with WebObjects?
Peter, On Apr 17, 2006, at 3:07 PM, peter Burnes [EMAIL PROTECTED] wrote: While I do use automated primary key generation, I inherited a few tables that are join tables where the primary keys are compounded. It seems like from reading the Apple docs and even seeing the propagate primary key option in EOModeler, that is there is support for this concept. I am just interested if there are those out there that have used propagate primary key/compound keys or even custom-generated primary keys in real-world WebObjects applications? I know I could try to convince the DBA to redesign the data model, but at this point trying to see if WebObjects can handle this legacy application or if I proceed, with trying a WebObjects solution, that I will be heading for pitfalls without using the WebObjects way. Compound primary keys for join tables are a special case in EOF. They are automatically recognized and the primary keys from the two joined EO's are propagated to the join table. It should just work -- and usually does in my experience. --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED] enable.com (301) 643-1516 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com