You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gustav Wiberg <in...@stammis.com> on 2006/05/03 11:59:27 UTC

Connection between Tomcat and JSP

Hi!

I'm a newbie using this Tomcat-application. I figured out that it is a 
application that in some way acts as a containter for Java-applications? 
(like Apache Server could as a a containter for PHP?) Don't know if I have 
got this right or not.

I have Windows XP Pro Edition. I have installed an application called 
ischolar Courseware, that relies on Tomcat and the webroot were installed 
under C:\tomcat\webapps\root\

I don't know how i activate so I can run jsp-applications from 
C:\tomcat\webapps\root\   The Apache Tomcat service is running as a service.
Is it any setting for the Apace Tomcat server?

(Don't know if this is useful, but I have the Apace-server running at the 
root c:\webb\ where I can run PHP-applications.)

Best regards
/Gustav Wiberg 


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


Re: Connection between Tomcat and JSP

Posted by Marc Farrow <ma...@gmail.com>.
most of the time, the default page to be pulled up is the index.jsp under
your webapp, whether that is ROOT or your context.

On 5/3/06, Gustav Wiberg <in...@stammis.com> wrote:
>
> Hi!
>
> I have now started Tomcat and accessed the Tomcat-default page
> http://localhost:8080/
>
> But I can't figure out  where the default page is located
>
> Through Tomcat default-page, I look at a few examples and the jsp-examples
> succesfully executes! :-)
> http://localhost:8080/jsp-examples/
>
> I can't found the map jsp-examples (but obviously it exists)
> I can't found any index.jsp (that ought to be the default Tomcat-page?)
>
> I tried to replace the ischolare_webcourse to the ROOT-map, but there
> seems
> to be no change ):
>
> What can I be doing doing wrong?
>
> Best regards
> Gustav Wiberg
>
> ----- Original Message -----
> From: "David Smith" <dn...@cornell.edu>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Wednesday, May 03, 2006 1:53 PM
> Subject: Re: Connection between Tomcat and JSP
>
>
> > The "root" folder in tomcat is R00T (all caps, tomcat is case sensitive)
> > and you need to replace the whole webapp ROOT with your iScholar webapp.
> > Just copying the iScholar webapp to the webapps/ROOT folder won't do it.
> > Basically, just trash or rename ROOT, then copy iScholar to the webapps
> > folder renaming it ROOT.  Then restart tomcat.  After that, if you
> haven't
> > changed anything in server.xml, you should be able to see iScholar by
> > accessing http://localhost:8080  in your favorite web browser.
> >
> > -- David
> >
> > Gustav Wiberg wrote:
> >> Hi!
> >>
> >> I'm a newbie using this Tomcat-application. I figured out that it is a
> >> application that in some way acts as a containter for
> Java-applications?
> >> (like Apache Server could as a a containter for PHP?) Don't know if I
> >> have got this right or not.
> >>
> >> I have Windows XP Pro Edition. I have installed an application called
> >> ischolar Courseware, that relies on Tomcat and the webroot were
> installed
> >> under C:\tomcat\webapps\root\
> >>
> >> I don't know how i activate so I can run jsp-applications from
> >> C:\tomcat\webapps\root\   The Apache Tomcat service is running as a
> >> service.
> >> Is it any setting for the Apace Tomcat server?
> >>
> >> (Don't know if this is useful, but I have the Apace-server running at
> the
> >> root c:\webb\ where I can run PHP-applications.)
> >>
> >> Best regards
> >> /Gustav Wiberg
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


--
Marc Farrow

Re: Connection between Tomcat and JSP

Posted by Gustav Wiberg <in...@stammis.com>.
Hi!

I have now started Tomcat and accessed the Tomcat-default page
http://localhost:8080/

But I can't figure out  where the default page is located

Through Tomcat default-page, I look at a few examples and the jsp-examples 
succesfully executes! :-)
http://localhost:8080/jsp-examples/

I can't found the map jsp-examples (but obviously it exists)
I can't found any index.jsp (that ought to be the default Tomcat-page?)

I tried to replace the ischolare_webcourse to the ROOT-map, but there seems 
to be no change ):

What can I be doing doing wrong?

Best regards
Gustav Wiberg

----- Original Message ----- 
From: "David Smith" <dn...@cornell.edu>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Wednesday, May 03, 2006 1:53 PM
Subject: Re: Connection between Tomcat and JSP


