You have deployed the database pool twice: once standalone using the
plan you've pointed to here, resulting in the module
[ALL: user/jdbcdatasource/2.0/car]
and once directly in the ear, as you fixed in the last problem you
solved.
You need to decide which of these methods you will use and use only
one of them. If you include the pool setup in the ear, you only
have one package to deal with, which is handy, but if you use a
separate database pool it's easier to do things like switch databases
without modifying your main application. Both have their advantages.
thanks
david jencks
On Mar 30, 2008, at 8:30 AM, newbie-gero wrote:
Hi, this is in response to the previous message i have post: Error:
Unable to
distribute MusicApp.ear: Geronimo ear plan contains modules that
aren't in
the ear: false
I have follow the solutions from that previous post and this is the
new
error after implementing the solution. I can see the error solving
in this
forum is effective as from not able to find the resource jdbc/
MusicDB to
unable to find module and finally there are too many resource for
jdbc/MusicDB.
Currently this is the error i'm facing. i have include the the codes u
advice into the application.xml.
<module>
<connector>tranql-connector-ra-1.3.rar</connector>
</module>
This is my new complile package:
http://www.nabble.com/file/p16383336/MusicApp.ear MusicApp.ear
Previously i have add a database pool in the geronimo server. This
is how i
do it by writing a mysql-geronimo-plan.xml as below:
http://www.nabble.com/file/p16383336/mysql-geronimo-plan.xml
mysql-geronimo-plan.xml
This is how i deploy the database pool:
./deploy.sh --user system --password manager deploy
/home/chongming/geronimo-2.1/mysql-geronimo-plan.xml
/home/chongming/geronimo-2.1/repository/org/tranql/tranql-connector-
ra/1.3/tranql-connector-ra-1.3.rar
This is the response from Geronimo server when i deploy the ear file
Error: Unable to distribute MusicApp.ear: Unable to resolve resource
reference 'jdbc/MusicDB' (Found multiple matching resources. Try
being more specific in a resource-ref mapping in your Geronimo
deployment plan.
default/Music-ear/1.3/ear?J2EEApplication=default/Music-ear/1.3/
ear,JCAConnectionFactory=MusicDS,JCAResource=tranql-connector-
ra-1.3.rar,ResourceAdapter=tranql-connector-
ra-1.3.rar,ResourceAdapterModule=tranql-connector-
ra-1.3.rar,j2eeType=JCAManagedConnectionFactory,name=MusicDS
user/jdbcdatasource/2.0/car?
J2EEApplication=null,JCAConnectionFactory=MusicDS,JCAResource=user/
jdbcdatasource/2.0/car,ResourceAdapter=user/jdbcdatasource/2.0/
car,ResourceAdapterModule=user/jdbcdatasource/2.0/
car,j2eeType=JCAManagedConnectionFactory,name=MusicDS
Search conducted in current module and dependencies:
[ALL: user/jdbcdatasource/2.0/car]
[ALL: org.apache.geronimo.configs/tomcat6/2.1/car]
[ALL: default/Music-ear/1.3/ear]
[ALL: org.apache.geronimo.configs/openjpa//car]
[CLASSES: org.apache.geronimo.configs/openejb//car]
[ALL: org.apache.geronimo.configs/axis//car]
[ALL: org.apache.geronimo.configs/axis2//car]
[ALL: org.apache.geronimo.configs/j2ee-corba-yoko//car]
What are the issue i need to resolve? Thanks in advance
--
View this message in context: http://www.nabble.com/Unable-to-
resolve-resource-reference-%27jdbc-MusicDB%27-%28Found-multiple-
matching-resources.--Try-being-more-specific-in-a-resource-ref-
mapping-in-your-Geronimo-deployment-plan.-tp16383336s134p16383336.html
Sent from the Apache Geronimo - Users mailing list archive at
Nabble.com.