Re: Problem with single directory deployment
Re: Problem with single directory deployment
- Subject: Re: Problem with single directory deployment
- From: Dov Rosenberg <email@hidden>
- Date: Tue, 25 Jan 2005 09:00:45 -0500
I don't thinik your problem is in the SSDD. I think your connection
dictionary is incorrect. Can you browse the database using EOModeler? Do you
replace the connection dictionary at start up based on a configuration file?
By default if the frameworks don't get a new connection dictionary when the
model is loaded, it uses whatever it finds embedded in the EOModel.
You also need to make sure your SSDD contains your model and the classes.
During the SSDD the model and plist files are usually copied to your
/WEB-INF/Application.woa/Contents/Resources directory, and if your model is
in a framework, that framework is copied to the /WEB-INF/Library/Frameworks
directory.
Make sure that your /WEB-INF/web.xml contains the correct jar files in the
WOCLASSPATH parameter
Check to make sure the WOServletAdaptor is loaded properly when the servlet
engine starts. If there is an exception during the loading of the
WOServletAdaptor the EOF stack is usually not initialized properly.
If you are still having problems, post your start up log to the list.
--
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com
On 1/25/05 1:21 AM, "Shravan" <email@hidden> 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:
This email sent to email@hidden