RE: EOModeler on Windows XP problem

2006-05-15 Thread Sigurður Anton Ólafsson











The event logs flag an error for EOModeler.exe:



system error 2 

(The system cannot find the file
specified.): 

fastipc_connect(Apple Mach Emulation
Daemon v2.0).







Also, none of the following processes are
running:



pbs.exe

nmserver.exe

machd.exe





Do you know how I could get them to work?







Best regards,

Siggi Olafsson.











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 12.05.2006 15:54
To: Sigurður Anton Ólafsson
Cc: Hugi Þórðarson;
webobjects-dev@lists.apple.com
Subject: Re: EOModeler on Windows
XP problem






Siggi
wrote on 05/12/2006 07:05:24 AM:

 Im having a problem starting up EOModeler on
Windows XP. 
 

 It
simply wont open. 
 

 Is
there a genious out there who can help me figure a way to fix this?


I'm no
genius, but I can give some hints and tips. First, check the System event logs.
EOModeller requires that certain Services be working, like the Apple Mach
Daemon, and the Apple Netname Server. Check your services control panel to
makes sure they are working, and see if the event logs are showing any errors.
Also, check your Task Manager to make sure you have pbs.exe, WindowServer.exe,
nmserver.exe, and machd.exe running. If any of these are not working properly,
none of the Apple apps will run (EOModeller, WOBuilder, etc.). Usually they
fail to launch silently except sometimes an entry in the System event log.


HTH,

Logan










Fyrirvari á tölvupósti / e-mail disclaimer
http://www.us.is/page/fyrirvari
 ___
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: Questions from a Neophyte

2006-05-15 Thread Piotr Intres


1) What's the difference between Mac OS X Server and the standard OS X 
Client (desktop)?  - I'm using Tiger (10.4.6).
  I understand that WebObjects runs on the Server.  But can I run 
WebObjects on my desktop (client)?


There is also a point about licencing. Using OS X you receive licence 
for commercial development and not supported non-OS X deployment (e.g. 
Linux). With OS X Server you have also a licence for fully supported 
deployment.


--
Piotr Intres
Power Media sp. z o.o.
mob.  +48 606 327 413

___
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: EOModeler on Windows XP problem

2006-05-15 Thread Chuck Hill


On May 15, 2006, at 4:13 AM, Sigurður Anton Ólafsson wrote:

The event logs flag an error for EOModeler.exe:

system error 2

(The system cannot find the file specified.):

fastipc_connect(Apple Mach Emulation Daemon v2.0).

Also, none of the following processes are running:

pbs.exe

nmserver.exe

machd.exe


machd is the Apple Mach Emulation Daemon, pbs is the Paste Board  
Server, I forget what the other one is.  They should be running as  
services.  Check the services control panel and see if they are  
registered.  If they are registered, then start them and set them to  
autostart.



Do you know how I could get them to work?
There should be instructions on how to install these manually, but it  
has been years since I needed to do so and I forget where they are in  
the install.  Also, there are 3rd party programs that will install an  
exe as a service.  You could try using one of those.


Or just say screw Windows and buy a Mac!  :-P


Chuck

--
Coming in 2006 - an introduction to web applications using WebObjects  
and Xcode http://www.global-village.net/wointro


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: EOModeler on Windows XP problem

2006-05-15 Thread Ken Anderson
On May 15, 2006, at 11:33 AM, Chuck Hill wrote:machd is the Apple Mach Emulation Daemon, pbs is the Paste Board Server, I forget what the other one is.  They should be running as services.  Check the services control panel and see if they are registered.  If they are registered, then start them and set them to autostart. nmserver stands for Net Message Server, and it handles communications.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: EOModeler on Windows XP problem

2006-05-15 Thread logan . allred

  The event logs flag an error for EOModeler.exe:
 
  system error 2
 
  (The system cannot find the file specified.):
 
  fastipc_connect(Apple Mach Emulation Daemon v2.0).
 
  Also, none of the following processes are running:
 
  pbs.exe
 
  nmserver.exe
 
  machd.exe
 
 
 machd is the Apple Mach Emulation Daemon, pbs is the Paste Board 
 Server, I forget what the other one is. They should be running
