Solved

IIS to serve JSP ?

Posted on 2003-11-27
12
770 Views
Last Modified: 2010-04-01
Dear ladies and gentlemen,

I am not an IT guy but I need to setup a web application using IIS in my Win2K machine. I already have the web application written in Jsp and it is running fine in Tomcat.

I want to use IIS to host it instead. After reading the documentation in :
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html, I am very puzzled. I hope someone could help me out step by step.

Here the first 2 questoins:
1) From the document, it said I need to play with worker file. But I didn't find any worker files in my tomcat directory. Should I create it my own and how am I going to link it to my application?

2) Let's say all the configuration has done, do I need to run Tomcat and IIS together to serve the webpages? My ultimate goal is to use only IIS without starting Tomcat.

Please help. I promise points.
0
Comment
Question by:i_am_diablo2000
  • 5
  • 3
  • 3
  • +1
12 Comments
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
For part 2, you can't serve JSPs/Servlets from IIS without a servlet container (eg. Tomcat) of some sort.

I'll have a look at part 1 now, but I don't use MS products, so it may take a little time and guesswork ;-)
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
From the document you posted the link for, did you follow the link into the "Workers HowTo" document?

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html

This explains about Tomcat Workers and how to set them up.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
0
 
LVL 92

Accepted Solution

by:
objects earned 80 total points
Comment Utility
Heres an example workers2.properties that redirects all jsp requests to tomcat:

# change this to your own location
[shm]
file=e:/jk2.txt
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping - redirect all .jsp files to Tomcat server
[uri:/*.jsp]
worker=ajp13:localhost:8009

# define the worker
[status:status]

# Uri mapping - use http://localhost/jkstatus to view redirector status
[uri:/jkstatus/*]
worker=status:status
0
 

Author Comment

by:i_am_diablo2000
Comment Utility
Thank you all the wonderful responses. As I promised, I will give you the points.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 15

Expert Comment

by:jimmack
Comment Utility
:-(
0
 

Author Comment

by:i_am_diablo2000
Comment Utility
Sorry jimmack, I don't know how to split the points. Your comments are very useful, too. I have yet to solve the problem. Stay tuned for my next question.
0
 

Author Comment

by:i_am_diablo2000
Comment Utility
Hello Objects and jimmack,

I have raised a new question at
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20812287.html

The problem is still not solved. Please help.
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
I've had a look at your other question and you've moved into an area that I can't help with ;-)

For info, there should be a button to split points at the bottom of the question.  When you select this, you can specify how many of the points go to each expert.

Don't worry about no splitting the points.  I'm OK with the fact that you've recognised that my comments were useful ;-)
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
>> Don't worry about no splitting the points

should be:

Don't worry about not splitting the points

;-)
0
 
LVL 1

Expert Comment

by:ackava
Comment Utility
Well the solution is here...

http://jspisapi.neurospeech.com , we had similar problem and trying to find solution but too complex method of tomcat's documentation lead us to develop our own solution called JspISAPI. The details of installation is given in the website.

It has features:
1) eliminate 8080 port from urls
2) redunce load on tomcat as images and other resources are handled by IIS
3) support http keep alive for jsp and servlets
4) easy setup for SSL by IIS, no hassle for setting up SSL for tomcat

- Akash Kava

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now