Bugs item #1043260, was opened at 2004-10-08 11:57
Message generated for change (Comment added) made by starksm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1043260&group_id=22866

Category: JBossCMP
Group: v4.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andrew May (amayingenta)
Assigned to: Nobody/Anonymous (nobody)
Summary: Type mapping error when deploying entity beans

Initial Comment:
I am using a custom JBoss 4/Java 1.5 configuration
without deploying Hypersonic. My PostgreSQL datasource
is deployed to jdbc/ics, and the ejb-jar I am deploying
contains a jbosscmp-jdbc.xml file that overrides the
default datasource location:

<jbosscmp-jdbc>
<defaults>
<datasource>java:/jdbc/ics</datasource>
...

When the beans are deployed the following error is logged:

Failed to obtain type-mapping metadata from the
metadata library MBean:
jboss.jdbc:service=metadata,datasource=DefaultDS is not
registered.

I have a type-mapping defined in my posgres-ds.xml and
this causes
jboss.jdbc:service=metadata,datasource=jdbc/ics to be
deployed.

If I change the datasource in
conf/standardjbosscmp-jdbc.xml to java:/jdbc/ics the
beans deploy.

It looks like the type-mapping lookup is ignoring the
overriden datasource value from the jbosscmp-jdbc.xml
in my ejb-jar.
This will be a problem if I want to deploy different
entities to different datasource (and potentially
different typemappings) in the same server.

----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2004-11-20 09:28

Message:
Logged In: YES 
user_id=175228

There have been a number of fixes to the type-mapping and
postgress for 4.0.1. The 4.0.1RC1 has a number of these but
its missing a table name case fix. If you can try the
current Branch_4_0 snapshot please do so.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1043260&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to