• 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

Sun Java Webserver test (Resolved)

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdie ranchers, I have just installed the Sun Java Webserver and finally enabled my domain http://virtuallifestudios.com could some one please test if it is accesable to the outside world as I can only see my router from inside the LAN if all is working you should see the Sun Java Webserver welcome page as I have not added any custom pages yet.

If its working please give me a HUGE yeehaaa thanks alot
[ April 02, 2008: Message edited by: Stuart Smith ]
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Negative Houston!

There's definitely no answer from your web server, not even a single TCP packet. I guess that's a problem of your firewall or router. Do you have port forwarding correctly configured so that your router forwards packets on TCP port 80 to your web server?

Marco
 
Stuart Smith
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bugger thanks for that, a number of things it might be.

1: Sun Java server only works internally on install
2: I had no default page and it does not work unless you make one
3: DNS has not updated across the globe

Not sure if the server is set up correctly something I will have to read about.

I can access the domain via the domain name and can see my router config page and this usually means it is working i.e the DNS is pointing to my router at least.

Just created a index.html and renamed the default sun one that was there just in case that was the problem.

It works localy so thats prooves the server is running.

Name Listener Hosts Document Root

cube [*:80] cube C:/Sun/WebServer7/http-docs

Port forwarding is set up to local IP on 80.

I'll restart the pc as I just set up static IP.

Ok the default directory is not public by default modifed config so hopefully now it will work keep me informed
[ April 02, 2008: Message edited by: Stuart Smith ]
 
Marco Ehrentreich
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Still no success. And I'm quite sure it's a networking problem. Access to your web server behaves like a firewall dropping packets. Simply no answer.

I think it isn't a configuration problem of your web server. Indeed I don't know Sun's web server but a normal behavior would be an error status code if I'm not allowed to request a resource. But web servers don't swallow packets.

Are you sure there's an open socket for the web server on your external interface? Port forwarding really working? Perhaps you have to open the port additionally to just forwarding it?!? I'd recommend focus on that details and let the configuration of your server alone when it's already working internally.

Marco
 
Stuart Smith
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank again for your help, everything is set up except one thing Dimdows as I shall call it =P

Windows firewall has not popped up for me to allow the server I am sure that is what it is now after checking everything else.

So I need to allow it on windows securty center, just got to suss out what .exe to allow in the sun web server everything else is good to go.

Opened port 80 on Windows Firewall, there was no rule there so that would stop it.
[ April 02, 2008: Message edited by: Stuart Smith ]
 
Marco Ehrentreich
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By default the Windows firewall blocks all ports but a few known ports like the remote desktop port for example. Perhaps you should just try an operating system instead of Windows

But now finally YEEEHAAA!

Marco
 
Stuart Smith
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Marco Ehrentreich:
By default the Windows firewall blocks all ports but a few known ports like the remote desktop port for example. Perhaps you should just try an operating system instead of Windows

But now finally YEEEHAAA!

Marco



Wooohoo it works nice one



Thanks, I am going to set up Solaris in the future

Thank you very much for your help.
 
Marco Ehrentreich
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've not yet used the Sun web server. Can you recommend it? Are you by chance familiar with Apache in contrast to this server? Or perhaps does anyone have experience which one may be better?

I think Apache is a really good web server but over the yeas I found it more and more annoying to always keep up with numerous configuration options and so on. Does the Sun server have a graphical configuration interface?

Marco
 
Stuart Smith
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the first time I have use it to be honest but so far it looks great give it a download and try it, I have to get used to the configuration screens but it has a full graphical admin area unlike the standard Apache setup that requires you to use a config file only go Notepad haha.

I could not reccomend it yet as it was only installed today but the install was easy as you have seen the problem I have was a Dimdows one

I have tried many servers Tomcat, Easy PHP based on Apache but what bought me to try Suns was the built in Java features.

here is a link to the offical page.

http://www.sun.com/software/products/web_srvr/home_web_srvr.xml

From the reading I have done so far it can use PHP, ASP MYSQL and ofc Java so I would suggest giving it a try, I am using it for my personal domain so if its a business critcal application you are thinking of probbly better to throw it on a test machine.

Thus far I have had nothing but good results from Sun software and will be migrating to Solaris as it has everything pre installed allready and of course is free.

The admin area is clear and concise.

The only thing that I would say is bothering me at the moment is the fact I can't seem to find the configuration to make it boot on start up, there was a tick box in the installer that I unchecked like I always do when installing new software but that has kicked me in the butt this time as I can't find the option to make it start up now that I want it to.
 
Marco Ehrentreich
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot for your detailed answer. I think I'll just have to give it a try. As you said I've always made good experiences with software from Sun, too, and this one at the moment is only for private interest anyway.

Good luck with your configuration and the Dimdows problems

Marco
 
Stuart Smith
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just a little info for any Windows users that may install this in the future.

Upon install if you do not tick the start up on boot up option there is a way to change this after wards, I could not find any information on the net after some time googling and crawling the Sun forums.

However to save you the same problems you can easily set it to start up automatically by following the instructions below.

I also add the windows firewall setup required to get this baby online I assume you know how to port forward on your router to your local IP on port 80.

Add to Windows firewall a rule to allow this application
"C:\Sun\WebServer7\lib\webservd-wdog.exe"

Also open port 80 in the Windows firewall this is all done via the security center.

To start the server automatically you need to go to the Windows control panel / Administrative Tools services and it is displayed as

Sun Java System Web Server 7.0, just set it to automatic and it will boot up when you restart your pc.

Oh yes nearly forgot, the Admin server is a separate instance and it is advisable not to allow this to start up automatically and use it as and when you need to configure your server, you can get to it from Start / All Programmes / Sun Microsystems / Web Server / and running the Start batch file short cut provided, there is also one to Stop the admin interface in the same folder group this should be run when you finished configuring your server.
[ April 02, 2008: Message edited by: Stuart Smith ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic