This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Is tomcat necessary?

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still rather new to writing servlets and creating websites, and so far every web application I've made in Java and JSP run on stand-alone tomcat. In short, it was never available on the internet, just my own pc.

Now I've written a small web app that is going on a real server running Microsoft IIS 6.0 I believe. I've already uploaded my servlets and jsp files into the current directory where the existing website already resides.

My problem is that the jsp pages and servlets aren't recognised and cannot be used for some reason. I then installed tomcat, placed my web app in the web app folder and pointed the server to publish content coming out of my web app folder and still no results.

Any suggestions to help solve this problem would be very greatly appreciated!!
 
author
Posts: 4114
28
Google Web Toolkit Eclipse IDE Flex
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Microsoft IIS does not support jsps natively. Its a completely different technology and Microsoft would prefer you use ASP (competition to JSP). The best you can do is have IIS pass through via a Tomcat connection bridge where IIS handles regular web pages and Tomcat is running but only handles JSP/servlets.

There's a number of online tutorials on how to set this type of bridge up. I'd recommend though you use Apache instead of IIS (if possible) since that is more compatible with Tomcat.
 
Marshal
Posts: 67295
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or save yourself a load of headaches and just use Tomcat. It's just as good at serving static resources as it is dynamic ones.
 
Jason Kwok
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both for the quick responses!! My web app is running on my university's server and they have installed IIS 6.0. Being so new and inexperienced with all of this, I believed the system admin when he told me it should be no problem running the servlets and jsp on the current server.

to Scott: Is there somewhere you can direct me to find a tomcat connection bridge tutorial? I searched this forum quickly and found no appropriate results.

to Bear: I have tomcat version 4.1... would I need 5.5 to allow it to serve online as opposed to just my pc? Or is 4.1 ok and I'm just missing out on how to use this functionality? So far, I just start tomcat and then run my servlets through http://localhost:8080/myWebApp.

Again, your help is greatly appreciated guys!!
 
Bear Bibeault
Marshal
Posts: 67295
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either of Tomcat 4 or 5 works just fine.
 
Jason Kwok
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks again guys for all your help, I'll read up more on tomcat!!
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!