Конфигурация удаленного сервера Tomcat Idea Idea - PullRequest
0 голосов
/ 29 октября 2018

Я не могу настроить удаленный сервер Tomcat с удаленным развертыванием для работы с Intellij Idea.

Мне также не удалось найти учебник по развертыванию веб-приложения на удаленном сервере.

До сих пор я пытался перейти на следующие страницы: https://www.jetbrains.com/help/idea/run-debug-configuration-tomcat-server.html и https://www.jetbrains.com/help/idea/creating-a-remote-server-configuration.html для конфигурации удаленного сервера Tomcat и эту страницу: https://www.jetbrains.com/help/idea/deployment-connection-tab.html для конфигурации удаленного сервера.

Вот скриншоты конфигураций, которые у меня есть:

remote configuration

server configuration

Я также настроил этот хост в моем server.xml локальном файле конфигурации tomcat:

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

и на удаленном сервере у меня есть эта конфигурация Java:

JAVA_OPTS="${JAVA_OPTS}
-Dcom.sun.management.jmxremote=
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=remote-dev.mycompany.corp"

Но я получаю эту ошибку в Intellij при попытке запустить конфигурацию:

Error running 'remote server'
Unable to connect to the remote-dev.mycompany.corp:1099, reason: javax.management.InstanceNotFoundException: Catalina:type=Deployer,host=localhost

Кто-нибудь может подсказать, что я делаю неправильно?

Заранее спасибо!

[EDIT] Вот след ошибки в журнале Intellij:

    2018-10-29 11:36:28,532 [8332722]   WARN - erver.JavaeeServerInstanceImpl - Catalina:type=Deployer,host=localhost 
javax.management.InstanceNotFoundException: Catalina:type=Deployer,host=localhost
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:643)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1445)
    at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
    at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:639)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:346)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
    at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
    at javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown Source)
    at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:903)
    at com.intellij.javaee.oss.util.AbstractConnectorCommand.getAttribute(AbstractConnectorCommand.java:128)
    at org.jetbrains.idea.tomcat.admin.TomcatAdminServerBase$1.doExecute(TomcatAdminServerBase.java:53)
    at org.jetbrains.idea.tomcat.admin.TomcatAdminServerBase$1.doExecute(TomcatAdminServerBase.java:37)
    at com.intellij.javaee.oss.util.AbstractConnectorCommand$1.call(AbstractConnectorCommand.java:36)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
2018-10-29 11:36:28,539 [8332729]   WARN - erver.JavaeeServerInstanceImpl - javax.management.InstanceNotFoundException: Catalina:type=Deployer,host=localhost 
...