简体   繁体   English

我无法在NetBeans IDE 7.3中运行全新的Java Web应用程序项目

[英]I am not able to run fresh java web application project in netbeans IDE 7.3

In netbeans IDE 7.3,I create Java web application.I didn't add anything.Just a simple project. 在netbeans IDE 7.3中,我创建了Java Web应用程序。我没有添加任何内容。只是一个简单的项目。 I am using glassfish server.Then I cleaned and built it.When I click on Run, 我正在使用glassfish服务器。然后我清理并构建了它。当我单击“运行”时,

I get output as " Host Required In Request 我得到的输出为“ 请求中需要主机

Description: Your browser did not send a hostname as part of the requested url. 描述:您的浏览器未发送主机名作为请求的URL的一部分。 The configuration of this proxy requires a hostname to be sent as part of the url " in chrome browser. 在chrome浏览器中,此代理的配置要求将主机名作为url的一部分发送

I also get this output while running same project : Cycle Detected Description: Your request is prohibited because it would cause a cycle. 运行相同项目时,我也会得到此输出: 检测到周期描述:禁止您的请求,因为这会导致周期。

I am not getting why this errors are coming.Because earlier when I used to create any new fresh project, I can see contents of index.jsp page in browser. 我不明白为什么会出现此错误。因为之前我曾经创建任何新项目,所以我可以在浏览器中看到index.jsp页面的内容。

Try to open it in Firefox and see if it works. 尝试在Firefox中打开它,看看它是否有效。 If you have redirects, Chrome complains. 如果您有重定向,Chrome会抱怨。

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

相关问题 在netbeans ide 7.3上运行项目和运行文件有什么区别? - What is the difference between run project and run file on netbeans ide 7.3? Netbeans(7.3)-如何在一个项目中创建“ Java Web应用程序”和HTML / JavaScript“ HTML 5应用程序”? - Netbeans (7.3) - how to create a 'Java Web app' and HTML/JavaScript 'HTML 5 Application' in one project? Java Web Project编码问题-使用Netbeans 7.3 - Problems With encoding Java Web Project - Using Netbeans 7.3 NetBeans IDE - 如何使用控制台运行Java应用程序 - NetBeans IDE - how to run Java application with console Netbeans IDE中企业应用程序项目和Web项目应用程序之间的区别 - Difference between an Enterprise application project and a Web project application in Netbeans IDE 为什么在Netbeans 7.3中找不到Java桌面应用程序 - Why can't I find Java desktop application in Netbeans 7.3 如何导出Java项目,使其无需IDE(netbeans)即可运行? - How do I export my java project so it can run without the help of the IDE (netbeans)? 在 NetBeans IDE 中重命名项目,为什么会出现错误? - Renaming a project in NetBeans IDE, Why am I getting errors? 如何在Java中按字母顺序排列组合框? (使用Netbeans IDE 7.3) - How to alphabetize an combobox in java? (Using Netbeans IDE 7.3) 如何从命令行运行Netbeans IDE Java桌面应用程序 - How to run Netbeans IDE Java Desktop Application from command line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM