aspose file tools*
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
Author

Embedded Tomcat in Netbeans

mikki talaa
Greenhorn

Joined: Aug 17, 2006
Posts: 2
Hello!
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.

Cheers,
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

Hi
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 :
127.0.0.1 your_computer_name
your_DSL_IP your_computer_name
127.0.0.1 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 localhost.date.log content


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

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.

Cheers,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Embedded Tomcat in Netbeans