openam13 snapshot ssoadm setup exception:ClassNotFoundException:org.forgerock.services.TransactionId

时间:2016-01-04 23:23:22

标签: single-sign-on openam opensso

我在尝试运行ssoadm .setup脚本时遇到以下异常。这是我在2016年4月1日获得的openam13快照版本。它之前有效。谁能指出我可能会出现什么问题?

 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

1 个答案:

答案 0 :(得分:0)

您是否可以尝试从脚本所在的目录运行setup命令,而不是使用脚本的绝对路径?

试试这个:

maven

而不是:

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

我的猜测是,当你使用绝对路径时,java在类路径中找不到一些库。