My apps wont start since 10.5.4 update!

2008-07-02 Thread Fredrik Lindgren

Hi,

I have a couple of wo apps that wont start up from monitor after the  
leopard 10.5.4 upgrade.


They are hosted on a leopard client machine. I noticed that WebObjects  
got updated to 5.4.2 at the same time, so I recompiled all the apps an  
deployed to this server (my developer machine is also updated to  
10.5.4 and WebObjects 5.4.2. The apps runs fine on the developer- 
machine.


The apps can also be manually started on the server.

It appears like monitor wont even come to the starting of the apps. At  
least nothing gets written in the log (-WOOutputPath /tmp/ 
wothreaddump.log)


I would appreciate all the help i can get...

Regards
Fredrik Lindgren

 ___
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 [EMAIL PROTECTED]

Re: My apps wont start since 10.5.4 update!

2008-07-02 Thread Miguel Arroz

Hi!

  My guess is that the upgrade replaced the startup scripts in the  
system, and IIRC, the client scripts for WOTaskD and WOMonitor are  
disabled by default. Check them (/System/Library/LaunchDeamons/ 
com.apple.webobjects.wotaskd or womonitor, I guess).


  Yours

Miguel Arroz


On 2008/07/02, at 10:33, Fredrik Lindgren wrote:


Hi,

I have a couple of wo apps that wont start up from monitor after the  
leopard 10.5.4 upgrade.


They are hosted on a leopard client machine. I noticed that  
WebObjects got updated to 5.4.2 at the same time, so I recompiled  
all the apps an deployed to this server (my developer machine is  
also updated to 10.5.4 and WebObjects 5.4.2. The apps runs fine on  
the developer-machine.


The apps can also be manually started on the server.

It appears like monitor wont even come to the starting of the apps.  
At least nothing gets written in the log (-WOOutputPath /tmp/ 
wothreaddump.log)


I would appreciate all the help i can get...

Regards
Fredrik Lindgren


___
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/arroz%40guiamac.com

This email sent to [EMAIL PROTECTED]


http://www.survs.com



smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Is it possible to put components into subdirectory of Components

2008-07-02 Thread Freddie Tilley

Is it possible to put components into a subdirectory of Components

It seems to work with running it from eclipse, but when I deploy the  
wo application
(on webobjects 5.4.2) it does not seem to find the files in the  
subdirectories



Freddie Tilley
___
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 [EMAIL PROTECTED]


Re: My apps wont start since 10.5.4 update!

2008-07-02 Thread Fredrik Lindgren

Thank you! That was it.

/Fredrik

2 jul 2008 kl. 12.20 skrev Miguel Arroz:


Hi!

 My guess is that the upgrade replaced the startup scripts in the  
system, and IIRC, the client scripts for WOTaskD and WOMonitor are  
disabled by default. Check them (/System/Library/LaunchDeamons/ 
com.apple.webobjects.wotaskd or womonitor, I guess).


 Yours

Miguel Arroz


On 2008/07/02, at 10:33, Fredrik Lindgren wrote:


Hi,

I have a couple of wo apps that wont start up from monitor after  
the leopard 10.5.4 upgrade.


They are hosted on a leopard client machine. I noticed that  
WebObjects got updated to 5.4.2 at the same time, so I recompiled  
all the apps an deployed to this server (my developer machine is  
also updated to 10.5.4 and WebObjects 5.4.2. The apps runs fine on  
the developer-machine.


The apps can also be manually started on the server.

It appears like monitor wont even come to the starting of the apps.  
At least nothing gets written in the log (-WOOutputPath /tmp/ 
wothreaddump.log)


I would appreciate all the help i can get...

Regards
Fredrik Lindgren


___
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/arroz%40guiamac.com

This email sent to [EMAIL PROTECTED]


http://www.survs.com



Hälsningar
Fredrik Lindgren
-
WebPages nklt AB, Kålsängsgränd 10 B, 753 19 UPPSALA, 018-490 63 00.
Vi gör webbsideshantering för företag och föreningar enklare än  
enkelt, www.nklt.se



 ___
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 [EMAIL PROTECTED]

Re: Is it possible to put components into subdirectory of Components

2008-07-02 Thread Mike Schrag

Is it possible to put components into a subdirectory of Components

It seems to work with running it from eclipse, but when I deploy the  
wo application
(on webobjects 5.4.2) it does not seem to find the files in the  
subdirectories
I do this all the time.  In deployment, they should end up flattened  
(the default build.xml does this).


ms

___
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 [EMAIL PROTECTED]


Re: Is it possible to put components into subdirectory of Components

2008-07-02 Thread Mike Schrag

Is it possible to put components into a subdirectory of Components

It seems to work with running it from eclipse, but when I deploy  
the wo application
(on webobjects 5.4.2) it does not seem to find the files in the  
subdirectories
I do this all the time.  In deployment, they should end up  
flattened (the default build.xml does this).


Ah for some reason or another, the components do not end up  
flattened, the directories are

still there in the Components folder with all the components.

Is this an option that needs to be set, or could my build.xml be too  
old?
If you're not using FBL, then your build.xml is probably too old.  If  
you have to ask is my build.xml too old, the answer is probably yes.


ms

___
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 [EMAIL PROTECTED]


Re: Is it possible to put components into subdirectory of Components

2008-07-02 Thread Mike Schrag
Is this an option that needs to be set, or could my build.xml be  
too old?
If you're not using FBL, then your build.xml is probably too old.   
If you have to ask is my build.xml too old, the answer is  
probably yes.


How do I know if I have the FBL, and if I don't have it, how do I  
convert to it?
Please keep questions on the mailing list ... Fluffy Bunny Layout is  
the default project type in WOLips (and has been for a while now).   
The easiest way to convert is to just make a new project and copy your  
java, components, wsr, etc into the new project.  There's probably  
more info in the Wiki and mailing list archives.


ms


___
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 [EMAIL PROTECTED]


Re: Is it possible to put components into subdirectory of Components

2008-07-02 Thread Freddie Tilley


On 2 jul 2008, at 14:07, Mike Schrag wrote:

Is this an option that needs to be set, or could my build.xml be  
too old?
If you're not using FBL, then your build.xml is probably too old.   
If you have to ask is my build.xml too old, the answer is  
probably yes.


How do I know if I have the FBL, and if I don't have it, how do I  
convert to it?
Please keep questions on the mailing list ... Fluffy Bunny Layout is  
the default project type in WOLips (and has been for a while now).   
The easiest way to convert is to just make a new project and copy  
your java, components, wsr, etc into the new project.  There's  
probably more info in the Wiki and mailing list archives.



Okay, I was just doing a couple of tests, and it does work with  
regular .wo component packages,

just not with the .html single file component format I am using.
___
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 [EMAIL PROTECTED]


Re: Is it possible to put components into subdirectory of Components

2008-07-02 Thread Mike Schrag
Okay, I was just doing a couple of tests, and it does work with  
regular .wo component packages,

just not with the .html single file component format I am using.
Yes, the patternsets are configured to include .wo's ... You can edit  
your resources.include.patternset in the woproject folder and change  
the rules.


ms

___
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 [EMAIL PROTECTED]


Re: Is it possible to put components into subdirectory of Components

2008-07-02 Thread Freddie Tilley


On 2 jul 2008, at 14:27, Mike Schrag wrote:

Okay, I was just doing a couple of tests, and it does work with  
regular .wo component packages,

just not with the .html single file component format I am using.
Yes, the patternsets are configured to include .wo's ... You can  
edit your resources.include.patternset in the woproject folder and  
change the rules.


It appears that the flattening of .wo components is hardcoded in
woproject/woproject-ant-tasks/src/java/org/objectstyle/woproject/ant/ 
WOMapper.java line 195 :(


Is there a way to flatten html elements?
Perhaps an example, I'm not really a master of custom ant build task etc

Freddie Tilley ___
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 [EMAIL PROTECTED]

Saving Values with EOF

2008-07-02 Thread Gino Pacitti

Hi all

I have a model set up which has a value for a premium.

In EOModeller I have the Internal Type set to Decimal Number with a  
Precision of 6 and external Scale of 30


The external type is a Double in Mysql

ANNUALPREMIUM` double(31,30) default NULL

When the premium is calculated I can see the value - something like:  
141.75564


but in the database it is defaulting to 10

Any idea why this could be happening?

WO 5.3.*
10.4.11
Mysql 4.11.*
mysql-connector-java-5.0.6-bin.jar

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 [EMAIL PROTECTED]


Re: new EOObjectStoreCoordinator and closing database connection afterwards

2008-07-02 Thread Klaus Berkling


On Jul 1, 2008, at 10:05 PM, Lon Varscsak wrote:

This is the connection I assumed wasn't closing, but Klaus would  
have to chime in.  I'm using:


new ERXEC(new ERXObjectStoreCoordinator(true));

in one specific instance and calling dispose() when I'm done (on the  
OSC) seems to do the trick (closes both connections properly).


MMh, I need to look at dispose again.  I tried hat and it does nothing  
at the database and gives me a null pointer exception after I fall  
through the bottom of the request response (ie. the log out page).


I pointed Klause to ERXEOAccessUtilities.closeDatabaseConnections  
which is what I believe does the trickery (called from OSC's dispose  
method).


Thanks.  (You saw I already do that.)


But maybe I misunderstood the problem. :)


The actual issue is that with the code I have I accumulate database  
connections. Every session opens two connections but closes only one  
when the session terminates. After two sessions terminate I have two  
connections to the database that are not needed. The connections won't  
be closed until I quit the instance.


Leaving this in the application class and round robin the connection  
is a wiser choice since that would not kill my database with a spike  
in sessions or when sessions don't terminate...


I'll do more digging in WOnder to see how that's done sigh, I so  
need to rewrite my app... but that's another story.


Thanks all.

kib

Success is not final, failure is not fatal: it is the courage to  
continue that counts.”

- Winston Churchill

Klaus Berkling
Systems Administrator
DynEd International, Inc.
www.dyned.com | www.eskimo.com/~kiberkli




 ___
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 [EMAIL PROTECTED]

How to use WebServicesAssistant on Leopard

2008-07-02 Thread Xia, Wen
I have a couple direct to web service applications that needs to be deployed
on our new Leopard server.

If I simply copy the deployed .woa bundle from existing server to the new
server, the consumer of the web service (which is written in Applescript)
will fail with error message:
WOSearch got an error: Transport error
WOSearch is the service name.

So I migrated the web service application to WOLips.  Question is: how to
use WebServicesAssistant on Leopard to configure it?  I set
WOAllowRapidTurnaround=true, and D2WWebAssistantEnabled=true when launching
the web service app.  But when I tried to connect to it from web service
assistant, it always failed with message: Connect failed: The server
application was started without rapid turnaround active or with the
Assistant explicitly disable!

Anyone has experience using Web Service Assistant on leopard?  What I need
to do to configure it to run?  Thank you.

Wen

 ___
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 [EMAIL PROTECTED]


Re: new EOObjectStoreCoordinator and closing database connection afterwards

2008-07-02 Thread Chuck Hill


On Jul 1, 2008, at 2:41 PM, Klaus Berkling wrote:


Hi all.

In my application I'm trying to use independent access layer stacks  
to open multiple database connections to the database.

I use this code:

EOObjectStoreCoordinator parentObjectStore = new  
EOObjectStoreCoordinator();
EOEditingContext editingContext = new  
EOEditingContext(parentObjectStore);

setDefaultEditingContext(editingContext);

This looks like it's working in that it opens two new connection to  
the database when I start a new session. As expected.


If it is opening two, I'd expect one to be to get the JDBC2 Info and  
the other for EOF to use to fetch data.  As Mike noted earlier,  
getting EOF to close the JDBC 2 Info connection is tricky.  Can you  
get the DB to log what is sent over each connection?  That should  
indicate if I am right or not.



Chuck




When I'm terminate the session I use this code to close the  
connection to the database:


'editingContext' is the session 'defaultEditingContext()'

EOObjectStoreCoordinator parentObjectStore =  
(EOObjectStoreCoordinator)(editingContext.parentObjectStore());
NSArray databaseContexts =  
parentObjectStore.cooperatingObjectStores();

int contextCount = databaseContexts.count();

for (int i = 0; i  contextCount; i++) {
NSArray channels =  
((EODatabaseContext 
)databaseContexts.objectAtIndex(i)).registeredChannels();

int channelCount = channels.count();
for (int j = 0; j  channelCount; j++) {
//Make sure the channel you're trying to close isn't  
performing a transaction.
if (! 
((EODatabaseChannel 
)channels 
.objectAtIndex 
(j)).adaptorChannel().adaptorContext().hasOpenTransaction()) {
 
((EODatabaseChannel 
)channels.objectAtIndex(j)).adaptorChannel().closeChannel();

}
}

}

This closes one of the two database connection, not both.

Is there a way to detect the one extra connection or not open the  
extra connection in the first place?


WOnder may have resolved this issue but adding WOnder is a bigger  
undertaking then I originally expected.

Paraphrasing Lou Reed, I just want some of it, not all of it.

Thanks

kib

Success is not final, failure is not fatal: it is the courage to  
continue that counts.”

- Winston Churchill

Klaus Berkling
Systems Administrator
DynEd International, Inc.
www.dyned.com | www.eskimo.com/~kiberkli




___
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 [EMAIL PROTECTED]


Re: new EOObjectStoreCoordinator and closing database connection afterwards

2008-07-02 Thread Mike Schrag
If it is opening two, I'd expect one to be to get the JDBC2 Info and  
the other for EOF to use to fetch data.  As Mike noted earlier,  
getting EOF to close the JDBC 2 Info connection is tricky.  Can you  
get the DB to log what is sent over each connection?  That should  
indicate if I am right or not.
When I read last description, I now retract my previous claim that I  
don't think jdbc2Info is his problem ... My money is on Chuck -- I'm  
voting that he's right.


ms

___
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 [EMAIL PROTECTED]


Re: new EOObjectStoreCoordinator and closing database connection afterwards

2008-07-02 Thread Chuck Hill


On Jul 2, 2008, at 5:34 PM, Mike Schrag wrote:

If it is opening two, I'd expect one to be to get the JDBC2 Info  
and the other for EOF to use to fetch data.  As Mike noted earlier,  
getting EOF to close the JDBC 2 Info connection is tricky.  Can you  
get the DB to log what is sent over each connection?  That should  
indicate if I am right or not.
When I read last description, I now retract my previous claim that I  
don't think jdbc2Info is his problem ... My money is on Chuck -- I'm  
voting that he's right.



What?!!?  There was doubt???


--

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 [EMAIL PROTECTED]


WOLips shortcuts ??

2008-07-02 Thread J Stephanos
Some of the WOLips shortcuts are not working for me  anymore. Content
assist works ok (Cmd-Space).
But nothing else seems to work.   BTW, it all used to work fine.   I
must have changed some Eclipse preference somewhere but cannot figure
out what I changed. :-(

Using Eclipse 3.3.2, WOLips 3.4.5282, Java 1.5

Can anyone offer any tips on how to get back the default WOLips
shortcut settings?

TIA.

--JSt
 ___
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 [EMAIL PROTECTED]