• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with single directory deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Problem with single directory deployment (From: Dov Rosenberg <email@hidden>)
 >Re: Problem with single directory deployment (From: Shravan <email@hidden>)

  • Prev by Date: [OT] Need some infos about aspx to sell a wo-project
  • Next by Date: Re: Many to Many self join
  • Previous by thread: Re: Problem with single directory deployment
  • Next by thread: Re: Problem with single directory deployment
  • Index(es):
    • Date
    • Thread