Re: Refresh
nevermind, I got it. Added to Jeff On Feb 28, 2007, at 12:19 AM, Jeff Schmitz wrote: Thanks, I'll give that a try. I have one more quick question. I've added a jar to my WOLips project and it works great in there. However, when I deploy the app the jar doesn't seemed to be available to the deployed version. I'm sure it's something simple, but how, using WOLips, do you specify that the jar should be included with the deployed app? When I build for deployment, I just right click the build.xml and select "Run as Ant". Is there something I need to add to the build.xml file? Thanks, Jeff On Feb 27, 2007, at 11:44 PM, Guido Neitzer wrote: On 27.02.2007, at 22:07, Jeff Schmitz wrote: Hello again, I'm using Frontbase as my database and I'm trying setup a second test machine by exporting my frontbase database data from one machine and import it into the database on the test machine. This seems to work fine as far as the frontbase part of it (using sql92 commands), but then when I then try to add a record using the ec.inserObject from within my application, the primary key ID it assigns to the new record is one that already exists in the database, and I get an integrity constraint. Actually, it is assigning the first key (101), like it thinks my table is empty. Any ideas on why it's showing this behavior? You have to update the "unique" count to the correct value: set unique = (select max (id)+1 from your_table) for your_table; cug (hope this works ... ;-)) ___ 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/jeffandmonica% 40mac.com This email sent to [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: Refresh
Thanks, I'll give that a try. I have one more quick question. I've added a jar to my WOLips project and it works great in there. However, when I deploy the app the jar doesn't seemed to be available to the deployed version. I'm sure it's something simple, but how, using WOLips, do you specify that the jar should be included with the deployed app? When I build for deployment, I just right click the build.xml and select "Run as Ant". Is there something I need to add to the build.xml file? Thanks, Jeff On Feb 27, 2007, at 11:44 PM, Guido Neitzer wrote: On 27.02.2007, at 22:07, Jeff Schmitz wrote: Hello again, I'm using Frontbase as my database and I'm trying setup a second test machine by exporting my frontbase database data from one machine and import it into the database on the test machine. This seems to work fine as far as the frontbase part of it (using sql92 commands), but then when I then try to add a record using the ec.inserObject from within my application, the primary key ID it assigns to the new record is one that already exists in the database, and I get an integrity constraint. Actually, it is assigning the first key (101), like it thinks my table is empty. Any ideas on why it's showing this behavior? You have to update the "unique" count to the correct value: set unique = (select max (id)+1 from your_table) for your_table; cug (hope this works ... ;-)) ___ 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: Refresh
On 27.02.2007, at 22:07, Jeff Schmitz wrote: Hello again, I'm using Frontbase as my database and I'm trying setup a second test machine by exporting my frontbase database data from one machine and import it into the database on the test machine. This seems to work fine as far as the frontbase part of it (using sql92 commands), but then when I then try to add a record using the ec.inserObject from within my application, the primary key ID it assigns to the new record is one that already exists in the database, and I get an integrity constraint. Actually, it is assigning the first key (101), like it thinks my table is empty. Any ideas on why it's showing this behavior? You have to update the "unique" count to the correct value: set unique = (select max (id)+1 from your_table) for your_table; cug (hope this works ... ;-)) ___ 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: Refresh
Hello again, I'm using Frontbase as my database and I'm trying setup a second test machine by exporting my frontbase database data from one machine and import it into the database on the test machine. This seems to work fine as far as the frontbase part of it (using sql92 commands), but then when I then try to add a record using the ec.inserObject from within my application, the primary key ID it assigns to the new record is one that already exists in the database, and I get an integrity constraint. Actually, it is assigning the first key (101), like it thinks my table is empty. Any ideas on why it's showing this behavior? Thanks, Jeff ___ 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: Large deployment advice
Hi Ken, I manage quite a big configuration : (> 20 machines , 64 instances/machine) So here what I do get things simpler. 1) I have my App to refresh its cached memory in every 10 minutes (with a WOTimer). 2) AutoRecover is always set to "ON" always for all instances. 3) have added a parameter which when true the application's refuseNewSession will get called. 4) Now I have a table which maintains the list of the hostname+posrt combination and a column which says whether the refuseNewSession to be true or false. 5) So after every 10 minutes the WOTimer will get executed and it will start the refuseNewSession for that host and port. 6) Now to deploy my app I have a automated script which does all the deployment across all the machines and at the end it it will make the flag for refusing new session to true. I this way I do not bother to look into the monitor (unless some thing awefull has happened) . Let me know if this helps. I would really like to know if I can improve on my deployment process. Thanks much, Tanmoy On 2/27/07, Ken Anderson <[EMAIL PROTECTED]> wrote: WO friends, I have to start working on a plan to deploy possibly hundreds of instances of about 10 different WO applications. I currently find it extremely painful to start/stop my existing test instances using JavaMonitor (too much clicking!). I would love to hear from people how they handle large deployments. Do you use JavaMonitor at all? Are you deploying with some way other than on OS X like SSDD or war (I've heard of these things, but have no idea what they are or how to deploy in this manner) ? Any thoughts would be greatly appreciated. Thanks, Ken ___ 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: Javamonitor help
James, If you ever get that exception, it means you have a problem with locking your editing contexts. Do you use contexts you create yourself, not just the default context on the session? If so, ANY access to the context or the EOs in it should be wrapped in a try- finally block and the ec should be locked and unlocked. Ken On Feb 27, 2007, at 2:55 PM, James Cicenia wrote: I had to step out... Anyway.. I can't impress that these are really simple apps, which is really perplexing. They only read data, there is no messaging, nothing... My session class is very simple too.. I don't even track users. It seems like at night they just don't terminate.. it used to be the most heavily used app that would hang.. I saw this in the log of one of the instances: [2007-02-27 03:53:39 CST] java.lang.IllegalStateException: Illegal Lock usage: unlocking thread not owner. at com.webobjects.foundation.NSRecursiveLock.unlock (NSRecursiveLock.java:207) at com.webobjects.eocontrol.EOEditingContext.unlock (EOEditingContext.java:4720) at com.webobjects.eocontrol.EOEditingContext._dispose (EOEditingContext.java:1158) at com.webobjects.eocontrol.EOEditingContext.finalize (EOEditingContext.java:1178) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run (Finalizer.java:160) However, this was after the restart .. .it was in instance number 1. That one is set to restart at 1:00 am However, my log files show that instance number 2, never rolled over, so I assume it was the one that froze. Yet it still is serving up today. Very confused. James On Feb 27, 2007, at 12:29 PM, Guido Neitzer wrote: On 27.02.2007, at 10:57, Chuck Hill wrote: Are you sure the apps shut down correctly? I have seen this happen when the apps hang after being told to shut down. Usually this means there is a deadlocked session or a thread waiting to check out an already terminated session. We have seen this behaviour when we had deadlocks in the apps due to the use of OpenJMS (ERChangeNotification). The deadlocks happened in the OpenJMS code when this was under heavy message load and were really hard to track down. cug ___ 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/james% 40jimijon.com This email sent to [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/lists% 40anderhome.com This email sent to [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: Javamonitor help
I had to step out... Anyway.. I can't impress that these are really simple apps, which is really perplexing. They only read data, there is no messaging, nothing... My session class is very simple too.. I don't even track users. It seems like at night they just don't terminate.. it used to be the most heavily used app that would hang.. I saw this in the log of one of the instances: [2007-02-27 03:53:39 CST] java.lang.IllegalStateException: Illegal Lock usage: unlocking thread not owner. at com.webobjects.foundation.NSRecursiveLock.unlock (NSRecursiveLock.java:207) at com.webobjects.eocontrol.EOEditingContext.unlock (EOEditingContext.java:4720) at com.webobjects.eocontrol.EOEditingContext._dispose (EOEditingContext.java:1158) at com.webobjects.eocontrol.EOEditingContext.finalize (EOEditingContext.java:1178) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run (Finalizer.java:160) However, this was after the restart .. .it was in instance number 1. That one is set to restart at 1:00 am However, my log files show that instance number 2, never rolled over, so I assume it was the one that froze. Yet it still is serving up today. Very confused. James On Feb 27, 2007, at 12:29 PM, Guido Neitzer wrote: On 27.02.2007, at 10:57, Chuck Hill wrote: Are you sure the apps shut down correctly? I have seen this happen when the apps hang after being told to shut down. Usually this means there is a deadlocked session or a thread waiting to check out an already terminated session. We have seen this behaviour when we had deadlocks in the apps due to the use of OpenJMS (ERChangeNotification). The deadlocks happened in the OpenJMS code when this was under heavy message load and were really hard to track down. cug ___ 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/james% 40jimijon.com This email sent to [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: Large deployment advice
Hello Ken; I have to start working on a plan to deploy possibly hundreds of instances of about 10 different WO applications. I currently find it In one case, I use an inter-instance communication system over a queue server which schedules shutdowns across the instances running under wotaskd. The shutdown procedure has a GUI on it which is a bit easier to control than Monitor and the system is also able to warn users of pending shutdowns as well which is nice. than on OS X like SSDD or war (I've heard of these things, but have no idea what they are or how to deploy in this manner) ? I wrote an article on this some time ago... http://homepage.mac.com/andrewlindesay/le/page_articles.html (click on "Tomcat Deployment of WebObjects Application") It seems to work just fine unless you are doing anything with AXIS. However I wouldn't say this sort of deployment is necessarily easier than using wotaskd as you will see from the article. cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ 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: Need advice on using image buttons for form submission
On Feb 27, 2007, at 10:37 AM, Kevin Windham wrote: I am trying to figure out how to use an image for a submit button and also use javascript to change the button's image for rollover and click effects. The difficulty seems to be that when using a WOImageButton the name attribute is determined by WO when it renders the page to the browser. You are making it too difficult again. :-) Just add a name = "MyName" binding to it. The only time this will get you in trouble is if the form input is in a WORepetition. Give it a name binding like that and every line in the loop will have the same name. Much confusion results for all parties. All my rollover scripts work based on the name and it would be a pain to try and change them. An alternative is to change them to work on an id. Chuck What are you guys using to submit a form with rollover buttons. It looks like one could bind an action to a form and use javascript to .submit the form, but I don't see how that would work with more than one button. Anyone come up with a good solution? Thanks, Kevin ___ 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/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: Large deployment advice
I have to start working on a plan to deploy possibly hundreds of instances of about 10 different WO applications. I currently find it extremely painful to start/stop my existing test instances using JavaMonitor (too much clicking!). I also find Monitor painful to use when dealing with large number of applications/instances or when having to deploy often. That's why I've patched Monitor so that I can control it from scripts. You can find the patch here http://pekeler.org/software/MonitorPatch If I had to start over creating deployment scripts, I'd take a serious look at Capistrano: http://wiki.rubyonrails.org/rails/pages/Capistrano Christian ___ 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: Need advice on using image buttons for form submission
On Tue, 27 Feb 2007, Kevin Windham wrote: I am trying to figure out how to use an image for a submit button and also use javascript to change the button's image for rollover and click effects. The difficulty seems to be that when using a WOImageButton the name attribute is determined by WO when it renders the page to the browser. All my rollover scripts work based on the name and it would be a pain to try and change them. What are you guys using to submit a form with rollover buttons. It looks like one could bind an action to a form and use javascript to .submit the form, but I don't see how that would work with more than one button. Anyone come up with a good solution? Why not use a form "input"? If your component doesn't require different actions for the same form, you can (and, imo, should always) bind the action to the WOForm. All the javascript & rollover stuff will work fine that way. - sq Thanks, Kevin ___ 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
Need advice on using image buttons for form submission
I am trying to figure out how to use an image for a submit button and also use javascript to change the button's image for rollover and click effects. The difficulty seems to be that when using a WOImageButton the name attribute is determined by WO when it renders the page to the browser. All my rollover scripts work based on the name and it would be a pain to try and change them. What are you guys using to submit a form with rollover buttons. It looks like one could bind an action to a form and use javascript to .submit the form, but I don't see how that would work with more than one button. Anyone come up with a good solution? Thanks, Kevin ___ 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: Javamonitor help
On 27.02.2007, at 10:57, Chuck Hill wrote: Are you sure the apps shut down correctly? I have seen this happen when the apps hang after being told to shut down. Usually this means there is a deadlocked session or a thread waiting to check out an already terminated session. We have seen this behaviour when we had deadlocks in the apps due to the use of OpenJMS (ERChangeNotification). The deadlocks happened in the OpenJMS code when this was under heavy message load and were really hard to track down. cug ___ 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: Javamonitor help
Are you sure the apps shut down correctly? I have seen this happen when the apps hang after being told to shut down. Usually this means there is a deadlocked session or a thread waiting to check out an already terminated session. Chuck On Feb 27, 2007, at 9:42 AM, James Cicenia wrote: No. I thought maybe it was a locking problem on these apps so I put in the old multiclockmanager ... but still about 5 times a week it won't restart the apps and then I get that problem. I have about 8 instances running of 5 apps... all pretty much the same except for the skins. - James Cicenia On Feb 27, 2007, at 11:26 AM, Chuck Hill wrote: Are all three servers running the same applications? Chuck On Feb 27, 2007, at 8:15 AM, James Cicenia wrote: Hello - I just can't figure this out. Maybe I am doing something wrong with this server. My javamonitor refuses to restart applications at night.. intermittently. And then it will show something like the following (not the real url) until I kill javamonitor. However, today my apps are still functioning but will surely stop responding if I don't kill things again. Failed to contact www.xyz.com-1085 This never happens on my two other servers that restart flawlessly at night. Any ideas whatsoever? These are just read only apps too! Should I replace the url with an ip? help James Cicenia ___ 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/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: Javamonitor help
No. I thought maybe it was a locking problem on these apps so I put in the old multiclockmanager ... but still about 5 times a week it won't restart the apps and then I get that problem. I have about 8 instances running of 5 apps... all pretty much the same except for the skins. - James Cicenia On Feb 27, 2007, at 11:26 AM, Chuck Hill wrote: Are all three servers running the same applications? Chuck On Feb 27, 2007, at 8:15 AM, James Cicenia wrote: Hello - I just can't figure this out. Maybe I am doing something wrong with this server. My javamonitor refuses to restart applications at night.. intermittently. And then it will show something like the following (not the real url) until I kill javamonitor. However, today my apps are still functioning but will surely stop responding if I don't kill things again. Failed to contact www.xyz.com-1085 This never happens on my two other servers that restart flawlessly at night. Any ideas whatsoever? These are just read only apps too! Should I replace the url with an ip? help James Cicenia ___ 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/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: Javamonitor help
Are all three servers running the same applications? Chuck On Feb 27, 2007, at 8:15 AM, James Cicenia wrote: Hello - I just can't figure this out. Maybe I am doing something wrong with this server. My javamonitor refuses to restart applications at night.. intermittently. And then it will show something like the following (not the real url) until I kill javamonitor. However, today my apps are still functioning but will surely stop responding if I don't kill things again. Failed to contact www.xyz.com-1085 This never happens on my two other servers that restart flawlessly at night. Any ideas whatsoever? These are just read only apps too! Should I replace the url with an ip? help James Cicenia ___ 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/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: Problem Connecting to OpenBase
Hello Timo, Bingo - your advice solved my problem, and I can now connect to OpenBase. When I compared the 2 OpenBaseJDBC.jar files - sure enough the one in /Library/Java/Extensions had a earlier date (9/12/2006 and 73,373 bytes) VERSUS the file in /Applications/OpenBase/Developer/Interfaces/JDBC/JDBC_10.9.2006 (10/9/2006 date and 74,235 bytes). And using the latter enabled a connection to the database. I'm can't be sure which update caused this problem (I did not keep a record), but I think it was an Xcode 2.4.1/WebObjects 5.3.2 update which I performed quite recently. Thanks very much for your help! Fred Timo Hoepfner wrote: Hi there, had a similar issue last week. The symptoms were the same. Either some update (WO 533?) replaces the OpenBase driver with a outdated or broken one, or the last java update makes the old one useless. When I did a "System.out.println(ObDriver.class)" at application startup, I would get something like incorrect class version. In my case, replacing the jar in /Library/Java/Extensions with the jar from the latest OpenBase distribution fixed it. Timo Am 26.02.2007 um 22:10 schrieb Fred Shurtleff: Checked Spotlight and it is ONLY in /Library/Java/Extensions (and of course - /Application/OpenBase/Developer). Also I looked further into the project Java Build Path and do see JRE System Library(JVM 1.4.2) which contains the item > OpenBaseJDBC.jar - /Library/Java/Extensions/. So the error text stating "Driver not found in Java Runtime!" does not make any sense to me. Because my model specifies a URL: jdbc:OpenBase which somehow instructs to use the above .jar file. And I was connected to this database last week. So now I do not know what else to check! Thanks for your help. Chuck Hill wrote: Use Spotlight to find OpenBaseJDBC.jar. You probably have it also in /Library/WebObjects/Extensions or some other inappropriate place. It should ONLY be in /Library/Java/Extensions Chuck On Feb 26, 2007, at 11:20 AM, Fred Shurtleff wrote: Hello All, I am unable to connect to a localhost OpenBase database that I had previously connected to last week. The console error is: An exception occurred while trying to open a channel:com.webobjects.jdbcadaptor.JDBCAdaptorException: JDBC connection failed for driver :'com.openbase.jdbc.ObDriver'. Driver not found in Java Runtime! Please verify your CLASSPATH environment variable. The current CLASSPATH for your application is :/System/ Since I did NOT see OpenBaseJDBC.jar in any of these search paths, I tried to add a new classpath variable pointing to /Library/Java/Extensions/OpenBaseJDBC.jar, but when I try to add it to the project Java Build Path, it complained that it was a duplicate entry (and would not let me save it). So now I am totally confused! I have checked my connection dictionary/params (they are correct), and the database is started/running. Can anyone suggest what may be the problem? Thank You ___ 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/chill%40global-village.net This email sent to [EMAIL PROTECTED] --Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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/th-dev%40onlinehome.de This email sent to [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: PDF and appendToResponse
Just return it like a download file with content disposition set to inline or sth like that Here is a WOComponent I use for generic downloading. For PDF just set the correct mime type and content disposition. The client browser will ultimately decide what to do with it anyway. HTH, Kieran // // DownloadDataPage.java: Class file for WO Component 'DownloadDataPage' // Project cheetah // // Created by kieran on 1/27/06 // import com.webobjects.foundation.*; import com.webobjects.appserver.*; import com.webobjects.eocontrol.*; import com.webobjects.eoaccess.*; import er.extensions.*; import java.io.*; /** A page WOComponent that generically downloads data (NSData) to the user in context. */ public class DownloadDataPage extends WKPageComponent { private static org.apache.log4j.Logger log = WKLoggerFactory.getLogger( DownloadDataPage.class ); protected NSData _dataToDownload; protected String _downloadFilename; protected String _stringToDownload; protected int streamingContentSize = 0; protected int streamingBufferSize = ERXProperties.intForKeyWithDefault ( "cheetah.streamingDownload.defaultBufferSize", 4096 ); public DownloadDataPage(WOContext context) { super(context); } /** @return the data to download. Defaults to text 'empty file - nothing to download' */ public NSData dataToDownload() { if ( _dataToDownload == null ) { // Check for the string and convert to NSData with default encoding if supplied if ( stringToDownload() == null ) { _dataToDownload = new NSData( "empty file - nothing to download", ERXProperties.stringForKey( "cheetah.defaultTextEncoding" ) ); } else { _dataToDownload = new NSData( stringToDownload(), ERXProperties.stringForKey( "cheetah.defaultTextEncoding" ) ); } } return _dataToDownload; } public void setDataToDownload(NSData newDataToDownload) { _dataToDownload = newDataToDownload; } /** @return the filename for the file after it is downloaed. Defaults to an arbitrary name. */ public String downloadFilename() { if ( _downloadFilename == null ) { _downloadFilename = "downloadedfile"; } return _downloadFilename; } public void setDownloadFilename(String newDownloadFilename) { _downloadFilename = newDownloadFilename; } File _fileToDownload; /** @return the file to be downloaed (streaming) */ public File fileToDownload() { return _fileToDownload; } /** Set the file to be downloaded. */ public void setFileToDownload( File aFile ) { _fileToDownload = aFile; } InputStream _inputStreamToDownload; /** @return an InputStream containing the data to download. This is preferred method, especially for dealing with data that may be large and timeconsuming*/ public InputStream inputStreamToDownload() { return _inputStreamToDownload; } public void setInputStreamToDownload( InputStream inStream, int contentSize ) { _inputStreamToDownload = inStream; streamingContentSize = contentSize; } public void appendToResponse( WOResponse aResponse, WOContext aContext ) { super.appendToResponse( aResponse, aContext ); // Set default encoding aResponse.setContentEncoding( ERXProperties.stringForKey ( "cheetah.defaultTextEncoding" ) ); // We check for the three downloadable types and whichever we encounter first it the one that is // downloaded if ( fileToDownload() != null ) { // Download files as a stream try { aResponse.setContentStream(new FileInputStream ( fileToDownload() ) , streamingBufferSize, (int)fileToDownload ().length() ); } catch (IOException ioExc ) { log.error( "Error setting content stream", ioExc ); } } else if ( inputStreamToDownload() != null ) { aResponse.setContentStream( inputStreamToDownload(), streamingBufferSize, streamingContentSize ); } else if ( stringToDownload() != null ) { // Download string aResponse.setContent( stringToDownload() ); } else if ( dataToDownload() != null ) { // Download NSData aResponse.setContent( dataToDownload() ); } // Set content headers aResponse.setHeader( contentType(), "content-type" ); aResponse.setHeader( contentDisposition(), "content- disposition"); } protected String _contentDisposition; /** @return content-disposition header. Defaults to "attachment;filename=\"" + downloadFilename() + "\""*/ public String contentDisposition() { if ( _contentDisposition
Re: PDF and appendToResponse
Hi Gino, I never used PD4ML but you probably need these 2 lines : response.setContent(yourNSData); response.setHeader("application/pdf", "Content-Type"); On 07-02-27, at 11:56, Gino Pacitti wrote: Hi All I am using the PD4ML packages and can easily save PDF's to disk - but i was wondering if anyone had used it a successfully was able to display the PDF to browser? I have this snippet: try{ PD4ML html = new PD4ML(); StringReader sr = new StringReader(htmlAsData); File f = new File(System.getProperties().getProperty ("pdfpath") +nameOfFile+".pdf"); java.io.FileOutputStream fos = new java.io.FileOutputStream(f); html.setPageSize(PD4Constants.A4); html.setPageInsets(new Insets(10, 10, 10, 10)); html.setHtmlWidth(900); html.enableImgSplit(false); html.render(sr, fos); } catch (Exception ex) { ex.printStackTrace(); } But how would I get the produced PDF to be seen immediately from the returned Response? Gino ___ 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/jgagnon% 40druide.com This email sent to [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
PDF and appendToResponse
Hi All I am using the PD4ML packages and can easily save PDF's to disk - but i was wondering if anyone had used it a successfully was able to display the PDF to browser? I have this snippet: try{ PD4ML html = new PD4ML(); StringReader sr = new StringReader(htmlAsData); File f = new File(System.getProperties().getProperty ("pdfpath") +nameOfFile+".pdf"); java.io.FileOutputStream fos = new java.io.FileOutputStream(f); html.setPageSize(PD4Constants.A4); html.setPageInsets(new Insets(10, 10, 10, 10)); html.setHtmlWidth(900); html.enableImgSplit(false); html.render(sr, fos); } catch (Exception ex) { ex.printStackTrace(); } But how would I get the produced PDF to be seen immediately from the returned Response? Gino ___ 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: Refresh
Hi, Mark, On Feb 27, 2007, at 11:33 AM, Mark Ritchie wrote: On 27-Feb-07, at 10:42 AM, Jerry W. Walker wrote: So... has anyone any information on static variables in a class shared between separate applications on the JVM if two applications use that same class? Static variables which were shared across separate application instances would mean that we didn't need the ERChangeNotificationJMS.framework :-) Yeah, that was the first thing that came to mind, but I ignored it since I realized that the ERChangeNotificationJMS.framework preceded the JavaHotSpot technology which first offered multiple applications in the same JVM. According to Sun's Java documentation: http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data- sharing.html the only classes that share data across processes in the JVM seem to be those in the system jar file, rt.jar, so I guess I'm safe. :-) In the case of a WOF app, starting two app instances would mean that two Timer's would be running. Thus Robert's point about using an external mechanism to do the scheduling. Regards, Mark __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada ___ 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/jerrywwalker% 40gmail.com This email sent to [EMAIL PROTECTED] -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems [EMAIL PROTECTED] 203 278-4085office ___ 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: Refresh
On 27-Feb-07, at 10:42 AM, Jerry W. Walker wrote: So... has anyone any information on static variables in a class shared between separate applications on the JVM if two applications use that same class? Static variables which were shared across separate application instances would mean that we didn't need the ERChangeNotificationJMS.framework :-) In the case of a WOF app, starting two app instances would mean that two Timer's would be running. Thus Robert's point about using an external mechanism to do the scheduling. Regards, Mark __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada ___ 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
Large deployment advice
WO friends, I have to start working on a plan to deploy possibly hundreds of instances of about 10 different WO applications. I currently find it extremely painful to start/stop my existing test instances using JavaMonitor (too much clicking!). I would love to hear from people how they handle large deployments. Do you use JavaMonitor at all? Are you deploying with some way other than on OS X like SSDD or war (I've heard of these things, but have no idea what they are or how to deploy in this manner) ? Any thoughts would be greatly appreciated. Thanks, Ken ___ 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: Javamonitor help
On 27 Feb 2007, at 16:15, James Cicenia wrote: Hello - I just can't figure this out. Maybe I am doing something wrong with this server. My javamonitor refuses to restart applications at night.. intermittently. And then it will show something like the following (not the real url) until I kill javamonitor. However, today my apps are still functioning but will surely stop responding if I don't kill things again. Failed to contact www.xyz.com-1085 This never happens on my two other servers that restart flawlessly at night. Any ideas whatsoever? These are just read only apps too! Should I replace the url with an ip? help James Cicenia Can your application server resolve itself via DNS? I bet the two that work can, and the third that can't doesn't. In my experience replacing names with ip addresses just makes wotaskd and JavaMonitor even less cooperative. If this is the problem and you can't get a name/address publlshed by (probably internal) DNS in a hurry, try editing /etc/hosts . [And I bet Tiff Cluel chimes in that there's a list webobjects- [EMAIL PROTECTED], too!] -- Patrick Middleton OneStep Solutions plc 351 London Road Phone: +44 (0)1702 426400 HadleighFax: +44 (0)1702 556855 Essex. SS7 2BT Email: [EMAIL PROTECTED] England(MIME welcome) ___ 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
Javamonitor help
Hello - I just can't figure this out. Maybe I am doing something wrong with this server. My javamonitor refuses to restart applications at night.. intermittently. And then it will show something like the following (not the real url) until I kill javamonitor. However, today my apps are still functioning but will surely stop responding if I don't kill things again. Failed to contact www.xyz.com-1085 This never happens on my two other servers that restart flawlessly at night. Any ideas whatsoever? These are just read only apps too! Should I replace the url with an ip? help James Cicenia ___ 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: Refresh
Hi, Florijan, The WOApplication class is a singleton for any WebObjects application. From the first paragraph of the JavaDoc on WOApplication: The primary role of the WOApplication class is to coordinate the handling of HTTP requests. Each application must have exactly one WOApplication object. The application object receives... Honestly, I've never considered the possibility that a static variable declared for a class in one application is shared with any other application using that same class within the same Java Virtual Machine. I don't think this is true, and if it is, there are a few things about static variables that I will have to rethink before this bites me. Whether true or not, the variable wouldn't be shared between JVM's. That's why Robert Walker was suggesting scheduling outside the application. So... has anyone any information on static variables in a class shared between separate applications on the JVM if two applications use that same class? Regards, Jerry On Feb 27, 2007, at 10:02 AM, Florijan Stamenkovic wrote: Hi all, What I always had trouble with when attempting to use timers is the problem it creates when running multiple instances of your application. I don't see why that would be a problem, if a Timer is static. Initialize it once, and never worry about it again. If you use a timer inside your WO application instance, and you have more than one instance of your application running, then you will have more than one timer running possibly updating your file more often than you really want. It may be possible to configure your timer to run on only one instance, say instance number 1. The problem here is that if instance 1 is shutdown then no timer will be running even if their are other instances available. Static comes in handy here. Instances shut down, timer keeps running. Just make sure that you make a timer whose execution thread is a daemon. Otherwise it keeps running and running and running Using an outside scheduler solves these issues in a clean and effective way. Yeah, kind of nice. As an extension to this method I often run the process in a separate thread, for those actions that may take more than a few seconds to execute. I would probably stick to a static Thread in the Application class anyway, that is started with the first instance. Nice and simple. Timer in my eyes only becomes handy if you need to schedule a lot of different tasks at different intervals. My two cents, 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/jerrywwalker% 40gmail.com This email sent to [EMAIL PROTECTED] -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems [EMAIL PROTECTED] 203 278-4085office ___ 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: New WOnderApplication won't start
Odd .. that's generating two wosid's in that url :) I'll have to look into that. On Feb 27, 2007, at 9:14 AM, Jerry W. Walker wrote: Hi, Jeff, You can get the nightly builds through the mdimension website. Click on the Project Wonder link on this page: http://www.mdimension.com/cgi-bin/WebObjects/mDimension.woa/1/ wa/viewPage? wosid=abkvFugE4Rme26LdocBkJ0&pageName=Community&wosid=abkvFugE4Rme26Ld ocBkJ0 Regards, Jerry On Feb 27, 2007, at 8:32 AM, Jeff Schmitz wrote: OK, but when I go to the Sourceforge site, I don't see a version 3.1 of Wonder. Where can I get version 3.1? Thanks, jeff On Feb 27, 2007, at 6:09 AM, Daniele Corti wrote: That's because it has an old version of ERExtensions.framework Download the new version of Wonder (3.1) and in the properties menù of your app, edit the WOFramewors in the Java Build path and unselect EREXtensions, ERJar, and every Wonder framework, then click on add external jar and select the jar files in the Wonder frameworks you have downloaded. Maybe there some other ways to fix the problem, but, since I'm working with not updated machines, I prefer to build my app on a single version of Wonder. Bye. 2007/2/27, Jeff Schmitz < [EMAIL PROTECTED]>: I just created a new WOnderApplication on a new machine with a newly installed Eclipse and WOLips using the WOLips Wizard and am getting the following error when trying to run just the "Hello World" program that was generated, with no changes. Any ideas? Feb 27 05:33:31 Dummy[49473] ( ERXLogger.java:190) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException at er.extensions.ERXLogger.configureLogging( ERXLogger.java:190) at er.extensions.ERXLogger.configureLoggingWithSystemProperties ( ERXLogger.java:149) at er.extensions.ERXExtensions$Observer.finishedLaunchingApp ( ERXExtensions.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method ) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke( Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod (NSSelector.java:120 ) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod (NSNotificationCenter.java:601 ) at com.webobjects.foundation.NSNotificationCenter.postNotification ( NSNotificationCenter.java:545) at com.webobjects.foundation.NSNotificationCenter.postNotification ( NSNotificationCenter.java:559) at com.webobjects.appserver.WOApplication.run( WOApplication.java: 878) at er.extensions.ERXApplication.run(ERXApplication.java:281 ) at com.webobjects.appserver.WOApplication.main ( WOApplication.java:324) at er.extensions.ERXApplication.main( ERXApplication.java:50) at Application.main(Application.java:9 ) ___ 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/ildenae% 40gmail.com This email sent to [EMAIL PROTECTED] -- Daniele Corti AIM: S0CR4TE5 Messenger: [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/jerrywwalker% 40gmail.com This email sent to [EMAIL PROTECTED] -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems [EMAIL PROTECTED] 203 278-4085office ___ 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/mschrag% 40mdimension.com This email sent to [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: Refresh
Hi all, What I always had trouble with when attempting to use timers is the problem it creates when running multiple instances of your application. I don't see why that would be a problem, if a Timer is static. Initialize it once, and never worry about it again. If you use a timer inside your WO application instance, and you have more than one instance of your application running, then you will have more than one timer running possibly updating your file more often than you really want. It may be possible to configure your timer to run on only one instance, say instance number 1. The problem here is that if instance 1 is shutdown then no timer will be running even if their are other instances available. Static comes in handy here. Instances shut down, timer keeps running. Just make sure that you make a timer whose execution thread is a daemon. Otherwise it keeps running and running and running Using an outside scheduler solves these issues in a clean and effective way. Yeah, kind of nice. As an extension to this method I often run the process in a separate thread, for those actions that may take more than a few seconds to execute. I would probably stick to a static Thread in the Application class anyway, that is started with the first instance. Nice and simple. Timer in my eyes only becomes handy if you need to schedule a lot of different tasks at different intervals. My two cents, 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: New WOnderApplication won't start
Hi, Jeff, You can get the nightly builds through the mdimension website. Click on the Project Wonder link on this page: http://www.mdimension.com/cgi-bin/WebObjects/mDimension.woa/1/wa/ viewPage? wosid=abkvFugE4Rme26LdocBkJ0&pageName=Community&wosid=abkvFugE4Rme26Ldoc BkJ0 Regards, Jerry On Feb 27, 2007, at 8:32 AM, Jeff Schmitz wrote: OK, but when I go to the Sourceforge site, I don't see a version 3.1 of Wonder. Where can I get version 3.1? Thanks, jeff On Feb 27, 2007, at 6:09 AM, Daniele Corti wrote: That's because it has an old version of ERExtensions.framework Download the new version of Wonder (3.1) and in the properties menù of your app, edit the WOFramewors in the Java Build path and unselect EREXtensions, ERJar, and every Wonder framework, then click on add external jar and select the jar files in the Wonder frameworks you have downloaded. Maybe there some other ways to fix the problem, but, since I'm working with not updated machines, I prefer to build my app on a single version of Wonder. Bye. 2007/2/27, Jeff Schmitz < [EMAIL PROTECTED]>: I just created a new WOnderApplication on a new machine with a newly installed Eclipse and WOLips using the WOLips Wizard and am getting the following error when trying to run just the "Hello World" program that was generated, with no changes. Any ideas? Feb 27 05:33:31 Dummy[49473] ( ERXLogger.java:190) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException at er.extensions.ERXLogger.configureLogging( ERXLogger.java:190) at er.extensions.ERXLogger.configureLoggingWithSystemProperties ( ERXLogger.java:149) at er.extensions.ERXExtensions$Observer.finishedLaunchingApp ( ERXExtensions.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method ) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke( Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod (NSSelector.java:120 ) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod (NSNotificationCenter.java:601 ) at com.webobjects.foundation.NSNotificationCenter.postNotification ( NSNotificationCenter.java:545) at com.webobjects.foundation.NSNotificationCenter.postNotification ( NSNotificationCenter.java:559) at com.webobjects.appserver.WOApplication.run( WOApplication.java: 878) at er.extensions.ERXApplication.run(ERXApplication.java:281 ) at com.webobjects.appserver.WOApplication.main( WOApplication.java: 324) at er.extensions.ERXApplication.main( ERXApplication.java:50) at Application.main(Application.java:9 ) ___ 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/ildenae% 40gmail.com This email sent to [EMAIL PROTECTED] -- Daniele Corti AIM: S0CR4TE5 Messenger: [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/jerrywwalker% 40gmail.com This email sent to [EMAIL PROTECTED] -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems [EMAIL PROTECTED] 203 278-4085office ___ 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: New WOnderApplication won't start
I think these apps actually exist in two states, like subatomic particles, and are both running and not running until an observer (browser) observes them. Their probability spaces then collapse to either running or Exception (not running). At least, that's the way mine seem to behave. On Feb 27, 2007, at 8:17 AM, Steve Quirk wrote: On Tue, 27 Feb 2007, Mike Schrag wrote: Since this is report #482234 of the same two startup "problems", I just committed two changes to Wonder: 2) If you start a wonder app in development mode with WOAutoOpenInBrowser = false, a warning will appear at startup "You are running in development mode with WOAutoOpenInBrowser = false. No browser will open and it will look like the application is hung, but it's not. There's just not a browser opening automatically." A more existentialist message would have been appropriate: "A web application starts. No browser visits. Is it running?" - steve ___ 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/jerrywwalker% 40gmail.com This email sent to [EMAIL PROTECTED] -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems [EMAIL PROTECTED] 203 278-4085office ___ 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: Additional oracle data types?
Le 07-02-26 à 21:14, Ken Anderson a écrit : At the moment, I'm not setting a driver or plugin. Does anyone recommend something different? I donwloaded the latest drivers from Oracle... we're using ojdbc14.jar. We are using classes12.jar (9.2.06) here, works fine with Oracle Database 9i R2. On Feb 26, 2007, at 7:14 PM, Peter Vandoros wrote: It also depends on what the Oracle JDBC plug in removes from the jdbc2info as well. I found that the default MS SQL Server JDBC plug in was removing the ntext and co data types. Regards Peter Chuck Hill wrote: IIRC, it depends on what the JDBC driver advertises to EOF. You may want to check if there is an updated driver. Chuck On Feb 26, 2007, at 3:58 PM, Ken Anderson wrote: I'm not sure. For Sybase, I get a long list of datatypes... I'll try removing the jdbc2info and see what happens... Ken On Feb 26, 2007, at 6:28 PM, Mike Schrag wrote: Hmm .. In retrospect, you must have already switched adaptors to go to Oracle, so you should have already gone through that step. It's possible some of the data types just don't have standard JDBC equivalents? ms On Feb 26, 2007, at 6:12 PM, Mike Schrag wrote: If you either toss your jdbc2Info inside your connection dictionary or switch adaptors, that will probably cause EOM to requery the database for its data types. ms On Feb 26, 2007, at 6:07 PM, Ken Anderson wrote: WO friends, In trying to move a model from Sybase to Oracle, I've discovered that many datatypes that seem to be available on Oracle 10g are not in the pop-up in EOModeler. Is there a way to get the additional types available? Thanks, Ken ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects- [EMAIL PROTECTED]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com This email sent to [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/mschrag% 40mdimension.com This email sent to [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/lists% 40anderhome.com This email sent to [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/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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/peter% 40etechgroup.com.au This email sent to [EMAIL PROTECTED] --This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Peter Vandoros Software Engineer Etech Group Pty Ltd Level 3/21 Victoria St Melbourne VIC 3000 Australia Ph: +61 3 9639 9677 Fax: +61 3 9639 9577 -- IMPORTANT: This e-mail message and any attachments are confidential and may be privileged. If received in error, please reply to this message and destroy all copies and any attachments. You should check this message and any attachments for viruses or defects. Our liability is limited to resupplying any affected message or attachments. For more information about Etech Group, please visit us at http://www.etechgroup.com.au. ___ 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/lists% 40anderhome.com This email sent to [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/probert%40os.ca This email sent to [EMAIL PROTECTED
Re: New WOnderApplication won't start
OK, but when I go to the Sourceforge site, I don't see a version 3.1 of Wonder. Where can I get version 3.1? Thanks, jeff On Feb 27, 2007, at 6:09 AM, Daniele Corti wrote: That's because it has an old version of ERExtensions.framework Download the new version of Wonder (3.1) and in the properties menù of your app, edit the WOFramewors in the Java Build path and unselect EREXtensions, ERJar, and every Wonder framework, then click on add external jar and select the jar files in the Wonder frameworks you have downloaded. Maybe there some other ways to fix the problem, but, since I'm working with not updated machines, I prefer to build my app on a single version of Wonder. Bye. 2007/2/27, Jeff Schmitz < [EMAIL PROTECTED]>: I just created a new WOnderApplication on a new machine with a newly installed Eclipse and WOLips using the WOLips Wizard and am getting the following error when trying to run just the "Hello World" program that was generated, with no changes. Any ideas? Feb 27 05:33:31 Dummy[49473] ( ERXLogger.java:190) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException at er.extensions.ERXLogger.configureLogging( ERXLogger.java:190) at er.extensions.ERXLogger.configureLoggingWithSystemProperties ( ERXLogger.java:149) at er.extensions.ERXExtensions$Observer.finishedLaunchingApp ( ERXExtensions.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method ) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke( Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod (NSSelector.java:120 ) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod (NSNotificationCenter.java:601 ) at com.webobjects.foundation.NSNotificationCenter.postNotification ( NSNotificationCenter.java:545) at com.webobjects.foundation.NSNotificationCenter.postNotification ( NSNotificationCenter.java:559) at com.webobjects.appserver.WOApplication.run( WOApplication.java:878) at er.extensions.ERXApplication.run(ERXApplication.java:281 ) at com.webobjects.appserver.WOApplication.main( WOApplication.java: 324) at er.extensions.ERXApplication.main( ERXApplication.java:50) at Application.main(Application.java:9 ) ___ 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/ildenae% 40gmail.com This email sent to [EMAIL PROTECTED] -- Daniele Corti AIM: S0CR4TE5 Messenger: [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: New WOnderApplication won't start
On Tue, 27 Feb 2007, Mike Schrag wrote: Since this is report #482234 of the same two startup "problems", I just committed two changes to Wonder: 2) If you start a wonder app in development mode with WOAutoOpenInBrowser = false, a warning will appear at startup "You are running in development mode with WOAutoOpenInBrowser = false. No browser will open and it will look like the application is hung, but it's not. There's just not a browser opening automatically." A more existentialist message would have been appropriate: "A web application starts. No browser visits. Is it running?" - steve ___ 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: New WOnderApplication won't start
Since this is report #482234 of the same two startup "problems", I just committed two changes to Wonder: 1) I commented out that logging initialization exception because I think only Anjo and I even care about it, and only when it breaks. 2) If you start a wonder app in development mode with WOAutoOpenInBrowser = false, a warning will appear at startup "You are running in development mode with WOAutoOpenInBrowser = false. No browser will open and it will look like the application is hung, but it's not. There's just not a browser opening automatically." ms On Feb 27, 2007, at 7:12 AM, Timo Hoepfner wrote: Hi, in more recebt version of wonder, this "exception" reads: Feb 27 13:08:20 N/A[N/A] (ERXLogger.java:189) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException: This is not a real exception. It is just to show you where logging was initialized. at er.extensions.ERXLogger.configureLogging(ERXLogger.java:189) at er.extensions.ERXLogger.configureLoggingWithSystemProperties (ERXLogger.java:151) ... So possibly all is well. Maybe "-WOAutoOpenInBrowser" is set to false (that was the default in wolips last time I checked), so that the app is running, but not opening a browser window. Timo Am 27.02.2007 um 12:48 schrieb Jeff Schmitz: I just created a new WOnderApplication on a new machine with a newly installed Eclipse and WOLips using the WOLips Wizard and am getting the following error when trying to run just the "Hello World" program that was generated, with no changes. Any ideas? Feb 27 05:33:31 Dummy[49473] (ERXLogger.java:190) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException at er.extensions.ERXLogger.configureLogging(ERXLogger.java:190) at er.extensions.ERXLogger.configureLoggingWithSystemProperties (ERXLogger.java:149) at er.extensions.ERXExtensions$Observer.finishedLaunchingApp (ERXExtensions.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod (NSSelector.java:120) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod(NSNotificationCenter.java:601) at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:545) at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:559) at com.webobjects.appserver.WOApplication.run(WOApplication.java: 878) at er.extensions.ERXApplication.run(ERXApplication.java:281) at com.webobjects.appserver.WOApplication.main(WOApplication.java: 324) at er.extensions.ERXApplication.main(ERXApplication.java:50) at Application.main(Application.java:9) ___ 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/th-dev% 40onlinehome.de This email sent to [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/mschrag% 40mdimension.com This email sent to [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: New WOnderApplication won't start
Hi, in more recebt version of wonder, this "exception" reads: Feb 27 13:08:20 N/A[N/A] (ERXLogger.java:189) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException: This is not a real exception. It is just to show you where logging was initialized. at er.extensions.ERXLogger.configureLogging(ERXLogger.java:189) at er.extensions.ERXLogger.configureLoggingWithSystemProperties (ERXLogger.java:151) ... So possibly all is well. Maybe "-WOAutoOpenInBrowser" is set to false (that was the default in wolips last time I checked), so that the app is running, but not opening a browser window. Timo Am 27.02.2007 um 12:48 schrieb Jeff Schmitz: I just created a new WOnderApplication on a new machine with a newly installed Eclipse and WOLips using the WOLips Wizard and am getting the following error when trying to run just the "Hello World" program that was generated, with no changes. Any ideas? Feb 27 05:33:31 Dummy[49473] (ERXLogger.java:190) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException at er.extensions.ERXLogger.configureLogging(ERXLogger.java:190) at er.extensions.ERXLogger.configureLoggingWithSystemProperties (ERXLogger.java:149) at er.extensions.ERXExtensions$Observer.finishedLaunchingApp (ERXExtensions.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod (NSSelector.java:120) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod(NSNotificationCenter.java:601) at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:545) at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:559) at com.webobjects.appserver.WOApplication.run(WOApplication.java:878) at er.extensions.ERXApplication.run(ERXApplication.java:281) at com.webobjects.appserver.WOApplication.main(WOApplication.java: 324) at er.extensions.ERXApplication.main(ERXApplication.java:50) at Application.main(Application.java:9) ___ 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/th-dev% 40onlinehome.de This email sent to [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: New WOnderApplication won't start
That's because it has an old version of ERExtensions.framework Download the new version of Wonder (3.1) and in the properties menù of your app, edit the WOFramewors in the Java Build path and unselect EREXtensions, ERJar, and every Wonder framework, then click on add external jar and select the jar files in the Wonder frameworks you have downloaded. Maybe there some other ways to fix the problem, but, since I'm working with not updated machines, I prefer to build my app on a single version of Wonder. Bye. 2007/2/27, Jeff Schmitz <[EMAIL PROTECTED]>: I just created a new WOnderApplication on a new machine with a newly installed Eclipse and WOLips using the WOLips Wizard and am getting the following error when trying to run just the "Hello World" program that was generated, with no changes. Any ideas? Feb 27 05:33:31 Dummy[49473] (ERXLogger.java:190) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException at er.extensions.ERXLogger.configureLogging(ERXLogger.java:190) at er.extensions.ERXLogger.configureLoggingWithSystemProperties( ERXLogger.java:149) at er.extensions.ERXExtensions$Observer.finishedLaunchingApp( ERXExtensions.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java :120) at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod( NSNotificationCenter.java:601) at com.webobjects.foundation.NSNotificationCenter.postNotification( NSNotificationCenter.java:545) at com.webobjects.foundation.NSNotificationCenter.postNotification( NSNotificationCenter.java:559) at com.webobjects.appserver.WOApplication.run(WOApplication.java:878) at er.extensions.ERXApplication.run(ERXApplication.java:281) at com.webobjects.appserver.WOApplication.main(WOApplication.java:324) at er.extensions.ERXApplication.main(ERXApplication.java:50) at Application.main(Application.java:9) ___ 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/ildenae%40gmail.com This email sent to [EMAIL PROTECTED] -- Daniele Corti AIM: S0CR4TE5 Messenger: [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
New WOnderApplication won't start
I just created a new WOnderApplication on a new machine with a newly installed Eclipse and WOLips using the WOLips Wizard and am getting the following error when trying to run just the "Hello World" program that was generated, with no changes. Any ideas? Feb 27 05:33:31 Dummy[49473] (ERXLogger.java:190) DEBUG org.apache.log4j.Logger - java.lang.RuntimeException at er.extensions.ERXLogger.configureLogging(ERXLogger.java:190) at er.extensions.ERXLogger.configureLoggingWithSystemProperties (ERXLogger.java:149) at er.extensions.ERXExtensions$Observer.finishedLaunchingApp (ERXExtensions.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.webobjects.foundation.NSSelector._safeInvokeMethod (NSSelector.java:120) at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod (NSNotificationCenter.java:601) at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:545) at com.webobjects.foundation.NSNotificationCenter.postNotification (NSNotificationCenter.java:559) at com.webobjects.appserver.WOApplication.run(WOApplication.java:878) at er.extensions.ERXApplication.run(ERXApplication.java:281) at com.webobjects.appserver.WOApplication.main(WOApplication.java:324) at er.extensions.ERXApplication.main(ERXApplication.java:50) at Application.main(Application.java:9) ___ 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