简体   繁体   English

Intellij Ultimate无法打开打开的Tomcat Web应用程序

[英]Intellij ultimate Cannot open open Tomcat Web Application

Only ultimate has web application support so that's out of the way. 只有Ultimate才具有Web应用程序支持,所以这是不对的。

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. 我正在尝试通过tomcat启动我的Web应用程序,直到我在netbeans的同一台计算机上成功完成某件事,并且几乎没有配置。

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. 与EE和非EE远程和本地的所有可能组合。

none of which work. 没有一个工作。

I've done this : Cannot run/debug jsp page from within IntelliJ using Tomcat server 我已经做到了: 无法使用Tomcat服务器在IntelliJ中运行/调试jsp页面

checked this : Intellij IDEA Tomcat Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099 检查以下内容: 运行配置停止之前未连接Intellij IDEA Tomcat应用程序服务器,原因:无法在localhost:1099上ping服务器

done this : IntelliJ, can't start simple web application: Unable to ping server at localhost:1099 完成此操作: IntelliJ,无法启动简单的Web应用程序:无法在localhost:1099上ping服务器

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.) 在本地运行tomcat(我尝试过的第一件事以及应该打赌的事情。Chrome实际上会打开,但找不到该页面。)

铬

Which is more promissing because tomcat if acually found if I manually navigate to index.jsp : 这是更令人发指的,因为如果手动导航到index.jsp,就会发现tomcat:

tomcatworking

but no other url works. 但没有其他网址有效。 not the project path not its path plus index.jsp : 不是项目路径不是其路径加上index.jsp:

在此处输入图片说明

Running tomcat remote : 运行tomcat remote:

Runnin Tomcat远程

same for TomEE local runs but fails to find webpage. 与TomEE本地运行相同,但找不到网页。 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. 因此,您需要执行以下操作:打开配置->转到Deployment选项卡->添加要在tomcat上部署的工件。

Restart tomcat and done you should be able to request your side :) 重新启动tomcat,完成后您应该可以请求您的帮助了:)

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. 在intellij下拥有正常运行的Tomcat和webapp项目的唯一可能方法是,首先通过向导创建一个新项目,然后选择Web应用程序。

the guide here is to be followed exactly : https://www.jetbrains.com/help/idea/2017.1/enabling-web-application-support.html 请严格遵循此处的指南: 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. 不支持任何开发并将尝试将现有项目转换为Web应用程序。

(I'm sorry for anyone who feels differently but just try you'll see) (对于任何有不同看法但尝试尝试的人,我感到抱歉)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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