move from using EO_PK_TABLE to OpenBase plugin

2008-06-26 Thread Shelley Eitzen

HI All,

Webobjects 5.3
Xcode 2.2
Openbase 10
Project Wonder last updated approx April.

I am trying to move from using EO_PK_TABLE to using OpenbasePKPlugin

I have:

1) added the OpenbasePKPlugin framework to the application
2) added the following to the adapter settings in the model
Driver: com.openbase.jdbc.ObDriver
Plugin: com.webobjects.jdbcadaptor.OpenBasePKPlugIn
3) added the following to the Application constructor
JDBCPlugIn.setPlugInNameForSubprotocol(com.webobjects.jdbcadaptor.OpenBasePKPlugIn,
openbase);
4) added the following to the application class
import com.webobjects.jdbcadaptor.*;
import com.openbase.jdbc.ObDriver.*;

The application now does not start and gives the following error message.
A fatal exception occurred: ERXExtensions have not been initialized.
Please report the classpath and the rest of the bundles to the Wonder
mailing list:
Remaining frameworks: [OpenBasePKPlugIn]


Any suggestions?


The full run log:

[Session started at 2008-06-26 16:57:09 +0930.]
Reading MacOSClassPath.txt ...
Launching AMSJava.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System
-DWOLocalRootDirectory=
-DWOUserDirectory=/Users/shelleyeitzen/projects/advisered.net/AMSJava/build/Development
-DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS
-Dcom.webobjects.pid=13469 -Djava.vm.pid=$$ -Xms100m -Xmx700m -classpath
WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 12345
-databaseURL jdbc:openbase://localhost/Education1  
-er.extensions.ERXRaiseOnMissingEditingContextDelegate NO -fontDirectory
/Library/Fonts/ OpenBase10DLSFix Yes -ignoreWebPDF Yes
appRoot is
/Users/shelleyeitzen/projects/advisered.net/AMSJava/build/Development/AMSJava.woa/Contents
Loading
/Users/shelleyeitzen/projects/advisered.net/AMSJava/build/Development/AMSJava.woa/Contents/MacOS/MacOSClassPath.txt
Generated classpath:
  
/Users/shelleyeitzen/projects/advisered.net/AMSJava/build/Development/AMSJava.woa/Contents/Resources/Java/AMSJava.jar
  /Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
  /Library/Frameworks/ERExtensions.framework/Resources/Java/src.jar
  
/System/Library/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar
  
/System/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
  /System/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
  
/System/Library/Frameworks/JavaDirectToWeb.framework/Resources/Java/javadirecttoweb.jar
  
/System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
  
/System/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
  
/System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
  
/System/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
  
/System/Library/Frameworks/JavaDTWGeneration.framework/Resources/Java/javadtwgeneration.jar
  
/System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
  /Library/Frameworks/ERPlot.framework/Resources/Java/ERPlot.jar
  /Library/Frameworks/ERPlot.framework/Resources/Java/jcommon-0.9.6.jar
  /Library/Frameworks/ERPlot.framework/Resources/Java/jfreechart-0.9.21.jar
  /Library/Frameworks/ERPlot.framework/Resources/Java/src.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/erxwo54.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/junit.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.14.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar
  /Library/Frameworks/ERJars.framework/Resources/Java/src.jar
  
/Library/Frameworks/WOExamplesHarness.framework/Resources/Java/WOExamplesHarness.jar
  
/Library/Frameworks/TWButils.1.1/TWButils.framework/Resources/Java/twbutils.jar
  
/Library/Frameworks/RDMultipleDatePerspective.framework/Resources/Java/rdmultipledateperspective.jar
  /Library/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
  /Library/Frameworks/Ajax.framework/Resources/Java/jabsorb-1.2.2.jar
  /Library/Frameworks/Ajax.framework/Resources/Java/src.jar
  /Library/Frameworks/ExcelGenerator.framework/Resources/Java/ExcelGenerator.jar
  
/Library/Frameworks/ExcelGenerator.framework/Resources/Java/poi-3.0.1-FINAL-20070705.jar
  /Library/Frameworks/ExcelGenerator.framework/Resources/Java/src.jar
  
/Library/Frameworks/CertificateGenerator.framework/Resources/Java/CertificateGenerator.jar
  
/Library/Frameworks/CertificateGenerator.framework/Resources/Java/itext-1.4.2.jar
  
/Library/Frameworks/OpenBasePKPlugIn.framework/Resources/Java/openbasepkplugin.jar
  /Users/shelleyeitzen/Library/Java
  /Library/Java/
  /System/Library/Java/
  /Network/Library/Java
  

Fred Wells is out of the office.

2008-06-26 Thread Fred Wells

I will be out of the office starting Thu 06/26/2008 and will not return
until Mon 06/30/2008.

I will respond to your message when I return.



Disclaimer 
The information in this email and any attachments may contain proprietary and 
confidential information that is intended for the addressee(s) only. If you are 
not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, retention or use of the contents of this information is 
prohibited.  When addressed to our clients or vendors, any information 
contained in this e-mail or any attachments is subject to the terms and 
conditions in any governing contract. If you have received this e-mail in 
error, please immediately contact the sender and delete the e-mail.
 ___
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]


Disable displaying contents of WOComponent

2008-06-26 Thread Freddie Tilley
Hello, I'm trying to build a permission system that will disable the  
contents of the entire component.
I guess normally I should override appendToResponse and disable the  
writing of the component contents
there. But the problem is if I have a wrapper in the component I still  
want to show the wrapper contents


so the wrapper will show everything apart from the  
wo:WOComponentContent /


The way I do it now is override the components template() method and  
disable the elements that
should not be visible. My question is, is this the correct way of  
doing it, and if so, are
there any hidden problems with doing it this way. The template  
override code is this:


public WOElement template() {
WOElement tmpl = super.template();

if (!canViewComponent())
{
			NSMutableArrayWOElement children =  
((WODynamicGroup)tmpl).childrenElements();
			NSMutableArrayWOElement removeElements = new  
NSMutableArrayWOElement();


for (WOElement el : children) {
if (el instanceof WOComponentReference) {
	WODynamicGroup dg = (WODynamicGroup) 
((WOComponentReference)el)._contentElement;

NSArrayWOElement childrenElements = 
dg.childrenElements();

if (childrenElements != null) {
/* this element is the wrapper, 
only disable the
 * content elements
 */

((WOComponentReference)el)._contentElement = null;
} else {
removeElements.add(el);
}
} else {
removeElements.add(el);
}
}

children.removeObjectsInArray(removeElements);  
}

return tmpl;
}

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: Disable displaying contents of WOComponent

2008-06-26 Thread Thomas
Why not just put a conditional inside the wrapper around the component  
content? No code is required.


Regards
Thomas

On 26/06/2008, at 7:49 PM, Freddie Tilley wrote:

Hello, I'm trying to build a permission system that will disable the  
contents of the entire component.
I guess normally I should override appendToResponse and disable the  
writing of the component contents
there. But the problem is if I have a wrapper in the component I  
still want to show the wrapper contents


so the wrapper will show everything apart from the  
wo:WOComponentContent /


The way I do it now is override the components template() method and  
disable the elements that
should not be visible. My question is, is this the correct way of  
doing it, and if so, are
there any hidden problems with doing it this way. The template  
override code is this:


public WOElement template() {
WOElement tmpl = super.template();

if (!canViewComponent())
{
			NSMutableArrayWOElement children =  
((WODynamicGroup)tmpl).childrenElements();
			NSMutableArrayWOElement removeElements = new  
NSMutableArrayWOElement();


for (WOElement el : children) {
if (el instanceof WOComponentReference) {
	WODynamicGroup dg = (WODynamicGroup) 
((WOComponentReference)el)._contentElement;

NSArrayWOElement childrenElements = 
dg.childrenElements();

if (childrenElements != null) {
/* this element is the wrapper, 
only disable the
 * content elements
 */

((WOComponentReference)el)._contentElement = null;
} else {
removeElements.add(el);
}
} else {
removeElements.add(el);
}
}

children.removeObjectsInArray(removeElements);  
}

return tmpl;
}

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/webobjects%40woomeranet.com.au

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


Re: move from using EO_PK_TABLE to OpenBase plugin

2008-06-26 Thread Amedeo Mantica

Hello,

if you have put

plugin: com.webobjects.jdbcadaptor.OpenBasePKPlugIn
in your model,

then you should NOT add
JDBCPlugIn
.setPlugInNameForSubprotocol
(com.webobjects.jdbcadaptor.OpenBasePKPlugIn in the Application  
constructor

(remove the unnecessary imports too)

Hope this helps

Regards
Amedeo


On 26/giu/08, at 09:43, Shelley Eitzen wrote:



HI All,

Webobjects 5.3
Xcode 2.2
Openbase 10
Project Wonder last updated approx April.

I am trying to move from using EO_PK_TABLE to using OpenbasePKPlugin

I have:

1) added the OpenbasePKPlugin framework to the application
2) added the following to the adapter settings in the model
Driver: com.openbase.jdbc.ObDriver
Plugin: com.webobjects.jdbcadaptor.OpenBasePKPlugIn
3) added the following to the Application constructor
JDBCPlugIn 
.setPlugInNameForSubprotocol 
(com.webobjects.jdbcadaptor.OpenBasePKPlugIn,

openbase);
4) added the following to the application class
import com.webobjects.jdbcadaptor.*;
import com.openbase.jdbc.ObDriver.*;

The application now does not start and gives the following error  
message.

A fatal exception occurred: ERXExtensions have not been initialized.
Please report the classpath and the rest of the bundles to the Wonder
mailing list:
Remaining frameworks: [OpenBasePKPlugIn]


Any suggestions?


The full run log:

[Session started at 2008-06-26 16:57:09 +0930.]
Reading MacOSClassPath.txt ...
Launching AMSJava.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System
-DWOLocalRootDirectory=
-DWOUserDirectory=/Users/shelleyeitzen/projects/advisered.net/ 
AMSJava/build/Development
-DWOEnvClassPath= -DWOApplicationClass=Application - 
DWOPlatform=MacOS
-Dcom.webobjects.pid=13469 -Djava.vm.pid=$$ -Xms100m -Xmx700m - 
classpath

WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 12345
-databaseURL jdbc:openbase://localhost/Education1
-er.extensions.ERXRaiseOnMissingEditingContextDelegate NO - 
fontDirectory

/Library/Fonts/ OpenBase10DLSFix Yes -ignoreWebPDF Yes
appRoot is
/Users/shelleyeitzen/projects/advisered.net/AMSJava/build/ 
Development/AMSJava.woa/Contents

Loading
/Users/shelleyeitzen/projects/advisered.net/AMSJava/build/ 
Development/AMSJava.woa/Contents/MacOS/MacOSClassPath.txt

Generated classpath:
 /Users/shelleyeitzen/projects/advisered.net/AMSJava/build/ 
Development/AMSJava.woa/Contents/Resources/Java/AMSJava.jar
 /Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar

 /Library/Frameworks/ERExtensions.framework/Resources/Java/src.jar
 /System/Library/Frameworks/JavaEOProject.framework/Resources/Java/ 
javaeoproject.jar
 /System/Library/Frameworks/JavaWOExtensions.framework/Resources/ 
Java/JavaWOExtensions.jar
 /System/Library/Frameworks/JavaXML.framework/Resources/Java/ 
javaxml.jar
 /System/Library/Frameworks/JavaDirectToWeb.framework/Resources/Java/ 
javadirecttoweb.jar
 /System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/ 
javajdbcadaptor.jar
 /System/Library/Frameworks/JavaEOControl.framework/Resources/Java/ 
javaeocontrol.jar
 /System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/ 
javaeoaccess.jar
 /System/Library/Frameworks/JavaFoundation.framework/Resources/Java/ 
javafoundation.jar
 /System/Library/Frameworks/JavaDTWGeneration.framework/Resources/ 
Java/javadtwgeneration.jar
 /System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ 
javawebobjects.jar

 /Library/Frameworks/ERPlot.framework/Resources/Java/ERPlot.jar
 /Library/Frameworks/ERPlot.framework/Resources/Java/jcommon-0.9.6.jar
 /Library/Frameworks/ERPlot.framework/Resources/Java/ 
jfreechart-0.9.21.jar

 /Library/Frameworks/ERPlot.framework/Resources/Java/src.jar
 /Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
 /Library/Frameworks/ERJars.framework/Resources/Java/ 
erxservletadaptor.jar

 /Library/Frameworks/ERJars.framework/Resources/Java/erxwo54.jar
 /Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
 /Library/Frameworks/ERJars.framework/Resources/Java/junit.jar
 /Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.14.jar
 /Library/Frameworks/ERJars.framework/Resources/Java/slf4j- 
api-1.5.0.jar
 /Library/Frameworks/ERJars.framework/Resources/Java/slf4j- 
log4j12-1.5.0.jar

 /Library/Frameworks/ERJars.framework/Resources/Java/src.jar
 /Library/Frameworks/WOExamplesHarness.framework/Resources/Java/ 
WOExamplesHarness.jar
 /Library/Frameworks/TWButils.1.1/TWButils.framework/Resources/Java/ 
twbutils.jar
 /Library/Frameworks/RDMultipleDatePerspective.framework/Resources/ 
Java/rdmultipledateperspective.jar

 /Library/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
 /Library/Frameworks/Ajax.framework/Resources/Java/jabsorb-1.2.2.jar
 /Library/Frameworks/Ajax.framework/Resources/Java/src.jar
 /Library/Frameworks/ExcelGenerator.framework/Resources/Java/ 
ExcelGenerator.jar
 /Library/Frameworks/ExcelGenerator.framework/Resources/Java/ 
poi-3.0.1-FINAL-20070705.jar

 

Re: Disable displaying contents of WOComponent

2008-06-26 Thread Freddie Tilley


On 26 jun 2008, at 12:17, Thomas wrote:

Why not just put a conditional inside the wrapper around the  
component content? No code is required.


I want to allow subclasses, with the permissions working without  
requiring a conditional


Freddie Tilley


Regards
Thomas

On 26/06/2008, at 7:49 PM, Freddie Tilley wrote:

Hello, I'm trying to build a permission system that will disable  
the contents of the entire component.
I guess normally I should override appendToResponse and disable the  
writing of the component contents
there. But the problem is if I have a wrapper in the component I  
still want to show the wrapper contents


so the wrapper will show everything apart from the  
wo:WOComponentContent /


The way I do it now is override the components template() method  
and disable the elements that
should not be visible. My question is, is this the correct way of  
doing it, and if so, are
there any hidden problems with doing it this way. The template  
override code is this:


public WOElement template() {
WOElement tmpl = super.template();

if (!canViewComponent())
{
			NSMutableArrayWOElement children =  
((WODynamicGroup)tmpl).childrenElements();
			NSMutableArrayWOElement removeElements = new  
NSMutableArrayWOElement();


for (WOElement el : children) {
if (el instanceof WOComponentReference) {
	WODynamicGroup dg = (WODynamicGroup) 
((WOComponentReference)el)._contentElement;

NSArrayWOElement childrenElements = 
dg.childrenElements();

if (childrenElements != null) {
/* this element is the wrapper, 
only disable the
 * content elements
 */

((WOComponentReference)el)._contentElement = null;
} else {
removeElements.add(el);
}
} else {
removeElements.add(el);
}
}

children.removeObjectsInArray(removeElements);  
}

return tmpl;
}

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/webobjects%40woomeranet.com.au

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


Re: [Annoucement] New WOLips Java Client / Direct To Java Client Tutorial

2008-06-26 Thread Pierre Bernard

Interesting!

I used to create 2 distinct projects: one pretty plain WOLips project  
for the server and on non-WOLips Java project for the client.
If you care to have a look at it, I'm sure I can dig up one such  
project.


Best,
Pierre Bernard
Houdah Software s.à r.l.

On 25 Jun 2008, at 16:46, David Avendasora wrote:


Hi all,

Hopefully everyone knows that Swing-Based Java Client development  
was not deprecated with WO 5.4. But what you may not be aware of is  
that Apple has decided to hold off on deprecating Direct To Java  
Client (non-Nib-based)* as well due to the number of organizations  
quietly using it to great success!


I have spent quite a bit of my time over the last few weeks (since  
WOWODC) working hard to figure out exactly how to create WebStart  
based Java Client and D2JC apps from scratch using WOLips (big, BIG  
thanks to Daryl Lee at Apple for his assistance). In the past Xcode  
did all the work and you just followed some steps in a wizard and  
ended up with a running app. All the magic was hidden away. With  
WOLips  WOProject, it's a little more work. :-)


The tutorial and example app linked to below will allow you to take  
any existing EOModel and launch a fully-functional D2JC app from  
it.  Just like that. WOMagic!


I'm planning on eventually creating a WOLips project template to do  
most of the work of the tutorial, but that will come later.


Now, without further delay: 
http://wiki.objectstyle.org/confluence/display/WO/Java+Client+and+Direct+To+Java+Client+Example+Project+using+WebStart

I have also zipped up an Eclipse project that only needs to have an  
EOModel file dropped into the Resources directory, just to make it  
easier for _everyone_ to give JC/D2JC a try! It's available on my  
iDisk.


http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default?user=avendasoratemplatefn=FileSharing32.htmlxmlfn=TKDocument.32.xmlsitefn=RootSite.xmlaff=consumercty=USlang=en

The resulting Application will run with no problems on WO 5.3.3 and  
5.4 from within Eclipse, but due to a bug with WO 5.4's JNLP  
generation, you cannot automatically generate a JNLP file from a  
deployed app. You can take the JNLP file created by WO 5.3.3 and it  
will still work with a 5.4 server. It's the generation of the JNLP  
that is broken in 5.4, not the actual client application  
functionality.


Let me know what you think!

Dave


*Nib-based development is impossible now that all the tools for it  
are gone. D2JC on the other hand only requires the current tools,  
and the EOAssistant which is a part of any D2JC application.


___
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-dev%40houdah.com

This email sent to [EMAIL PROTECTED]


---
Pierre Bernard
http://www.bernard-web.com/pierre
http://www.houdah.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]

Re: WOLips Installer

2008-06-26 Thread Jeremy Matthews

+1

...

Most folks using the installers are either new or inexperienced...or  
lazy, like me, and want things to more or less just work.


Introducing these instabilities can be a _huge_ turn-off to  
(potential) developerswhen we were mucking with that idea we had  
quite a bit of negative feedback from people just trying out the  
platform.


If anything, offer two installers or two separate installation  
routines: 1 for stable and 1 for beta.


-jeremy

On Jun 26, 2008, at 3:45 AM, [EMAIL PROTECTED]  
wrote:



Just a word of caution with 3.4, we still have one or two very
annoying issues to resolve before we can consider WOLips to be fully
ported to 3.4. I would recommend against upgrading just yet unless you
are a doing WOLips plugin development, or are prepared to live with
some things that used to work not working the way they should any  
more.


I would recommend 3.3 and WOLips stable for production use, you aren't
really missing anything.

On 26/06/2008, at 12:27 PM, Don Lindsay wrote:


Hello;

A new version of the Installer has been uploaded to my site.The
installer installs the Ganymede Version of Eclipse and the nightly
version of WOLips.  Wonder is also an available selection for  
install.


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


Re: Problems deploying app on Leopard server

2008-06-26 Thread Mike Schrag
This is the problem ... Or rather, your build.properties is  
probably the root cause.  This variable should have been resolved  
at the time build.properties was generated.


Isn't that changed whenever you change the principal class in the  
Properties for that project?

Yep.

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: [Annoucement] New WOLips Java Client / Direct To Java Client Tutorial

2008-06-26 Thread David Avendasora
Yes, using two separate projects in some cases makes more sense, it  
certainly makes the separation between client and server more  
apparent. Using WebStart is how Xcode used to setup a JC project so  
it's how I started out, and it can be much easier to get started when  
you only have to maintain one project instead of two.


I think it really comes down to a matter of preference.

Dave

On Jun 26, 2008, at 8:48 AM, Pierre Bernard wrote:


Interesting!

I used to create 2 distinct projects: one pretty plain WOLips  
project for the server and on non-WOLips Java project for the client.
If you care to have a look at it, I'm sure I can dig up one such  
project.


Best,
Pierre Bernard
Houdah Software s.à r.l.

On 25 Jun 2008, at 16:46, David Avendasora wrote:


Hi all,

Hopefully everyone knows that Swing-Based Java Client development  
was not deprecated with WO 5.4. But what you may not be aware of is  
that Apple has decided to hold off on deprecating Direct To Java  
Client (non-Nib-based)* as well due to the number of organizations  
quietly using it to great success!


I have spent quite a bit of my time over the last few weeks (since  
WOWODC) working hard to figure out exactly how to create WebStart  
based Java Client and D2JC apps from scratch using WOLips (big, BIG  
thanks to Daryl Lee at Apple for his assistance). In the past Xcode  
did all the work and you just followed some steps in a wizard and  
ended up with a running app. All the magic was hidden away. With  
WOLips  WOProject, it's a little more work. :-)


The tutorial and example app linked to below will allow you to take  
any existing EOModel and launch a fully-functional D2JC app from  
it.  Just like that. WOMagic!


I'm planning on eventually creating a WOLips project template to do  
most of the work of the tutorial, but that will come later.


Now, without further delay: 
http://wiki.objectstyle.org/confluence/display/WO/Java+Client+and+Direct+To+Java+Client+Example+Project+using+WebStart

I have also zipped up an Eclipse project that only needs to have an  
EOModel file dropped into the Resources directory, just to make it  
easier for _everyone_ to give JC/D2JC a try! It's available on my  
iDisk.


http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default?user=avendasoratemplatefn=FileSharing32.htmlxmlfn=TKDocument.32.xmlsitefn=RootSite.xmlaff=consumercty=USlang=en

The resulting Application will run with no problems on WO 5.3.3 and  
5.4 from within Eclipse, but due to a bug with WO 5.4's JNLP  
generation, you cannot automatically generate a JNLP file from a  
deployed app. You can take the JNLP file created by WO 5.3.3 and it  
will still work with a 5.4 server. It's the generation of the JNLP  
that is broken in 5.4, not the actual client application  
functionality.


Let me know what you think!

Dave


*Nib-based development is impossible now that all the tools for it  
are gone. D2JC on the other hand only requires the current tools,  
and the EOAssistant which is a part of any D2JC application.


___
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-dev%40houdah.com

This email sent to [EMAIL PROTECTED]


---
Pierre Bernard
http://www.bernard-web.com/pierre
http://www.houdah.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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-26 Thread Yves Selliez
Hi Wen,

I also encountered a lot of problem deploying my apps on a very new Leopard
server. Strangely, I had no problem at all with another Leopard server I set
up just one month ago.

I don¹t know if that may help you, but what is sure is that you should
modify your woapp with this set of permission :

chown -R appserver:appserveradm yourapp.woa
chmod -R 755 yourapp.woa

For me the group ³appserverusr² (as written somewhere) did not work, and
just made that the app just didn¹t start at all.

Hope this helps.

./yves

--
Yves Selliez-Vandernotte
Styrion
18, rue du 24 Août
F-59830 BOURGHELLES
http://www.styrion.eu
-- 


 ___
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: Disable displaying contents of WOComponent

2008-06-26 Thread Freddie Tilley
I'm currently testing with this code, but the problem is once the  
elements have been removed, they

do not return until I restart the webobjects app.

There must be some easier way of doing this

Freddie Tilley


Hello, I'm trying to build a permission system that will disable  
the contents of the entire component.
I guess normally I should override appendToResponse and disable  
the writing of the component contents
there. But the problem is if I have a wrapper in the component I  
still want to show the wrapper contents


so the wrapper will show everything apart from the  
wo:WOComponentContent /


The way I do it now is override the components template() method  
and disable the elements that
should not be visible. My question is, is this the correct way of  
doing it, and if so, are
there any hidden problems with doing it this way. The template  
override code is this:


public WOElement template() {
WOElement tmpl = super.template();

if (!canViewComponent())
{
			NSMutableArrayWOElement children =  
((WODynamicGroup)tmpl).childrenElements();
			NSMutableArrayWOElement removeElements = new  
NSMutableArrayWOElement();


for (WOElement el : children) {
if (el instanceof WOComponentReference) {
	WODynamicGroup dg = (WODynamicGroup) 
((WOComponentReference)el)._contentElement;

NSArrayWOElement childrenElements = 
dg.childrenElements();

if (childrenElements != null) {
/* this element is the wrapper, 
only disable the
 * content elements
 */

((WOComponentReference)el)._contentElement = null;
} else {
removeElements.add(el);
}
} else {
removeElements.add(el);
}
}

children.removeObjectsInArray(removeElements);  
}

return tmpl;
}

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/webobjects%40woomeranet.com.au

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/freddie%40cpp.nl

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


Re: [Annoucement] New WOLips Java Client / Direct To Java Client Tutorial

2008-06-26 Thread David Avendasora

Good point Flor.

I have updated the Wiki to reflect that you can create a JC app  
without using WebStart. At some point I'll do a tutorial on how to add  
a Java Client to an existing application


Dave

On Jun 25, 2008, at 5:41 PM, Florijan Stamenkovic wrote:


Dave,

I have not actually done the tutorial, as I don't do D2JC, but it  
looks very sweet. Clear and to the point.


One comment though, I think you skip some of the obvious stuff,  
which will make it more difficult for newcomers to digest. Stuff  
like indicating that this will make a single Eclipse project in  
which you will create both the WO server app, and the client app,  
blah blah... I don't know your target audience, this seems very well  
suited for previous users of D2JC switching to Eclipse/WOLips, but  
with minor extensions it could also work for people just starting  
with WO. Well, up to you!


Thanks for the effort!

F

btw, everyone, you're still doing just WebApps in WO? Haven't  
switched to JC? Doh, that's so yesterday :-P


On Jun 25, 2008, at 10:46, David Avendasora wrote:


Hi all,

Hopefully everyone knows that Swing-Based Java Client development  
was not deprecated with WO 5.4. But what you may not be aware of is  
that Apple has decided to hold off on deprecating Direct To Java  
Client (non-Nib-based)* as well due to the number of organizations  
quietly using it to great success!


I have spent quite a bit of my time over the last few weeks (since  
WOWODC) working hard to figure out exactly how to create WebStart  
based Java Client and D2JC apps from scratch using WOLips (big, BIG  
thanks to Daryl Lee at Apple for his assistance). In the past Xcode  
did all the work and you just followed some steps in a wizard and  
ended up with a running app. All the magic was hidden away. With  
WOLips  WOProject, it's a little more work. :-)


The tutorial and example app linked to below will allow you to take  
any existing EOModel and launch a fully-functional D2JC app from  
it.  Just like that. WOMagic!


I'm planning on eventually creating a WOLips project template to do  
most of the work of the tutorial, but that will come later.


Now, without further delay: 
http://wiki.objectstyle.org/confluence/display/WO/Java+Client+and+Direct+To+Java+Client+Example+Project+using+WebStart

I have also zipped up an Eclipse project that only needs to have an  
EOModel file dropped into the Resources directory, just to make it  
easier for _everyone_ to give JC/D2JC a try! It's available on my  
iDisk.


http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default?user=avendasoratemplatefn=FileSharing32.htmlxmlfn=TKDocument.32.xmlsitefn=RootSite.xmlaff=consumercty=USlang=en

The resulting Application will run with no problems on WO 5.3.3 and  
5.4 from within Eclipse, but due to a bug with WO 5.4's JNLP  
generation, you cannot automatically generate a JNLP file from a  
deployed app. You can take the JNLP file created by WO 5.3.3 and it  
will still work with a 5.4 server. It's the generation of the JNLP  
that is broken in 5.4, not the actual client application  
functionality.


Let me know what you think!

Dave


*Nib-based development is impossible now that all the tools for it  
are gone. D2JC on the other hand only requires the current tools,  
and the EOAssistant which is a part of any D2JC application.








___
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: Question about WOImage binding value

2008-06-26 Thread Lon Varscsak
Does getPictureImage return a WOElement?
Anyway, I've never used that binding, but I have used the data binding and
you can return an NSData (also look at key).

Lon

On Wed, Jun 25, 2008 at 8:21 PM, Ren, Kevin [EMAIL PROTECTED]
wrote:


 Hi,

 Actually it's validation error for my old application code

 PictureImage : WOImage {
 value =  getPictureImage;

 }

 I found couldn't get the value in the list for binding, and but in the
 documentation:

 value
 Image data in the form of a WOElement object. This data can come from a
 database, a file, or
 memory.

 Bug?

 Kevin




 This communication is confidential and may contain privileged and/or
 copyright material. If you are not the intended recipient you must not use,
 disclose, copy or retain it. If you have received it in error please
 immediately notify me by return email, delete the emails and destroy any
 hard copies. ANZ National Bank Limited does not guarantee the integrity of
 this communication, or that it is free from errors, viruses or
 interference.

  ___
 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/varscsak%40smarthealth.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 [EMAIL PROTECTED]

Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
Thank you both for your help.

But where is build.properties?  In build.xml, it looks for it in my home
directory, but I can't find it there.  Is it generated/updated when I
compiled the application?

