• Post Reply Bookmark Topic Watch Topic
  • New Topic

tomcat  RSS feed

 
sobha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
We developed our application with jsp, servlets in javawebserver. Now we are hosting my application is in third party server which is in Apache and Tomcat. I copied my defualt page and sample servlet in that server. I am able to access my jsp in this url http://temporaryhostname:8080/index.html and my servlet is in http://temporaryhostname:8080/servlet/MyServlet.
If I want to run without specifying port 8080 in my Url how can i do that and where can I copy my servlets and jsp pages.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is up to the third party server provider to configure Apache to recognize a JSP (or servlet) request and forward them to the Tomcat instance.

In short, your third party should set things up so that your JSP/Servlet site can run off of port 80 (the default HTTP port)
 
Daniel Olson
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have access to the server.xml file in the conf folder, you can change the port configuration to whatever port you want.

 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"sobha",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Raph Kuriyan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shoba,
see http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html
Once, you've integrated Tomcat with apache, you will be able to access your application through it's context or the root context. This is actually the recommended deployment setup for apache+tomcat.
all the best,
raph.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!