When I execute
System.setProperty("java.security.auth.login.config", ejbLoginConfig);
using ejbLoginConfig = "../conf/weblogicdomain.conf"
and my client is in a path containing spaces, I get a ClassNotFoundException for my EJB call:
Caused by: java.lang.ClassNotFoundException: my.app.MyFassade
at weblogic.ejb.container.deployer.RemoteBizIntfClassLoader.getClassBytes(RemoteBizIntfClassLoader.java:151)
...
If I move everything to a path without spaces, it works. Using an absolute path does not change anything.
Thanks for ideas!
该值必须包含在引号中(使用转义引号):
System.setProperty("java.security.auth.login.config", "\"" + ejbLoginConfig + "\"");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.