You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeanne Case <jd...@stmarys-ca.edu> on 2005/02/22 23:00:14 UTC

help installing

I am new to the list and Tomcat. I know this has probably been answered, 
but I am having trouble finding it in the archives. Is there an 
installation guide that makes sense some where?

I would like some  thing with a definition of files, what to edit, what 
works, how to install from source. I find the documentation on 
jakarta.apache.org/tomcat to be confusing. Any help is appreciated.

Thanks in advance,

J. Case

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


Re: help installing

Posted by Jeanne Case <jd...@stmarys-ca.edu>.
Thank you, thank you, thank you!
This is exactly what I was hoping for. Something simple and straight 
forward!
-J. Case

Pete Stevens wrote:

> On Tue, 22 Feb 2005, Jeanne Case wrote:
> 
> 
>>I am new to the list and Tomcat. I know this has probably been answered,
>>but I am having trouble finding it in the archives. Is there an
>>installation guide that makes sense some where?
>>
>>I would like some  thing with a definition of files, what to edit, what
>>works, how to install from source. I find the documentation on
>>jakarta.apache.org/tomcat to be confusing. Any help is appreciated.
> 
> 
> If you're installig on a linux machine, we have a brief guide on setting up
> Tomcat for our virtual linux machine service at
> 
> http://www.mythic-beasts.com/support/topic_vds_java.html
> 
> This is designed for low volume simple usage, everything is done directly by
> Tomcat and there is no challenges with connectors and apache for example.
> 
> We're in the process of finalising our virtual hosting guide.
> 
> Hope this helps,
> 
> Pete Stevens
> 
> --
> Pete Stevens
> pete@ex-parrot.com
> http://www.ex-parrot.com/~pete/
> 
>                 I'd be a morning person if it didn't start so early in the day.
> 
> ---------------------------------------------------------------------
> 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: Accessing images through FrontController Servlet

Posted by Dakota Jack <da...@gmail.com>.
You are right that a call for an image, or css for that matter, is
another call to the server.  And, this call is really not anything
special, except that it returns a stream.  If you want to get a
response from a URL, then you have to follow the rules in doing this. 
If you instead want to get a response from a protocol, like using a
servlet, then you have different rules.  There is nothing really
magical going on.  Why are you using this "init" business?

