btw, 论坛不适合one to one的回复, 你email我吧.
>>使用它的security模块, 稍微改动了一些, 就实现了Single Sign On.
你这里的security模块是指struts的还是ofbiz的?
纯java的!oracle
www.compiere.org
或者
http://sf.net/projects/compiere
附上一图,描述想象中的ServiceEngine


而且 oracle 里的表也能自动建好, 但是当在登陆之前去 load 数据:
Open For Business Installation (Data Load) Page
Loading the SQL files and generated entity specific data...
(From the path list: "e:\projects\sourceforge\ofbiz/commonapp/db;e:\projects\sourceforge\ofbiz/ecommerce/etc")
Loaded 96 rows from e:\projects\sourceforge\ofbiz\commonapp\db\AaaDataModelData.xml (96 total rows so far)
Loaded 148 rows from e:\projects\sourceforge\ofbiz\commonapp\db\AaaDataModelDataAccounting.xml (244 total rows so far)
Loaded 109 rows from e:\projects\sourceforge\ofbiz\commonapp\db\AaaDataModelDataOrder.xml (353 total rows so far)
Loaded 174 rows from e:\projects\sourceforge\ofbiz\commonapp\db\AaaDataModelDataParty.xml (527 total rows so far)
Loaded 177 rows from e:\projects\sourceforge\ofbiz\commonapp\db\AaaDataModelDataProduct.xml (704 total rows so far)
Loaded 32 rows from e:\projects\sourceforge\ofbiz\commonapp\db\AaaDataModelDataShipment.xml (736 total rows so far)
Loaded 144 rows from e:\projects\sourceforge\ofbiz\commonapp\db\AaaDataModelDataWorkEffort.xml (880 total rows so far)
Loaded 716 rows from e:\projects\sourceforge\ofbiz\commonapp\db\CountryCodeData.xml (1596 total rows so far)
Loaded 186 rows from e:\projects\sourceforge\ofbiz\commonapp\db\CurrencyData.xml (1782 total rows so far)
Loaded 306 rows from e:\projects\sourceforge\ofbiz\commonapp\db\GeoData.xml (2088 total rows so far)
Loaded 433 rows from e:\projects\sourceforge\ofbiz\commonapp\db\LanguageData.xml (2521 total rows so far)
Loaded 60 rows from e:\projects\sourceforge\ofbiz\commonapp\db\MimeTypeData.xml (2581 total rows so far)
Loaded 49 rows from e:\projects\sourceforge\ofbiz\commonapp\db\SalesOrderWorkflow.xml (2630 total rows so far)
Loaded 261 rows from e:\projects\sourceforge\ofbiz\commonapp\db\SecurityData.xml (2891 total rows so far)
Loaded 196 rows from e:\projects\sourceforge\ofbiz\commonapp\db\UnitData.xml (3087 total rows so far)
Loaded 5 rows from e:\projects\sourceforge\ofbiz\commonapp\db\ZzzPeriodData.xml (3092 total rows so far)
Loaded 8 rows from e:\projects\sourceforge\ofbiz\ecommerce\etc\demo_merchant.xml (3100 total rows so far)
Loaded 0 rows from e:\projects\sourceforge\ofbiz\ecommerce\etc\product_data.xml (3100 total rows so far)
Loaded 23 rows from e:\projects\sourceforge\ofbiz\ecommerce\etc\ship_data.xml (3123 total rows so far)
Finished loading all data; 3123 total rows updated.
Error Messages:
[install.loadData]: Error loading XML file "e:\projects\sourceforge\ofbiz\ecommerce\etc\product_data.xml"; Error was: A transaction error occurred reading data
出现了以上的错误:
tomcat 控制台输出:
100859[ EntitySaxReader.java:151:ERROR] An error occurred saving the data, ro
lling back transaction
org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:Pr
oductPrice][createdDate,2003-03-04 18:49:14.539][lastModifiedDate,2003-03-04 18:
49:14.539][createdByUserLogin,admin][price,15.99][currencyUomId,USD][productPric
eTypeId,DEFAULT_PRICE][productId,GZ-1000][fromDate,2003-03-04 18:49:03.163][last
ModifiedByUserLogin,admin][facilityGroupId,_NA_] (SQL Exception while executing
the following:INSERT INTO PRODUCT_PRICE (PRODUCT_ID, PRODUCT_PRICE_TYPE_ID, CURR
ENCY_UOM_ID, FACILITY_GROUP_ID, FROM_DATE, THRU_DATE, PRICE, CREATED_DATE, CREAT
ED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN) VALUES (?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?) (ORA-00001: 违反唯一约束条件 (OFBIZ.PK_PRODUCT_PRICE
)
))
at org.ofbiz.core.entity.EntitySaxReader.endElement(EntitySaxReader.java
:202)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
请问一下这是什么原因哦????
问题来自大型数据库的约束关系。
请注意,mysql这样的数据库是没有约束关系的,至少免费班没有。
select a.id,b.name from a,b
where a.id=b.id
> select a.id,b.name from a,b
> where a.id=b.id
使用org.ofbiz.core.entity.EntityClause来包装表连接和查询条件
然后调用GenericDelegator中的findByClause系列方法
多谢!
说到 rule engine , 研究人工智能和专家系统的可能比较熟悉,
著名的有 Clips (似乎是用C写的,需要用JNI连接近来). 纯java的很牛叉的jess,不过jess不是开源的,只对研究机构,不允许用于商业。
还有drools也还可以。
商业引擎如ilog 的 jrules 。 以后的系统是向智能化方向发展,同志们朋友们,rule engine到今年底明年后将会大热。