Re: How does a servlet request work. Not a newbie question ;)

2004-01-09 Thread Bill Barker
I'm answering the question that you asked, but my answer is less useful than Yoav's :).

With a small number of exceptions (such as POSTs to j_security_check), 
Tomcat-standalone reads the headers, and leaves the body until your servlet tells it 
what to do with it.  The case of Tomcat-Jk is a bit more complicated, so ask again if 
you really want to know :).
  "Donie Kelly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
   
  Hi all

   

  I want to insert some form of scheduling into our application and I was wondering 
how Tomcat passes the request to the actual servlet I write. Does Tomcat just read the 
headers to create the request object and leave the body of the message in an 
inputstream for the servlet to read or is all the data in the request read by Tomcat 
before passing it to servlet?

   

  Some of my traffic is more important that other based on headers in the request. I 
want to prioritise the handling of requests under load conditions.

   

  Any input on this is welcome.

  Thanks

  Donie

   



--


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

RE: How does a servlet request work. Not a newbie question ;)

2004-01-09 Thread Shapira, Yoav

Howdy,
I see three options that fall within the realm of not a huge amount of
work:

- Dig into tomcat source code, extend Coyote in some custom way to
recognize your headers, recognize what you call "load" (which is much
harder to do than recognizing headers), and filter requests
appropriately.

