我试图连接oim服务器,并从jsf按钮调用以下功能。这里是我的功能:
public static IdentityManagerAPI connect_ICE_TEST(IdentityManagerAPI api) {
try {
System.setProperty("java.security.auth.login.config",
"C:\\JDeveloper\\mywork\\AddRemoveAPP\\AddRemove\\src\\config\\authwl.conf");
System.setProperty("OIM.AppServerType", "weblogic");
java.util.Hashtable<String, String> env = new java.util.Hashtable<String, String>();
env.put("java.naming.provider.url", "t3://<ip address>:<port>");
env.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
tcUtilityFactory tcUtilityFactory = new tcUtilityFactory(env, "<username>", "<password>");
api = IdentityManagerAPI.getAPI(tcUtilityFactory);
} catch (Exception e) {
logMap.put("Server connection error", 2);
e.printStackTrace();
}
return api;
}
从主函数调用此函数时,一切正常。但是当我尝试从jsf按钮调用该函数时,它会返回以下异常。我已经调试了项目。我看到它在267行中抛出了从tcUtilityFactory获取实例的异常
开发环境:Jdev 12 c和weblogic 12 c
我怎样才能解决它?
看见https://liujinyao.wordpress.com/2015/05/11/java-lang-nosuchmethoderror-weblogic-rmi-internal-methoddescriptor-ljavalangreflectmethodljavalangclasszzzziiv/,您可以尝试使用wlfullclient。jar与您的客户机的版本