On 5/21/05, William BC Crandall <bc...@earthlink.net> wrote:
> Thanks Robert,
> 
> Hard-coding the images works fine, but I'm leery of this,
> as they will of course all need to be changed when the app
> goes up on a public server; changes could be localized, but...
> 
> Is there really no way to declare <img> calls in the web-app
> that would allow images to use relative path names?
> 
> The init-param 'imgURL' sounds like it should allow this,
> but I'm not familiar with it.
> 
> Thanks for your suggestion, which gets things moving again.
> Thanks too for the pointer to Ethereal; looks like a useful tool.
> 
> Best,
> 
> -BC
> 
> William BC Crandall
> bc.crandall [around] earthlink.net
> 
> 
> 
> ----- Original Message -----
> From: "Robert r. Sanders" <ro...@ipov.net>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: 20 May 2005 8:36 PM
> Subject: Re: Accessing images through FrontController Servlet
> 
> 
> > Do you have any logs of what's going on?  Also, make sure the pages are
> > using the <c:url /> tag (or equivalent), as the image paths need to be
> > relative to the url that the client browser see - should be able to hard
> > code the path to be /ntrr/images/whatever.jpg
> >
> > To check for bad paths  first view page source from your browser, then
> > you can get the image urls and see if they map to the correct path.
> > There are also some nice tools that you can run to see what's going on,
> > for instance the "Live Headers" extension for Firefox, or Ethereal for a
> > more general solution
> >
> > William BC Crandall wrote:
> >
> > >Hello,
> > >
> > >I'm starting a new project, using a FrontController servlet
> > >(http://java.sun.com/j2ee/patterns/FrontController.html),
> > >and am unable to access image files.
> > >
> > >My understanding is that each <img> invokes another call
> > >to the server/servlet, which, due to the mapping in web.xml,
> > >is channeled through the controller servlet, which rejects
> > >the call because it does not point to a sub-servlet.
> > >
> > >How can I access images in webapps/ntrr/images/ ?
> > >
> > >My web.xml:
> > >
> > ><web-app>
> > >
> > >  <servlet>
> > >    <servlet-name>
> > >      controller
> > >    </servlet-name>
> > >    <servlet-class>
> > >      org.ntrr.core.ControlServlet
> > >    </servlet-class>
> > >  </servlet>
> > >
> > >  <servlet-mapping>
> > >    <servlet-name>
> > >      controller
> > >    </servlet-name>
> > >    <url-pattern>
> > >      /*
> > >    </url-pattern>
> > >  </servlet-mapping>
> > >
> > ></web-app>
> > >
> > >I have tried, without success, adding:
> > >
> > >    <init-param>
> > >      <param-name>imageUrl</param-name>
> > >      <param-value>http://localhost:8080/ntrr/images/</param-value>
> > >    </init-param>
> > >
> > >The files in webapps/ntrr/images/ ARE accessible from
> > >webapps/ntrr/css/ntrr.css, when called as background
> > >page images, for example.
> > >
> > >Any suggestions welcomed.
> > >
> > >Thanks,
> > >
> > >-BC
> > >
> > >William BC Crandall
> > >bc.crandall [around] earthlink.net
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> > --
> >     Robert r. Sanders
> >     Chief Technologist
> >     iPOV
> >     (334) 821-5412
> >     www.ipov.net
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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


Re: Accessing images through FrontController Servlet

Posted by William BC Crandall <bc...@earthlink.net>.
Thanks Robert, 

Hard-coding the images works fine, but I'm leery of this, 
as they will of course all need to be changed when the app 
goes up on a public server; changes could be localized, but... 

Is there really no way to declare <img> calls in the web-app 
that would allow images to use relative path names? 

The init-param 'imgURL' sounds like it should allow this, 
but I'm not familiar with it.

Thanks for your suggestion, which gets things moving again. 
Thanks too for the pointer to Ethereal; looks like a useful tool.

Best,

-BC

William BC Crandall
bc.crandall [around] earthlink.net



----- Original Message ----- 
From: "Robert r. Sanders" <ro...@ipov.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: 20 May 2005 8:36 PM
Subject: Re: Accessing images through FrontController Servlet


> Do you have any logs of what's going on?  Also, make sure the pages are 
> using the <c:url /> tag (or equivalent), as the image paths need to be 
> relative to the url that the client browser see - should be able to hard 
> code the path to be /ntrr/images/whatever.jpg
> 
> To check for bad paths  first view page source from your browser, then 
> you can get the image urls and see if they map to the correct path.  
> There are also some nice tools that you can run to see what's going on, 
> for instance the "Live Headers" extension for Firefox, or Ethereal for a 
> more general solution
> 
> William BC Crandall wrote:
> 
> >Hello,
> >
> >I'm starting a new project, using a FrontController servlet
> >(http://java.sun.com/j2ee/patterns/FrontController.html),
> >and am unable to access image files. 
> >
> >My understanding is that each <img> invokes another call 
> >to the server/servlet, which, due to the mapping in web.xml,
> >is channeled through the controller servlet, which rejects
> >the call because it does not point to a sub-servlet.
> >
> >How can I access images in webapps/ntrr/images/ ?
> >
> >My web.xml: 
> >
> ><web-app>
> >
> >  <servlet>
> >    <servlet-name>
> >      controller
> >    </servlet-name>
> >    <servlet-class>
> >      org.ntrr.core.ControlServlet
> >    </servlet-class>
> >  </servlet>
> >
> >  <servlet-mapping>
> >    <servlet-name>
> >      controller
> >    </servlet-name>
> >    <url-pattern>
> >      /*
> >    </url-pattern>
> >  </servlet-mapping>
> >  
> ></web-app>
> >
> >I have tried, without success, adding: 
> >
> >    <init-param>
> >      <param-name>imageUrl</param-name>
> >      <param-value>http://localhost:8080/ntrr/images/</param-value>
> >    </init-param>
> >
> >The files in webapps/ntrr/images/ ARE accessible from
> >webapps/ntrr/css/ntrr.css, when called as background 
> >page images, for example.
> >
> >Any suggestions welcomed. 
> >
> >Thanks,
> >
> >-BC
> >
> >William BC Crandall
> >bc.crandall [around] earthlink.net
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >  
> >
> 
> -- 
>     Robert r. Sanders
>     Chief Technologist
>     iPOV
>     (334) 821-5412
>     www.ipov.net
> 
> 

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


Re: Accessing images through FrontController Servlet

Posted by "Robert r. Sanders" <ro...@ipov.net>.
Do you have any logs of what's going on?  Also, make sure the pages are 
using the <c:url /> tag (or equivalent), as the image paths need to be 
relative to the url that the client browser see - should be able to hard 
code the path to be /ntrr/images/whatever.jpg

To check for bad paths  first view page source from your browser, then 
you can get the image urls and see if they map to the correct path.  
There are also some nice tools that you can run to see what's going on, 
for instance the "Live Headers" extension for Firefox, or Ethereal for a 
more general solution

William BC Crandall wrote:

>Hello,
>
>I'm starting a new project, using a FrontController servlet
>(http://java.sun.com/j2ee/patterns/FrontController.html),
>and am unable to access image files. 
>
>My understanding is that each <img> invokes another call 
>to the server/servlet, which, due to the mapping in web.xml,
>is channeled through the controller servlet, which rejects
>the call because it does not point to a sub-servlet.
>
>How can I access images in webapps/ntrr/images/ ?
>
>My web.xml: 
>
><web-app>
>
>  <servlet>
>    <servlet-name>
>      controller
>    </servlet-name>
>    <servlet-class>
>      org.ntrr.core.ControlServlet
>    </servlet-class>
>  </servlet>
>
>  <servlet-mapping>
>    <servlet-name>
>      controller
>    </servlet-name>
>    <url-pattern>
>      /*
>    </url-pattern>
>  </servlet-mapping>
>  
></web-app>
>
>I have tried, without success, adding: 
>
>    <init-param>
>      <param-name>imageUrl</param-name>
>      <param-value>http://localhost:8080/ntrr/images/</param-value>
>    </init-param>
>
>The files in webapps/ntrr/images/ ARE accessible from
>webapps/ntrr/css/ntrr.css, when called as background 
>page images, for example.
>
>Any suggestions welcomed. 
>
>Thanks,
>
>-BC
>
>William BC Crandall
>bc.crandall [around] earthlink.net
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>

-- 
    Robert r. Sanders
    Chief Technologist
    iPOV
    (334) 821-5412
    www.ipov.net


Accessing images through FrontController Servlet

Posted by William BC Crandall <bc...@earthlink.net>.
Hello,

I'm starting a new project, using a FrontController servlet
(http://java.sun.com/j2ee/patterns/FrontController.html),
and am unable to access image files. 

My understanding is that each <img> invokes another call 
to the server/servlet, which, due to the mapping in web.xml,
is channeled through the controller servlet, which rejects
the call because it does not point to a sub-servlet.

How can I access images in webapps/ntrr/images/ ?

My web.xml: 

<web-app>

  <servlet>
    <servlet-name>
      controller
    </servlet-name>
    <servlet-class>
      org.ntrr.core.ControlServlet
    </servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>
      controller
    </servlet-name>
    <url-pattern>
      /*
    </url-pattern>
  </servlet-mapping>
  
</web-app>

I have tried, without success, adding: 

    <init-param>
      <param-name>imageUrl</param-name>
      <param-value>http://localhost:8080/ntrr/images/</param-value>
    </init-param>

The files in webapps/ntrr/images/ ARE accessible from
webapps/ntrr/css/ntrr.css, when called as background 
page images, for example.

Any suggestions welcomed. 

Thanks,

-BC

William BC Crandall
bc.crandall [around] earthlink.net


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


Re: help installing

Posted by Pete Stevens <pe...@ex-parrot.com>.
On Tue, 22 Feb 2005, Jeanne Case wrote:

> I am new to the list and Tomcat. I know this has probably been answered,
> but I am having trouble finding it in the archives. Is there an
> installation guide that makes sense some where?
>
> I would like some  thing with a definition of files, what to edit, what
> works, how to install from source. I find the documentation on
> jakarta.apache.org/tomcat to be confusing. Any help is appreciated.

If you're installig on a linux machine, we have a brief guide on setting up
Tomcat for our virtual linux machine service at

http://www.mythic-beasts.com/support/topic_vds_java.html

This is designed for low volume simple usage, everything is done directly by
Tomcat and there is no challenges with connectors and apache for example.

We're in the process of finalising our virtual hosting guide.

Hope this helps,

Pete Stevens

--
Pete Stevens
pete@ex-parrot.com
http://www.ex-parrot.com/~pete/

                I'd be a morning person if it didn't start so early in the day.

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


Re: help installing

Posted by Jeanne Case <jd...@stmarys-ca.edu>.
Thanks to all for responding. The information I received was much 
clearer and easier to understand then the apache site!
-J.Case

Jason Bainbridge wrote:

> On Tue, 22 Feb 2005 14:00:14 -0800, Jeanne Case <jd...@stmarys-ca.edu> wrote:
> 
>>I am new to the list and Tomcat. I know this has probably been answered,
>>but I am having trouble finding it in the archives. Is there an
>>installation guide that makes sense some where?
> 
> 
> Welcome. :)
> 
> I actually had to scratch my head thinking about if there was such a
> guide and finally had to do a google to find
> http://www.coreservlets.com/Apache-Tomcat-Tutorial/ That seems like
> just what you're after. Although I don't know what they were thinking
> with all that pink and magenta on the page...
> 
> Cheers,

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


Re: help installing

Posted by Jason Bainbridge <jb...@gmail.com>.
On Tue, 22 Feb 2005 14:00:14 -0800, Jeanne Case <jd...@stmarys-ca.edu> wrote:
> I am new to the list and Tomcat. I know this has probably been answered,
> but I am having trouble finding it in the archives. Is there an
> installation guide that makes sense some where?

Welcome. :)

I actually had to scratch my head thinking about if there was such a
guide and finally had to do a google to find
http://www.coreservlets.com/Apache-Tomcat-Tutorial/ That seems like
just what you're after. Although I don't know what they were thinking
with all that pink and magenta on the page...

Cheers,
-- 
Jason Bainbridge
http://kde.org - webmaster@kde.org
Personal Site - http://jasonbainbridge.com

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