jacorba版本3.2,以ssl方式连接 NameService,配置和错误输出再下面
#命名服务配置字符串
NameServiceCfg = NameService=corbaloc:ssliop:[email protected]:59663/NameService
#########################
# #
# SSL Configuration #
# #
########################## Whether SSL security is enabled.
jacorb.security.support_ssl=on#
# The port number used by SSL, will be dynmically assigned
# by default
#
#OASSLPort=4711
# This interceptor must be set if programs need access to
# certificates using the CORBA Security API, SSL works also
# without this interceptor
org.omg.PortableInterceptor.ORBInitializerClass.ForwardInit=org.jacorb.security.ssl.sun_jsse.SecurityServiceInitializer# The qualified classname of the ssl socket factory class
jacorb.ssl.socket_factory=org.jacorb.security.ssl.sun_jsse.SSLSocketFactory# The qualified classname of the ssl server socket factory class
jacorb.ssl.server_socket_factory=org.jacorb.security.ssl.sun_jsse.SSLServerSocketFactory# IIOP/SSL parameters (numbers are hex values, without the leading "0x"):
# NoProtection = 1
# EstablishTrustInClient = 40
# EstablishTrustInTarget = 20
# mutual authentication = 60
# please see the programming guide for more explanation
jacorb.security.ssl.client.supported_options=20
jacorb.security.ssl.client.required_options=20jacorb.security.ssl.server.supported_options=20
jacorb.security.ssl.server.required_options=1
#
# If set, the following two values will be placed in the IOR, if
# "corbaloc:ssliop" ssliop.
#
# If not set, only EstablishTrustInTarget is used for both supported
# and required options. EstablishTrustInClient is not set, and the
# rest of the Association Options aren't currently used anyway.
jacorb.security.ssl.corbaloc_ssliop.supported_options=40
jacorb.security.ssl.corbaloc_ssliop.required_options=20# The name and location of the keystore. This may be absolute or
# relative to the home directory, or a file retrievable through the
# classloader.
#
# NOTE (for Sun JSSE users): The "javax.net.ssl.trustStore[Password]"
# properties don't seem to take effect, so you may want to add trusted
# certificates to "normal" keystores. In this case, please set the
# property "jacorb.security.jsse.trustees_from_ks"is to "on", so trusted
# certificates are taken from the keystore instead of a dedicated
# truststore.
jacorb.security.keystore=../etc/security/certificate/forCorba/service.jks
jacorb.security.keystore_password=changeme
# SSL keystore used:
jacorb.security.keystore_type=JKS2013-04-03 17:01:12,327 ERROR [com.nm.server.nbif.Server] - org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 603 completed: No
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 603 completed: No
at com.sun.corba.se.impl.logging.NamingSystemException.insBadAddress(Unknown Source)
at com.sun.corba.se.impl.logging.NamingSystemException.insBadAddress(Unknown Source)
at com.sun.corba.se.impl.naming.namingutil.CorbalocURL.badAddress(Unknown Source)
at com.sun.corba.se.impl.naming.namingutil.CorbalocURL.<init>(Unknown Source)
at com.sun.corba.se.impl.naming.namingutil.INSURLHandler.parseURL(Unknown Source)
at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(Unknown Source)
at com.sun.corba.se.impl.resolver.ORBInitRefResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(Unknown Source)
at com.nm.server.nbif.Server.initRootContext(Server.java:231)
at com.nm.server.nbif.Server.main(Server.java:196)
#命名服务配置字符串
NameServiceCfg = NameService=corbaloc:ssliop:[email protected]:59663/NameService
#########################
# #
# SSL Configuration #
# #
########################## Whether SSL security is enabled.
jacorb.security.support_ssl=on#
# The port number used by SSL, will be dynmically assigned
# by default
#
#OASSLPort=4711
# This interceptor must be set if programs need access to
# certificates using the CORBA Security API, SSL works also
# without this interceptor
org.omg.PortableInterceptor.ORBInitializerClass.ForwardInit=org.jacorb.security.ssl.sun_jsse.SecurityServiceInitializer# The qualified classname of the ssl socket factory class
jacorb.ssl.socket_factory=org.jacorb.security.ssl.sun_jsse.SSLSocketFactory# The qualified classname of the ssl server socket factory class
jacorb.ssl.server_socket_factory=org.jacorb.security.ssl.sun_jsse.SSLServerSocketFactory# IIOP/SSL parameters (numbers are hex values, without the leading "0x"):
# NoProtection = 1
# EstablishTrustInClient = 40
# EstablishTrustInTarget = 20
# mutual authentication = 60
# please see the programming guide for more explanation
jacorb.security.ssl.client.supported_options=20
jacorb.security.ssl.client.required_options=20jacorb.security.ssl.server.supported_options=20
jacorb.security.ssl.server.required_options=1
#
# If set, the following two values will be placed in the IOR, if
# "corbaloc:ssliop" ssliop.
#
# If not set, only EstablishTrustInTarget is used for both supported
# and required options. EstablishTrustInClient is not set, and the
# rest of the Association Options aren't currently used anyway.
jacorb.security.ssl.corbaloc_ssliop.supported_options=40
jacorb.security.ssl.corbaloc_ssliop.required_options=20# The name and location of the keystore. This may be absolute or
# relative to the home directory, or a file retrievable through the
# classloader.
#
# NOTE (for Sun JSSE users): The "javax.net.ssl.trustStore[Password]"
# properties don't seem to take effect, so you may want to add trusted
# certificates to "normal" keystores. In this case, please set the
# property "jacorb.security.jsse.trustees_from_ks"is to "on", so trusted
# certificates are taken from the keystore instead of a dedicated
# truststore.
jacorb.security.keystore=../etc/security/certificate/forCorba/service.jks
jacorb.security.keystore_password=changeme
# SSL keystore used:
jacorb.security.keystore_type=JKS2013-04-03 17:01:12,327 ERROR [com.nm.server.nbif.Server] - org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 603 completed: No
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 603 completed: No
at com.sun.corba.se.impl.logging.NamingSystemException.insBadAddress(Unknown Source)
at com.sun.corba.se.impl.logging.NamingSystemException.insBadAddress(Unknown Source)
at com.sun.corba.se.impl.naming.namingutil.CorbalocURL.badAddress(Unknown Source)
at com.sun.corba.se.impl.naming.namingutil.CorbalocURL.<init>(Unknown Source)
at com.sun.corba.se.impl.naming.namingutil.INSURLHandler.parseURL(Unknown Source)
at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(Unknown Source)
at com.sun.corba.se.impl.resolver.ORBInitRefResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(Unknown Source)
at com.nm.server.nbif.Server.initRootContext(Server.java:231)
at com.nm.server.nbif.Server.main(Server.java:196)
解决方案 »
- ssh框架! 超简单的问题!困扰我好久了!
- 遇到问题啦,java与mysql的乱码问题
- com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException
- 一起来体验个性图片制作平台
- 基于Axis开发webservice, 客户端是否也要安装Axis
- 数据库查询排序应该在数据库中实现,还是在服务器端实现?
- JBOSS运行客户端程序时需要引用哪些包?
- 简单问题
- 为什么我的Tomcat Web应用部署到www服务器上运行特别慢?
- 哪位用过SUN的j2sdk1.4服务器,我安装了,但怎么启动不起来啊!
- JGroups UDP multicast 救急!
- 各路大神,可以帮我指出究竟是什么错误吗,感激不尽
props.setProperty("org.omg.CORBA.ORBInitRef", ConfigProperty.nameServiceCfg);
props.setProperty("org.omg.CORBA.ORBInitRef.NotificationService", ConfigProperty.notificationCfg); orb = ORB.init(args, props); org.omg.CORBA.Object ncObj = orb.resolve_initial_references("NameService");
rootContext = NamingContextExtHelper.narrow(ncObj);
这个东西怪怪的,是不是应该是iiop