我想從atg
生產中導出目錄數據。我遵循以下步驟。startSQLRepository中的ATG目錄導出錯誤
創建
FakeXADatasource.properties
文件中C:\ATG\ATG10.1.1\home\localconfig\atg\dynamo\service\jdbc.
(有mysql
用戶名爲atguser與密碼atg123 $)$class=atg.service.jdbc.FakeXADataSource URL=jdbc:mysql://localhost:3306/prod_lo user=atguser password=atg123$ driver=com.mysql.jdbc.Driver
變化
JTDataSource.properties
如下。$class=atg.service.jdbc.MonitoredDataSource dataSource=/atg/dynamo/service/jdbc/FakeXADataSource transactionManager=/atg/dynamo/transaction/TransactionManager loggingSQLInfo=false min=10 maxFree=-1 loggingSQLError=false blocking=true loggingSQLWarning=false max=10 loggingSQLDebug=false
然後運行「
startSQLRepository.bat -m Store.Storefront -export all catalogExport.xml -repository /atg/commerce/catalog/ProductCatalog"
命令。
,但同時它處理它,給出以下的錯誤。任何人都知道的原因或如何做一個完整的目錄的出口? (我刪除了錯誤日誌的最後部分,因爲它超過了30000個字符的最大長度。)
./startSQLRepository -m Store.Storefront -export all catalogExport.xml -repository /atg/commerce/catalog/ProductCatalog
錯誤:
Error /atg/dynamo/service/jdbc/JTDataSource an exception was encountered while trying to populate the pool with the starting number of resources: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
Error /atg/dynamo/service/jdbc/JTDataSource The connection pool failed to initialize propertly, i.e. the starting number of connections could not be created; check your database accessibility and JDBC driver configuration
Error /atg/dynamo/service/IdGenerator CONTAINER:atg.service.idgen.IdGeneratorException; SOURCE:CONTAINER:atg.service.idgen.IdGeneratorException; SOURCE:java.sql.SQLException: atg.service.resourcepool.ResourcePoolException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
Error /atg/dynamo/service/IdGenerator at atg.service.idgen.PersistentIdGenerator.initialize(PersistentIdGenerator.java:389)
Error /atg/dynamo/service/IdGenerator at atg.service.idgen.AbstractSequentialIdGenerator.doStartService(AbstractSequentialIdGenerator.java:643)