You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by aladdin <al...@csunv.com> on 2007/08/04 00:48:49 UTC

Can't find ServletContext.getContextPath()

I have the following two lines of code in a context listener:

	ServletContext sc= e.getServletContext(); // e is a ServletContextEvent
        log.write("AppInitializer::ContextInitializer: context name='" + sc.getServletContextName() + "'");
        log.write("AppInitializer::ContextInitializer: context path='" + sc.getContextPath() + "'");

When I try to compile this, I get:
./src/utils/AppInitializer.java:33: cannot find symbol
symbol  : method getContextPath()
location: interface javax.servlet.ServletContext
        log.write("AppInitializer::ContextInitializer: context path='" + sc.getContextPath() + "'");

Why is it not finding the function (and only the function) ServletContext.getContextPath()?  It's the first time I've used this function, but it is typed (I think; maybe I'm going crazy- too much programming, ya' know) exactly as it appears in the Sun J2EE documentation.

TIA,
Allen




Re: Can't find ServletContext.getContextPath()

Posted by David Smith <dn...@cornell.edu>.
Could be because ServletContext doesn't have that method.  You might 
want to try using getServletContextName().

The Servlet API is available online at the tomcat website.

--David

aladdin wrote:
> I have the following two lines of code in a context listener:
>
> 	ServletContext sc= e.getServletContext(); // e is a ServletContextEvent
>         log.write("AppInitializer::ContextInitializer: context name='" + sc.getServletContextName() + "'");
>         log.write("AppInitializer::ContextInitializer: context path='" + sc.getContextPath() + "'");
>
> When I try to compile this, I get:
> ./src/utils/AppInitializer.java:33: cannot find symbol
> symbol  : method getContextPath()
> location: interface javax.servlet.ServletContext
>         log.write("AppInitializer::ContextInitializer: context path='" + sc.getContextPath() + "'");
>
> Why is it not finding the function (and only the function) ServletContext.getContextPath()?  It's the first time I've used this function, but it is typed (I think; maybe I'm going crazy- too much programming, ya' know) exactly as it appears in the Sun J2EE documentation.
>
> TIA,
> Allen
>
>
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aladdin,

aladdin wrote:
> I have the following two lines of code in a context listener:
> 
> 	ServletContext sc= e.getServletContext(); // e is a ServletContextEvent
>         log.write("AppInitializer::ContextInitializer: context name='" + sc.getServletContextName() + "'");
>         log.write("AppInitializer::ContextInitializer: context path='" + sc.getContextPath() + "'");
> 
> When I try to compile this, I get:
> ./src/utils/AppInitializer.java:33: cannot find symbol
> symbol  : method getContextPath()
> location: interface javax.servlet.ServletContext
>         log.write("AppInitializer::ContextInitializer: context path='" + sc.getContextPath() + "'");
> 
> Why is it not finding the function (and only the function) ServletContext.getContextPath()?  It's the first time I've used this function, but it is typed (I think; maybe I'm going crazy- too much programming, ya' know) exactly as it appears in the Sun J2EE documentation.

Unless you can use a Servlet 2.5-spec container, I don't think you can
do what you want to do. It looks like you want the webapp's context path
 for logging (i.e. the "/myWebapp"), but there's no access to it before
the 2.5-spec (though I'm not sure why... it seems like a basic piece of
information that should not require a request to fetch).

Since it's just for logging, I'm sure that
ServletContext.getServletContextName will meet your needs... you'll just
have to set a <display-name> in your deployment descriptor (web.xml).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGtz9W9CaO5/Lv0PARAkxWAJ9DRdq76lfr4gYfIYAztbpBYnLsogCglpwW
0Xgz7oZskGKBNlSy+rVFO7Y=
=zzkx
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by Len Popp <le...@gmail.com>.
Yes, ServletContext.getContextPath is in 6.0.
-- 
Len

On 8/4/07, aladdin <al...@csunv.com> wrote:
> Also that link says 2.4 Java API, not 2.5.  Perhaps another indicator of an
> artifact of earlier versions?
>
> But, y'all are confident getContextPath is in Tomcat 6.0?
>
> On Saturday 04 August 2007 08:43, David Smith wrote:
> > Mark Thomas wrote:
> > > aladdin wrote:
> > >> If you go here (Sun's official docs):
> > >>
> > >> http://java.sun.com/javaee/5/docs/api/
> > >>
> > >> you'll find it under the ServletContext interface.  However, not being
> > >> one to argue with the obvious, I'm surely going to take your advice,
> > >> and, in fact, thank you very much for it.
> > >>
> > >> Can you post the URL to the Tomcat api docs that you mentioned in your
> > >> first email?  It looks like that maybe I should be using that instead of
> > >> Sun's documentation, although, after at least a couple of years of doing
> > >> this, this is the first time I've seen a disconnect between Tomcat and
> > >> Sun's official documentation.
> > >
> > > ServletContext.getContextPath() was introduced in the 2.5 spec so
> > > you'll need to use Tomcat 6 or later to make use of it.
> > >
> > > Mark
> >
> > Hi Mark.
> >
> > I had the thought it might be in servlet spec 2.5 and I tried to check,
> > but it's not up on the tomcat 6 docs site like servlet spec apis in
> > previous versions.  There's a link in the tomcat 6 docs to the servlet
> > api, but it doesn't work.  I suspect it's a left-over from when the docs
> > were copied from the tomcat 5.5 docs site.
> >
> > See the Reference section of
> > http://tomcat.apache.org/tomcat-6.0-doc/index.html and you'll know what
> > I mean.
> >
> >
> > --David
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by aladdin <al...@csunv.com>.
Also that link says 2.4 Java API, not 2.5.  Perhaps another indicator of an 
artifact of earlier versions?

But, y'all are confident getContextPath is in Tomcat 6.0?

On Saturday 04 August 2007 08:43, David Smith wrote:
> Mark Thomas wrote:
> > aladdin wrote:
> >> If you go here (Sun's official docs):
> >>
> >> http://java.sun.com/javaee/5/docs/api/
> >>
> >> you'll find it under the ServletContext interface.  However, not being
> >> one to argue with the obvious, I'm surely going to take your advice,
> >> and, in fact, thank you very much for it.
> >>
> >> Can you post the URL to the Tomcat api docs that you mentioned in your
> >> first email?  It looks like that maybe I should be using that instead of
> >> Sun's documentation, although, after at least a couple of years of doing
> >> this, this is the first time I've seen a disconnect between Tomcat and
> >> Sun's official documentation.
> >
> > ServletContext.getContextPath() was introduced in the 2.5 spec so
> > you'll need to use Tomcat 6 or later to make use of it.
> >
> > Mark
>
> Hi Mark.
>
> I had the thought it might be in servlet spec 2.5 and I tried to check,
> but it's not up on the tomcat 6 docs site like servlet spec apis in
> previous versions.  There's a link in the tomcat 6 docs to the servlet
> api, but it doesn't work.  I suspect it's a left-over from when the docs
> were copied from the tomcat 5.5 docs site.
>
> See the Reference section of
> http://tomcat.apache.org/tomcat-6.0-doc/index.html and you'll know what
> I mean.
>
>
> --David
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by Mark Thomas <ma...@apache.org>.
David Smith wrote:
> I had the thought it might be in servlet spec 2.5 and I tried to check,
> but it's not up on the tomcat 6 docs site like servlet spec apis in
> previous versions.  There's a link in the tomcat 6 docs to the servlet
> api, but it doesn't work.  I suspect it's a left-over from when the docs
> were copied from the tomcat 5.5 docs site.
> 
> See the Reference section of
> http://tomcat.apache.org/tomcat-6.0-doc/index.html and you'll know what
> I mean.

Thanks. This is now fixed and will be in 6.0.15 onwards.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by David Smith <dn...@cornell.edu>.

Mark Thomas wrote:
> aladdin wrote:
>   
>> If you go here (Sun's official docs):
>>
>> http://java.sun.com/javaee/5/docs/api/
>>
>> you'll find it under the ServletContext interface.  However, not being one to 
>> argue with the obvious, I'm surely going to take your advice, and, in fact, 
>> thank you very much for it.
>>
>> Can you post the URL to the Tomcat api docs that you mentioned in your first 
>> email?  It looks like that maybe I should be using that instead of Sun's 
>> documentation, although, after at least a couple of years of doing this, this 
>> is the first time I've seen a disconnect between Tomcat and Sun's official 
>> documentation.
>>     
>
> ServletContext.getContextPath() was introduced in the 2.5 spec so
> you'll need to use Tomcat 6 or later to make use of it.
>
> Mark
>
>   
Hi Mark.

I had the thought it might be in servlet spec 2.5 and I tried to check, 
but it's not up on the tomcat 6 docs site like servlet spec apis in 
previous versions.  There's a link in the tomcat 6 docs to the servlet 
api, but it doesn't work.  I suspect it's a left-over from when the docs 
were copied from the tomcat 5.5 docs site.

See the Reference section of 
http://tomcat.apache.org/tomcat-6.0-doc/index.html and you'll know what 
I mean.


--David

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by Mark Thomas <ma...@apache.org>.
aladdin wrote:
> If you go here (Sun's official docs):
> 
> http://java.sun.com/javaee/5/docs/api/
> 
> you'll find it under the ServletContext interface.  However, not being one to 
> argue with the obvious, I'm surely going to take your advice, and, in fact, 
> thank you very much for it.
> 
> Can you post the URL to the Tomcat api docs that you mentioned in your first 
> email?  It looks like that maybe I should be using that instead of Sun's 
> documentation, although, after at least a couple of years of doing this, this 
> is the first time I've seen a disconnect between Tomcat and Sun's official 
> documentation.

ServletContext.getContextPath() was introduced in the 2.5 spec so
you'll need to use Tomcat 6 or later to make use of it.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by aladdin <al...@csunv.com>.
If you go here (Sun's official docs):

http://java.sun.com/javaee/5/docs/api/

you'll find it under the ServletContext interface.  However, not being one to 
argue with the obvious, I'm surely going to take your advice, and, in fact, 
thank you very much for it.

Can you post the URL to the Tomcat api docs that you mentioned in your first 
email?  It looks like that maybe I should be using that instead of Sun's 
documentation, although, after at least a couple of years of doing this, this 
is the first time I've seen a disconnect between Tomcat and Sun's official 
documentation.

Thank you very much for the info-

Allen

On Friday 03 August 2007 19:42, David Smith wrote:
> Doh!
>
> Looks like you already know about getServletContextName().
> getContextPath() still doesn't exist.  If getContextPath() is what I
> think it is, it's only available in ServletRequest.
>
> --David
>
> aladdin wrote:
> > I have the following two lines of code in a context listener:
> >
> > 	ServletContext sc= e.getServletContext(); // e is a ServletContextEvent
> >         log.write("AppInitializer::ContextInitializer: context name='" +
> > sc.getServletContextName() + "'");
> > log.write("AppInitializer::ContextInitializer: context path='" +
> > sc.getContextPath() + "'");
> >
> > When I try to compile this, I get:
> > ./src/utils/AppInitializer.java:33: cannot find symbol
> > symbol  : method getContextPath()
> > location: interface javax.servlet.ServletContext
> >         log.write("AppInitializer::ContextInitializer: context path='" +
> > sc.getContextPath() + "'");
> >
> > Why is it not finding the function (and only the function)
> > ServletContext.getContextPath()?  It's the first time I've used this
> > function, but it is typed (I think; maybe I'm going crazy- too much
> > programming, ya' know) exactly as it appears in the Sun J2EE
> > documentation.
> >
> > TIA,
> > Allen
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by Bill Barker <wb...@wilshire.com>.
"Mark Thomas" <ma...@apache.org> wrote in message 
news:46B3C80C.5040202@apache.org...
> aladdin wrote:
>> Hmmm!  One other thing, if you please.  There is no "name" attribute that 
>> I
>> can find under the Context entry on the Tomcat website.  If I use
>> getServletContextName(), where does the name come from?
>
> Of the top of my head, no idea. Have you tried looking at the source code?
>

It is whatever is in the <display-name>...</display-name> in your web.xml 
file.

> Mark
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by Mark Thomas <ma...@apache.org>.
aladdin wrote:
> Hmmm!  One other thing, if you please.  There is no "name" attribute that I 
> can find under the Context entry on the Tomcat website.  If I use 
> getServletContextName(), where does the name come from?

Of the top of my head, no idea. Have you tried looking at the source code?

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by aladdin <al...@csunv.com>.
Hmmm!  One other thing, if you please.  There is no "name" attribute that I 
can find under the Context entry on the Tomcat website.  If I use 
getServletContextName(), where does the name come from?

Thanks some more,
Allen

On Friday 03 August 2007 19:42, David Smith wrote:
> Doh!
>
> Looks like you already know about getServletContextName().
> getContextPath() still doesn't exist.  If getContextPath() is what I
> think it is, it's only available in ServletRequest.
>
> --David
>
> aladdin wrote:
> > I have the following two lines of code in a context listener:
> >
> > 	ServletContext sc= e.getServletContext(); // e is a ServletContextEvent
> >         log.write("AppInitializer::ContextInitializer: context name='" +
> > sc.getServletContextName() + "'");
> > log.write("AppInitializer::ContextInitializer: context path='" +
> > sc.getContextPath() + "'");
> >
> > When I try to compile this, I get:
> > ./src/utils/AppInitializer.java:33: cannot find symbol
> > symbol  : method getContextPath()
> > location: interface javax.servlet.ServletContext
> >         log.write("AppInitializer::ContextInitializer: context path='" +
> > sc.getContextPath() + "'");
> >
> > Why is it not finding the function (and only the function)
> > ServletContext.getContextPath()?  It's the first time I've used this
> > function, but it is typed (I think; maybe I'm going crazy- too much
> > programming, ya' know) exactly as it appears in the Sun J2EE
> > documentation.
> >
> > TIA,
> > Allen
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Can't find ServletContext.getContextPath()

Posted by David Smith <dn...@cornell.edu>.
Doh!

Looks like you already know about getServletContextName().  
getContextPath() still doesn't exist.  If getContextPath() is what I 
think it is, it's only available in ServletRequest.

--David

aladdin wrote:
> I have the following two lines of code in a context listener:
>
> 	ServletContext sc= e.getServletContext(); // e is a ServletContextEvent
>         log.write("AppInitializer::ContextInitializer: context name='" + sc.getServletContextName() + "'");
>         log.write("AppInitializer::ContextInitializer: context path='" + sc.getContextPath() + "'");
>
> When I try to compile this, I get:
> ./src/utils/AppInitializer.java:33: cannot find symbol
> symbol  : method getContextPath()
> location: interface javax.servlet.ServletContext
>         log.write("AppInitializer::ContextInitializer: context path='" + sc.getContextPath() + "'");
>
> Why is it not finding the function (and only the function) ServletContext.getContextPath()?  It's the first time I've used this function, but it is typed (I think; maybe I'm going crazy- too much programming, ya' know) exactly as it appears in the Sun J2EE documentation.
>
> TIA,
> Allen
>
>
>
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: IIS redirect to Apache

Posted by Pid <p...@pidster.com>.
Tony Fountain wrote:
> Hi,
> 
> Scenario: we purchased a product written in Java to integrate into our
> reporting tool.  Our setup is such that our web application is written
> in .NET and hosted on a web farm using IIS (5 or 6 depending on the
> environment).  The product we purchased runs under Apache Tomcat/5.5.23
> using 1.5.0_12-b04.  The product is integrated into our web portal using
> frames and sending URL requests to Apache.  We are running into issues
> with javascript code from the product generating errors for what I
> suspect may be related to crossing domains (our web site and the Apache
> server).  I figure I can resolve this by generating a proxy on the IIS
> server to handle the request to the Apache server.

Can you describe the error in some more detail, and why you think a 
proxy server will resolve the problem?

> My question is does anyone have any pointers on how to setup this type
> of proxy?

Wrong forum to be asking about IIS config, I suspect, but you might luck 
  out.

p


> Thanks,
> Tony
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


RE: IIS redirect to Apache

Posted by Tony Fountain <tf...@benefitconcepts.com>.
Rainer,

Thanks for the information.  I'll read up on the IIS ISAPI plugin and if
I have any more questions, I'll post them.

Thanks,
Tony Fountain
Benefit Concepts, Inc.
(419) 244-9936 x9010 (office)
(419) 249-7221 (fax)

-----Original Message-----
From: Rainer Jung [mailto:rainer.jung@kippdata.de] 
Sent: Wednesday, August 15, 2007 3:55 PM
To: Tomcat Users List
Subject: Re: IIS redirect to Apache

Hi Tony,

the Tomcat project has a sub project called Tomcat Connectors or simply
JK. It produces web server plugins to connect the most important web
servers directly to Tomcat via a special protocol named AJP. Tomcat has
an incoming AJP connector built-in.

The Tomcat connectors include Apache httpd modules as well as an IIS
ISAPI plugin and a Netscape/Sun NSAPI plugin.

So you would need to download

http://tomcat.apache.org/download-connectors.cgi

an appropriate binary of the IIS plugin, configure and include the
plugin correctly for your IIS to establish a reverse proxy function for
your IIS. The most recent version of the plugin is 1.2.25.

The Tomcat connectors website

http://tomcat.apache.org/connectors-doc/

contains documentation. The IIS plugin documentation might not be the
best part of it, but in case you get stuck, you can post more specific
questions to this list.

I assume, that by "Apache" in your post you always meant Tomcat. If you
meant Apache HTTPD web server, then I might have not completely
understood your actual or planned setup.

Regards,

Rainer

Tony Fountain wrote:
> Hi,
> 
> Scenario: we purchased a product written in Java to integrate into our

> reporting tool.  Our setup is such that our web application is written

> in .NET and hosted on a web farm using IIS (5 or 6 depending on the 
> environment).  The product we purchased runs under Apache 
> Tomcat/5.5.23 using 1.5.0_12-b04.  The product is integrated into our 
> web portal using frames and sending URL requests to Apache.  We are 
> running into issues with javascript code from the product generating 
> errors for what I suspect may be related to crossing domains (our web 
> site and the Apache server).  I figure I can resolve this by 
> generating a proxy on the IIS server to handle the request to the
Apache server.
> 
> My question is does anyone have any pointers on how to setup this type

> of proxy?
> 
> Thanks,
> Tony

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


________________________________________________________________________
This Email has been scanned for all viruses by PAETEC Email Scanning
Services, utilizing MessageLabs proprietary SkyScan infrastructure. For
more information on a proactive anti-virus service working around the
clock, around the globe, visit http://www.paetec.com.
________________________________________________________________________

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: IIS redirect to Apache

Posted by Rainer Jung <ra...@kippdata.de>.
Hi Tony,

the Tomcat project has a sub project called Tomcat Connectors or simply 
JK. It produces web server plugins to connect the most important web 
servers directly to Tomcat via a special protocol named AJP. Tomcat has 
an incoming AJP connector built-in.

The Tomcat connectors include Apache httpd modules as well as an IIS 
ISAPI plugin and a Netscape/Sun NSAPI plugin.

So you would need to download

http://tomcat.apache.org/download-connectors.cgi

an appropriate binary of the IIS plugin, configure and include the 
plugin correctly for your IIS to establish a reverse proxy function for 
your IIS. The most recent version of the plugin is 1.2.25.

The Tomcat connectors website

http://tomcat.apache.org/connectors-doc/

contains documentation. The IIS plugin documentation might not be the 
best part of it, but in case you get stuck, you can post more specific 
questions to this list.

I assume, that by "Apache" in your post you always meant Tomcat. If you 
meant Apache HTTPD web server, then I might have not completely 
understood your actual or planned setup.

Regards,

Rainer

Tony Fountain wrote:
> Hi,
> 
> Scenario: we purchased a product written in Java to integrate into our
> reporting tool.  Our setup is such that our web application is written
> in .NET and hosted on a web farm using IIS (5 or 6 depending on the
> environment).  The product we purchased runs under Apache Tomcat/5.5.23
> using 1.5.0_12-b04.  The product is integrated into our web portal using
> frames and sending URL requests to Apache.  We are running into issues
> with javascript code from the product generating errors for what I
> suspect may be related to crossing domains (our web site and the Apache
> server).  I figure I can resolve this by generating a proxy on the IIS
> server to handle the request to the Apache server.
> 
> My question is does anyone have any pointers on how to setup this type
> of proxy?
> 
> Thanks,
> Tony

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


IIS redirect to Apache

Posted by Tony Fountain <tf...@benefitconcepts.com>.
Hi,

Scenario: we purchased a product written in Java to integrate into our
reporting tool.  Our setup is such that our web application is written
in .NET and hosted on a web farm using IIS (5 or 6 depending on the
environment).  The product we purchased runs under Apache Tomcat/5.5.23
using 1.5.0_12-b04.  The product is integrated into our web portal using
frames and sending URL requests to Apache.  We are running into issues
with javascript code from the product generating errors for what I
suspect may be related to crossing domains (our web site and the Apache
server).  I figure I can resolve this by generating a proxy on the IIS
server to handle the request to the Apache server.

My question is does anyone have any pointers on how to setup this type
of proxy?

Thanks,
Tony

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org