On Oct 11, 2006, at 5:09 PM, Robert Walker wrote:
Hello List,
I am attempting, for the first time, to deploy an application to
Tomcat. The deployment server is not under my control and will
offer Tomcat only (no JBoss). I don't expect that to be a problem
given that this is a pure WO application with no EJB stuff or JSP
or anything like that.
I am currently working on a test system running Mac OS X Server
(10.4.8) and deploying my application to /Library/Tomcat/webapps.
Initially all seems well. The program runs by accessing http://
localhost:9006/MyApp/WebObjects/MyApp.woa. My application first
checks the database and if certain tables are empty it performs
some basic configuration by inserting some enumeration data. All
this works well. I get data in my MySQL database.
Then I get the "Welcome" page, which works fine. Now when I click
a hyperlink that links to any page that has instance variables tied
to the component through bindings I get the following error.
--------------------------------------------
Error:
com.webobjects.foundation.NSForwardException
[com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException]
[ takeValueForKey()]: attempt to assign value to unknown key:
'displayGroup'. This WOComponent does not have an instance variable
of the name displayGroup or _displayGroup, nor a method of the name
setDisplayGroup or _setDisplayGroup
--------------------------------------------
I know my keys are good because this all works fine using the
normal WebObjects deployment.
I also looked at catalina.out in the log file where I get the
follow error:
--------------------------------------------
- <com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException
[com.webobjects.foundation.NSForwardException] null
--------------------------------------------
You might try adding this in Application:
public WOResponse handleException( java.lang.Exception
anException, WOContext aContext )
{
if (anException instanceof NSForwardException) return
handleException(((NSForwardException )anException).originalException
(), aContext);
return super.handleException( anException, aContext )
}
Perhaps that will show something of use.
Chuck
This is a very basic application. If I had control of the
deployment server I would definitely not be trying Tomcat. I would
just deploy the normal way and all would be fine.
This is seriously about to drive my way from WebObjects for this
small project. Don't get me wrong, I love WO, but I'm about to
throw in the hat on this one. Ruby on Rail is starting to look
very attractive about now. And that's available on this server too.
Please help end my frustration so I can get this simple application
deployed. Thanks a million as always.
--
Robert Walker
[EMAIL PROTECTED]
There are 10 types of people in the world, those who count in
binary, and those who don't.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-
[EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/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-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [email protected]