as 
 services. Check the services control panel and see if they are

 registered. If they are registered, then start them and set
them to 
 autostart.
 
  Do you know how I could get them to work?
 There should be instructions on how to install these manually, but
it 
 has been years since I needed to do so and I forget where they are
in 
 the install. Also, there are 3rd party programs that will install
an 
 exe as a service. You could try using one of those.

It's been a long time since I had this problem, but
I'm pretty sure that uninstalling and re-installing WebObjects fixed the
problem for me. I recall that I am very careful when running the updates
to 5.2.x that I turn off all of the services first, the run the updaters,
then turn them all back on as Automatic. You may also want to verify WO
is working after your initial 5.2 install, as I've had trouble with the
update installers in the past.

 Or just say screw Windows and buy a Mac! :-P

:-D. A highly desirable solution. Fortunately, I have
my PowerBook for my non-corporate work. At least there's WOLips so I can
pretend ProjectBuilder/Win doesn't even exist. I don't think I could survive
running ProjectBuilder on a daily basis.

Logan

 ___
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

refreshing the defaultEditingContext

2006-05-15 Thread Dev WO

Hi guys,
I've been trying to optimize my application a little as I had some  
RSS feed which was actually creating a session and finally as RSS  
readers update themselves every x minutes, I just couldn't softly  
restart the instance.
So I moved the RSS component using the defaultSharedEditingContext,  
making sure no session was created. So this part was ok so far.
But trying it I saw that the data from the  
defaultSharedEditingContext didn't update...
I can afford some delay for the update like minutes, but it's been 5  
hours now:(


How should I make the sharedEC to update itself? The data are being  
edited/added using another WOApplication, so maybe the other  
application could call the sharedEC to make it refresh...


Or do:
setRefreshesRefetchedObjects(true);
on the fetch specification should work?

Thanks a lot for any tip:)

Xavier


___
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: refreshing the defaultEditingContext

2006-05-15 Thread Art Isbell

On May 15, 2006, at 8:57 AM, Dev WO wrote:


How should I make the sharedEC to update itself?


	The shared editing context is read-mostly; i.e., it isn't designed  
to be updated frequently.  But updating can be done.  See http:// 
developer.apple.com/documentation/LegacyTechnologies/WebObjects/ 
WebObjects_4.5/System/Documentation/Developer/WebObjects/DeltaDoc/ 
EOF.html#CBGCHAIA for details.


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/archive%40mail-archive.com

This email sent to archive@mail-archive.com


Re: refreshing the defaultEditingContext

2006-05-15 Thread Robert Walker
I wanna make sure I understand this correctly.  You were originally using the session().defaultEditingContext() to fetch data for your RSS feed.  I am assuming you are accessing the RSS feed from a direct action, so when accessing session() you are getting an unneeded session for each request.You then decided to use the defaultSharedEditingContext in place of the session().defaultEditingContext() to prevent the creation of a new session.If this is accurate them my first question would be: Why did you not create a new instance of EOEditingContext and use that instead of session().defaultEditingContext()?  This will prevent creating a new session for each request and will not have the issues related to the shared editing context.You should also examine the documentation on "Fetching Data  Ensuring Fresh Data" in this document:http://developer.apple.com/documentation/WebObjects/Enterprise_Objects/index.htmlExample:	public WOActionResults myRSSFeedAction() {		EOEditingContext ec = new EOEditingContext();		ec.lock();		/* Fetch your data and generate RSS feed here */		ec.unlock();	}On May 15, 2006, at 2:57 PM, Dev WO wrote:Hi guys,I've been trying to optimize my application a little as I had some RSS feed which was actually creating a session and finally as RSS readers update themselves every x minutes, I just couldn't softly restart the instance.So I moved the RSS component using the defaultSharedEditingContext, making sure no session was created. So this part was ok so far.But trying it I saw that the data from the defaultSharedEditingContext didn't update...I can afford some delay for the update like minutes, but it's been 5 hours now:(How should I make the sharedEC to update itself? The data are being edited/added using another WOApplication, so maybe the other application could "call" the sharedEC to make it refresh...Or do:setRefreshesRefetchedObjects(true);on the fetch specification should work?Thanks a lot for any tip:)Xavier ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Re: WebObjects Licensing

2006-05-15 Thread Randy Wigginton
This is the method I am about to attempt... copying the libraries from my mac system to a linux box. The licensing situation (and the voluminous discussions here) seem to say that it is OK to do this.Has anyone else done this?  
On 2/6/06, Cliff Tuel [EMAIL PROTECTED] wrote:
 Is the expectation from Applethat the process we would follow (should we want to wotaskd deployon non MacOS-X boxes) is to pick the pieces out from there and copythem onto the foreign deployment host?
We don't ship a non-OS X installer, so there's no other way.Maybe athird-party opportunity?--Cliff Tuel . http://apple.com/services/technicalsupport
 ___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/cawineguy%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/archive%40mail-archive.com

This email sent to archive@mail-archive.com

RE: NSTimestampFormatter DECREMENTING 'day' on each pass

2006-05-15 Thread apl

Hello Bill;

I wonder if this could be related to timezone issues?  I tend to  
force my JVM and DB into GMT and then present the data to the user in  
their own timezone using formatters that are instantiated in the  
session -- there has been some recent discussion on this so maybe  
look back in the list to get some idea about what to do in this area.


Regards;


I have a field for date of birth with uses the following formatter
(below).  If I make a new entry, ie. 02/13/1913 everything works  
fine.
However, when I resubmit the form, not changing the value (perhaps  
to change
other values) the date mysteriously decrements, do the example  
below will

become 02/12/1913.



___
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: NSTimestampFormatter DECREMENTING 'day' on each pass

2006-05-15 Thread WebObjects
Would this mean I need to set some kind of environmental variable to tell it
Pacific Daylight Time so it's not defaulting to some time zone I'm unaware
of?  I'm not clear on where or how to bind the field submitted to a
timezone.

I output the date it's sending to the EC to save, and get 1919-02-24
08:00:00 Etc/GMT - showing 'GMT' as the timezone.  I'm in Los Angeles - a
far way from the GMT.

I appreciate the help!


on 5/15/06 14:06, Randy Wigginton at [EMAIL PROTECTED] wrote:

 This sounds like a timezone issue.  Display the timezone of the date, and
 which timezone you are in, and also include the hours.  Most likely it is
 rounding down a day each time.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of WebObjects
 Sent: Monday, May 15, 2006 5:02 PM
 To: WebObjects-List Apple
 Subject: NSTimestampFormatter DECREMENTING 'day' on each pass
 
 I have a field for date of birth with uses the following formatter
 (below).  If I make a new entry, ie. 02/13/1913 everything works fine.
 However, when I resubmit the form, not changing the value (perhaps to change
 other values) the date mysteriously decrements, do the example below will
 become 02/12/1913.
 
 clueless,
 -Bill
 
 protected static final dateFormatter = new NSTimestampFormatter(%m/%d/%Y);
 
 public NSTimestampFormatter dateFormatter() {
 return Application.dateFormatter;
 }
 
 
  ___
 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/cawineguy%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/archive%40mail-archive.com

This email sent to archive@mail-archive.com


Re: NSTimestampFormatter DECREMENTING 'day' on each pass

2006-05-15 Thread Art Isbell

On May 15, 2006, at 11:25 AM, WebObjects wrote:


I output the date it's sending to the EC to save, and get 1919-02-24
08:00:00 Etc/GMT - showing 'GMT' as the timezone.  I'm in Los  
Angeles - a

far way from the GMT.


	1919-02-24 08:00:00 Etc/GMT may have been 1919-02-23 in PST assuming  
that PST existed in 1919.  Dates and time zones are such nasty  
concepts, especially in the distant past.  Because the JDBC version  
used by EOF doesn't support a datetime with timezone data type, all  
datetime values are stored in GMT.  So you'll need to decide how you  
want to display dates and do the time zone adjustments yourself.


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/archive%40mail-archive.com

This email sent to archive@mail-archive.com


Re: WebObjects Licensing

2006-05-15 Thread apl

Hello;

After some careful consideration, I decided it would be easier to  
deploy using servlets into Tomcat.  This has worked OK and I have  
made some notes on my website as a PDF around this that you may find  
useful.


cheers.

his is the method I am about to attempt... copying the libraries  
from my mac system to a linux box.  The licensing situation (and  
the voluminous discussions here)  seem to say that it is OK to do  
this.


 Is the expectation from Apple  that the process we would follow  
(should we
 want to wotaskd deploy  on non MacOS-X boxes) is to pick the  
pieces out from

 there and copy  them onto the foreign deployment host?

We don't ship a non-OS X installer, so there's no other way.  Maybe a
third-party opportunity?


___
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: NSTimestampFormatter DECREMENTING 'day' on each pass

2006-05-15 Thread WebObjects
YUCK!  Are you saying that if a user is entering a date that I have to
relate what time zone my server is in, vs. GMT, and ensure that it always
corresponds?  This does sound nasty.

Just to be certain I understand...  If I submit a date, and 'today' isn't
the same day as it is in 'GMT', then my submission will be adjusted
accordingly, UNLESS I send GMT along with it?

Why do I feel like I just confused myself?  And why do I editorialize?

-Bill


on 5/15/06 14:32, Art Isbell at [EMAIL PROTECTED] wrote:

 On May 15, 2006, at 11:25 AM, WebObjects wrote:
 
 I output the date it's sending to the EC to save, and get 1919-02-24
 08:00:00 Etc/GMT - showing 'GMT' as the timezone.  I'm in Los
 Angeles - a
 far way from the GMT.
 
 1919-02-24 08:00:00 Etc/GMT may have been 1919-02-23 in PST assuming
 that PST existed in 1919.  Dates and time zones are such nasty
 concepts, especially in the distant past.  Because the JDBC version
 used by EOF doesn't support a datetime with timezone data type, all
 datetime values are stored in GMT.  So you'll need to decide how you
 want to display dates and do the time zone adjustments yourself.
 
 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/webobjects%40concyse.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: NSTimestampFormatter DECREMENTING 'day' on each pass

2006-05-15 Thread Ken Anderson

It really doesn't have to be traumatic :)

You can search through the mailing list - there have been numerous  
discussions in the past.  What's important is that the timezone  
you're using consistent.


Most importantly, EOF has an attribute that I always set on attributes:

serverTimeZone = GMT;

I'm not sure what this defaults to anymore, but I find it useful to  
make sure EOF is always looking at dates as being in GMT.  Also, if  
there's something that I always want to be a date, I use this code:


GregorianCalendar cal = new 
GregorianCalendar();
cal.setTime(sourceDateTime);
int year = 
cal.get(GregorianCalendar.YEAR);
int dayOfMonth = 
cal.get(GregorianCalendar.DAY_OF_MONTH);
int month = 
cal.get(GregorianCalendar.MONTH);
	NSTimestamp outputDate = new NSTimestamp(year, month+1,  
dayOfMonth, 0, 0, 0, TimeZone.getTimeZone(GMT));



I make sure that be default, the entire WO app is thinking in GMT:

TimeZone.setDefault(TimeZone.getTimeZone(GMT));
NSTimeZone.setDefault(TimeZone.getTimeZone(GMT));

Lastly, if I'm doing something where users need to see dates and  
times, I always like them to see the date and time in their own time  
zone.  To do that, I have some javascript that determines the time  
zone of the user's computer:


var msie = navigator.userAgent.indexOf(MSIE);
var now = new Date();
var clientTimeZoneOffset = now.getTimezoneOffset(); // = what browser  
thinks is TZ; but

// MS IE version 3 gives wrong sign of TZ
// MSIE 4.0b2 shifts TZ by -1 hour
// Any other problems?