I changed the principal class in the Properties for the project, and now it
launches the application without exception:
[2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
Welcome to StaffDirectory !
-- Cleaning Log Files More Than 30 Days Old
[2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
[2008-6-26 11:33:20 PDT] main null
[2008-6-26 11:33:19 PDT] main Waiting for requests...

But when I pasted the URL
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in my
browser, it says: The requested application was not found on this server.

I wonder what is wrong with it.  Thanks again.

Wen


On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is probably
 the root cause.  This variable should have been resolved at the time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
Thank you, Yves.  But doing this does not solve the problem.


On 6/26/08 7:26 AM, Yves Selliez [EMAIL PROTECTED] wrote:

 Hi Wen,
 
 I also encountered a lot of problem deploying my apps on a very new Leopard
 server. Strangely, I had no problem at all with another Leopard server I set
 up just one month ago.
 
 I don¹t know if that may help you, but what is sure is that you should modify
 your woapp with this set of permission :
 
 chown -R appserver:appserveradm yourapp.woa
 chmod -R 755 yourapp.woa
 
 For me the group ³appserverusr² (as written somewhere) did not work, and just
 made that the app just didn¹t start at all.
 
 Hope this helps.
 
 ./yves
 
 --
 Yves Selliez-Vandernotte
 Styrion
 18, rue du 24 Août
 F-59830 BOURGHELLES
 http://www.styrion.eu


 ___
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]

[OT] Objective-c library that would resemble EO talking to SQLite

2008-06-26 Thread Baiss Eric Magnusson
I have been implementing my WebObjects based Track-Your-Finances on  
the iPhone, still at the early phases.


I assume I'm not violating the NDA below...

On the iPhone we have SQLite http://www.sqlite.org/lang.html.

In a sample app, they, have written an objective-c class that, well  
from the perspective of EO, hacks at SQLite.


Is there any intermediary objective-c library that would resemble EO's  
talking to SQLite?

Would Core Data be worth waiting for?

Some interesting tidbits:

I have been able to take the sql generated by EOModeler, which  
currently connects to Frontbase, and generate all the tables in SQLite  
by using SQLiteManager. This database then gets embedded in the  
iPhone app and becomes part of the iPhone's arena. I did do some hand  
editing of the sql. I'm sure I could have used Frontbase generated sql  
also.



Baiss Eric Magnusson
Cascade Web Design
http://www.CascadeWebDesign.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 [EMAIL PROTECTED]

Class cast exception thrown in in EODistributionContext

2008-06-26 Thread Florijan Stamenkovic

Hi all,


I get a class cast exception on the server when I try to save a  
certain type of EOs. With other types I do not have this problem.  
This is a JavaClient issue, as you can see in the stack trace below.  
I've added a breakpoint in the client app at a point where I am done  
with the EO, just before saving, and the EO itself looks fine to me,  
and it's EC passes validateForSave() without problems... So, I am a  
bit confused. Also, it is hard to determine exactly what makes this  
particular EO type fail to save, and others not.


Any thoughts?

I'll keep trying to isolate the difference that makes this type of EO  
cause this...

F

The exception, on the server side:


[2008-06-26 14:03:14 BOT] WorkerThread7 Server exception:  
com.webobjects.foundation.NSArray
[2008-06-26 14:03:14 BOT] WorkerThread7  
java.lang.ClassCastException: com.webobjects.foundation.NSArray
	at  
com.webobjects.eodistribution.common._EOSavingProxy.awakeInDistributionC 
ontext(_EOSavingProxy.java:174)
	at  
com.webobjects.eodistribution.EODistributionContext.responseToClientMess 
age(EODistributionContext.java:559)
	at  
com.webobjects.eodistribution.WOJavaClientComponent.handleClientRequest( 
WOJavaClientComponent.java:1105)
	at com.webobjects.eodistribution.WOJavaClientComponent.invokeAction 
(WOJavaClientComponent.java:343)
	at  
com.webobjects.appserver._private.WOComponentReference.invokeAction 
(WOComponentReference.java:104)
	at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
(WODynamicGroup.java:101)
	at com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110)
	at com.webobjects.appserver.WOComponent.invokeAction 
(WOComponent.java:945)

at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1168)
	at com.webobjects.appserver.WOApplication.invokeAction 
(WOApplication.java:1375)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit 
hPreparedPage(WOComponentRequestHandler.java:196)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit 
hPreparedSession(WOComponentRequestHandler.java:287)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit 
hPreparedApplication(WOComponentRequestHandler.java:322)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler._handleReque 
st(WOComponentRequestHandler.java:358)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler.handleReques 
t(WOComponentRequestHandler.java:432)
	at com.webobjects.appserver.WOApplication.dispatchRequest 
(WOApplication.java:1306)
	at com.webobjects.appserver._private.WOWorkerThread.runOnce 
(WOWorkerThread.java:173)
	at com.webobjects.appserver._private.WOWorkerThread.run 
(WOWorkerThread.java:254)

at java.lang.Thread.run(Thread.java:613)

___
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: Problems deploying app on Leopard server

2008-06-26 Thread Chuck Hill


On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:


Thank you both for your help.

But where is build.properties?


It should be in the top level of your project.



 In build.xml, it looks for it in my home
directory, but I can't find it there.  Is it generated/updated when I
compiled the application?

I changed the principal class in the Properties for the project, and  
now it

launches the application without exception:
[2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
Welcome to StaffDirectory !
-- Cleaning Log Files More Than 30 Days Old
[2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
[2008-6-26 11:33:20 PDT] main null
[2008-6-26 11:33:19 PDT] main Waiting for requests...

But when I pasted the URL
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in my
browser, it says: The requested application was not found on this  
server.


I wonder what is wrong with it.  Thanks again.


Probably a host naming problem.  The WOHost parameter should match  
what wotaskd is using on that machine.


Chuck




On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:


On 25.06.2008, at 18:12, Mike Schrag wrote:


This is the problem ... Or rather, your build.properties is probably
the root cause.  This variable should have been resolved at the time
build.properties was generated.


Isn't that changed whenever you change the principal class in the
Properties for that project?

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/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: Class cast exception thrown in in EODistributionContext

2008-06-26 Thread Daryl Lee
Is this with WO 5.4.x?  What does the EOClassDescription look like for  
your EO's?  Are all the attribute keys strings?



On Jun 26, 2008, at 11:45 AM, Florijan Stamenkovic wrote:


Hi all,


I get a class cast exception on the server when I try to save a  
certain type of EOs. With other types I do not have this problem.  
This is a JavaClient issue, as you can see in the stack trace below.  
I've added a breakpoint in the client app at a point where I am done  
with the EO, just before saving, and the EO itself looks fine to me,  
and it's EC passes validateForSave() without problems... So, I am a  
bit confused. Also, it is hard to determine exactly what makes this  
particular EO type fail to save, and others not.


Any thoughts?

I'll keep trying to isolate the difference that makes this type of  
EO cause this...

F

The exception, on the server side:


[2008-06-26 14:03:14 BOT] WorkerThread7 Server exception:  
com.webobjects.foundation.NSArray
[2008-06-26 14:03:14 BOT] WorkerThread7  
java.lang.ClassCastException: com.webobjects.foundation.NSArray
	at  
com 
.webobjects 
.eodistribution 
.common 
._EOSavingProxy.awakeInDistributionContext(_EOSavingProxy.java:174)
	at  
com 
.webobjects 
.eodistribution 
.EODistributionContext 
.responseToClientMessage(EODistributionContext.java:559)
	at  
com 
.webobjects 
.eodistribution 
.WOJavaClientComponent 
.handleClientRequest(WOJavaClientComponent.java:1105)
	at  
com 
.webobjects 
.eodistribution 
.WOJavaClientComponent.invokeAction(WOJavaClientComponent.java:343)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentReference.invokeAction(WOComponentReference.java:104)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java: 
110)
	at  
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 
945)
	at com.webobjects.appserver.WOSession.invokeAction(WOSession.java: 
1168)
	at  
com 
.webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 
1375)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedPage(WOComponentRequestHandler.java:196)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedSession(WOComponentRequestHandler.java:287)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._handleRequest(WOComponentRequestHandler.java:358)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
.handleRequest(WOComponentRequestHandler.java:432)
	at  
com 
.webobjects 
.appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
	at  
com 
.webobjects 
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
	at  
com 
.webobjects 
.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)

at java.lang.Thread.run(Thread.java:613)

___
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/dlee%40apple.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 [EMAIL PROTECTED]


Re: Class cast exception thrown in in EODistributionContext

2008-06-26 Thread David Avendasora

Flor,

This sounds very familiar to me, but I can't remember exactly. Can you  
send me the .plist for the Entity from your model?


Dave

On Jun 26, 2008, at 2:45 PM, Florijan Stamenkovic wrote:


Hi all,


I get a class cast exception on the server when I try to save a  
certain type of EOs. With other types I do not have this problem.  
This is a JavaClient issue, as you can see in the stack trace below.  
I've added a breakpoint in the client app at a point where I am done  
with the EO, just before saving, and the EO itself looks fine to me,  
and it's EC passes validateForSave() without problems... So, I am a  
bit confused. Also, it is hard to determine exactly what makes this  
particular EO type fail to save, and others not.


Any thoughts?

I'll keep trying to isolate the difference that makes this type of  
EO cause this...

F

The exception, on the server side:


[2008-06-26 14:03:14 BOT] WorkerThread7 Server exception:  
com.webobjects.foundation.NSArray
[2008-06-26 14:03:14 BOT] WorkerThread7  
java.lang.ClassCastException: com.webobjects.foundation.NSArray
	at  
com 
.webobjects 
.eodistribution 
.common 
._EOSavingProxy.awakeInDistributionContext(_EOSavingProxy.java:174)
	at  
com 
.webobjects 
.eodistribution 
.EODistributionContext 
.responseToClientMessage(EODistributionContext.java:559)
	at  
com 
.webobjects 
.eodistribution 
.WOJavaClientComponent 
.handleClientRequest(WOJavaClientComponent.java:1105)
	at  
com 
.webobjects 
.eodistribution 
.WOJavaClientComponent.invokeAction(WOJavaClientComponent.java:343)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentReference.invokeAction(WOComponentReference.java:104)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java: 
110)
	at  
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 
945)
	at com.webobjects.appserver.WOSession.invokeAction(WOSession.java: 
1168)
	at  
com 
.webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 
1375)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedPage(WOComponentRequestHandler.java:196)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedSession(WOComponentRequestHandler.java:287)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._handleRequest(WOComponentRequestHandler.java:358)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
.handleRequest(WOComponentRequestHandler.java:432)
	at  
com 
.webobjects 
.appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
	at  
com 
.webobjects 
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
	at  
com 
.webobjects 
.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)

at java.lang.Thread.run(Thread.java:613)

___
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%40avendasora.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 [EMAIL PROTECTED]


Wonder/Tomcat Deployment

2008-06-26 Thread Rams

Hi everybody,

I'm testing deployment of an app on Tomcat with a WAR file.  I am  
using WO 5.3.3, Project Wonder, Tomcat 6.0.16.  After discovering that  
I needed to include the JavaWOJSPServlet.jar in my build path, I was  
able to run the app on the server.  However, I'm getting some  
wonkiness.  In my search for answers, I ran across this page:


http://wiki.objectstyle.org/confluence/display/WONDER/Creating+a+wonder+app+to+deploy+as+a+servlet

Which leaves me wondering... Does the One last thing still apply?   
There doesn't seem to be a er.extensions.jspservlet.ERXServletAdaptor  
in the API docs.  Is that information still valid, or has Wonder been  
updated so that this is no longer necessary?


Thanks everyone!

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]

[solved]Re: No resources when setting a framework project dependency

2008-06-26 Thread Tonny Staunsbrink
Answering my own post but maybe someone will find it in the archive and find
it usefull one day :-)
I turned out that using a maven like project layout and not caching the
include patterns did no go well together. The resources was just not copied
into the build directory where Eclipse was running the app from. Updating
the include files solved the problem

Cheers
Tonny

On Thu, Jun 19, 2008 at 8:40 PM, Tonny Staunsbrink [EMAIL PROTECTED]
wrote:

 Hello
 I have several project in Eclipse, a couple of framework and a couple of
 apps. One of the framework contains a collection of WOComponents. I would
 really, really like to be able to edit these components and se the changes
 without reinstalling (and using Eclipses debug class reloading would also be
 nice). I though the way to do was by setting my component framework as a
 dependency in one of the apps using the framework, but doing that resulted
 in empty pages (no text or markup at all) for the pages which should have
 been loaded from the framework.
 I followed the instructions on
 http://wiki.objectstyle.org/confluence/display/WOL/Debug+Code+in+a+Framework,
 but still luck.

 Am I missing something obvious, does anyone else edit framework components
 directly?

 Cheers
 Tonny

 ___
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: Problems deploying app on Leopard server

2008-06-26 Thread David Avendasora
It may be filtered out though. If you are not seeing it, WOLips is  
likely filtering it out so you don't see it (as you really _shouldn't_  
have to mess with it).


See the Wiki here for instructions on changing WOLips' filtering  
settings:


http://wiki.objectstyle.org/confluence/display/WOL/WOLips-Eclipse+beginner+mistakes+and+questions#WOLips-Eclipsebeginnermistakesandquestions-Whydon%27tIseeallmyfiles%3F

Dave

On Jun 26, 2008, at 2:59 PM, Chuck Hill wrote:


But where is build.properties?


It should be in the top level of your project.


___
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: Wonder/Tomcat Deployment

2008-06-26 Thread Alan Zebchuk
The ERXServletAdaptor is in the ERJars frameworks in the  
erxservletadaptor.jar file.


Alan

On 26-Jun-08, at 10:10 PM, Rams wrote:


Hi everybody,

I'm testing deployment of an app on Tomcat with a WAR file.  I am  
using WO 5.3.3, Project Wonder, Tomcat 6.0.16.  After discovering  
that I needed to include the JavaWOJSPServlet.jar in my build path,  
I was able to run the app on the server.  However, I'm getting some  
wonkiness.  In my search for answers, I ran across this page:


http://wiki.objectstyle.org/confluence/display/WONDER/Creating+a+wonder+app+to+deploy+as+a+servlet

Which leaves me wondering... Does the One last thing still apply?   
There doesn't seem to be a  
er.extensions.jspservlet.ERXServletAdaptor in the API docs.  Is that  
information still valid, or has Wonder been updated so that this is  
no longer necessary?


Thanks everyone! ___
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/alan.zebchuk%40fuegodigitalmedia.com

This email sent to [EMAIL PROTECTED]




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

This email sent to [EMAIL PROTECTED]

Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
Thank you, Chuck.  I got the host name in wotaskd configuration and used it
as -WOHost when launching the app, but still the same error occurred.  I
wonder what else I should check?


