Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embedded Tomcat in Netbeans

 
mikki talaa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Bels
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic