Re: Where does my JDBC Driver go

2006-12-19 Thread Tom Jones

Thanks to all for the help. I've got it working now, I wish I had some
idea what was wrong...The way I resolved this was to switch back to
using XCode's EModeler and setting the connection info from there, I
switch back to the classic EOModeler, and it worked. It looked like
at some point I had put some invalid information in the Connection
Info, and for some reason EOModeler was unable to set the value back
(I believe the driver name was wrong (and unnecessary as has been
pointed out). Anyway, issue resolved, perhaps by magic...

Thanks, and Happy Holidays to all.

On 12/18/06, Chuck Hill [EMAIL PROTECTED] wrote:

I don't know how much I would trust the accuracy of that error
message.  Your app works OK, but EOModeler can't browse the data?

Doesn't MySQL need a EOF connector (plugin) too?  That may be what it
is complaining about.  It might also be a class loader order issue.
If you have been putting the JDBC driver all over trying to get this
to work, try removing it from everywhere except /Library/Java/
Extensions.


On Dec 16, 2006, at 10:39 AM, Tom Jones wrote:

 I've tried both locations, and I am still having problems. Here's the
 message I get

 JDBC connection failed for driver :'com.mysql.jdbc.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.zip:/Users/tom/Library/Java:/Library/Java:/System/
 Library/Java:/Network/Library/Java:/System/Library/Frameworks/
 JavaVM.framework/Classes/classes.jar:/System/Library/Frameworks/
 JavaVM.framework/Classes/ui.jar:/Developer/Applications/WebObjects/
 EOModeler.app/Contents/Resources/Java/eomodeler.zip:/System/Library/
 Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/
 14compatibility.jar

 My previous email indicted I was running XCode, true, but I am also
 running EOModeler, which is where the problem lies.

 Thanks,

 Tom

 On 12/13/06, Art Isbell [EMAIL PROTECTED] wrote:
 On Dec 13, 2006, at 12:56 AM, Gordon Maynard wrote:

  Try /library/java/extensions

 Or for WebObjects-only jars of any kind including JDBC, /
 Library/
 WebObjects/Extensions.

  On 13/12/06 10:08, Tom Jones [EMAIL PROTECTED] wrote:
 
  What is the correct location for JDBC drivers in WebObjects? I am
  running the latest version of XCode.

 Aloha,
 Art

  ___
 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/tom.m.jones%
 40gmail.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/archive%40mail-archive.com

This email sent to archive@mail-archive.com


Multiple Calls to Bound Action in Request-Response

2006-12-19 Thread Carter Wojcik
Hi All -

I have a page containing a custom component
(TabComponent). The TabComponent contains an
ObjectComponent.  The ObjectComponent contains a
ButtonComponent.  The TabComponent is wrapped in a
conditional.

When the user wants to add a record they push a
button, which flags the conditional as true and
displays the TabComponent.  The user selects the
objects to add from a list and then presses an 'Add'
button which calls a method (addAction) located on the
page.  Inside the addAction, the conditional is set to
false, to hide the TabComponent once objects are
added.

Initially I was having issues with synchronizing the
conditional on the page, but following advice from
Chuck's book and overriding appendToResponse with an
additional boolean has solved that problem.

Now the problem seems to be that my addAction is being
called multiple times in the Request-Response loop. 
This causes the conditional to be set to false and the
TabComponent is hidden.  I would only like the
TabComponent to be hidden under certain circumstances,
such as 'Cancel' button pressed or 'Add' button
pressed.

Is there an alternate way to limit when the addAction
is called? Or a different place to put my logic so
that the addAction is not always called?

Thanks for the help.

Carter

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 ___
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


java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding

2006-12-19 Thread Xia, Wen
We are having this problem at work. Thank you for your advice.
Wen

From: Gamache, Don [EMAIL PROTECTED]
Date: Tue, 19 Dec 2006 07:22:33 -0800
To: WebObjects Dev Apple webobjects-dev@lists.apple.com
Conversation: java.io.UnsupportedEncodingException:
NSMacOSRomanStringEncoding
Subject: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding


I have a WebObjects web application with about 10 pages running on a Window
machine.  When I first brought up the second page I got this error:
java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding .   When I
restarted the application I got past page 2 OK but the error
java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding came up
again.  I restarted and got past page 3 OK but page 4 now had the same
error.  Restarted and page 4 OK but now page 5 has error.  Does anyone know
why the first time these pages come up they have this error?  Thanks.

Don



 ___
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: Multiple Calls to Bound Action in Request-Response

2006-12-19 Thread Chuck Hill
See page 206, Manual Synchronization, bullet point 3.  I think that  
is what you are hitting and the solutions is also found in that section.


Chuck

On Dec 19, 2006, at 8:43 AM, Carter Wojcik wrote:


Hi All -

I have a page containing a custom component
(TabComponent). The TabComponent contains an
ObjectComponent.  The ObjectComponent contains a
ButtonComponent.  The TabComponent is wrapped in a
conditional.

When the user wants to add a record they push a
button, which flags the conditional as true and
displays the TabComponent.  The user selects the
objects to add from a list and then presses an 'Add'
button which calls a method (addAction) located on the
page.  Inside the addAction, the conditional is set to
false, to hide the TabComponent once objects are
added.

Initially I was having issues with synchronizing the
conditional on the page, but following advice from
Chuck's book and overriding appendToResponse with an
additional boolean has solved that problem.

Now the problem seems to be that my addAction is being
called multiple times in the Request-Response loop.
This causes the conditional to be set to false and the
TabComponent is hidden.  I would only like the
TabComponent to be hidden under certain circumstances,
such as 'Cancel' button pressed or 'Add' button
pressed.

Is there an alternate way to limit when the addAction
is called? Or a different place to put my logic so
that the addAction is not always called?

Thanks for the help.

Carter

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 ___
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


Performance help

2006-12-19 Thread Mehul Pattni

Hi,

I'm having major performance issues during heavy load to the system.   
I'm not getting out of memory but getting the famous  
java.net.SocketException: Broken pipe


These are my additional arguments in java monitor

maxHeapSize=10
-WODirectConnectEnabled false


Here is what top reports.  Any help would be greatly appreciated.

Cheers,
Mehul







 ___
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: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding

2006-12-19 Thread Dov Rosenberg
Make sure that the localized version of the JDK/jre charset.jar is
installed. Otherwise you will get this exception.


On 12/19/06 11:48 AM, Xia, Wen [EMAIL PROTECTED] wrote:

 We are having this problem at work. Thank you for your advice.
 Wen
 
 From: Gamache, Don [EMAIL PROTECTED]
 Date: Tue, 19 Dec 2006 07:22:33 -0800
 To: WebObjects Dev Apple webobjects-dev@lists.apple.com
 Conversation: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding
 Subject: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding
 
 
 I have a WebObjects web application with about 10 pages running on a Window
 machine.  When I first brought up the second page I got this error:
 java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding .   When I
 restarted the application I got past page 2 OK but the error
 java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding came up
 again.  I restarted and got past page 3 OK but page 4 now had the same error.
 Restarted and page 4 OK but now page 5 has error.  Does anyone know why the
 first time these pages come up they have this error?  Thanks.
 
 Don
 
 
 
 
  ___
 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/drosenberg%40inquira.com
 
 This email sent to [EMAIL PROTECTED]


-- 
Dov Rosenberg
Inquira Inc
370 Centerpointe Circle, ste 1178
Altamonte Springs, FL 32701
(407) 339-1177 x 102
(407) 339-6704 (fax)
(407) 310-8316 (cell)
[EMAIL PROTECTED]
AOL IM: dovrosenberg


 ___
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: java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding

2006-12-19 Thread Xia, Wen
Thank you all for your help. This is what we did which seems to solve the
problem:

Edit the file ...YourApp.woa\Contents\Windows\CLSSPATH.TXT

And change the line
# JVM == java

To read something like (give the explicit path to JVM)
# JVM == c:\jdk1.4.2_04\jre\bin\java.exe

-- Wen


On 12/19/06 9:52 AM, Art Isbell [EMAIL PROTECTED] wrote:

 On Dec 19, 2006, at 6:48 AM, Xia, Wen wrote:
 
 I have a WebObjects web application with about 10 pages running on a Window
 machine.  When I first brought up the second page I got this error:
  java.io.UnsupportedEncodingException: NSMacOSRomanStringEncoding .
 
 This exception can be thrown if the Java JRE version is not the multilanguage
 version.  However, it appears that at this time, the only Windows download
 choice since Java 1.4 is the multilanguage version.  If you're running a Java
 version earlier than 1.4, you might have the U.S. English version installed
 which is insufficient.
 
  
 Aloha,
  
 Art
   
 
 
 
  ___
 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/wen.xia%40dof.ca.gov
 
 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: D2WS Fetch Specs

2006-12-19 Thread Jerry W. Walker

Hi, Mat,

If you built the fetch spec as a named fetch specification in the  
EOModel, then take a look at the EOModeller User Guide's section  
Using Named Fetch Specifications. You can find it here:


http://developer.apple.com/documentation/WebObjects/UsingEOModeler/ 
8WorkingWithFetchSpecifications/chapter_8_section_7.html#//apple_ref/ 
doc/uid/TP30001018-CH208-BABCCIFH


Or you can use Frames by going to the document with this URL:

http://developer.apple.com/documentation/WebObjects/UsingEOModeler/ 
index.html


and clicking on the Working With Fetch Specifications reveal  
triangle in the left nav bar to see the section Using Named Fetch  
Specifications.


Regards,
Jerry

On Dec 18, 2006, at 12:39 PM, [EMAIL PROTECTED] wrote:


Hello,

I've read the Apple docs on Direct To WebServices and find that EO  
entities with fetch specs are supposed to have those fetches  
available in D2WS however it doesn't say how or were.  I made a  
model, added fetches in EO and used it in D2WS but I can't find  
where these specs are avaiable either in the WebServices assistant  
or in the project.  Could someone please explain how I can access  
and use these fetches?


Thanks,
--Mat
__ 
__
Check out the new AOL.  Most comprehensive set of free safety and  
security tools, free access to millions of high-quality videos from  
across the web, free AOL Mail and more.


___
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: Performance help

2006-12-19 Thread Chuck Hill


On Dec 19, 2006, at 11:44 AM, Mehul Pattni wrote:


Hi,

I'm having major performance issues during heavy load to the  
system.  I'm not getting out of memory but getting the famous  
java.net.SocketException: Broken pipe


That is not a problem.  That is a symptom of an application that is  
too slow for the load it is under.  Memory starvation can cause that,  
as can about 10,000 other things.




These are my additional arguments in java monitor

maxHeapSize=10


WO 4.5?



-WODirectConnectEnabled false


Here is what top reports.  Any help would be greatly appreciated.


The  and  is a symptom of an application that is _really_ too  
slow for the load it is under.  :-)



You have two choices:

1. Optimize your application
2. Run more instances and / or buy more hardware


Chuck


--

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


NSTimestamp problem

2006-12-19 Thread Dan Faber



I notice the sun tool says:
 The java.vendor property value must be Sun Microsystems Inc..
so I bet it won't work for Apple JVMs. It didn't appear that Apple
had a JVM release that met the dates shown on the sun page. Maybe
we are stuck?



Thanks to all for the VERY timely replies to my problem. Art is  
correct that compiled timezone files are kept in /System/Library/ 
Frameworks/

JavaVM.framework/Versions/1.5.0/Home/lib/zi.

Apparently the file for my area Denver has been fixed in a newer  
version of the apple java. I downloaded that version and copied the  
Denver file from the zi directory into my 1.5.0 zi directory. Now  
the problem is gone (so far) on the development system, but still  
does not work correctly on the deployment system :(


Still searching for a reason...

Thanks to all,

Dan Faber


___
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