if (clientTimeZoneOffset) {
  if (msie  -1) {
if (navigator.userAgent.substring(msie+5,msie+6) = 3) {
  clientTimeZoneOffset *= -1;
} else {
  if (navigator.userAgent.indexOf(4.0b2)  -1) {
clientTimeZoneOffset += 60;
  }
}
  }
  document.write('input type=hidden name=x-clientTimeZoneOffset  
value=' + clientTimeZoneOffset * 60 * -1 + ' /');

}

and places a new element in the header.  I put this javascript on an  
early page, like the login page.  I then grab the header and set a  
formatter in the user's session for their own time zone.


I realize there are some serious machinations here, but all in all,  
it works and people can use the site from anywhere on the planet and  
see the right time.


Ken



On May 15, 2006, at 5:39 PM, WebObjects wrote:


YUCK!  Are you saying that if a user is entering a date that I have to
relate what time zone my server is in, vs. GMT, and ensure that it  
always

corresponds?  This does sound nasty.

Just to be certain I understand...  If I submit a date, and 'today'  
isn't

the same day as it is in 'GMT', then my submission will be adjusted
accordingly, UNLESS I send GMT along with it?

Why do I feel like I just confused myself?  And why do I editorialize?

-Bill


on 5/15/06 14:32, Art Isbell at [EMAIL PROTECTED] wrote:


On May 15, 2006, at 11:25 AM, WebObjects wrote:

I output the date it's sending to the EC to save, and get  
1919-02-24

08:00:00 Etc/GMT - showing 'GMT' as the timezone.  I'm in Los
Angeles - a
far way from the GMT.


1919-02-24 08:00:00 Etc/GMT may have been 1919-02-23 in PST assuming
that PST existed in 1919.  Dates and time zones are such nasty
concepts, especially in the distant past.  Because the JDBC version
used by EOF doesn't support a datetime with timezone data type, all
datetime values are stored in GMT.  So you'll need to decide how you
want to display dates and do the time zone adjustments yourself.

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/webobjects% 
40concyse.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


XMLserializing with NSData, need Help !

2006-05-15 Thread Amedeo Mantica
hello, i got this error during deserialization:java.lang.ClassCastException: cannot assign instance of java.lang.String to field imageGallery.fileData of type com.webobjects.foundation.NSData in instance of imageGallerySerialization works fine, if i see the XML file i got correct class definitions... object id="14" ignoreEDB="1" key="fileData"                    class flag="3" id="12"                        name="com.webobjects.foundation.NSData" suid="-6138488451902188317"                        field name="bytes" type="base64"/                    /class                    array field="bytes" id="16" ignoreEDB="1"                        length="52598" type="base64"/9j/4AAQSkZJRgABAQAAAQABAAD/7QAcUGhvdG9zaG9wIDMuMAA4QklNBAQAAAD/4gvwSUNDX1BST0ZJTEUAAQEAAAvgYXBwbAIAAABtbnRyUkdCIFhZWiAH1gAEABUAEwAOAAlhY3NwQVBQTAAA9tYAAQDTLWFwcGxIOM+wvg2Igsz6gRKXUmO4AA1yWFlaAAABIBRnWFlaAAABNBRiWFlaAAABSBR3dHB0AAABXBRjaGFkAAABcCxyVFJDAAABnA5nVFJDAAABrA5iVFJDAAABvA52Y2d0AAABzAAABhJuZGlbut in the deserializing i got error...this is the imageGallery class writeObject method:    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {		NSXMLOutputStream xml_stream = (NSXMLOutputStream)out;		xml_stream.writeObject(fileName(),"fileName");		xml_stream.writeObject(fileMime(),"fileMime");		xml_stream.writeObject(fileData(),"fileData");    }I need to implement a readObject method? I sincerely don't know how tonote: I don't know if this is important, the class imageGallery is not an EO database class, I wrote the class.can you help me??thanks! ___
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: NSTimestampFormatter DECREMENTING 'day' on each pass

2006-05-15 Thread WebObjects
I did scour the archives before asking - all roads lead to the same
unanswered question... How is an EOF attribute like  serverTimeZone = GMT;
set?


on 5/15/06 15:01, Ken Anderson at [EMAIL PROTECTED] wrote:

 It really doesn't have to be traumatic :)
 
 You can search through the mailing list - there have been numerous
 discussions in the past.  What's important is that the timezone
 you're using consistent.
 
 Most importantly, EOF has an attribute that I always set on attributes:
 
  serverTimeZone = GMT;
 
 I'm not sure what this defaults to anymore, but I find it useful to
 make sure EOF is always looking at dates as being in GMT.  Also, if
 there's something that I always want to be a date, I use this code:
 
 GregorianCalendar cal = new GregorianCalendar();
 cal.setTime(sourceDateTime);
 int year = cal.get(GregorianCalendar.YEAR);
 int dayOfMonth = cal.get(GregorianCalendar.DAY_OF_MONTH);
 int month = cal.get(GregorianCalendar.MONTH);
 NSTimestamp outputDate = new NSTimestamp(year, month+1,
 dayOfMonth, 0, 0, 0, TimeZone.getTimeZone(GMT));
 
 
 I make sure that be default, the entire WO app is thinking in GMT:
 
 TimeZone.setDefault(TimeZone.getTimeZone(GMT));
 NSTimeZone.setDefault(TimeZone.getTimeZone(GMT));
 
 Lastly, if I'm doing something where users need to see dates and
 times, I always like them to see the date and time in their own time
 zone.  To do that, I have some javascript that determines the time
 zone of the user's computer:
 
 var msie = navigator.userAgent.indexOf(MSIE);
 var now = new Date();
 var clientTimeZoneOffset = now.getTimezoneOffset(); // = what browser
 thinks is TZ; but
  // MS IE version 3 gives wrong sign of TZ
 // MSIE 4.0b2 shifts TZ by -1 hour
 // Any other problems?
 
 if (clientTimeZoneOffset) {
if (msie  -1) {
  if (navigator.userAgent.substring(msie+5,msie+6) = 3) {
clientTimeZoneOffset *= -1;
  } else {
if (navigator.userAgent.indexOf(4.0b2)  -1) {
  clientTimeZoneOffset += 60;
}
  }
}
document.write('input type=hidden name=x-clientTimeZoneOffset
 value=' + clientTimeZoneOffset * 60 * -1 + ' /');
 }
 
 and places a new element in the header.  I put this javascript on an
 early page, like the login page.  I then grab the header and set a
 formatter in the user's session for their own time zone.
 
 I realize there are some serious machinations here, but all in all,
 it works and people can use the site from anywhere on the planet and
 see the right time.
 
 Ken
 
 
 
 On May 15, 2006, at 5:39 PM, WebObjects wrote:
 
 YUCK!  Are you saying that if a user is entering a date that I have to
 relate what time zone my server is in, vs. GMT, and ensure that it
 always
 corresponds?  This does sound nasty.
 
 Just to be certain I understand...  If I submit a date, and 'today'
 isn't
 the same day as it is in 'GMT', then my submission will be adjusted
 accordingly, UNLESS I send GMT along with it?
 
 Why do I feel like I just confused myself?  And why do I editorialize?
 
 -Bill
 
 
 on 5/15/06 14:32, Art Isbell at [EMAIL PROTECTED] wrote:
 
 On May 15, 2006, at 11:25 AM, WebObjects wrote:
 
 I output the date it's sending to the EC to save, and get
 1919-02-24
 08:00:00 Etc/GMT - showing 'GMT' as the timezone.  I'm in Los
 Angeles - a
 far way from the GMT.
 
 1919-02-24 08:00:00 Etc/GMT may have been 1919-02-23 in PST assuming
 that PST existed in 1919.  Dates and time zones are such nasty
 concepts, especially in the distant past.  Because the JDBC version
 used by EOF doesn't support a datetime with timezone data type, all
 datetime values are stored in GMT.  So you'll need to decide how you
 want to display dates and do the time zone adjustments yourself.
 
 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/webobjects%
 40concyse.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: WebObjects Licensing

2006-05-15 Thread Joe Little

This is how we have deployed some of our instances onto Linux. The one
trick is to change the executable to use darwin instead of `uname
-a` to detect what system it is, and to maintain the /Library and
/System paths it expects to find.

I'm deploying on both OSX Server and on Linux (the latter for a group
w/ a no Mac but pro Java policy, go figure)


On 5/15/06, Randy Wigginton [EMAIL PROTECTED] wrote:

This is the method I am about to attempt... copying the libraries from my
mac system to a linux box.  The licensing situation (and the voluminous
discussions here)  seem to say that it is OK to do this.

Has anyone else done this?


On 2/6/06, Cliff Tuel [EMAIL PROTECTED] wrote:

  Is the expectation from Apple  that the process we would follow (should
we
 want to wotaskd deploy  on non MacOS-X boxes) is to pick the pieces out
from
 there and copy  them onto the foreign deployment host?

We don't ship a non-OS X installer, so there's no other way.  Maybe a
third-party opportunity?

--
Cliff Tuel . http://apple.com/services/technicalsupport


 ___
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/cawineguy%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/jmlittle%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/archive%40mail-archive.com

This email sent to archive@mail-archive.com


Connecting to LDAP Directory with EOModeler

2006-05-15 Thread Xia, Wen
Title: Connecting to LDAP Directory with EOModeler



I need to get some data from an LDAP directory. I tried to use the JNDI adaptor to create an EOModel for this data. I was successful in creating the model and browsing the data in EOModeler, but I was unable to use the model in any code to actually do anything useful. I kept getting error:

WorkerThread5 java.lang.NullPointerException
at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNamingEnumeration.java:110)
at com.sun.jndi.ldap.LdapNamingEnumeration.nextAux(LdapNamingEnumeration.java:244)
at com.sun.jndi.ldap.LdapNamingEnumeration.nextImpl(LdapNamingEnumeration.java:235)

