aspose file tools*
The moose likes Servlets and the fly likes Visibility of web site on port 8088 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Visibility of web site on port 8088 " Watch "Visibility of web site on port 8088 " New topic
Author

Visibility of web site on port 8088

Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
I'm posting these questions in the beginner forum because I'm a Java beginner I hope they don't really belong in the servlet forum.
Here goes:
1) does "registering a servlet" simply mean putting the servlet class(es) in the classpath?
and
2) if tomcat is configured such that only internal users may access the pages, how can it be changed so that all can access it? I've noticed that tomcat usually uses port 8080 but the configuration I inherited here uses 8088 if that matters at all.
Thanks in advance.
[ October 23, 2003: Message edited by: Barbara Norway ]
[ October 24, 2003: Message edited by: Mike Curwen ]

farmkitty
Eric Sexton
Ranch Hand

Joined: Sep 12, 2003
Posts: 133
This will get moved to the servelt forum...
To register a servlet means to add it to the deployment descripter, call the web.xml. This lets the servlet container know about the servlet and what to do to it. There's a lot more there that you'll need to learn.
Actually, another computer that can see your computer with tomcat on the network can just type in your ip with the port number and application name to access the app.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
Servlet discussions are really beyond the scope of the beginner forum, which is more for "How do I get my HelloWorld program to compile/run". At the very least they are intermediate level topics. However, I believe you will get quick answers to your questions in the servlets forum, so I'm moving it there.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Control of which port that Tomcat looks at is accomplished in the server.xml configuration file in the TOMCAT_HOME/conf directory - look for a <Connector element.
Bill
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
Hello and thanks for the quick and useful replies. I think I have a bigger issue with the tomcat "visibility" external to our subnet however. We can access the application using the address in the form www.ouruniversity.edu:8088/appname/admin
but when trying to access it from another building on campus or from home, no.
I'm a newbie to Tomcat so I'm wondering if there is setting somewhere that's causing this problem. We have a web site (Apache server) that IS accessible worldwide using port 80. I have added apps to the Tomcat server but I didn't configure it initially. I can post the code from web.xml or server.xml if that would help. Thanks again!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

What URL are you typing in to access it from the outside world? I am not sure this is really a Tomcat problem. It could be a router or DNS problem within your network.
Also, I am going to request your other post with this same question be closed. Since you already asked this question here, it serves no purpose to ask it again in a seperate thread. It makes it harder for us to follow your questions and progress.
Thanks.


GenRocket - Experts at Building Test Data
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
Hi,
But one of my two questions isn't resolved:
Everyone world-wide can reach the web server on port 80 (Apache server not using Tomcat) but the JSP application on port 8088 (and Tomcat server - separate from the Apache server) cannot be accessed outside of our building. I am wondering if there is a Tomcat setting for making the port inaccessible for security reasons or some such (and does the fact that it's using 8088 rather than the more traditional 8080 have any bearing on the problem?). Please I need help. I assumed I should repost because it appeared that my problem was solved to others but it's not. I started posting in the newbie section so I wouldn't offend anyone or waste anyone's time. How can I make this appear to not be resolved. Thanks!!!
[ October 24, 2003: Message edited by: Barbara Norway ]
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
I am typing http://ourservername.edu:8088/name_of_app_under_webapps/admin
The app comes up and all pages work fine within our building but not outside on campus or from home. We have total access to our sun server where the two web servers (apache & tomcat) are running. Thanks in advance! NOt a DNS problem because the sameserver name is used for the apache web site on port 80 and it works fine (and it's registered with the main DNS servers on campus).
[ October 24, 2003: Message edited by: Barbara Norway ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

The thing is there is nothing in Tomcat that will restrict that. I would imagine that you have a firewall protecting your network. Not to mention any routers you might have. You need to open port 8088 on the firewall/router in order for your web site to be accessable from the outside world.
For example, at my house I have a Linksys router. I am running 2 web servers. 1 is on port 80 and the other is on 8080. I had to set a rule in my router to tell it to forward any requests on those ports to my internal Address of those servers.
You might have to do something similar at your company in order for your server to actually even get any requests on that port. Your firewall/router might be getting requests and then saying "where do this go?" and just dumping the packets.
Does that make sense?
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
Thanks, I'll talk to the networking group for the building. I'm glad you helped me exclude Tomcat configuration as the cause of the problem. Whenever I get this resolved I'll post the solution.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Hi Barbara,

Don't worry about this thread looking 'solved'. As long as we keep replying to fresh questions, it looks alive.

As for where to post, we prefer them to be topic-based... so don't worry about asking 'newbie' questions in any of the forums. That's what we're here for.

I've renamed this post for you, so hopefully you won't mind. (Since we closed your other one).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Visibility of web site on port 8088