Topic: 为什么castor找不到影射类(紧急)

  Print this page

1.为什么castor找不到影射类(紧急) Copy to clipboard
Posted by: castnow
Posted on: 2003-09-29 11:07

我用STRUTS写了一个CASTOR应用,奇怪的是它竟然找不到影射类,我的MAPPING XML 文件如下
<?xml version="1.0" encoding="UTF-8"?>
<mapping>
<class name="com.qiangsheng.system.login.Media" identity="id">
<description>Media group</description>
<map-to table="media"/>
<field name="id" type="integer">
<sql name="id" type="integer"/>
</field>
<field name="type" type="string">
<sql name="type" type="char" />
</field>
</class>
</mapping>
而且我已经把相应的类、数据库影射文件、类影射文件放在WEB-INF对应目录下了,请那位老大帮一下忙?

2.Re:为什么castor找不到影射类(紧急) [Re: castnow] Copy to clipboard
Posted by: floater
Posted on: 2003-09-29 23:18

error msg?

3.Re:为什么castor找不到影射类(紧急) [Re: castnow] Copy to clipboard
Posted by: castnow
Posted on: 2003-09-30 14:19

can not find the class com.qiangsheng.system.login.Media,而我已经把相应的类放在在想应的WEB-INF\classes\com\qiangsheng\system\login目录下,配置文件见上

4.Re:为什么castor找不到影射类(紧急) [Re: castnow] Copy to clipboard
Posted by: floater
Posted on: 2003-09-30 22:48

put it under WEB-INF\classes

5.Re:为什么castor找不到影射类(紧急) [Re: castnow] Copy to clipboard
Posted by: castnow
Posted on: 2003-10-07 12:54

ok,谢谢,已经解决


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923