简体   繁体   中英

Intellij ultimate Cannot open open Tomcat Web Application

Only ultimate has web application support so that's out of the way.

I am trying to start ope up my web app via tomcat something wich i do succesfully on the same machine on netbeans with next to no configuration.

What is the step by step gide to getting this to work here are several of my attempts : tomcat和tomcat EE均已添加 both are added for good measure 所有可能的组合

all possible combinations with EE and non EE remote and local.

none of which work.

I've done this : Cannot run/debug jsp page from within IntelliJ using Tomcat server

checked this : Intellij IDEA Tomcat Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099

done this : IntelliJ, can't start simple web application: Unable to ping server at localhost:1099

but nothing gives way.

Running tomcat local (first thing I tried and what I would have bet on. Chrome actually opens but the page cannot be found.)

铬

Which is more promissing because tomcat if acually found if I manually navigate to index.jsp :

tomcatworking

but no other url works. not the project path not its path plus index.jsp :

在此处输入图片说明

Running tomcat remote :

Runnin Tomcat远程

same for TomEE local runs but fails to find webpage. remote fails to run with same error message. though unless the terminology is seriously *** up (I've seen app makers go this far before) what I want is local.

Please help

Have you selected an artifact in the Deployment tab? If not add an artifact. After that, you should be able to request your site.

So you need to do: Open the configuration -> go to the Deployment tab -> add the artifact you want to deploy on the tomcat.

Restart tomcat and done you should be able to request your side :)

THe only possible way to have a functioning Tomcat and webapp project under intellij is to first create a new project via the wizard and select web app.

the guide here is to be followed exactly : https://www.jetbrains.com/help/idea/2017.1/enabling-web-application-support.html

any deveation and trying to convert an existing project into a web app is not supported.

(I'm sorry for anyone who feels differently but just try you'll see)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM