Menu

#2083 Type mapping error when deploying entity beans

v4.0
closed-fixed
nobody
JBossCMP (436)
5
2004-11-20
2004-10-08
Andrew May
No

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.

Discussion

  • Scott M Stark

    Scott M Stark - 2004-11-20

    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.

     
  • Scott M Stark

    Scott M Stark - 2004-11-20
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB