This jbosscmp-jdbc.xml file is old.  The following tag is no longer 
supported:

<read-ahead>true</read-ahead>

Also type-mapping is now datasource-mapping and select-for-update is now 
row-locking.

You are also going to have problems when you get to the relationship 
mapping as has vastly changed from the version this file is based on.  I 
suggest you get the for-pay JBoss documentation or carefully read the 
jbosscmp-jdbc_3_0.dtd.

-dain

Sebastian Szczygiel wrote:
> Hi *,
>  
> while deploying an ejb 2.x cmp bean with jboss3, i get
>  
> Failed to deploy: org.jboss.deployment 
> ...org.jboss.deployment.DeploymentException: error in create of 
> EjbModule: file:/C:
> /Projekte/jboss/server/default/deploy/task.jar; - nested throwable: 
> (org.jboss.d
> eployment.DeploymentException: expected one strategy tag)
>         at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:384)
>  
> What does it mean "expected one strategy tag" ?
> Look at my jbosscmp-jdbc:
>  
> Thanks for help!
> Sebastian Szczygiel
> ----
>  
>  
> <?xml version="1.0" encoding="UTF-8"?>
> <jbosscmp-jdbc>
>  
>    <defaults>
>    <datasource>java:/DefaultDS</datasource>
>    <type-mapping>Oracle8</type-mapping>
>    <debug>true</debug>
>    <create-table>true</create-table>
>    <remove-table>true</remove-table>
>    <read-only>false</read-only>
>    <time-out>0</time-out>
>    <select-for-update>false</select-for-update>
>    <pk-constraint>true</pk-constraint>
>    <relation-mapping-style>foreign-key</relation-mapping-style>
>   <read-ahead>
>     <strategy>on-load</strategy>
>     <page-size>500</page-size>
>     <eager-load-group>group name</eager-load-group>
>   </read-ahead>
>    </defaults>
>  
>    <enterprise-beans>
>       <entity>
>          <ejb-name>Task</ejb-name>
>          <table-name>TASK</table-name>
>          <datasource>java:/DefaultDS</datasource>
>          <type-mapping>Oracle8</type-mapping>
>          <debug>true</debug>
>          <create-table>true</create-table>
>          <remove-table>true</remove-table>
>          <read-only>false</read-only>
>          <time-out>300</time-out>
>          <select-for-update>false</select-for-update>
>          <pk-constraint>true</pk-constraint>
>          <read-ahead>true</read-ahead>
>  
>          <cmp-field>
>             <field-name>taskId</field-name>
>             <column-name>TASKID</column-name>
>          </cmp-field>
>          <cmp-field>
>             <field-name>projectId</field-name>
>             <column-name>PROJECTID</column-name>
>          </cmp-field>
>          <cmp-field>
>             <field-name>taskName</field-name>
>             <column-name>TASKNAME</column-name>
>          </cmp-field>
>          <cmp-field>
>             <field-name>description</field-name>
>             <column-name>DESCRIPTION</column-name>
>          </cmp-field>
>          <cmp-field>
>             <field-name>duration</field-name>
>             <column-name>DURATION</column-name>
>          </cmp-field>
>       </entity>
>    </enterprise-beans>
>  
> </jbosscmp-jdbc>
>  
>  
>  



_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to