X
X
xxxFeLiXxxx2013-01-30 12:32:44
linux
xxxFeLiXxxx, 2013-01-30 12:32:44

IDEA Intelij + remote Tomcat deploy?

Dear Habravchane,
There is the following situation - Linux 12.10 x64, LXC container in which Tomcat 6.0.24 is running and the IDEA Intelij 12.0.2 environment. A Maven project is being developed, with an output in the form of a WAR. The question is how to correctly configure the deployment of this web application?
No matter how much I tried, I came to the upload option via SFTP, but I don’t quite understand the names of the fields in the configuration (File System - SFTP, Path relative to root - /, Mapping - ???). No matter how I tried it, I always get a FIleNotFoundException or Invalid WAR file error, although the file is actually there, it opens, and I don’t see any problems ... Accordingly, a container is created in Tomcat, but it does not start.
I sort of figured out JNDI by adding the lines
-Dcom.sun.management.jmxremote= \
-Dcom.sun.management.jmxremote.port=1099 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
in /usr/sbin/tomcat6
Thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
1
1nd1go, 2013-01-30
@1nd1go

Will you deploy there alone? If so, then in general you can insert the tomcat6-maven-plugin into the maven and call run-war with the indication of the relay server. It will throw it there through the Manager application.

D
dborovikov, 2013-02-01
@dborovikov

There is also a cargo plugin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question