P
P
parkito2017-07-05 21:10:36
Java
parkito, 2017-07-05 21:10:36

How to do Remote deploy to tomcat from Idea?

Hello. Help, please, to solve a problem.
There is a remote server where tomcat is spinning. I would like to add idea to it and deploy the application with one button (as a local one). However, I can't find adequate guides on how to do this.
The most adequate thing I found ( https://stackoverflow.com/questions/14085371/tomca... when trying to connect to the tomcata causes

HTTP request header
 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
 java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
        at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:406)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:380)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:796)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1372)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

And idea
Error running TomcatRemote: Unable to connect to the localhost:8080, reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-07-06
@zolt85

Read the official documentation , everything is described there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question