尝试在tomcat服务器上运行liferay portlet时发生异常 [英] Exception when I try to run a liferay portlet on my tomcat server

查看:147
本文介绍了尝试在tomcat服务器上运行liferay portlet时发生异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这就是我得到的:

Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8099; nested exception is: java.net.BindException: Address already in use: JVM_Bind.

我不得不提到我使用liferay 7.0 ga3tomcat 8.0.32,我的想法是eclipse luna.

I have to mention that I use liferay 7.0 ga3 and tomcat 8.0.32, my ide is eclipse luna.

我试图在命令行启动rmiregistry some_port中运行,但是它什么也没做,只是弹出一个窗口,实际上什么也没做. 谢谢!

I tried to run in command line start rmiregistry some_port, but it didn't do nothing, just popped up a window and did effectively nothing. Thank you!

推荐答案

通常,Tomcat使用端口8099进行JMX通信(这对于调试至关重要).已经有另一个使用此端口的进程.这里有一些可能性:

In general, Tomcat uses the port 8099 to JMX communication (which is crucial for debugging). There is already another process using this port. Here are some possibilities:

  • 通常,仅完成其他过程更为实际. 很多次,另一个过程是Spotify.您在使用Spotify吗?如果是这样,只需完成它,启动Liferay,然后重新打开Spotify.烦人但简单.

  • In general it is more practical to just finish the other process. A LOT OF TIMES, the other process is Spotify. Are you using Spotify? If so, just finish it, start Liferay and then reopen Spotify. Annoying but straightforward.

您启动了另一个Tomcat捆绑包.在这种情况下,您只需要将其调低即可.

You started another Tomcat bundle. In this case, you just have to turn it down.

先前的Liferay执行刚刚崩溃,并在端口上运行了恶意Java进程.在这种情况下,请转到终端并执行jps:

A previous Liferay execution just crashed and let a rogue Java process running on the port. In this case, go to the terminal and execute jps:

$ jps
28058 org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
1787 Bootstrap
14207 Jps

杀死标记为Bootstrap的进程:

$ kill -9 1787

  • 从技术上讲,您可以更改Tomcat上的端口.打开服务器配置,单击打开启动配置".然后,转到参数"选项卡并查找8099.基本上,请遵循以下GIF:

  • Technically, you could change the port on Tomcat. Open the server configuration, click on "Open Launch Configuration." Then, go to the "Arguments" tab and look for 8099. Basically, follow the GIF below:

    但是,我不知道它的所有后果.我以前是在没有LDS的情况下使用Tomcat服务器来完成此任务的,不确定它会给LDS带来什么问题.

    However, I do not know all the consequences of it. I used to do it with Tomcat servers witout LDS, not sure what problems it could bring with LDS.

    这篇关于尝试在tomcat服务器上运行liferay portlet时发生异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