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, 18 Jan 2005 08:31:38 -0500
The exception implies that it couldn't connect to the database with the
connection information it could find. By default it looks in the
index.eomodel file for the connection dictionary. If you change the
connection dictionary at run time, make sure to do it after the model gets
loaded but before the database connection is made.
Also for MySQL make sure that the user account permissions are set up
properly. If you can connect from the local box but not an external one,
your permissions are not set up properly.
Based on the error message it doesn't look like your problem is in your
driver (unless it is not configured properly). If you can browse the data in
EOModeler you should be good to go unless your permissions are not set up
properly. As long as your JDBC driver is located in the /WEB-INF/lib
directory the web app should find it with no problems.
HTH
--
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com
On 1/17/05 8:31 PM, "Shravan" <email@hidden> wrote:
> Yes there is and JavaJDBCAdaptor.framework is included in the
> "Frameworks" folder of the project and "Library" folder of "WEB-INF" in
> tomcat . But i don't know what it is for and how to use it. I read
> "Inside WebObjects: Deploying Applications" when EOModeler din't work
> with MySQL. I downloaded MySQL - mm.mysql and installed them and both
> WebObjects and EOModeler worked fine except when i deploy the
> WOapplication as servlet using single directory deployment. It works
> fine as default WebObjects application. I have no idea where to start
> looking for. My Idea is to deploy WO application on systems that don't
> have WO installed.
>
> On 18/01/2005, at 11:32 AM, Chuck Hill wrote:
>
>> Isn't there a plugin for MySQL? Hmmm, part of the JavaJDBCAdaptor,
>> isn't
>> it? Is that getting into your deployment as well?
>>
>>
>>
>> At 11:01 AM 18/01/2005 +1100, Shravan wrote:
>>> Hi!
>>> Can anyone help me with this. Am new to WebObjects. I created a small
>>> address book application using WO5.2.3/MySQL4.0.21 on OS X v10.3.7. It
>>> runs fine when running as WebObjects application. I tried to deploy
>>> the
>>> application in Tomcat 4.1.29 using single directory deployment. I get
>>> the error shown below. I have tried placing the jdbc driver jar file
>>> in
>>> tomcat's shared/lib folder and tested with a JSP file and it works
>>> well. Non database webobjects applications works well when i do the
>>> single directory deployment.
>>>
>>> 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@564b26: 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@564b26: 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@564b26: 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@564b26: failed to open
>>> database channel. Check your connection dictionary, and ensure your
>>> database is correctly configured.
>>>
>>> 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:
>>> villag
>> e.net
>>>
>>> This email sent to email@hidden
>>>
>>
>> --
>>
>> Chuck Hill email@hidden
>> Global Village Consulting Inc.
>> http://www.global-village.net
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> n.com
>
> 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