I searched through the apple mailing list and its archive. I found some posts with the same problem, but I did not see a solution to it. From the limited documentation I could find, it looks like a JNDI model should work just like a JDBC model. Is anyone successfully using the JNDI adaptor to fetch LDAP data using EOModel? If so, what is the trick in getting it to work? 

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/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Re: refreshing the defaultEditingContext

2006-05-15 Thread Kieran Kelleher
I am sure there are many ways achieve freshness, however looking at  
the advanced WWDC sessions of recent years it seems these  
EOEditingContext methods are all you need to use to ensure freshness:



static setDefaultFetchTimestampLag(long lag) and creating new ec's  
regularly for EOF based transaction tasks


or


setFetchTimestamp(long timestamp) on an existing ec to now (new  
NSTimestamp() ) to ensure that any cached snapshots older than now  
are updated from the database.


In my experience, these methods alone are all you need to ensure  
fresh data but beware because fresh data means more SQL traffic  
to the database, and less use of EOF snapshot caches. I set an  
application wide setDefaultFetchTimestampLag to 120 seconds (the  
default is one hour) and setFetchTimestamp to now as desired in EC's  
where I need the latest instant data from the db. Also the  
setFetchTimestamp for the defaultEditingContext can be set to now or  
30 seconds ago in the sleep method of Session.


HTH,

Kieran




On May 15, 2006, at 4:27 PM, Robert Walker wrote:

I wanna make sure I understand this correctly.  You were originally  
using the session().defaultEditingContext() to fetch data for your  
RSS feed.  I am assuming you are accessing the RSS feed from a  
direct action, so when accessing session() you are getting an  
unneeded session for each request.


You then decided to use the defaultSharedEditingContext in place of  
the session().defaultEditingContext() to prevent the creation of a  
new session.


If this is accurate them my first question would be: Why did you  
not create a new instance of EOEditingContext and use that instead  
of session().defaultEditingContext()?  This will prevent creating a  
new session for each request and will not have the issues related  
to the shared editing context.


You should also examine the documentation on Fetching Data   
Ensuring Fresh Data in this document:


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


Example:

public WOActionResults myRSSFeedAction() {
EOEditingContext ec = new EOEditingContext();

ec.lock();

/* Fetch your data and generate RSS feed here */

ec.unlock();
}


On May 15, 2006, at 2:57 PM, Dev WO wrote:


Hi guys,
I've been trying to optimize my application a little as I had some  
RSS feed which was actually creating a session and finally as RSS  
readers update themselves every x minutes, I just couldn't softly  
restart the instance.
So I moved the RSS component using the  
defaultSharedEditingContext, making sure no session was created.  
So this part was ok so far.
But trying it I saw that the data from the  
defaultSharedEditingContext didn't update...
I can afford some delay for the update like minutes, but it's been  
5 hours now:(


How should I make the sharedEC to update itself? The data are  
being edited/added using another WOApplication, so maybe the other  
application could call the sharedEC to make it refresh...


Or do:
setRefreshesRefetchedObjects(true);
on the fetch specification should work?

Thanks a lot for any tip:)

Xavier


___
WebObjects-dev mailing list
[EMAIL PROTECTED]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev


___
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