所有。我有一些像这样的代码
Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitRef", "NameService=corbaloc::testsrv:2809/NameService");
ORB orb = ORB.init((String[])null, props);
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
CommunicatorHdb impl = CommunicatorHdbHelper.narrow(ncRef.resolve_str("TestServiceName"));
System.out.println("My valid impl = " + impl");
这是桌面版的有效代码。如果我将此代码用于webapp(使用Jetty或Tomcat 7) - 我看到字符串
的异常“BAD_PARAM” CommunicatorHdb impl = CommunicatorHdbHelper.narrow(ncRef.resolve_str("TestServiceName"));
为什么它不适用于tomcat?