您的位置:程序门 -> java ->



sql server2005+jboss4.0.0+jbuild2006運行出錯


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


sql server2005+jboss4.0.0+jbuild2006運行出錯
发表于:2007-01-16 09:08:12 楼主
我的數據庫sql   server2005和jboss   4.0.0不在同一服務器中,jbuild2006中可以建立ejb,並且可以連到數據庫,但執行時總是出錯。  
jbosscmp-jdbc文件  
<jbosscmp-jdbc>  
<defaults>  
<datasource> datasource </datasource>  
<datasource-mapping> ms   sqlserver2005 </datasource-mapping>  
</defaults>  
<enterprise-beans>  
.  
.  
.  
standardjaws.xml文件  
<!--   $id:   standardjaws.xml,v   1.30   2002/06/27   19:26:28   dsundstrom   exp   $   -->  

<jaws>  
<datasource> java:/mssqlds </datasource>  
<type-mapping> ms   sqlserver2005 </type-mapping>  
<debug> false </debug>  

<default-entity>  
<create-table> true </create-table>  
<remove-table> false </remove-table>  
<tuned-updates> true </tuned-updates>  
<read-only> false </read-only>  
<time-out> 300 </time-out>  
<row-locking> false </row-locking>  
<read-ahead> false </read-ahead>  
</default-entity>  

standardjbosscmp-jdbc.xml文件  
<!--   $id:   standardjbosscmp-jdbc.xml,v   1.84   2004/09/15   15:48:58   loubyansky   exp   $   -->  

<jbosscmp-jdbc>  

<defaults>  
<datasource> java:/mssqlds </datasource>  
<!--   optional   since   4.0   <datasource-mapping> ms   sqlserver2005 </datasource-mapping>   -->  

<create-table> true </create-table>  
<remove-table> false </remove-table>  
<read-only> false </read-only>  
<read-time-out> 300000 </read-time-out>  
<row-locking> false </row-locking>  
<pk-constraint> true </pk-constraint>  
<fk-constraint> false </fk-constraint>  
<preferred-relation-mapping> foreign-key </preferred-relation-mapping>  
<read-ahead>  
<strategy> on-load </strategy>  
<page-size> 1000 </page-size>  
<eager-load-group> * </eager-load-group>  
</read-ahead>  
<list-cache-max> 1000 </list-cache-max>  
<clean-read-ahead-on-load> false </clean-read-ahead-on-load>  
錯誤  

depends   on   me:   mbeanexception:   org.jboss.deployment.deploymentexception:   error:  
can 't   find   data   source:   mssqlds;   -   nested   throwable:   (javax.naming.namenotfound  
exception:   mssqlds   not   bound)  
cause:   org.jboss.deployment.deploymentexception:   error:   can 't   find   data   source:  
mssqlds;   -   nested   throwable:   (javax.naming.namenotfoundexception:   mssqlds   not   bo  
und)  
我現在真的是找不出原因了,請大家幫幫忙  
   


快速检索

最新资讯
热门点击