简体   繁体   English

Netbeans 7.1 / Tomcat问题

[英]Netbeans 7.1 / Tomcat Issue

I have two machines: 我有两台机器:

  • Windows 7 - Running Netbeans 7.1 Windows 7-运行Netbeans 7.1
  • Windows Server 2003 - Running Tomcat 7.0.27 Windows Server 2003-运行Tomcat 7.0.27

If I start tomcat from the bin/startup on the 2003 server, everything works fine. 如果我从2003服务器上的bin / startup启动tomcat,一切正常。 Ie, I can hit the tomcat admin console in a browser on either machine, I can deploy webservices, hit those deployed web services from a client on my Windows 7 machine, etc. 即,我可以在任一台机器上的浏览器中访问tomcat管理控制台,可以部署Web服务,从Windows 7机器上的客户端访问那些已部署的Web服务,等等。

But if I try to integrate this tomcat into netbeans things go bad. 但是,如果我尝试将此tomcat集成到netbeans中,则情况会变糟。

  1. I added the tomcat instance to my netbeans configuration, using the add server wizard. 我使用添加服务器向导将tomcat实例添加到了netbeans配置中。

  2. Right click the Apache Tomcat I just created in NB in the services/servers, choose Start . 在服务/服务器中右键单击我刚刚在NB中创建的Apache Tomcat,选择开始

  3. The server appears to start and from the content of the tomcat logs everything seems fine, at the bottom of the log you see the standard INFO: Server startup in 41785 ms . 服务器似乎已启动,并且从tomcat日志的内容来看一切正常,在日志底部,您看到标准的INFO: Server startup in 41785 ms

The tomcat instance isn't running, I cannot hit the tomcat admin URL from either box. 该tomcat实例未运行,我无法从任一框中访问tomcat管理URL。

I can see in the Task Manager on the 2003 box that no java.exe is started when I try to start the tomcat instance from netbeans. 当我尝试从netbeans启动tomcat实例时,可以在2003的“任务管理器”框中看到没有启动java.exe。

Any idea where I should be looking? 知道我应该去哪里看看吗? I would imagine it has to be a netbeans issue since everything works if I start from the tomcat startup script. 我想这肯定是netbeans的问题,因为如果我从tomcat启动脚本开始,一切都会正常。

Googled and nothing jumped out at me as something I missed. 谷歌搜索,没有任何东西像我想念的那样跳向我。

In Netbeans you can register an external server, ie a server different from the bundled one. 在Netbeans中,您可以注册一台外部服务器,即与捆绑的服务器不同的服务器。 But this server must be on the same machine as Netbeans, AFAIK you can't use a "remote" server in NB. 但是该服务器必须与Netbeans在同一台计算机上,因为AFAIK不能在NB中使用“远程”服务器。

Youre misunderstanding the main concepts of "developing Web Application (Asp,Java)", and considering them from "Developing Web Script (PHP)" perspective. 您会误解“开发Web应用程序(Asp,Java)”的主要概念,并从“开发Web脚本(PHP)”的角度来考虑它们。

PHP is not an app by design, it's a script. PHP不是设计的应用程序,而是脚本。 So it natively supports using one server for as many developers as you wish. 因此,它本机支持将一台服务器用于您希望的数量的开发人员。

But in Web application's world - you don't do "coding" on collaborated servers, or machines even. 但是在Web应用程序世界中,您甚至不必在协作服务器甚至机器上进行“编码”。 You do the codes by yourself, on your env, and then deploy them to production (or QA and then to production, depends...). 您可以在环境上自己完成代码,然后将其部署到生产环境(或质量保证,然后再生产环境,具体取决于...)。 So sory but it is not designed to be used by the way you're trying to use it... 太糟糕了,但它并非旨在以您尝试使用的方式使用...

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

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