Okay, I figured it out.
In my Context.xml file (which Tomcat copies and renames to the conf/
Catalina/localhost/MyApp.xml upon startup, the datasource Resource
"name" parameters have to match the name of the EOModel.
So, if your model is named MyApp.eomodel, the data source "name"
parameter must be "MyModel"
Example:
Model file named: MyModel.eomodel
Context.xml/MyApp.xml:
<Resource
auth="Container"
description="MyApp Data Source"
name="MyModel"
type="javax.sql.DataSource"
driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
url="jdbc:microsoft:sqlserver://serveraddress:1433;databaseName=TEST"
username="user"
password="pass"
maxActive="4"
maxWait="5000"
maxIdle="10"
/>
Hope this helps someone else (or my future self)!
Dave
On Feb 8, 2008, at 4:21 PM, David Avendasora wrote:
Hi all,
I'm getting the following error:
[2008-02-08 16:11:42,847] <http-8080-2> NSLog$Log4JLogger - An
exception occurred while trying to open a channel:
com.webobjects.jdbcadaptor.JDBCAdaptorException: Found multiple
data sources. Please map the EOModels to a data source explicitly!
How do you explicitly tie a EOModel to a servlet datasource?
Thanks,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%
40avendasora.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]