For CMP 2.0, you only use the jbosscmp-jdbc.xml file (no jaws.xml file). 
The xml you have here is in a very old format.  The type mapping element 
is now called datasource-mapping. Here is the configuration from one of 
my test files:

<datasource>java:/PostgresDS</datasource>
<datasource-mapping>PostgreSQL</datasource-mapping>

If you are not using JBoss 3.0.0 final release, upgrade.

-dain

Slava Voronin wrote:
> I have it like
> <datasource>java:/PenningDB</datasource> 
> <type-mapping>PostgreSQL</type-mapping>
> 
> 
> Maarten Dirkse wrote:
> 
>> Hi,
>> I have a very simple cmp bean with the following defined in both 
>> jaws.xml and jbosscmp-jdbc.xml:
>>
>> <datasource>PenningDB</datasource>
>> <type-mapping>PostgreSQL</type-mapping>
>>
>> PenningDB is a datasource that exists and works (I checked) and 
>> PostgreSQL is a mapping that is present in standardjaws.xml.  However, 
>> when I try to deploy the bean I get the following error message:
>>
>> org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : 
>> datasource-mapping PostgreSQL not found
>>
>> What am I doing wrong?  Is there something I haven't defined?  The 
>> online documentation didn't help, and a search of the 3.0 quickstart 
>> guide for the word 'type-mapping' turned up nothing.
>> I'm using Jboss 3.0.0.
>> Thanks in advance,
>> Maarten.
>>
>>
>> _______________________________________________________________
>>
>> Sponsored by:
>> ThinkGeek at http://www.ThinkGeek.com/
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------------- 
> 
>                   Bringing you mounds of caffeinated joy
>                      >>>     http://thinkgeek.com/sf    <<<
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
xxxxxxxxxxxxxxxxxxxxxxxx
Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx


----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                      >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to