You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeff Knox <jk...@lvcm.com> on 2003/05/07 01:55:06 UTC

Apache/Tomcat JSP confusion

Hi all,

I'm hoping somebody can help me with this or point me in the right 
direction.

I have Apache 1.3.22 and Tomcat 4.0.1 up and running. I have been able 
to deploy an application that uses the WARP connector and everything is 
working great. The problem I am now having is that I want to mix some 
simple JSP pages into my web site. These are not full blown 
applications. They may contain something as simple as <%=myVar%> for 
example. The problem is that the JSP isn't being processed on these 
pages.

At my old job we were using Apache with Orion and this worked ok. It 
may be something as simple as needing to load a module in Apache, I 
don't know. Any ideas out there? I'm sure I'm just missing something 
simple here.

Thanks,

Jeff


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache/Tomcat JSP confusion

Posted by Jacob Kjome <ho...@visi.com>.
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.3/doc/

Jake

At 08:47 PM 5/6/2003 -0700, you wrote:
>Tim, thanks for the reply, but the warp connection is the one thing that 
>working right now. So what is jk anyway? Sorry, I'm mainly a programmer, 
>not a sys admin and now I have to be both.  ;^)  Perhaps I'm just not 
>making the connection here. I'm not seeing anything on the Apache site 
>unless you are talking about Jakarta, but I thought that was basically 
>Tomcat and such.
>
>Also, would "jk" allow me to deploy applications AND have simple JSPs 
>mixed in with my regular HTML pages?
>
>If you can point me to any documentation it would appreciate it.
>
>Thanks again,
>
>Jeff
>
>
>On Tuesday, May 6, 2003, at 05:28  PM, Tim Funk wrote:
>
>>Get rid of warp and use jk.
>>
>>Warp is deprecated, unsupported and getting any kind of help will be hard.
>>
>>-Tim
>>
>>Jeff Knox wrote:
>>>Hi all,
>>>I'm hoping somebody can help me with this or point me in the right 
>>>direction.
>>>I have Apache 1.3.22 and Tomcat 4.0.1 up and running. I have been able 
>>>to deploy an application that uses the WARP connector and everything is 
>>>working great. The problem I am now having is that I want to mix some 
>>>simple JSP pages into my web site. These are not full blown 
>>>applications. They may contain something as simple as <%=myVar%> for 
>>>example. The problem is that the JSP isn't being processed on these pages.
>>>At my old job we were using Apache with Orion and this worked ok. It may 
>>>be something as simple as needing to load a module in Apache, I don't 
>>>know. Any ideas out there? I'm sure I'm just missing something simple here.
>>>Thanks,
>>>Jeff
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Re: Apache/Tomcat JSP confusion

Posted by Tim Funk <fu...@joedog.org>.
Try it out and see :) (But yes - move them under tomcat's webapp.)

-Tim

Jeff Knox wrote:
> Thanks Tim, I found what I needed there to install jk. I upgraded Tomcat 
> to 4.1.24 and got the connection from Apache working. Using jk cleared 
> up some of my confusion -- it seems to be easier to configure.
> 
> Now I just need to figure out one last piece. Looking at the following 
> lines:
> 
>    Alias /examples <CATALINA_HOME>/webapps/examples
>    JkMount /examples/servlet/* testWorker
>    JkMount /examples/*.jsp testWorker
> 
> I see that Apache is passing any calls to JSP pages in the examples 
> directory to Tomcat. Currently on my server I have my web sites running 
> from a series of virtual hosts. Say for example I has something like this:
> 
>    /path_to_virt_hosts/vhost_1/index.html
>    /path_to_virt_hosts/vhost_2/index.html
>    ... etc ...
> 
> Now say I wanted to change the first virtual host to index.jsp. I tried 
> JkMount /*.jsp testWorker, but this tried to load the index page from 
> the webapps directory. I can see why this happened. My question is -- is 
> it possible to process JSPs from current Apache virtual host 
> directories, or do I have to move them below the 
> <CATALINA_HOME>/webapps/ directory?
> 
> Sorry for the newbie questions. Just trying to get a hang of this.
> 
> Thanks again,
> 
> Jeff
> 
> 
> On Wednesday, May 7, 2003, at 03:46  AM, Tim Funk wrote:
> 
>> http://tomcatfaq.sourceforge.net/apache.html
>>
>> -Tim
>>
>> Jeff Knox wrote:
>>
>>> Tim, thanks for the reply, but the warp connection is the one thing 
>>> that working right now. So what is jk anyway? Sorry, I'm mainly a 
>>> programmer, not a sys admin and now I have to be both.  ;^)  Perhaps 
>>> I'm just not making the connection here. I'm not seeing anything on 
>>> the Apache site unless you are talking about Jakarta, but I thought 
>>> that was basically Tomcat and such.
>>> Also, would "jk" allow me to deploy applications AND have simple JSPs 
>>> mixed in with my regular HTML pages?
>>> If you can point me to any documentation it would appreciate it.
>>> Thanks again,
>>> Jeff
>>> On Tuesday, May 6, 2003, at 05:28  PM, Tim Funk wrote:
>>>
>>>> Get rid of warp and use jk.
>>>>
>>>> Warp is deprecated, unsupported and getting any kind of help will be 
>>>> hard.
>>>>
>>>> -Tim
>>>>
>>>> Jeff Knox wrote:
>>>>
>>>>> Hi all,
>>>>> I'm hoping somebody can help me with this or point me in the right 
>>>>> direction.
>>>>> I have Apache 1.3.22 and Tomcat 4.0.1 up and running. I have been 
>>>>> able to deploy an application that uses the WARP connector and 
>>>>> everything is working great. The problem I am now having is that I 
>>>>> want to mix some simple JSP pages into my web site. These are not 
>>>>> full blown applications. They may contain something as simple as 
>>>>> <%=myVar%> for example. The problem is that the JSP isn't being 
>>>>> processed on these pages.
>>>>> At my old job we were using Apache with Orion and this worked ok. 
>>>>> It may be something as simple as needing to load a module in 
>>>>> Apache, I don't know. Any ideas out there? I'm sure I'm just 
>>>>> missing something simple here.
>>>>> Thanks,
>>>>> Jeff
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache/Tomcat JSP confusion

Posted by Jeff Knox <jk...@lvcm.com>.
Thanks Tim, I found what I needed there to install jk. I upgraded 
Tomcat to 4.1.24 and got the connection from Apache working. Using jk 
cleared up some of my confusion -- it seems to be easier to configure.

Now I just need to figure out one last piece. Looking at the following 
lines:

    Alias /examples <CATALINA_HOME>/webapps/examples
    JkMount /examples/servlet/* testWorker
    JkMount /examples/*.jsp testWorker

I see that Apache is passing any calls to JSP pages in the examples 
directory to Tomcat. Currently on my server I have my web sites running 
from a series of virtual hosts. Say for example I has something like 
this:

    /path_to_virt_hosts/vhost_1/index.html
    /path_to_virt_hosts/vhost_2/index.html
    ... etc ...

Now say I wanted to change the first virtual host to index.jsp. I tried 
JkMount /*.jsp testWorker, but this tried to load the index page from 
the webapps directory. I can see why this happened. My question is -- 
is it possible to process JSPs from current Apache virtual host 
directories, or do I have to move them below the 
<CATALINA_HOME>/webapps/ directory?

Sorry for the newbie questions. Just trying to get a hang of this.

Thanks again,

Jeff


On Wednesday, May 7, 2003, at 03:46  AM, Tim Funk wrote:

> http://tomcatfaq.sourceforge.net/apache.html
>
> -Tim
>
> Jeff Knox wrote:
>> Tim, thanks for the reply, but the warp connection is the one thing 
>> that working right now. So what is jk anyway? Sorry, I'm mainly a 
>> programmer, not a sys admin and now I have to be both.  ;^)  Perhaps 
>> I'm just not making the connection here. I'm not seeing anything on 
>> the Apache site unless you are talking about Jakarta, but I thought 
>> that was basically Tomcat and such.
>> Also, would "jk" allow me to deploy applications AND have simple JSPs 
>> mixed in with my regular HTML pages?
>> If you can point me to any documentation it would appreciate it.
>> Thanks again,
>> Jeff
>> On Tuesday, May 6, 2003, at 05:28  PM, Tim Funk wrote:
>>> Get rid of warp and use jk.
>>>
>>> Warp is deprecated, unsupported and getting any kind of help will be 
>>> hard.
>>>
>>> -Tim
>>>
>>> Jeff Knox wrote:
>>>
>>>> Hi all,
>>>> I'm hoping somebody can help me with this or point me in the right 
>>>> direction.
>>>> I have Apache 1.3.22 and Tomcat 4.0.1 up and running. I have been 
>>>> able to deploy an application that uses the WARP connector and 
>>>> everything is working great. The problem I am now having is that I 
>>>> want to mix some simple JSP pages into my web site. These are not 
>>>> full blown applications. They may contain something as simple as 
>>>> <%=myVar%> for example. The problem is that the JSP isn't being 
>>>> processed on these pages.
>>>> At my old job we were using Apache with Orion and this worked ok. 
>>>> It may be something as simple as needing to load a module in 
>>>> Apache, I don't know. Any ideas out there? I'm sure I'm just 
>>>> missing something simple here.
>>>> Thanks,
>>>> Jeff
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache/Tomcat JSP confusion

Posted by Tim Funk <fu...@joedog.org>.
http://tomcatfaq.sourceforge.net/apache.html

-Tim

Jeff Knox wrote:
> Tim, thanks for the reply, but the warp connection is the one thing that 
> working right now. So what is jk anyway? Sorry, I'm mainly a programmer, 
> not a sys admin and now I have to be both.  ;^)  Perhaps I'm just not 
> making the connection here. I'm not seeing anything on the Apache site 
> unless you are talking about Jakarta, but I thought that was basically 
> Tomcat and such.
> 
> Also, would "jk" allow me to deploy applications AND have simple JSPs 
> mixed in with my regular HTML pages?
> 
> If you can point me to any documentation it would appreciate it.
> 
> Thanks again,
> 
> Jeff
> 
> 
> On Tuesday, May 6, 2003, at 05:28  PM, Tim Funk wrote:
> 
>> Get rid of warp and use jk.
>>
>> Warp is deprecated, unsupported and getting any kind of help will be 
>> hard.
>>
>> -Tim
>>
>> Jeff Knox wrote:
>>
>>> Hi all,
>>> I'm hoping somebody can help me with this or point me in the right 
>>> direction.
>>> I have Apache 1.3.22 and Tomcat 4.0.1 up and running. I have been 
>>> able to deploy an application that uses the WARP connector and 
>>> everything is working great. The problem I am now having is that I 
>>> want to mix some simple JSP pages into my web site. These are not 
>>> full blown applications. They may contain something as simple as 
>>> <%=myVar%> for example. The problem is that the JSP isn't being 
>>> processed on these pages.
>>> At my old job we were using Apache with Orion and this worked ok. It 
>>> may be something as simple as needing to load a module in Apache, I 
>>> don't know. Any ideas out there? I'm sure I'm just missing something 
>>> simple here.
>>> Thanks,
>>> Jeff
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache/Tomcat JSP confusion

Posted by Jeff Knox <jk...@lvcm.com>.
Now I see a heading under Tomcat 5 for "JK Documentation" but the link 
returns a 404 error. Is JK new to Tomcat 5?

On Tuesday, May 6, 2003, at 08:47  PM, Jeff Knox wrote:

> Tim, thanks for the reply, but the warp connection is the one thing 
> that working right now. So what is jk anyway? Sorry, I'm mainly a 
> programmer, not a sys admin and now I have to be both.  ;^)  Perhaps 
> I'm just not making the connection here. I'm not seeing anything on 
> the Apache site unless you are talking about Jakarta, but I thought 
> that was basically Tomcat and such.
>
> Also, would "jk" allow me to deploy applications AND have simple JSPs 
> mixed in with my regular HTML pages?
>
> If you can point me to any documentation it would appreciate it.
>
> Thanks again,
>
> Jeff
>
>
> On Tuesday, May 6, 2003, at 05:28  PM, Tim Funk wrote:
>
>> Get rid of warp and use jk.
>>
>> Warp is deprecated, unsupported and getting any kind of help will be 
>> hard.
>>
>> -Tim
>>
>> Jeff Knox wrote:
>>> Hi all,
>>> I'm hoping somebody can help me with this or point me in the right 
>>> direction.
>>> I have Apache 1.3.22 and Tomcat 4.0.1 up and running. I have been 
>>> able to deploy an application that uses the WARP connector and 
>>> everything is working great. The problem I am now having is that I 
>>> want to mix some simple JSP pages into my web site. These are not 
>>> full blown applications. They may contain something as simple as 
>>> <%=myVar%> for example. The problem is that the JSP isn't being 
>>> processed on these pages.
>>> At my old job we were using Apache with Orion and this worked ok. It 
>>> may be something as simple as needing to load a module in Apache, I 
>>> don't know. Any ideas out there? I'm sure I'm just missing something 
>>> simple here.
>>> Thanks,
>>> Jeff
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache/Tomcat JSP confusion

Posted by Jeff Knox <jk...@lvcm.com>.
Tim, thanks for the reply, but the warp connection is the one thing 
that working right now. So what is jk anyway? Sorry, I'm mainly a 
programmer, not a sys admin and now I have to be both.  ;^)  Perhaps 
I'm just not making the connection here. I'm not seeing anything on the 
Apache site unless you are talking about Jakarta, but I thought that 
was basically Tomcat and such.

Also, would "jk" allow me to deploy applications AND have simple JSPs 
mixed in with my regular HTML pages?

If you can point me to any documentation it would appreciate it.

Thanks again,

Jeff


On Tuesday, May 6, 2003, at 05:28  PM, Tim Funk wrote:

> Get rid of warp and use jk.
>
> Warp is deprecated, unsupported and getting any kind of help will be 
> hard.
>
> -Tim
>
> Jeff Knox wrote:
>> Hi all,
>> I'm hoping somebody can help me with this or point me in the right 
>> direction.
>> I have Apache 1.3.22 and Tomcat 4.0.1 up and running. I have been 
>> able to deploy an application that uses the WARP connector and 
>> everything is working great. The problem I am now having is that I 
>> want to mix some simple JSP pages into my web site. These are not 
>> full blown applications. They may contain something as simple as 
>> <%=myVar%> for example. The problem is that the JSP isn't being 
>> processed on these pages.
>> At my old job we were using Apache with Orion and this worked ok. It 
>> may be something as simple as needing to load a module in Apache, I 
>> don't know. Any ideas out there? I'm sure I'm just missing something 
>> simple here.
>> Thanks,
>> Jeff
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache/Tomcat JSP confusion

Posted by Tim Funk <fu...@joedog.org>.
Get rid of warp and use jk.

Warp is deprecated, unsupported and getting any kind of help will be hard.

-Tim

Jeff Knox wrote:
> Hi all,
> 
> I'm hoping somebody can help me with this or point me in the right 
> direction.
> 
> I have Apache 1.3.22 and Tomcat 4.0.1 up and running. I have been able 
> to deploy an application that uses the WARP connector and everything is 
> working great. The problem I am now having is that I want to mix some 
> simple JSP pages into my web site. These are not full blown 
> applications. They may contain something as simple as <%=myVar%> for 
> example. The problem is that the JSP isn't being processed on these pages.
> 
> At my old job we were using Apache with Orion and this worked ok. It may 
> be something as simple as needing to load a module in Apache, I don't 
> know. Any ideas out there? I'm sure I'm just missing something simple here.
> 
> Thanks,
> 
> Jeff
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org