On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:

 
 On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:
 
 Thank you both for your help.
 
 But where is build.properties?
 
 It should be in the top level of your project.
 
 
  In build.xml, it looks for it in my home
 directory, but I can't find it there.  Is it generated/updated when I
 compiled the application?
 
 I changed the principal class in the Properties for the project, and
 now it
 launches the application without exception:
 [2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
 Welcome to StaffDirectory !
 -- Cleaning Log Files More Than 30 Days Old
 [2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 [2008-6-26 11:33:20 PDT] main null
 [2008-6-26 11:33:19 PDT] main Waiting for requests...
 
 But when I pasted the URL
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in my
 browser, it says: The requested application was not found on this
 server.
 
 I wonder what is wrong with it.  Thanks again.
 
 Probably a host naming problem.  The WOHost parameter should match
 what wotaskd is using on that machine.
 
 Chuck
 
 
 
 On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is probably
 the root cause.  This variable should have been resolved at the time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 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/chill%40global-village.
 net
 
 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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-26 Thread Chuck Hill
What host name are you using?  For a dev machine, this should be  
localhost.  For deployment it should be the same as what hostname  
returns.  I think.  It should match the reverse DNS lookup





On Jun 26, 2008, at 1:14 PM, Xia, Wen wrote:

Thank you, Chuck.  I got the host name in wotaskd configuration and  
used it
as -WOHost when launching the app, but still the same error  
occurred.  I

wonder what else I should check?


On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:



On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:


Thank you both for your help.

But where is build.properties?


It should be in the top level of your project.



In build.xml, it looks for it in my home
directory, but I can't find it there.  Is it generated/updated  
when I

compiled the application?

I changed the principal class in the Properties for the project, and
now it
launches the application without exception:
[2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
Welcome to StaffDirectory !
-- Cleaning Log Files More Than 30 Days Old
[2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
[2008-6-26 11:33:20 PDT] main null
[2008-6-26 11:33:19 PDT] main Waiting for requests...

But when I pasted the URL
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in  
my

browser, it says: The requested application was not found on this
server.

I wonder what is wrong with it.  Thanks again.


Probably a host naming problem.  The WOHost parameter should match
what wotaskd is using on that machine.

Chuck




On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:


On 25.06.2008, at 18:12, Mike Schrag wrote:

This is the problem ... Or rather, your build.properties is  
probably
the root cause.  This variable should have been resolved at the  
time

build.properties was generated.


Isn't that changed whenever you change the principal class in the
Properties for that project?

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/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: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
On the deployment machine, in Java Monitor - Hosts tab, I got the host name
as budgetdevxs.dof.finance with IP address 192.168.11.21.

When I ran the application from command line on the server with -WOHost
budgetdevxs.dof.finance, the URL for web server connect is:
http://192.168.11.21/cgi-bin/WebObjects/StaffDirectory.woa/-54324

I pasted the URL in browser and replaced the IP address with the host name,
it still gives the same error message.  I don't know how to check the
reverse DNS lookup.



On 6/26/08 1:22 PM, Chuck Hill [EMAIL PROTECTED] wrote:

 What host name are you using?  For a dev machine, this should be
 localhost.  For deployment it should be the same as what hostname
 returns.  I think.  It should match the reverse DNS lookup
 
 
 
 
 On Jun 26, 2008, at 1:14 PM, Xia, Wen wrote:
 
 Thank you, Chuck.  I got the host name in wotaskd configuration and
 used it
 as -WOHost when launching the app, but still the same error
 occurred.  I
 wonder what else I should check?
 
 
 On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 
 On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:
 
 Thank you both for your help.
 
 But where is build.properties?
 
 It should be in the top level of your project.
 
 
 In build.xml, it looks for it in my home
 directory, but I can't find it there.  Is it generated/updated
 when I
 compiled the application?
 
 I changed the principal class in the Properties for the project, and
 now it
 launches the application without exception:
 [2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
 Welcome to StaffDirectory !
 -- Cleaning Log Files More Than 30 Days Old
 [2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 [2008-6-26 11:33:20 PDT] main null
 [2008-6-26 11:33:19 PDT] main Waiting for requests...
 
 But when I pasted the URL
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in
 my
 browser, it says: The requested application was not found on this
 server.
 
 I wonder what is wrong with it.  Thanks again.
 
 Probably a host naming problem.  The WOHost parameter should match
 what wotaskd is using on that machine.
 
 Chuck
 
 
 
 On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is
 probably
 the root cause.  This variable should have been resolved at the
 time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 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/chill%40global-villag
 e 
 .
 net
 
 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 [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-26 Thread Pascal Robert

To do a reserve DNS (IP - name) lookup, open Terminal and type :

host 192.168.11.21

And to check forward DNS (name - IP):

host budgetdevxs.dof.finance

On the deployment machine, in Java Monitor - Hosts tab, I got the  
host name

as budgetdevxs.dof.finance with IP address 192.168.11.21.

When I ran the application from command line on the server with - 
WOHost

budgetdevxs.dof.finance, the URL for web server connect is:
http://192.168.11.21/cgi-bin/WebObjects/StaffDirectory.woa/-54324

I pasted the URL in browser and replaced the IP address with the  
host name,

it still gives the same error message.  I don't know how to check the
reverse DNS lookup.



On 6/26/08 1:22 PM, Chuck Hill [EMAIL PROTECTED] wrote:


What host name are you using?  For a dev machine, this should be
localhost.  For deployment it should be the same as what hostname
returns.  I think.  It should match the reverse DNS lookup




On Jun 26, 2008, at 1:14 PM, Xia, Wen wrote:


Thank you, Chuck.  I got the host name in wotaskd configuration and
used it
as -WOHost when launching the app, but still the same error
occurred.  I
wonder what else I should check?


On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:



On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:


Thank you both for your help.

But where is build.properties?


It should be in the top level of your project.



In build.xml, it looks for it in my home
directory, but I can't find it there.  Is it generated/updated
when I
compiled the application?

I changed the principal class in the Properties for the project,  
and

now it
launches the application without exception:
[2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
Welcome to StaffDirectory !
-- Cleaning Log Files More Than 30 Days Old
[2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
[2008-6-26 11:33:20 PDT] main null
[2008-6-26 11:33:19 PDT] main Waiting for requests...

But when I pasted the URL
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in
my
browser, it says: The requested application was not found on this
server.

I wonder what is wrong with it.  Thanks again.


Probably a host naming problem.  The WOHost parameter should match
what wotaskd is using on that machine.

Chuck




On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:


On 25.06.2008, at 18:12, Mike Schrag wrote:


This is the problem ... Or rather, your build.properties is
probably
the root cause.  This variable should have been resolved at the
time
build.properties was generated.


Isn't that changed whenever you change the principal class in the
Properties for that project?

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/chill%40global-villag
e
.
net

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%40macti.ca

This email sent to [EMAIL PROTECTED]



---
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

___
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: Class cast exception thrown in in EODistributionContext

2008-06-26 Thread Florijan Stamenkovic

Daryl, Dave,


This is the Entity... It is a somewhat tricky one, but I think I got  
it right:




StructureItem.plist
Description: Binary data



Let me know if clarification of anything in it is necessary.

I am doing this on 5.3, but should be able to test it against 5.4  
sometime soon...


F


On Jun 26, 2008, at 15:01, Daryl Lee wrote:

Is this with WO 5.4.x?  What does the EOClassDescription look like  
for your EO's?  Are all the attribute keys strings?



On Jun 26, 2008, at 11:45 AM, Florijan Stamenkovic wrote:


Hi all,


I get a class cast exception on the server when I try to save a  
certain type of EOs. With other types I do not have this problem.  
This is a JavaClient issue, as you can see in the stack trace  
below. I've added a breakpoint in the client app at a point where  
I am done with the EO, just before saving, and the EO itself looks  
fine to me, and it's EC passes validateForSave() without  
problems... So, I am a bit confused. Also, it is hard to determine  
exactly what makes this particular EO type fail to save, and  
others not.


Any thoughts?

I'll keep trying to isolate the difference that makes this type of  
EO cause this...

F

The exception, on the server side:


[2008-06-26 14:03:14 BOT] WorkerThread7 Server exception:  
com.webobjects.foundation.NSArray
[2008-06-26 14:03:14 BOT] WorkerThread7  
java.lang.ClassCastException: com.webobjects.foundation.NSArray
	at  
com.webobjects.eodistribution.common._EOSavingProxy.awakeInDistributi 
onContext(_EOSavingProxy.java:174)
	at  
com.webobjects.eodistribution.EODistributionContext.responseToClientM 
essage(EODistributionContext.java:559)
	at  
com.webobjects.eodistribution.WOJavaClientComponent.handleClientReque 
st(WOJavaClientComponent.java:1105)
	at  
com.webobjects.eodistribution.WOJavaClientComponent.invokeAction 
(WOJavaClientComponent.java:343)
	at  
com.webobjects.appserver._private.WOComponentReference.invokeAction 
(WOComponentReference.java:104)
	at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
(WODynamicGroup.java:101)
	at com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110)
	at com.webobjects.appserver.WOComponent.invokeAction 
(WOComponent.java:945)
	at com.webobjects.appserver.WOSession.invokeAction(WOSession.java: 
1168)
	at com.webobjects.appserver.WOApplication.invokeAction 
(WOApplication.java:1375)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler._dispatch 
WithPreparedPage(WOComponentRequestHandler.java:196)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler._dispatch 
WithPreparedSession(WOComponentRequestHandler.java:287)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler._dispatch 
WithPreparedApplication(WOComponentRequestHandler.java:322)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler._handleRe 
quest(WOComponentRequestHandler.java:358)
	at  
com.webobjects.appserver._private.WOComponentRequestHandler.handleReq 
uest(WOComponentRequestHandler.java:432)
	at com.webobjects.appserver.WOApplication.dispatchRequest 
(WOApplication.java:1306)
	at com.webobjects.appserver._private.WOWorkerThread.runOnce 
(WOWorkerThread.java:173)
	at com.webobjects.appserver._private.WOWorkerThread.run 
(WOWorkerThread.java:254)

at java.lang.Thread.run(Thread.java:613)

___
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/dlee% 
40apple.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 [EMAIL PROTECTED]

Re: Problems deploying app on Leopard server

2008-06-26 Thread Xia, Wen
I tried the command, the host name matches the reverse DNS lookup.


On 6/26/08 1:43 PM, Pascal Robert [EMAIL PROTECTED] wrote:

 To do a reserve DNS (IP - name) lookup, open Terminal and type :
 
 host 192.168.11.21
 
 And to check forward DNS (name - IP):
 
 host budgetdevxs.dof.finance
 
 On the deployment machine, in Java Monitor - Hosts tab, I got the
 host name
 as budgetdevxs.dof.finance with IP address 192.168.11.21.
 
 When I ran the application from command line on the server with -
 WOHost
 budgetdevxs.dof.finance, the URL for web server connect is:
 http://192.168.11.21/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 
 I pasted the URL in browser and replaced the IP address with the
 host name,
 it still gives the same error message.  I don't know how to check the
 reverse DNS lookup.
 
 
 
 On 6/26/08 1:22 PM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 What host name are you using?  For a dev machine, this should be
 localhost.  For deployment it should be the same as what hostname
 returns.  I think.  It should match the reverse DNS lookup
 
 
 
 
 On Jun 26, 2008, at 1:14 PM, Xia, Wen wrote:
 
 Thank you, Chuck.  I got the host name in wotaskd configuration and
 used it
 as -WOHost when launching the app, but still the same error
 occurred.  I
 wonder what else I should check?
 
 
 On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 
 On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:
 
 Thank you both for your help.
 
 But where is build.properties?
 
 It should be in the top level of your project.
 
 
 In build.xml, it looks for it in my home
 directory, but I can't find it there.  Is it generated/updated
 when I
 compiled the application?
 
 I changed the principal class in the Properties for the project,
 and
 now it
 launches the application without exception:
 [2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
 Welcome to StaffDirectory !
 -- Cleaning Log Files More Than 30 Days Old
 [2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 [2008-6-26 11:33:20 PDT] main null
 [2008-6-26 11:33:19 PDT] main Waiting for requests...
 
 But when I pasted the URL
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in
 my
 browser, it says: The requested application was not found on this
 server.
 
 I wonder what is wrong with it.  Thanks again.
 
 Probably a host naming problem.  The WOHost parameter should match
 what wotaskd is using on that machine.
 
 Chuck
 
 
 
 On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is
 probably
 the root cause.  This variable should have been resolved at the
 time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 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/chill%40global-vill
 ag
 e
 .
 net
 
 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%40macti.ca
 
 This email sent to [EMAIL PROTECTED]
 
 
 ---
 Pascal Robert
 
 http://www.macti.ca
 http://www.linkedin.com/in/macti
 
 Skype: MacTICanada
 AIM/iChat : MacTICanada
 

 ___
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: [OT] Objective-c library that would resemble EO talking to SQLite

2008-06-26 Thread Miguel Arroz

Hi!

  I may be missing the point, but if it's an WO app, why do you need  
to care about all that stuff? You just need Safari...


  Yours

Miguel Arroz

On 2008/06/26, at 19:39, Baiss Eric Magnusson wrote:

I have been implementing my WebObjects based Track-Your-Finances on  
the iPhone, still at the early phases.


I assume I'm not violating the NDA below...

On the iPhone we have SQLite http://www.sqlite.org/lang.html.

In a sample app, they, have written an objective-c class that,  
well from the perspective of EO, hacks at SQLite.


Is there any intermediary objective-c library that would resemble  
EO's talking to SQLite?

Would Core Data be worth waiting for?

Some interesting tidbits:

I have been able to take the sql generated by EOModeler, which  
currently connects to Frontbase, and generate all the tables in  
SQLite by using SQLiteManager. This database then gets embedded  
in the iPhone app and becomes part of the iPhone's arena. I did do  
some hand editing of the sql. I'm sure I could have used Frontbase  
generated sql also.



Baiss Eric Magnusson
Cascade Web Design
http://www.CascadeWebDesign.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/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]

Re: Maven

2008-06-26 Thread Lachlan Deck
You might also need to customise the perspective to reveal that as a  
standard option from the New menu. Otherwise click on other...


On 26/06/2008, at 7:02 AM, Jake MacMullin wrote:

Make sure you installed the required Maven plugin before installing  
the Apple plugin.


On 25/06/2008, at 10:23, Amedeo Mantica [EMAIL PROTECTED]  
wrote:



I followed the tutorial:

http://wiki.objectstyle.org/confluence/display/WO/Apple+Maven+Support+and+Nightly+Builds

but when I create a new project I have no WebObjects Maven  
Application


Any suggestion?

regards
Amedeo
___
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/jmacmullin%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/lachlan.deck%40gmail.com

This email sent to [EMAIL PROTECTED]


with regards,
--

Lachlan Deck



___
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: Problems deploying app on Leopard server

2008-06-26 Thread Art Isbell

On Jun 26, 2008, at 4:26 AM, Yves Selliez wrote:

I don’t know if that may help you, but what is sure is that you  
should modify your woapp with this set of permission :


chown -R appserver:appserveradm yourapp.woa
chmod -R 755 yourapp.woa

For me the group “appserverusr” (as written somewhere) did not work,  
and just made that the app just didn’t start at all.



	You must be experiencing a different problem, because we deploy our  
WO apps with root owner and wheel group.  So changing owner to  
appserver and group to appserveradm for all app files is unnecessary.   
Also, making every file in the woa bundle executable is just wrong,  
but may be solving the real problem (although using overkill to do so).


	If you are using ant to build deployable apps with the build.xml file  
included with WOLips, you may be running into the problem that  
yourapp.woa/yourapp and yourapp.woa/Contents/MacOS/yourapp have 750  
permissions but an owner that's not appserver.  In this situation,  
wotaskd, running as appserver, cannot execute your WO app shell  
scripts, so your WO apps won't start.


The manual fix:

sudo chmod 755 yourapp.woa/yourapp yourapp.woa/Contents/MacOS/yourapp

	An automatic fix (thanks to Chuck Hill!) is to insert the following  
in build.xml just prior to the closing /target tag in the  
build.woapp target:


		!-- Change file permissions from 750 to 755 for build product  
executables --
chmod file=${dest.dir}${file.separator}${project.name}.woa$ 
{file.separator}${project.name} perm=755/
chmod file=${dest.dir}${file.separator}${project.name}.woa$ 
{file.separator}Contents${file.separator}MacOS${file.separator}$ 
{project.name} perm=755/


Making this build.xml change in all of your app projects will ensure  
that you won't forget to perform the manual fix after each deployment  
installation which plagued me.


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

Re: Disable displaying contents of WOComponent

2008-06-26 Thread Lachlan Deck

On 27/06/2008, at 12:38 AM, Freddie Tilley wrote:


((WOComponentReference)el)._contentElement = null;


You're toying with private data. So you should expect strange  
behaviour unless you reinstate the component behaviour via similar  
custom code.


You've got a couple of options:

1)
public class AccessibleComponent extends ...
{
public void appendToResponse( WOResponse response, WOContext context )
{
if ( canViewComponent() )
super.appendToResponse( response, context );
else
			 
pageWithName 
( ERXEmptyComponent.class.getName() ).appendToResponse( response,  
context );

}
}

2) as Thomas suggested
YourComponent.html
wo:WOConditional condition = $canViewComponent
...
/wo:WOConditional


with regards,
--

Lachlan Deck
___
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: [OT] Objective-c library that would resemble EO talking to SQLite

2008-06-26 Thread Paul Lynch

This doesn't quite resemble EO, but you might take a look at QuickLite.

http://www.webbotech.com/

I'd describe it as being loosely at JDBC level - probably better than  
most likely quick hacks, but a long way from Enterprise Objects.  I  
have used it in an app that had to run on pre-Core Data versions of  
Mac OS X.


Paul

On 26 Jun 2008, at 19:39, Baiss Eric Magnusson wrote:

I have been implementing my WebObjects based Track-Your-Finances on  
the iPhone, still at the early phases.


I assume I'm not violating the NDA below...

On the iPhone we have SQLite http://www.sqlite.org/lang.html.

In a sample app, they, have written an objective-c class that,  
well from the perspective of EO, hacks at SQLite.


Is there any intermediary objective-c library that would resemble  
EO's talking to SQLite?

Would Core Data be worth waiting for?

Some interesting tidbits:

I have been able to take the sql generated by EOModeler, which  
currently connects to Frontbase, and generate all the tables in  
SQLite by using SQLiteManager. This database then gets embedded  
in the iPhone app and becomes part of the iPhone's arena. I did do  
some hand editing of the sql. I'm sure I could have used Frontbase  
generated sql also.


 ___
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: [OT] Objective-c library that would resemble EO talking to SQLite

2008-06-26 Thread Lon Varscsak
You can also look at AJRDatabase (
http://sourceforge.net/projects/ajrdatabase/) which is an opensource
(Objective-C) clone of EOF.  Last I looked it's pretty thorough.  They do
have a SQLite adaptor.
Lon

On Thu, Jun 26, 2008 at 3:14 PM, Paul Lynch [EMAIL PROTECTED] wrote:

 This doesn't quite resemble EO, but you might take a look at QuickLite.
 http://www.webbotech.com/

 I'd describe it as being loosely at JDBC level - probably better than most
 likely quick hacks, but a long way from Enterprise Objects.  I have used it
 in an app that had to run on pre-Core Data versions of Mac OS X.

 Paul

 On 26 Jun 2008, at 19:39, Baiss Eric Magnusson wrote:

 I have been implementing my WebObjects based Track-Your-Finances on the
 iPhone, still at the early phases.

 I assume I'm not violating the NDA below...

 On the iPhone we have SQLite http://www.sqlite.org/lang.html.

 In a sample app, they, have written an objective-c class that, well from
 the perspective of EO, hacks at SQLite.

 Is there any intermediary objective-c library that would resemble EO's
 talking to SQLite?
 Would Core Data be worth waiting for?

 Some interesting tidbits:

 I have been able to take the sql generated by EOModeler, which currently
 connects to Frontbase, and generate all the tables in SQLite by using
 SQLiteManager. This database then gets embedded in the iPhone app and
 becomes part of the iPhone's arena. I did do some hand editing of the sql.
 I'm sure I could have used Frontbase generated sql also.


  ___
 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/varscsak%40smarthealth.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 [EMAIL PROTECTED]

Re: Disable displaying contents of WOComponent

2008-06-26 Thread Don Lindsay

Hello;

I show and hide, as well as enable and disable components within my  
applications.Using the conditional in #2 works flawlessly for  
showing/hiding components the user should not have access to view. 
As suggested, if you do not like seeing the conditionals in your code,  
create your own component and wrap the WO... component you want in a  
conditional, then expose a property to set the visibility of the  
conditional.


Don
On Jun 26, 2008, at 5:40 PM, Lachlan Deck wrote:


On 27/06/2008, at 12:38 AM, Freddie Tilley wrote:


((WOComponentReference)el)._contentElement = null;


You're toying with private data. So you should expect strange  
behaviour unless you reinstate the component behaviour via similar  
custom code.


You've got a couple of options:

1)
public class AccessibleComponent extends ...
{
	public void appendToResponse( WOResponse response, WOContext  
context )

{
if ( canViewComponent() )
super.appendToResponse( response, context );
else
			 
pageWithName 
( ERXEmptyComponent.class.getName() ).appendToResponse( response,  
context );

}
}

2) as Thomas suggested
YourComponent.html
wo:WOConditional condition = $canViewComponent
...
/wo:WOConditional


with regards,
--

Lachlan Deck
___
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/pccdonl 
%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 [EMAIL PROTECTED]


context().hasSession() returns false... then true?

2008-06-26 Thread Rams

Hi Everyone...

I have an app deployed on Tomcat 6.0.16 and it appears that  
context().hasSession() is failing to produce reliable results.  In my  
Main WO I have:


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}

and in my Main WO, that resolves to false, and then true.  I'm not  
calling session() anywhere.  I'm logging session creation in my  
Application.createSessionForRequest method and the session *should*  
exist before the first call.  It's also failing in my logout direct  
action


public WOActionResults logoutAction() {
if(context().hasSession()) {
NSLog.out.appendln(Terminating session:  + 
session().sessionID());
session().terminate();
} else {
			NSLog.out.appendln(logoutAction(): context().hasSession() ==  
FALSE);

}

	WORedirect mainPage = (WORedirect)  
pageWithName(WORedirect.class.getName());

mainPage.setUrl(
context().directActionURLForActionNamed(
	default, new NSDictionaryObject,Object(Boolean.FALSE,  
wosid)));


return mainPage;
}

All of this works fine in WOLips.  It's failing on Tomcat.  I'm using  
WO 5.3.3 and Wonder.  Is this a known bug with a known workaround?  Am  
I doing something dumb?  Any help/advice/insight would be appreciated.


Thanks all!




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]

Re: Maven

2008-06-26 Thread Kazutaka KAMIYA

Hello,

I tried below wiki and I could build .woa.



http://wiki.objectstyle.org/confluence/display/WO/Apple+Maven+Support+and+Nightly+Builds





but that .woa could not launch.

Are there any problem WOBootstrap.jar of maven2?

(.woa launched correctly after I changed WOBootstrap.jar from other  
application's. )




.woa using maven2 output below message when launching.
--
./myProject
Reading MacOSClassPath.txt ...
Checking network services
Launching myProject.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System - 
DWOLocalRootDirectory= -DWOUserDirectory=/Users/kzkamiya/Documents/ 
workspace.lms/TestWOMaven2/target/myProject.woa -DWOEnvClassPath= - 
DWOApplicationClass=com.mycompany.Application -DWOPlatform=MacOS - 
Dcom.webobjects.pid=5651 -Dcom.sun.management.jmxremote=false - 
classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap
Exception in thread main java.lang.NoClassDefFoundError: com/ 
webobjects/_bootstrap/WOBootstrap
Caused by: java.lang.ClassNotFoundException:  
com.webobjects._bootstrap.WOBootstrap

at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
--


WOBootstrap.jar created by maven2 could not decompress.

jar tf WOBootstrap.jar
java.util.zip.ZipException: invalid block type
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:146)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:92)
at sun.tools.jar.Main.list(Main.java:885)
at sun.tools.jar.Main.run(Main.java:213)
at sun.tools.jar.Main.main(Main.java:1044)


---
Regards, Kazutaka.


On 2008/06/27, at 6:13, Lachlan Deck wrote:

You might also need to customise the perspective to reveal that as a  
standard option from the New menu. Otherwise click on other...


On 26/06/2008, at 7:02 AM, Jake MacMullin wrote:

Make sure you installed the required Maven plugin before installing  
the Apple plugin.


On 25/06/2008, at 10:23, Amedeo Mantica [EMAIL PROTECTED]  
wrote:



I followed the tutorial:

http://wiki.objectstyle.org/confluence/display/WO/Apple+Maven+Support+and+Nightly+Builds

but when I create a new project I have no WebObjects Maven  
Application


Any suggestion?

regards
Amedeo
___
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/jmacmullin%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/lachlan.deck%40gmail.com

This email sent to [EMAIL PROTECTED]


with regards,
--

Lachlan Deck



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


Re: move from using EO_PK_TABLE to OpenBase plugin

2008-06-26 Thread Shelley Eitzen


Thanks, but still no go.

I have completed Amedeo suggestion, but still I get the same fatal exception.
[2008-06-27 09:08:35 CST] main A fatal exception occurred: ERXExtensions
have not been initialized. Please report the classpath and the rest of the
bundles to the Wonder mailing list:
Remaining frameworks: [OpenBasePKPlugIn]

As soon as I add the openbase framework to the application, the app no
longer runs.

Shelley



Hello,

if you have put

plugin: com.webobjects.jdbcadaptor.OpenBasePKPlugIn
in your model,

then you should NOT add
JDBCPlugIn
.setPlugInNameForSubprotocol
(com.webobjects.jdbcadaptor.OpenBasePKPlugIn in the Application
constructor
(remove the unnecessary imports too)

Hope this helps

Regards
Amedeo


 ___
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: Wonder/Tomcat Deployment

2008-06-26 Thread Don Lindsay

Hello;

Are there any errors in your catalina.out or localhost_%DATETIME%.log  
files?  Is this an application that requires a user to login?


Don
On Jun 26, 2008, at 3:10 PM, Rams wrote:


Hi everybody,

I'm testing deployment of an app on Tomcat with a WAR file.  I am  
using WO 5.3.3, Project Wonder, Tomcat 6.0.16.  After discovering  
that I needed to include the JavaWOJSPServlet.jar in my build path,  
I was able to run the app on the server.  However, I'm getting some  
wonkiness.  In my search for answers, I ran across this page:


http://wiki.objectstyle.org/confluence/display/WONDER/Creating+a+wonder+app+to+deploy+as+a+servlet

Which leaves me wondering... Does the One last thing still apply?   
There doesn't seem to be a  
er.extensions.jspservlet.ERXServletAdaptor in the API docs.  Is that  
information still valid, or has Wonder been updated so that this is  
no longer necessary?


Thanks everyone! ___
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/pccdonl 
%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 [EMAIL PROTECTED]


Re: context().hasSession() returns false... then true?

2008-06-26 Thread Don Lindsay

Hello;

Are there any errors in your catalina.out or localhost_%DATETIME%.log  
files?  Is this an application that requires a user to login?


Don

Sorry this was supposed to apply to this message not Wonder/Tomcat  
Documentation.


Don
On Jun 26, 2008, at 7:21 PM, Rams wrote:


Hi Everyone...

I have an app deployed on Tomcat 6.0.16 and it appears that  
context().hasSession() is failing to produce reliable results.  In  
my Main WO I have:


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}

and in my Main WO, that resolves to false, and then true.  I'm not  
calling session() anywhere.  I'm logging session creation in my  
Application.createSessionForRequest method and the session *should*  
exist before the first call.  It's also failing in my logout direct  
action


public WOActionResults logoutAction() {
if(context().hasSession()) {
			NSLog.out.appendln(Terminating session:  +  
session().sessionID());

session().terminate();
} else {
			NSLog.out.appendln(logoutAction(): context().hasSession() ==  
FALSE);

}

	WORedirect mainPage = (WORedirect)  
pageWithName(WORedirect.class.getName());

mainPage.setUrl(
context().directActionURLForActionNamed(
	default, new NSDictionaryObject,Object(Boolean.FALSE,  
wosid)));


return mainPage;
}

All of this works fine in WOLips.  It's failing on Tomcat.  I'm  
using WO 5.3.3 and Wonder.  Is this a known bug with a known  
workaround?  Am I doing something dumb?  Any help/advice/insight  
would be appreciated.


Thanks all!


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


Re: context().hasSession() returns false... then true?

2008-06-26 Thread Rams
Yes, the application has a login with the logged in user entity stored  
in the session.  I do have an error in the log file, although I don't  
know what it means...


Jun 26, 2008 6:05:13 PM org.apache.catalina.core.StandardContext  
processTlds SEVERE: Error reading tld listeners  
javax.servlet.ServletException: Exception processing TLD at resource  
path /WEB-INF/tlds/WOtaglib_1_0.tld in context /myapp  
javax.servlet.ServletException: Exception processing TLD at resource  
path /WEB-INF/tlds/WOtaglib_1_0.tld in context /myapp at  
org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:557)  
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:295)  
at  
org 
.apache.catalina.core.StandardContext.processTlds(StandardContext.java: 
4441) at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4248) at  
org 
.apache 
.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)  
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 
771) at  
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)  
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java: 
829) at  
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)  
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java: 
490) at org.apache.catalina.startup.HostConfig.check(HostConfig.java: 
1215) at  
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java: 
293) at  
org 
.apache 
.catalina 
.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)  
at  
org 
.apache 
.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java: 
1337) at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)  
at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)  
at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.run(ContainerBase.java:1590) at  
java.lang.Thread.run(Thread.java:613) Caused by:  
java.lang.NullPointerException at  
org 
.apache 
.xerces.impl.dtd.models.DFAContentModel.buildDFA(DFAContentModel.java: 
538) at  
org 
.apache 
.xerces.impl.dtd.models.DFAContentModel.init(DFAContentModel.java: 
253) at  
org.apache.xerces.impl.dtd.DTDGrammar.createChildModel(DTDGrammar.java: 
2271) at  
org 
.apache 
.xerces 
.impl.dtd.DTDGrammar.getElementContentModelValidator(DTDGrammar.java: 
1727) at  
org.apache.xerces.impl.dtd.DTDGrammar.getElementDecl(DTDGrammar.java: 
1271) at  
org 
.apache 
.xerces 
.impl.dtd.XMLDTDValidator.getContentSpecType(XMLDTDValidator.java: 
1645) at  
org 
.apache 
.xerces 
.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java: 
1831) at  
org 
.apache 
.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java: 
724) at  
org 
.apache 
.xerces 
.impl 
.XMLDocumentFragmentScannerImpl 
.scanStartElement(XMLDocumentFragmentScannerImpl.java:759) at  
org.apache.xerces.impl.XMLDocumentScannerImpl 
$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java: 
957) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl 
$ 
FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java: 
1544) at  
org 
.apache 
.xerces 
.impl 
.XMLDocumentFragmentScannerImpl 
.scanDocument(XMLDocumentFragmentScannerImpl.java:329) at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
525) at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)  
at  
org 
.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 
1175) at org.apache.tomcat.util.digester.Digester.parse(Digester.java: 
1644) at  
org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java: 
518) at  
org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java: 
555) ... 17 more


