简体   繁体   English

Tomee服务器:java.net.ConnectException:连接被拒绝:connect

[英]Tomee Server :java.net.ConnectException: Connection refused: connect

I am trying to deploy my webservice on tomee server. 我正在尝试在tomee服务器上部署我的Web服务。

When I use maven goal as "tomme:run" to start the server, it gives the following error: 当我使用maven目标作为“ tomme:run”来启动服务器时,它给出以下错误:

  [INFO] Running 'run'. Configured TomEE in plugin is localhost:8080 (plugin shutdown port is 8005)
    EError opening zip file or JAR rror occurred during initialization of VM
    agent library failed to init: instrument
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    manifest missing : C:\Documents
    [INFO] Total time: 30.844s
    [INFO] Finished at: Thu Nov 01 17:36:15 IST 2012

[INFO] Final Memory: 10M/26M
[INFO] ------------------------------------------------------------------------
java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:525)
    at java.net.Socket.connect(Socket.java:475)
    at java.net.Socket.<init>(Socket.java:372)
    at java.net.Socket.<init>(Socket.java:186)
    at org.apache.openejb.config.RemoteServer.stop(RemoteServer.java:366)
    at org.apache.openejb.maven.plugin.AbstractTomEEMojo$2.run(AbstractTomEEMojo.java:568)

But if I use startup.bat file to start the server , everything works fine. 但是,如果我使用startup.bat文件启动服务器,则一切正常。

Does anybody has any idea for this issue? 有人对这个问题有想法吗?

This seems a bit old but just in case if it helps. 这似乎有些陈旧,但以防万一。

It seems that when you are using the tomee plugin failed to start the server at the first place, and that is the reason for the connection refused issue. 似乎在使用tomee插件时,首先无法启动服务器,这就是连接被拒绝的原因。 Because it tries to connect to the shutdown port to shutdown the server but obviously it is not available as the server never started. 因为它试图连接到关闭端口以关闭服务器,但是显然它不可用,因为服务器从未启动。

So you should focus on "Error opening zip file or JAR rror occurred during initialization of VM agent library failed to init: instrument". 因此,您应关注“ VM代理库初始化失败,无法初始化仪器时打开zip文件或JAR错误”的错误。 By any chance, the artifact in your local maven repo can be corrupt ? 您本地Maven仓库中的工件是否有可能被损坏?

Best Regards, Nandana 此致Nandana

Not precisely the same situation, but I encountered this error: 情况不完全相同,但我遇到此错误:

"Error occurred during initialization of VM agent library failed to init: instrument Error opening zip file or JAR manifest missing : C:apache-tomee-plus-1.5.2/lib/openejb-javaagent.jar “ VM代理库初始化期间发生错误,无法初始化:仪器打开zip文件或JAR清单丢失时出错:C:apache-tomee-plus-1.5.2 / lib / openejb-javaagent.jar

when I tried to fire up TomEE as "./catalina.sh start" in a Cygwin terminal on my Windows box. 当我尝试在Windows盒子上的Cygwin终端中将TomEE激活为“ ./catalina.sh start”时。 Same result whether I tried a new complete TomEE or an already-existing Tomcat with the TomEE war. 无论是尝试新的完整TomEE还是使用TomEE战争的现有Tomcat,结果都是相同的。 Works fine when I use the batch file in a Windows terminal as "catalina start". 当我在Windows终端中将批处理文件用作“ catalina start”时,效果很好。 I don't really care enough to chase the issue further, but it appears that Tommy likes you to use a native shell. 我不太在意进一步解决这个问题,但是Tommy似乎喜欢您使用本机shell。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 RMI服务器连接拒绝托管:#############; 嵌套的异常是:java.net.ConnectException:连接被拒绝:connect - RMI Server Connection refused to host: ############ ; nested exception is: java.net.ConnectException: Connection refused: connect Java Mail错误:java.net.ConnectException:连接被拒绝:connect - Java Mail Error : java.net.ConnectException: Connection refused: connect Java套接字 - java.net.ConnectException:连接被拒绝:连接 - Java sockets - java.net.ConnectException: Connection refused: connect Java网络问题:java.net.ConnectException:连接被拒绝:连接 - Java Networking Problem: java.net.ConnectException: Connection refused: connect Java 中的 ssh 异常:java.net.ConnectException:连接被拒绝:连接 - ssh Exception in Java: java.net.ConnectException: Connection refused: connect java.net.ConnectException:连接被拒绝:connect java nio - java.net.ConnectException: Connection refused: connect java nio java.net.ConnectException:连接被拒绝:connect openshift - java.net.ConnectException: Connection refused: connect openshift java.net.ConnectException:拒绝连接:连接HTTPS连接 - java.net.ConnectException: Connection refused: connect for HTTPS connections 获取java.net.ConnectException:连接被拒绝:在Eclipse中连接 - Getting java.net.ConnectException: Connection refused: connect in eclipse RMI(java.net.ConnectException:连接被拒绝:连接) - RMI(java.net.ConnectException: Connection refused: connect)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM