Re: Problem with single directory deployment
Re: Problem with single directory deployment
- Subject: Re: Problem with single directory deployment
- From: Mark Edwards <email@hidden>
- Date: Thu, 27 Jan 2005 08:48:18 +1100
We've had several problems with the single directory deployment
configuration. You might have better success with:
SERVLET_COPY_JARS = YES
SERVLET_SINGLE_DIR_DEPLOY = NO
SERVLET_TRUE_WAR = YES
HTH.
Regards,
Mark Edwards
On 25 Jan 2005, at 17:21, Shravan wrote:
Hi All!
Thanks a lot for your help last time..but things havn't changed for
me. I guess i should share more information in order to debug this
problem. Please help me if you can.
Here is what i did
1) Created a simple WOApplication using MySQL.
2) Customized the EO files in this process
3) build and run the application in XCode and it works fine.
4) This Application is in the default package
Now i wanted to deploy it as a single servlet so here is what i did
for that
1) I went to "Groups & Files">"Targets">"MyApplication">
"Settings">"Expert View" and changed the following
SERVLET_COPY_JARS = YES
SERVLET_DEPLOY_LICENSE = B-321-WWB-171-XUG-349-ICB-279-HGE-340
SERVLET_SINGLE_DIR_DEPLOY = YES
SERVLET_TRUE_WAR = NO
SERVLET_WEBAPPS_DIR =
/Developer/Applications/jakarta-tomcat-4.1.29/webapps
SPLIT_INSTALL = NO
WEBSERVER_CONTENTS_DIR = "$(WEBSERVER_WRAPPER_DIR)/Contents"
WEBSERVER_INSTALL_DIR = "$(WEBSERVER_INSTALL_DIR_APPLICATION)"
WEBSERVER_RESOURCES_DIR = "$(CONTENTS_DIR)/WebServerResources"
WEBSERVER_RESOURCES_JAVA_DIR = "$(WEBSERVER_RESOURCES_DIR)/Java"
WOAPPLICATION_CLASS_NAME = Application
2) After that build the application from XCode
3) This created a folder in my webapps directory of tomcat with same
name as my application.
4) Restarted the tomcat and try try it out in my browser
This is what i see
Application: WOAAddressBookEx
Error: java.lang.IllegalStateException exception
Reason:
java.lang.IllegalStateException: An Exception occurred while
generating the Exception page 'WOExceptionPage'. This is most likely
due to an error in 'WOExceptionPage' itself or WebObjects encountered
an uncaught exception while creating a Session object.
Below are the logs of the original Exception which occured in
Application, then the later Exception in WOExceptionPage.
Original Exception:
java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@520d2a: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
WOExceptionPage Exception:
com.webobjects.foundation.NSForwardException
[java.lang.IllegalStateException] _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@520d2a: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.: <Session> failed instantiation.
Exception thrown :
java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@520d2a: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@520d2a: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
MySQL and tomcat are on the same machine and user permissions are set
properly as it is working fine with standard WO deployment (again on
the same machine).
I have no idea where to look for. Please help if anyone has any idea.
Thanks in advance.
Cheers
Shravan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden