• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Embedded Tomcat in Netbeans

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
reply
    Bookmark Topic Watch Topic
  • New Topic