I am deploying an entity bean that uses container managed persistence. I get
the following exception:

Exception: [15:40:06] java.lang.IllegalArgumentException: Invalid data
source mysrc
java.lang.IllegalArgumentException: Invalid data source mysrc at
allaire.ejipt._ejb._DataSource._getConnectionIndex_DataSource.java:281)...

I have configured the datasource in deploy.properties as follows:

ejipt.jdbcSources=mysrc
mysrc.ejipt.sourceDriverClassName=oracle.jdbc.driver.OracleDriver
mysrc.ejipt.sourceURL=jdbc:oracle:thin:@myserver:1521:myid
mysrc.ejipt.sourceUser=myuser
mysrc.ejipt.sourcePassword=mypwd
mysrc.ejipt.maxConnections=5
mysrc.ejipt.maxFreeConnections=1
mysrc.ejipt.minFreeConnections=2

I do not see the datasource in the list of datasources in JMC and the
datasources in this list seem to be defined in local.properties. I tried
referencing one of those datasources but got the same message so I assume
that CMP requires the datasource be defined in deploy.properties.

The bean gets installed and the container creates an instance successfully.
The error occurs when I invoke the primary key finder method.

Any thoughts on how to debug this error? Any ideas regarding how to 
determine if the datasource had been deployed?

Thanks in advance,
Jon



------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to