java.rmi.server.port_java.rmi.server.ExportException: internal error: ObjID already in use报错处理...

由于在server.xml文件中使用配置了

在catalina.sh中也指定了对应

CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12340 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=192.168.40.103"这里设置了对应的设置

catalina.out报错

May 26, 2017 3:48:15 PM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

May 26, 2017 3:48:15 PM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing ProtocolHandler ["http-bio-8080"]

May 26, 2017 3:48:15 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 974 ms

May 26, 2017 3:48:15 PM org.apache.catalina.mbeans.JmxRemoteLifecycleListener createServer

SEVERE: Unable to create the RMI registry for the Platform server using port 12340

java.rmi.server.ExportException: internal error: ObjID already in use

at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:186)

at sun.rmi.transport.Transport.exportObject(Transport.java:92)

at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:248)

at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)

at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)

at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:207)

at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:122)

at sun.rmi.registry.RegistryImpl.(RegistryImpl.java:98)

at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:239)

at org.apache.catalina.mbeans.JmxRemoteLifecycleListener.createServer(JmxRemoteLifecycleListener.java:302)

at org.apache.catalina.mbeans.JmxRemoteLifecycleListener.lifecycleEvent(JmxRemoteLifecycleListener.java:284)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)

at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)

at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:725)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.startup.Catalina.start(Catalina.java:691)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)

May 26, 2017 3:48:15 PM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

May 26, 2017 3:48:15 PM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.42

解决办法 把文件server.xml中的 删除即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值