> The "root" folder in tomcat is R00T (all caps, tomcat is case sensitive) 
> and you need to replace the whole webapp ROOT with your iScholar webapp. 
> Just copying the iScholar webapp to the webapps/ROOT folder won't do it. 
> Basically, just trash or rename ROOT, then copy iScholar to the webapps 
> folder renaming it ROOT.  Then restart tomcat.  After that, if you haven't 
> changed anything in server.xml, you should be able to see iScholar by 
> accessing http://localhost:8080  in your favorite web browser.
>
> -- David
>
> Gustav Wiberg wrote:
>> Hi!
>>
>> I'm a newbie using this Tomcat-application. I figured out that it is a 
>> application that in some way acts as a containter for Java-applications? 
>> (like Apache Server could as a a containter for PHP?) Don't know if I 
>> have got this right or not.
>>
>> I have Windows XP Pro Edition. I have installed an application called 
>> ischolar Courseware, that relies on Tomcat and the webroot were installed 
>> under C:\tomcat\webapps\root\
>>
>> I don't know how i activate so I can run jsp-applications from 
>> C:\tomcat\webapps\root\   The Apache Tomcat service is running as a 
>> service.
>> Is it any setting for the Apace Tomcat server?
>>
>> (Don't know if this is useful, but I have the Apace-server running at the 
>> root c:\webb\ where I can run PHP-applications.)
>>
>> Best regards
>> /Gustav Wiberg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


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


Re: Connection between Tomcat and JSP

Posted by David Smith <dn...@cornell.edu>.
The "root" folder in tomcat is R00T (all caps, tomcat is case sensitive) 
and you need to replace the whole webapp ROOT with your iScholar webapp. 
Just copying the iScholar webapp to the webapps/ROOT folder won't do 
it.  Basically, just trash or rename ROOT, then copy iScholar to the 
webapps folder renaming it ROOT.  Then restart tomcat.  After that, if 
you haven't changed anything in server.xml, you should be able to see 
iScholar by accessing http://localhost:8080  in your favorite web browser.

-- David

Gustav Wiberg wrote:
> Hi!
>
> I'm a newbie using this Tomcat-application. I figured out that it is a 
> application that in some way acts as a containter for 
> Java-applications? (like Apache Server could as a a containter for 
> PHP?) Don't know if I have got this right or not.
>
> I have Windows XP Pro Edition. I have installed an application called 
> ischolar Courseware, that relies on Tomcat and the webroot were 
> installed under C:\tomcat\webapps\root\
>
> I don't know how i activate so I can run jsp-applications from 
> C:\tomcat\webapps\root\   The Apache Tomcat service is running as a 
> service.
> Is it any setting for the Apace Tomcat server?
>
> (Don't know if this is useful, but I have the Apace-server running at 
> the root c:\webb\ where I can run PHP-applications.)
>
> Best regards
> /Gustav Wiberg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


Re: Connection between Tomcat and JSP

Posted by Gustav Wiberg <in...@stammis.com>.
Hi again!

aaah. I have the default-page files for Tomcat now... The problem was that 
an application named ischolar put that application with .jsp-files in 
c:\tomcat\webb\root\ but in fact the path to Tomcat was in a totally 
diffrent path.

Thanx for all help with Tomcat. Now it's "just" up to me getting the 
ischolar-application to work to... !

Best regards
/Gustav Wiberg

----- Original Message ----- 
From: "Gustav Wiberg" <in...@stammis.com>
To: "Marc Farrow" <ma...@gmail.com>; "Tomcat Users List" 
<us...@tomcat.apache.org>
Sent: Wednesday, May 03, 2006 9:40 PM
Subject: Re: Connection between Tomcat and JSP


Hi there!

