2016-01-04 63 views
-1

我在嘗試運行ssoadm .setup腳本時遇到以下異常。這是我在01/04/2016獲得的openam13快照版本。它在那之前工作。任何人都可以指出我可能會遇到什麼問題?openam13快照ssoadm設置異常:ClassNotFoundException:org.forgerock.services.TransactionId

Executing command "/Users/sso-config/target/ssoadmintools/setup --path /apps/openam/server --log /apps/openam/log --acceptLicense --debug /apps/openam/debug" in working directory target/ssoadmintools/ 
    Exception in thread "main" java.lang.NoClassDefFoundError: org/forgerock/services/TransactionId 
     at org.forgerock.openam.audit.context.AuditRequestContext$1.initialValue(AuditRequestContext.java:35) 
     at org.forgerock.openam.audit.context.AuditRequestContext$1.initialValue(AuditRequestContext.java:32) 
     at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:160) 
     at java.lang.ThreadLocal.get(ThreadLocal.java:150) 
     at org.forgerock.openam.audit.context.AuditRequestContext.get(AuditRequestContext.java:124) 
     at org.forgerock.openam.audit.context.AuditRequestContext.createSubTransactionIdValue(AuditRequestContext.java:160) 
     at org.forgerock.openam.ldap.LDAPRequests.newSimpleBindRequest(LDAPRequests.java:54) 
     at org.forgerock.openam.ldap.LDAPUtils.newConnectionFactory(LDAPUtils.java:249) 
     at org.forgerock.openam.ldap.LDAPUtils.newFailoverConnectionFactory(LDAPUtils.java:200) 
     at com.iplanet.services.ldap.DSConfigMgr.getNewFailoverConnectionFactory(DSConfigMgr.java:324) 
     at com.iplanet.services.ldap.DSConfigMgr.getNewConnectionFactory(DSConfigMgr.java:289) 
     at com.sun.identity.setup.Bootstrap.getConfiguration(Bootstrap.java:190) 
     at com.sun.identity.setup.Bootstrap.load(Bootstrap.java:136) 
     at com.sun.identity.tools.bundles.Main.main(Main.java:143) 
    Caused by: java.lang.ClassNotFoundException: org.forgerock.services.TransactionId 
     at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
     at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
     at java.security.AccessController.doPrivileged(Native Method) 
     at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
     at java.lang.ClassLoader.loadClass(ClassLoader.java:425) 
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) 
     at java.lang.ClassLoader.loadClass(ClassLoader.java:358) 
     ... 14 more 
    Command process exited with value 1 

回答

0

您可以嘗試從腳本所在的目錄運行setup命令,而不是使用腳本的絕對路徑嗎?

試試這個:

./setup --path /apps/openam/server --log /apps/openam/log --acceptLicense --debug /apps/openam/debug 

取而代之的是:

/Users/sso-config/target/ssoadmintools/setup --path /apps/openam/server --log /apps/openam/log --acceptLicense --debug /apps/openam/debug 

我的猜測是,當你使用絕對路徑的java找不到在classpath一些圖書館。

+0

謝謝,但即使從腳本所在的目錄運行setup命令也沒有運氣。 – aazeem

+0

這看起來像我在01/04/2016上得到的openam13快照版本有問題。它可以在之前和之後的快照版本中正常工作。我將檢查01/04版本中是否存在任何類路徑問題或缺少罐子 – aazeem