File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Embedded Tomcat in Netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Embedded Tomcat in Netbeans" Watch "Embedded Tomcat in Netbeans" New topic

Embedded Tomcat in Netbeans

mikki talaa

Joined: Aug 17, 2006
Posts: 2
I use Netbeans 5.0 and it has embedded Tomcat.
I have noticed that if my PC is connected to Internet via DSL
NetBeans Tomcat instance runs well. But if I try build and deploy
WebApps into NetBeans's embedded Tomcat when my PC is not connected to Internet both build and deployment fails. And Tomcat does not start.

The real Tomcat version (without NetBeans) runs well and does not care
if PC is connected to Internet or not.

So, are there any configuration options in Tomcat that can prevent it starting if PC running it is not connected to Internet? Both Tomcat versions
are using localhost.

Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

usually people face the vice versa ,
but you can do the following configuration , after you did it
restart your computer and test netbeans + its embeded tomcat version.
if problem still exists please post your tomcat log file here.

I assume that you use windows so steps to perform to avoid the problem :

create or if it exists open the wind_dir/system32/drivers/etc/hosts
it is a plain text file and it has no extension.

add following lines to it : your_computer_name
your_DSL_IP your_computer_name localhost
your_DSL_IP localhost

if this changes does not resolve your problem , post the log file content here .
you can find the log file at
win_drive\Documents and Settings\your_user_name\.netbeans\5.0\jakarta-tomcat-5.5.9_base\logs

make sure you post latest content

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
Tim Bels

Joined: Mar 23, 2006
Posts: 14
Hello, I added lines to hosts file but it did not solve the problem.
I also changed from NetBeans Tools->Options dialog - No Proxy choice on.

Nothing helped.

The logfile was empty.

I have seen this kind of problem about tree time and never knew how to solve the problem.

I agree. Here's the link:
subject: Embedded Tomcat in Netbeans
jQuery in Action, 3rd edition