Ok, I didn't know that I should access http://localhost:8080 when accessing 
Tomcat-pages. But now I can do that. And I can run jsp-examples. But I can't 
see the files (that are default for Tomcat). Any ideas?`

Best regards
/Gustav Wiberg

  ----- Original Message ----- 
  From: Marc Farrow
  To: Tomcat Users List ; Gustav Wiberg
  Sent: Wednesday, May 03, 2006 1:10 PM
  Subject: Re: Connection between Tomcat and JSP


  Since you have Tomcat running as a service, then you should be able to 
access Tomcat via http://localhost:8080.  Is this true?  Can you also access 
Apache at http://localhost? If both of these are true and you have Apache 
seen from the outside work via http://www.yourdomain.com, then you will need 
to look at using some type of connector to forward requests from Apache to 
Tomcat (specifically URI requests that are Servlets or JSPs).  MOD_JK is one 
of the most popular and it is maintained by the apache.org foundation.  So 
start by going to apache.org and looking around.

  HTH


  On 5/3/06, Gustav Wiberg <in...@stammis.com> wrote:
    Hi!

    I'm a newbie using this Tomcat-application. I figured out that it is a
    application that in some way acts as a containter for Java-applications?
    (like Apache Server could as a a containter for PHP?) Don't know if I 
have
    got this right or not.

    I have Windows XP Pro Edition. I have installed an application called
    ischolar Courseware, that relies on Tomcat and the webroot were 
installed
    under C:\tomcat\webapps\root\

    I don't know how i activate so I can run jsp-applications from
    C:\tomcat\webapps\root\   The Apache Tomcat service is running as a 
service.
    Is it any setting for the Apace Tomcat server?

    (Don't know if this is useful, but I have the Apace-server running at 
the
    root c:\webb\ where I can run PHP-applications.)

    Best regards
    /Gustav Wiberg


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





  -- 
  Marc Farrow 


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


Re: Connection between Tomcat and JSP

Posted by Gustav Wiberg <in...@stammis.com>.
Hi there!

Ok, I didn't know that I should access http://localhost:8080 when accessing Tomcat-pages. But now I can do that. And I can run jsp-examples. But I can't see the files (that are default for Tomcat). Any ideas?`

Best regards
/Gustav Wiberg

  ----- Original Message ----- 
  From: Marc Farrow 
  To: Tomcat Users List ; Gustav Wiberg 
  Sent: Wednesday, May 03, 2006 1:10 PM
  Subject: Re: Connection between Tomcat and JSP


  Since you have Tomcat running as a service, then you should be able to access Tomcat via http://localhost:8080.  Is this true?  Can you also access Apache at http://localhost? If both of these are true and you have Apache seen from the outside work via http://www.yourdomain.com, then you will need to look at using some type of connector to forward requests from Apache to Tomcat (specifically URI requests that are Servlets or JSPs).  MOD_JK is one of the most popular and it is maintained by the apache.org foundation.  So start by going to apache.org and looking around.

  HTH

   
  On 5/3/06, Gustav Wiberg <in...@stammis.com> wrote: 
    Hi!

    I'm a newbie using this Tomcat-application. I figured out that it is a
    application that in some way acts as a containter for Java-applications? 
    (like Apache Server could as a a containter for PHP?) Don't know if I have
    got this right or not.

    I have Windows XP Pro Edition. I have installed an application called
    ischolar Courseware, that relies on Tomcat and the webroot were installed 
    under C:\tomcat\webapps\root\

    I don't know how i activate so I can run jsp-applications from
    C:\tomcat\webapps\root\   The Apache Tomcat service is running as a service.
    Is it any setting for the Apace Tomcat server? 

    (Don't know if this is useful, but I have the Apace-server running at the
    root c:\webb\ where I can run PHP-applications.)

    Best regards
    /Gustav Wiberg


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





  -- 
  Marc Farrow 

Re: Connection between Tomcat and JSP

Posted by Marc Farrow <ma...@gmail.com>.
Since you have Tomcat running as a service, then you should be able to
access Tomcat via http://localhost:8080.  Is this true?  Can you also access
Apache at http://localhost? If both of these are true and you have Apache
seen from the outside work via http://www.yourdomain.com, then you will need
to look at using some type of connector to forward requests from Apache to
Tomcat (specifically URI requests that are Servlets or JSPs).  MOD_JK is one
of the most popular and it is maintained by the apache.org foundation.  So
start by going to apache.org and looking around.

HTH


On 5/3/06, Gustav Wiberg <in...@stammis.com> wrote:
>
> Hi!
>
> I'm a newbie using this Tomcat-application. I figured out that it is a
> application that in some way acts as a containter for Java-applications?
> (like Apache Server could as a a containter for PHP?) Don't know if I have
> got this right or not.
>
> I have Windows XP Pro Edition. I have installed an application called
> ischolar Courseware, that relies on Tomcat and the webroot were installed
> under C:\tomcat\webapps\root\
>
> I don't know how i activate so I can run jsp-applications from
> C:\tomcat\webapps\root\   The Apache Tomcat service is running as a
> service.
> Is it any setting for the Apace Tomcat server?
>
> (Don't know if this is useful, but I have the Apace-server running at the
> root c:\webb\ where I can run PHP-applications.)
>
> Best regards
> /Gustav Wiberg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


--
Marc Farrow