- Create a simple Filter (ServletFilter) that looks for your request
headers, again recognizes "load", and filters requests appropriately
(this filter would be mapped to url-pattern /*).  This is far less
efficient than the Coyote solution, because you will reject requests
further along the processing pipeline that you need to, but this
approach is portable.

- Attack the problem with clustering: install more tomcat instances and
a load balancer, ideally one that can assign weights to your workers and
direct requests to workers according to headers.  (The balancer webapp
that ships with tomcat 5 has a request header rule that will let you
redirect requests based upon header values -- you'd have to add the
"load" recognition capability).

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 7:20 AM
To: Tomcat Users List (E-mail)
Subject: How does a servlet request work. Not a newbie question ;)

Hi all

I want to insert some form of scheduling into our application and I was
wondering how Tomcat passes the request to the actual servlet I write.
Does Tomcat just read the headers to create the request object and leave
the body of the message in an inputstream for the servlet to read or is
all the data in the request read by Tomcat before passing it to servlet?

Some of my traffic is more important that other based on headers in the
request. I want to prioritise the handling of requests under load
conditions.

Any input on this is welcome.
Thanks
Donie




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How does a servlet request work. Not a newbie question ;)

2004-01-09 Thread Donie Kelly
Hi Nix

I need to read the headers to see if the request can be moved up in
priority. If no I will put that particular servlet into a wait state to be
woken up by some scheduler I create in the servlet engine. 

Ideally, all requests will be processed but some will be done before others.


It is not a login or cookie application. We are not using browsers to access
the application so the headers are customizable and we know the type of
message arriving. It's just we want some types of messages to be done. Under
load we can reject certain messages that are not high priority if an
internal processor cannot be assigned with a specified time frame.

Thanks
Donie


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 09 January 2004 12:34
To: Tomcat Users List
Subject: Re: How does a servlet request work. Not a newbie question ;)

Donie Kelly wrote:
> Hi all
>
> I want to insert some form of scheduling into our application and I was
> wondering how Tomcat passes the request to the actual servlet I write.
> Does Tomcat just read the headers to create the request object and leave
> the body of the message in an inputstream for the servlet to read or is
> all the data in the request read by Tomcat before passing it to servlet?
>
> Some of my traffic is more important that other based on headers in the
> request. I want to prioritise the handling of requests under load
> conditions.

I'm not aware of any priority scheduling in Tomcat's worker threads. There
is no
public API for that, anyway.

If I understand correctly, you'd like people to login to a part of your app
and
then they will be issued a Cookie, which would be the token for boosting
priority of such requests. Possibly in a Filter.

Unless you wish to employ your own thread pools, internal or real, I think
this
is a no-go.

As a quick solution, you'd be better off using IP layer stuff, like IP QoS
(Quality of Service), Linux policy routing, etc.

Nix.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How does a servlet request work. Not a newbie question ;)

2004-01-09 Thread Nikola Milutinovic
Donie Kelly wrote:
Hi all

I want to insert some form of scheduling into our application and I was 
wondering how Tomcat passes the request to the actual servlet I write. 
Does Tomcat just read the headers to create the request object and leave 
the body of the message in an inputstream for the servlet to read or is 
all the data in the request read by Tomcat before passing it to servlet?

Some of my traffic is more important that other based on headers in the 
request. I want to prioritise the handling of requests under load 
conditions.
I'm not aware of any priority scheduling in Tomcat's worker threads. There is no 
public API for that, anyway.

If I understand correctly, you'd like people to login to a part of your app and 
then they will be issued a Cookie, which would be the token for boosting 
priority of such requests. Possibly in a Filter.

Unless you wish to employ your own thread pools, internal or real, I think this 
is a no-go.

As a quick solution, you'd be better off using IP layer stuff, like IP QoS 
(Quality of Service), Linux policy routing, etc.

Nix.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How does a servlet request work. Not a newbie question ;)

2004-01-09 Thread Donie Kelly









Hi all

 

I want to
insert some form of scheduling into our application and I was wondering how
Tomcat passes the request to the actual servlet I write. Does Tomcat just read
the headers to create the request object and leave the body of the message in
an inputstream for the servlet to read or is all the data in the request read
by Tomcat before passing it to servlet?

 

Some of my
traffic is more important that other based on headers in the request. I want to
prioritise the handling of requests under load conditions.

 

Any input
on this is welcome.

Thanks

Donie

 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Reposting [INIMSS] How can I load a custom jar file for a par ticular web application. [a newbie question]

2002-02-19 Thread Ricky Leung

depends, .class files go in the classes dir and .jar files goes in the lib
dir.

-Original Message-
From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 9:48 AM
To: Tomcat Users List
Subject: Re: Reposting [INIMSS] How can I load a custom jar file for a
par ticular web application. [a newbie question]


Hi

But where should I put them, in "WEB-INF/classes" or "WEB-INF/lib"

Thank You
Dino Cherian K

On Tuesday 19 February 2002 19:23, you wrote:
>  Just reference them as normal. Ie ClassA.ClassA1.class
>
>  There's no magic involved...
>  Donie
>
>  -Original Message-
>  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
>  Sent: 18 February 2002 13:04
>  To: Tomcat Users List
>  Subject: Re: Reposting [INIMSS] How can I load a custom jar file for a
>  particular web application. [a newbie question]
>
>  Hi
>
>  Ya it worked. Thanks
>
>  What if the thirdparty library is available as classes in a heirarchy.
> That is they are arranged in folder structure.
>
>  Like
>
>  + ClassA
>
>  |  ClassA1.class
>  |  ClassA2.class
>
>  + ClassB
>
>  |  ClassB1.class
>  |  ClassB3.class
>
>  + ClassC.class
>
>
>  Thanks
>  Dino Cherian K
>
>  On Tuesday 19 February 2002 16:30, you wrote:
>  >  Putting the jar file in the
${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs
>  > directory will do the job.
>  >
>  >  -Original Message-
>  >  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
>  >  Sent: 18 February 2002 08:17
>  >  To: [EMAIL PROTECTED]
>  >  Subject: Reposting [INIMSS] How can I load a custom jar file for a
>  >  particular web application. [a newbie question]
>  >
>  >
>  >  Hi
>  >
>  >  Please help me ASAP.
>  >
>  >  I am having a third party jar file that is to be loaded from jsp pages
>  > to attain some task. The particular jar file is to be used only buy one
>  > web application. Where should I place the files and what all should I
>  > modify to make it work?
>  >
>  >  I am using tomcat 3.3 and  apache-1.3.19-5 on RedHat Linux 7.1.
>  >
>  >  Thanks
>  >  Dino CK
>  >
>  >
>  >  --
>  >  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  >  For additional commands: <mailto:[EMAIL PROTECTED]>
>  >  Troubles with the list: <mailto:[EMAIL PROTECTED]>
>  >
>  >
>  >
>  >
>  >  ***
>  >   This email/attachment(s) has been virus checked upon
>  >   receipt at the OS and is free of all known viruses.
>  >  ***
>  >
>  >
>  >
>  >
>  >
>  >
>  >  ***
>  >  For more information on Ordnance Survey products and services,
>  >  visit our web site at http://www.ordnancesurvey.co.uk
>  >  ***
>  >
>  >
>  >
>  >
>  >  --
>  >  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  >  For additional commands: <mailto:[EMAIL PROTECTED]>
>  >  Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>  --
>  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  For additional commands: <mailto:[EMAIL PROTECTED]>
>  Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>  --
>  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  For additional commands: <mailto:[EMAIL PROTECTED]>
>  Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-19 Thread David Smith

Well then the class structure would be placed in WEB-INF/classes where the 
classloader structure would find all your .class files.  Then you would 
reference your classes on the import line as ClassA.ClassA1 for example.  

If you write them yourself, make sure each source .java file has a package 
line at the top defining the package they are associated with.  Then compile 
them.

--David

On Monday 18 February 2002 08:03 am, you wrote:
> Hi
>
> Ya it worked. Thanks
>
> What if the thirdparty library is available as classes in a heirarchy. That
> is they are arranged in folder structure.
>
> Like
>
>   + ClassA
>
>   |  ClassA1.class
>   |  ClassA2.class
>
>   + ClassB
>
>   |  ClassB1.class
>   |  ClassB3.class
>
>   + ClassC.class
>
>
> Thanks
> Dino Cherian K
>
> On Tuesday 19 February 2002 16:30, you wrote:
> >  Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs
> > directory will do the job.
> >
> >  -Original Message-
> >  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
> >  Sent: 18 February 2002 08:17
> >  To: [EMAIL PROTECTED]
> >  Subject: Reposting [INIMSS] How can I load a custom jar file for a
> >  particular web application. [a newbie question]
> >
> >
> >  Hi
> >
> >  Please help me ASAP.
> >
> >  I am having a third party jar file that is to be loaded from jsp pages
> > to attain some task. The particular jar file is to be used only buy one
> > web application. Where should I place the files and what all should I
> > modify to make it work?
> >
> >  I am using tomcat 3.3 and  apache-1.3.19-5 on RedHat Linux 7.1.
> >
> >  Thanks
> >  Dino CK
> >
> >
> >  --
> >  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >  For additional commands: <mailto:[EMAIL PROTECTED]>
> >  Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >  ***
> >   This email/attachment(s) has been virus checked upon
> > receipt at the OS and is free of all known viruses.
> >  ***
> >
> >
> >
> >
> >
> >
> >  ***
> >  For more information on Ordnance Survey products and services,
> >  visit our web site at http://www.ordnancesurvey.co.uk
> >  ***
> >
> >
> >
> >
> >  --
> >  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >  For additional commands: <mailto:[EMAIL PROTECTED]>
> >  Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Reposting [INIMSS] How can I load a custom jar file for a par ticular web application. [a newbie question]

2002-02-19 Thread Dino Cherian K

Hi 

But where should I put them, in "WEB-INF/classes" or "WEB-INF/lib"

Thank You
Dino Cherian K

On Tuesday 19 February 2002 19:23, you wrote:
>  Just reference them as normal. Ie ClassA.ClassA1.class
>
>  There's no magic involved...
>  Donie
>
>  -Original Message-
>  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
>  Sent: 18 February 2002 13:04
>  To: Tomcat Users List
>  Subject: Re: Reposting [INIMSS] How can I load a custom jar file for a
>  particular web application. [a newbie question]
>
>  Hi
>
>  Ya it worked. Thanks
>
>  What if the thirdparty library is available as classes in a heirarchy.
> That is they are arranged in folder structure.
>
>  Like
>
>  + ClassA
>
>  |  ClassA1.class
>  |  ClassA2.class
>
>  + ClassB
>
>  |  ClassB1.class
>  |  ClassB3.class
>
>  + ClassC.class
>
>
>  Thanks
>  Dino Cherian K
>
>  On Tuesday 19 February 2002 16:30, you wrote:
>  >  Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs
>  > directory will do the job.
>  >
>  >  -Original Message-
>  >  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
>  >  Sent: 18 February 2002 08:17
>  >  To: [EMAIL PROTECTED]
>  >  Subject: Reposting [INIMSS] How can I load a custom jar file for a
>  >  particular web application. [a newbie question]
>  >
>  >
>  >  Hi
>  >
>  >  Please help me ASAP.
>  >
>  >  I am having a third party jar file that is to be loaded from jsp pages
>  > to attain some task. The particular jar file is to be used only buy one
>  > web application. Where should I place the files and what all should I
>  > modify to make it work?
>  >
>  >  I am using tomcat 3.3 and  apache-1.3.19-5 on RedHat Linux 7.1.
>  >
>  >  Thanks
>  >  Dino CK
>  >
>  >
>  >  --
>  >  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  >  For additional commands: <mailto:[EMAIL PROTECTED]>
>  >  Troubles with the list: <mailto:[EMAIL PROTECTED]>
>  >
>  >
>  >
>  >
>  >  ***
>  >   This email/attachment(s) has been virus checked upon
>  >   receipt at the OS and is free of all known viruses.
>  >  ***
>  >
>  >
>  >
>  >
>  >
>  >
>  >  ***
>  >  For more information on Ordnance Survey products and services,
>  >  visit our web site at http://www.ordnancesurvey.co.uk
>  >  ***
>  >
>  >
>  >
>  >
>  >  --
>  >  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  >  For additional commands: <mailto:[EMAIL PROTECTED]>
>  >  Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>  --
>  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  For additional commands: <mailto:[EMAIL PROTECTED]>
>  Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>  --
>  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  For additional commands: <mailto:[EMAIL PROTECTED]>
>  Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-19 Thread Dino Cherian K

Hi

Thanks for the help. I had already reposted the mail with the info you 
requested.

Thank You

On Tuesday 19 February 2002 19:29, you wrote:
>  It would be extremely helpful if we knew what version of Tomcat is
> running. If we're talking TC 4, then place it in WEB-INF/lib of your webapp
> and then restart the app.  I believe that holds true for 3.3 as well (I'm
> more familiar with TC 4).  For versions before 3.3, the classloader system
> wasn't implemented yet and you'll have to put it in the classpath
> somewhere.
>
>  --David
>
>  On Monday 18 February 2002 02:12 am, you wrote:
>  > Hi
>  >
>  > Please help me ASAP.
>  >
>  > I am having a third party jar file that is to be loaded from jsp pages
>  > to attain some task. The particular jar file is to be used only buy one
>  > web application. Where should I place the files and what all should I
>  > modify to make it work?
>  >
>  > Thanks
>  > Dino CK
>
>  --
>  To unsubscribe:   
>  For additional commands: 
>  Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-19 Thread Donie Kelly

Just reference them as normal. Ie ClassA.ClassA1.class

There's no magic involved...
Donie

-Original Message-
From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 13:04
To: Tomcat Users List
Subject: Re: Reposting [INIMSS] How can I load a custom jar file for a
particular web application. [a newbie question]

Hi

Ya it worked. Thanks

What if the thirdparty library is available as classes in a heirarchy. That
is they are arranged in folder structure.

Like

+ ClassA
|   |
|  ClassA1.class
|  ClassA2.class
|
+ ClassB
|   |
|  ClassB1.class
|  ClassB3.class
|
+ ClassC.class


Thanks
Dino Cherian K

On Tuesday 19 February 2002 16:30, you wrote:
>  Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs
> directory will do the job.
>
>  -Original Message-
>  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
>  Sent: 18 February 2002 08:17
>  To: [EMAIL PROTECTED]
>  Subject: Reposting [INIMSS] How can I load a custom jar file for a
>  particular web application. [a newbie question]
>
>
>  Hi
>
>  Please help me ASAP.
>
>  I am having a third party jar file that is to be loaded from jsp pages to
>  attain some task. The particular jar file is to be used only buy one web
>  application. Where should I place the files and what all should I modify
> to make it work?
>
>  I am using tomcat 3.3 and  apache-1.3.19-5 on RedHat Linux 7.1.
>
>  Thanks
>  Dino CK
>
>
>  --
>  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  For additional commands: <mailto:[EMAIL PROTECTED]>
>  Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>
>  ***
>   This email/attachment(s) has been virus checked upon
>   receipt at the OS and is free of all known viruses.
>  ***
>
>
>
>
>
>
>  ***
>  For more information on Ordnance Survey products and services,
>  visit our web site at http://www.ordnancesurvey.co.uk
>  ***
>
>
>
>
>  --
>  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  For additional commands: <mailto:[EMAIL PROTECTED]>
>  Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-19 Thread David Smith

It would be extremely helpful if we knew what version of Tomcat is running.  
If we're talking TC 4, then place it in WEB-INF/lib of your webapp and then 
restart the app.  I believe that holds true for 3.3 as well (I'm more 
familiar with TC 4).  For versions before 3.3, the classloader system wasn't 
implemented yet and you'll have to put it in the classpath somewhere.

--David

On Monday 18 February 2002 02:12 am, you wrote:
> Hi
>
> Please help me ASAP.
>
> I am having a third party jar file that is to be loaded from jsp pages to
> attain some task. The particular jar file is to be used only buy one web
> application. Where should I place the files and what all should I modify to
> make it work?
>
> Thanks
> Dino CK

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-19 Thread Dino Cherian K

Hi

Ya it worked. Thanks

What if the thirdparty library is available as classes in a heirarchy. That 
is they are arranged in folder structure.

Like

+ ClassA
|   |
|  ClassA1.class
|  ClassA2.class
|
+ ClassB
|   |
|  ClassB1.class
|  ClassB3.class
|
+ ClassC.class


Thanks
Dino Cherian K

On Tuesday 19 February 2002 16:30, you wrote:
>  Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs
> directory will do the job.
>
>  -Original Message-
>  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
>  Sent: 18 February 2002 08:17
>  To: [EMAIL PROTECTED]
>  Subject: Reposting [INIMSS] How can I load a custom jar file for a
>  particular web application. [a newbie question]
>
>
>  Hi
>
>  Please help me ASAP.
>
>  I am having a third party jar file that is to be loaded from jsp pages to
>  attain some task. The particular jar file is to be used only buy one web
>  application. Where should I place the files and what all should I modify
> to make it work?
>
>  I am using tomcat 3.3 and  apache-1.3.19-5 on RedHat Linux 7.1.
>
>  Thanks
>  Dino CK
>
>
>  --
>  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  For additional commands: <mailto:[EMAIL PROTECTED]>
>  Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>
>  ***
>   This email/attachment(s) has been virus checked upon
>   receipt at the OS and is free of all known viruses.
>  ***
>
>
>
>
>
>
>  ***
>  For more information on Ordnance Survey products and services,
>  visit our web site at http://www.ordnancesurvey.co.uk
>  ***
>
>
>
>
>  --
>  To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>  For additional commands: <mailto:[EMAIL PROTECTED]>
>  Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-19 Thread Mark Meany

Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs directory will 
do the job.

-Original Message-
From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 08:17
To: [EMAIL PROTECTED]
Subject: Reposting [INIMSS] How can I load a custom jar file for a
particular web application. [a newbie question]


Hi

Please help me ASAP.

I am having a third party jar file that is to be loaded from jsp pages to 
attain some task. The particular jar file is to be used only buy one web 
application. Where should I place the files and what all should I modify to 
make it work?

I am using tomcat 3.3 and  apache-1.3.19-5 on RedHat Linux 7.1.

Thanks
Dino CK


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




***
 This email/attachment(s) has been virus checked upon   
receipt at the OS and is free of all known viruses.
 
***






***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-18 Thread Satoshi Okamoto

classpath?
http://mindprod.com/classpath.html

-Original Message-
From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 4:13 PM
To: [EMAIL PROTECTED]
Subject: [INIMSS] How can I load a custom jar file for a particular web
application. [a newbie question]


Hi

Please help me ASAP.

I am having a third party jar file that is to be loaded from jsp pages to
attain some task. The particular jar file is to be used only buy one web
application. Where should I place the files and what all should I modify to
make it work?

Thanks
Dino CK

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




[INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-18 Thread Dino Cherian K

Hi

Please help me ASAP.

I am having a third party jar file that is to be loaded from jsp pages to 
attain some task. The particular jar file is to be used only buy one web 
application. Where should I place the files and what all should I modify to 
make it work?

Thanks
Dino CK

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




A newbie question Can't startup TC4.0 Final

2001-09-20 Thread Max Chi

A newbie question need your help

System environments:
OS: Win 2000 professional
JDK: 1.3.1
Tomcat: 4.0 Final Release (released at sep, 17, 2001)
and already setup everything that follows TC 4.0 requirements


When I running startup, I got error. I also try several machine and got sam
errors as the following -


Catalina.start: LifecycleException:  Error creating server socket:
java.net.Bin
dException: Address in use: JVM_Bind
LifecycleException:  Error creating server socket:  java.net.BindException:
Addr
ess in use: JVM_Bind
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:482)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)
- Root Cause -
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
ltServerSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:476)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)





Re: A newbie question about Tomcat and Webalizer

2001-09-19 Thread Craig R. McClanahan

When you run Tomcat 4.0 stand alone, it generates webserver-style access
logs by default, in the "logs" directory.  The default filenames will be
of the form "localhost_access_log.-MM-DD.txt", and will switch over
automatically each midnight without having to be restarted.

Craig McClanahan


On Wed, 19 Sep 2001, Paul D. Bain wrote:

> Date: Wed, 19 Sep 2001 11:03:38 -0400
> From: Paul D. Bain <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re:  A newbie question about Tomcat and Webalizer
>
> At Wednesday 9/19/01 07:45 AM , you wrote:
> >At the moment I am running an tomcat in combination with Apache. However
> >  there is no reason to use Apache, except that I use webalizer to
> >generate web site stats. My question is: is it possible to configure
> >Tomcat (3.2 and 4.0) in such a way that I can continue  to use webalizer?
>
>   As to 4.0, I think that the answer is, "Probably." You would have to edit
> the file server.xml (the primary Tomcat config file) to add a Logger
> component (if not already in your server.xml file) for each container for
> which you wanted logging. Tomcat 4.0 includes an optional Valve
> implementation (which would involve more changes server.xml) that can
> create access logs in the same standard format created by web servers, or
> in any custom format desired. In order to have still more information
> written to the log, you could try adjusting the value of the attribute
> "debug" in the relevant component tag. The higher the debug level, the more
> information would be written to the log. The default debugging level is
> zero, and it can be set as high as nine.
>
>   The documentation for 4.0 has a great deal on logging, and that's the
> source of my knowledge of this topic.
>
> -- Paul Bain
>




Re: A newbie question about Tomcat and Webalizer

2001-09-19 Thread Paul D. Bain

At Wednesday 9/19/01 07:45 AM , you wrote:
>At the moment I am running an tomcat in combination with Apache. However 
>  there is no reason to use Apache, except that I use webalizer to 
>generate web site stats. My question is: is it possible to configure 
>Tomcat (3.2 and 4.0) in such a way that I can continue  to use webalizer?

As to 4.0, I think that the answer is, "Probably." You would have to edit
the file server.xml (the primary Tomcat config file) to add a Logger
component (if not already in your server.xml file) for each container for
which you wanted logging. Tomcat 4.0 includes an optional Valve
implementation (which would involve more changes server.xml) that can
create access logs in the same standard format created by web servers, or
in any custom format desired. In order to have still more information
written to the log, you could try adjusting the value of the attribute
"debug" in the relevant component tag. The higher the debug level, the more
information would be written to the log. The default debugging level is
zero, and it can be set as high as nine.

The documentation for 4.0 has a great deal on logging, and that's the
source of my knowledge of this topic.

-- Paul Bain



A newbie question about Tomcat and Webalizer

2001-09-19 Thread Marcel Schepers

Hello,

At the moment I am running an tomcat in combination with Apache. However 
  there is no reason to use Apache, except that I use webalizer to 
generate web site stats. My question is: is it possible to configure 
Tomcat (3.2 and 4.0) in such a way that I can continue  to use webalizer?

Thank you,
Marcel




Re: a newbie question...

2001-06-02 Thread Bo Xu

"Gilson do N. D'Elrei" wrote:

> hello all,I have made a simple servlet (HelloWorldServlet2) and added
> it on my WEB-INF/Classes context. When I try to execute it using the
> url below: http://server:8080/mycontext/servlets/HelloWorldServlet2 i
> received "not found (404)" error. I tried
> also: 
>http://server:8080/mycontext/HelloWorldServlet2http://server:8080/mycontext/WEB-INF/Classes/HelloWorldServlet2but
> I continue to receiving the same error.My tomcat installation is ok,
> cos i get to execute the examples servlet files and others.
> [...]

Hi :-)

*
   - if we don't set servlet-maping in WEB-INF/web.xml, now it means
 we will use the "Non-standard invoker, for backward compat" syntax
 to invoke MyServlet class, like the following:

http://[server]:[port]/[ContextName]/[invokerName]/[ServletName/servlet-declarationName]

   - and if we also don't change the "Non-standard invoker" in
conf/server.html,
  it means now we will use the "default one":  it is "/servlet/"

  so now the sytax should be:

http://[server]:[port]/[ContextName]/servlet/[ServletName/servlet-declarationName]

(it is not "/servlets/", it is "/servlet/")


*
   - if you Do change the "RequestInterceptor" from "/servlet/" to
 "/servlets/", your 1st syntax will be right .

   - if you define a servlet-declaration in WEB-INF/web.xml, you also
 can use the following syntax:

http://[server]:[port]/[ContextName]/[invokerName]/[servlet-declarationName]

   - if you define a servlet-mapping in WEB-INF/web.xml and you also
want to use it now,
  now it means you will Not use invokerName, you will directly use
the following syntax:
http://[server]:[port]/[ContextName]/[servlet-mappingName]

(*  ContextName is defined in conf/server.xml)


* the following is from conf/server.xml of jakarta-tomcat-3.2.1, but I
don't
   find it in TC4.0-b5,  I guess it means:
- TC4.0-b5  still use "/servlet/" as default "Non-standard invoker"
- but Only when I try to change it, then I  have to write them in
conf/server.xml,
   otherwise I don't need to write.  is it right?  thanks!


...


...




have a nice day! :-)

Bo
June.02, 2001






Re: a newbie question...

2001-06-02 Thread Wolle



Hello,
try it with your first URL but without the 's' on servlet, like below:
http://server:8080/mycontext/servlet/HelloWorldServlet2
I
think that's is..
greetings;
Wolle
"Gilson do N. D'Elrei" wrote:

hello
all,I have made a simple
servlet (HelloWorldServlet2) and added it on my WEB-INF/Classes context.
When I try to execute it using the url below: http://server:8080/mycontext/servlets/HelloWorldServlet2 i
received "not found (404)" error. I tried also: http://server:8080/mycontext/HelloWorldServlet2http://server:8080/mycontext/WEB-INF/Classes/HelloWorldServlet2but
I continue to receiving the same error.My
tomcat installation is ok, cos i get to execute the examples servlet files
and others.  I
have added these lines in the server.xml file
docBase="webapps/mycontext"
debug="0"
reloadable="true" >

and updated these lines in the tomcat.conf 
(only more a trying... )
## Context mapping - you need
to "deploy"
# ( copy or ln -s ) the context into htdocs
##
ApJservMount /mycontext/servlet /root

AllowOverride None
deny from all

thanks in advance. 

--





a newbie question...

2001-06-02 Thread Gilson do N. D'Elrei



hello all,
I have made a simple servlet (HelloWorldServlet2) 
and added it on my WEB-INF/Classes context. When I try to execute it using the 
url below:
 
http://server:8080/mycontext/servlets/HelloWorldServlet2
 
i received "not found (404)" error. I tried 
also:
 
http://server:8080/mycontext/HelloWorldServlet2

http://server:8080/mycontext/WEB-INF/Classes/HelloWorldServlet2
but I continue to receiving the same error.
My tomcat installation is ok, cos i get to execute the examples servlet 
files and others.
 
 
I have added these lines in the server.xml file 


 docBase="webapps/mycontext"  debug="0" 
reloadable="true" > 
and updated these lines in the tomcat.conf  (only more 
a trying... )
## Context mapping - you need to "deploy"# ( 
copy or ln -s ) the context into htdocs##
ApJservMount /mycontext/servlet /rootAllowOverride Nonedeny from all 
thanks in advance.