On Jun 26, 2008, at 8:07 PM, Don Lindsay wrote:


Hello;

Are there any errors in your catalina.out or localhost_%DATETIME 
%.log files?  Is this an application that requires a user to login?


Don

Sorry this was supposed to apply to this message not Wonder/Tomcat  
Documentation.


Don
On Jun 26, 2008, at 7:21 PM, Rams wrote:


Hi Everyone...

I have an app deployed on Tomcat 6.0.16 and it appears that  
context().hasSession() is failing to produce reliable results.  In  
my Main WO I have:


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}

and in my Main WO, that resolves to false, and then true.  I'm not  
calling session() anywhere.  I'm logging session creation in my  
Application.createSessionForRequest method and the session *should*  
exist before the first call.  It's also failing in my logout direct  
action


public WOActionResults logoutAction() {
if(context().hasSession()) {
			NSLog.out.appendln(Terminating 

Zombie instance conundrum.

2008-06-26 Thread John Lennard

Hi,

I am finding my self in a bit of a conundrum 
___

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]


Zombies and Dead WOAs... Part Two..

2008-06-26 Thread John Lennard

Okay,
So I will try this again, having been bested by my mail program :-/

I am currently having issues with instances gumming up and seemingly  
deadlocking and I also noticing lots of Zombie Java processes being  
created after an application restarts.




So my questions are really two fold..



Firstly, is it possible to attach Eclipse as a debugger to a remote  
running instance in order to see why things are fouling up. I have  
read Andrew Lindesay's document on using jdb, but I am hoping that  
there may be a way to debug everything in a little more detail. Worst  
case, I can pester him since he is in the office next door :-p


The processes that are deadlocking tend to also then not want to be  
killed by the monitor and need to be dealt with the good old fashioned  
way and need to be killed with a sig KILL...




Secondly, has anybody else seen or experienced these zombie webobjects  
processes that appear after monitor/wotaskd restarts. I have already  
tried the wonder monitor and wotaskd and these dont seem to fix  
anything.




I am currenly running on WO 5.3.4 and Tigger Server..



Thanks

John


___
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: Zombies and Dead WOAs... Part Two..

2008-06-26 Thread Chuck Hill


On Jun 26, 2008, at 9:22 PM, John Lennard wrote:


Okay,
So I will try this again, having been bested by my mail program :-/


I restrained myself from poking fun at you.  :-P


I am currently having issues with instances gumming up and  
seemingly deadlocking and I also noticing lots of Zombie Java  
processes being created after an application restarts.


So my questions are really two fold..

Firstly, is it possible to attach Eclipse as a debugger to a remote  
running instance in order to see why things are fouling up. I have  
read Andrew Lindesay's document on using jdb, but I am hoping that  
there may be a way to debug everything in a little more detail.  
Worst case, I can pester him since he is in the office next door :-p


I am not sure, but jstack can give you a thread dump which is often  
all that you need to know.



The processes that are deadlocking tend to also then not want to be  
killed by the monitor and need to be dealt with the good old  
fashioned way and need to be killed with a sig KILL...


Two things come immediately to mind:

1. You have created non-daemon threads that are not shutting down
2. Your session sleep() or terminate() is throwing and creating  
sessions that never die


A thread dump may help to sort this out.


Secondly, has anybody else seen or experienced these zombie  
webobjects processes that appear after monitor/wotaskd restarts. I  
have already tried the wonder monitor and wotaskd and these dont  
seem to fix anything.


What do you mean by  zombie webobjects processes?  How are you  
restarting monitor/wotaskd.  More information on what you are doing /  
seeing may help.




I am currenly running on WO 5.3.4 and Tigger Server..



And Tiggers are a wonderful thing!



--

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: Zombies and Dead WOAs... Part Two..

2008-06-26 Thread Pierce T. Wetter III
I am currently having issues with instances gumming up and  
seemingly deadlocking and I also noticing lots of Zombie Java  
processes being created after an application restarts.


So my questions are really two fold..

Firstly, is it possible to attach Eclipse as a debugger to a remote  
running instance in order to see why things are fouling up. I have  
read Andrew Lindesay's document on using jdb, but I am hoping that  
there may be a way to debug everything in a little more detail.  
Worst case, I can pester him since he is in the office next door :-p


I am not sure, but jstack can give you a thread dump which is often  
all that you need to know.


  I have a perl script that pings all the apps on a regular basis and  
if one deadlocks it jstacks it and kills it.


  Let me know if you'd like it.

 Pierce

___
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]