2013-04-26 53 views
2

我想從atg生產中導出目錄數據。我遵循以下步驟。startSQLRepository中的ATG目錄導出錯誤

  1. 創建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 
    
  2. 變化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 
    
  3. 然後運行「

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)

回答

0

嘗試設置最大值和最小值poolsizes至1〜5

另外,還要確保你的數據庫是建立和運行,並且可以連接到

-DC21

0

你給出的startSQLRepository未配置的配置是在運行時,因爲它仍然說使用密碼否,第二個錯誤與你的連接池有關。我的建議是嘗試僅使用用戶名和密碼更改爲FakeXADatasource.properties文件。我嘗試了相同的配置,並能夠導出。