Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > developing apps while not connected

developing apps while not connected
Thread Tools
Junior Member
Join Date: Feb 2000
Location: Chicago, IL
Status: Offline
Reply With Quote
Oct 22, 2002, 09:38 PM
 
OK, this may sound like a newbie question, but I wouldn't put myself in that category, so forgive me.

I have been messing with Tomcat/Cocoon/etc. and recently decided that it might be nice to do some work on it while sitting at a coffee shop or elsewhere. However, I found that while not connected to the internet, the IP interface seems to go down entirely.

So, while not plugged in, I cannot start Apache/WebSharing or the Tomcat server. Why? I'm just trying to run the server locally so that I can make local requests while developing. Why do I need to be connected to the internet to do that?

Is there some reason the OS shuts down all app requests that rely upon the the network even though they are local? I don't get it.
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Oct 22, 2002, 11:29 PM
 
Hmmm...I don't have that problem at all.

I have a full J2EE stack (JBoss/Jetty||Tomcat) and MySQL HyperSonicSQL openLDAP and much more running 24/7 on my laptop which goes from wireless at home, to no connection while transient, to wired at work.

I bring all the apps up and down as needed and everything works fine regardless of the environment.

The only thing I have done is add my computer name to the NetInfo entry for localhost.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Professional Poster
Join Date: Sep 1999
Location: Ottawa, ON, Canada
Status: Offline
Reply With Quote
Oct 23, 2002, 12:04 PM
 
By any chance is your internet provisioned as DHCP? Try making a new location with a manually provisioned IP address, with no DNS server.

Any attempts to connect should then be refused immediately, allowing the app to get on with it.

Also, look for any "auto update" features and turn them off.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Oct 23, 2002, 01:17 PM
 
You could try making a new network location which was set-up to use Ethernet - then your system thinks it's on-line all the time.

(or are you suggesting that you need an actual active connection?)
     
mcdoken  (op)
Junior Member
Join Date: Feb 2000
Location: Chicago, IL
Status: Offline
Reply With Quote
Oct 23, 2002, 10:09 PM
 
Thank you for all of your thoughts.
I'm not in front of my machine at the moment, but my normal connected setup is a statically assigned IP with an assigned DNS IP address. So I'll try creating one without a DNS entry and see what that does.
I'll also try the localhost entry in NetInfo if that doesn't work.
I'll report the results.
If it was unclear, I'm suggesting that I want a local server running and responding to requests without an active network connection.
Not that it should matter, but I'm running 10.2 on a PowerBook G3 500MHz Pismo.
thanks again.
     
mcdoken  (op)
Junior Member
Join Date: Feb 2000
Location: Chicago, IL
Status: Offline
Reply With Quote
Oct 24, 2002, 12:23 AM
 
OK, got it to work by removing the DNS server entry and making the requests of 127.0.0.1 instead of localhost.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2