middlegen没有操作界面

本文分享了一个MSSQL的配置文件示例,并记录了使用middlegen工具时遇到的问题及警告信息,包括数据库连接设置、JDBC驱动使用及middlegen运行过程中的注意事项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

这个是我的mssql.xml的配置文件
<!-- =================================================================== -->
<!-- ant properties/targets for MS SQL Server -->
<!-- note: this is not a proper xml file (there is no root element) -->
<!-- it is intended to be imported from a *real* xml file -->
<!-- =================================================================== -->

<property name="database.script.file" value=""/>
<property name="database.driver.file" value="${lib.dir}/mssqlserver.jar" />
<property name="database.driver" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
<property name="database.url" value="jdbc:microsoft:sqlserver://192.168.1.7:1433;database=framework"/>
<property name="database.userid" value="sa"/>
<property name="database.password" value="sa"/>
<!-- In MS SQL the schema is the owner of the tables as displayed by SQL Server Enterprise Manager -->
<property name="database.schema" value="dbo"/>
<!-- In MS SQL the catalog is the database, for example, 'Northwind' -->
<property name="database.catalog" value="framework"/>

<property name="jboss.datasource.mapping" value="MS SQLSERVER"/>
<!--property name="jboss.datasource.mapping" value="MS SQLSERVER2000"/-->
build。xml文件没有修改middlegen这个task的东西,每次执行ant的middlegen只是报警告
Buildfile: D:\eclipse\workspace\middlegen-2.1\samples\build.xml
Warning: 'file:./config/database/mssql.xml' in D:\eclipse\workspace\middlegen-2.1\samples\build.xml should be expressed simply as './config/database/mssql.xml' for compliance with other XML tools
Warning: 'file:./config/ejb/jboss.xml' in D:\eclipse\workspace\middlegen-2.1\samples\build.xml should be expressed simply as './config/ejb/jboss.xml' for compliance with other XML tools
init:
fail-if-no-xdoclet-1.2:
check-driver-present:
panic-if-driver-not-present:
middlegen:
[middlegen] Database URL:jdbc:microsoft:sqlserver://192.168.1.7:1433;database=framework
[middlegen] No <table> elements specified. Reading all tables. This might take a while...
[middlegen] 2007-10-06 23:22:07,750 WARN [middlegen.MiddlegenPopulator] WARNING: The JDBC driver didn't report any primary key columns in sysconstraints
[middlegen] 2007-10-06 23:22:08,000 WARN [middlegen.MiddlegenPopulator] WARNING: The JDBC driver didn't report any primary key columns in syssegments
[middlegen] 2007-10-06 23:22:08,359 WARN [middlegen.MiddlegenPopulator] WARNING: Middlegen couldn't find any relations between any tables. This may be intentional from the design of the database, but it may also be because you have incorrectly defined the relationships. It could also be because the JDBC driver you're using doesn't correctly implement DatabaseMetaData. See the samples (for an example on how to define relationships) and verify that your driver correctly implements DatabaseMetaData.
[middlegen] 2007-10-06 23:22:08,468 WARN [middlegen.plugins.entitybean.JBoss] WARNING (cmp20): JBoss 3.0 doesn't support fields that are part of CMR to be CMP at the same time. You might want to set fkcmp="false" in the cmp20 plugin.
[middlegen] 2007-10-06 23:22:08,562 WARN [middlegen.plugins.entitybean.Entity20Column] WARNING: The cmp20 is configured with readonly="true", but the prefs settings for the column USER.ID indicates that a local setter for this column should be generated. Middlegen will use the prefs setting, so the generated framework.interfaces.UserLocal's setId method will exist, causing the bean NOT to be read only.
[middlegen] Extracting foreign keys for table : USER
[middlegen] Extracting foreign keys for table : dtproperties
[middlegen] Extracting foreign keys for table : sysconstraints
[middlegen] Extracting foreign keys for table : syssegments
[middlegen] Updated preferences in D:\eclipse\workspace\middlegen-2.1\samples\src\framework-prefs.properties
BUILD SUCCESSFUL
Total time: 7 seconds

但是就是没有middegen之后应该有的那个操作界面,不知道为什么
我的sqlserver2000是sp2版本的,但是后来不知道为什么就是无法连接1433端口,所以现在了sp4的补丁
情况就是这么个情况,大家有什么办法,小弟谢谢先。。。。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值