Re: Architecture Details

2003-03-26 Thread Craig R. McClanahan


On Thu, 27 Mar 2003, Balaji wrote:

> Date: Thu, 27 Mar 2003 11:07:40 +0530
> From: Balaji <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Architecture Details
>
> Hi,
> Can anyone tell me where to find the overall component architecture of
> Catalina ?
>

Note:  it is considered impolite to hijack someone else's message thread
to ask an unrelated question.  if you want to ask a new question, you
should really post a new message rather than replying to an existing one.

Your best starting point is to peruse the Catalina Javadocs that are in
the "tomcat-docs" webapp included with Tomcat -- also available online
(although not necessarily up to date for you particular version of
Tomcat):

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/

For the question you posted on TOMCAT-DEV about how to get the current
number of active sessions (which is really more relevant here), neither
interceptors (Tomcat 3.3) or valves (Tomcat 4/5)  are the right way to
approach to figuring that out.  The reason for this is that interceptors
and valves are focused on what happens to each individual request -- and
sessions can be created and destroyed at times that are totally
independent of when a request comes in.

For any Servlet 2.3 or later container (including Tomcat 4.x or Tomcat
5.x) you should investigate using a javax.servlet.http.HttpSessionListener
to detect when new sessions are created, and existing sessions are
destroyed.  If you store the current count in some globally accessible
location, then you can use it however you like.  For a Servlet 2.2
container (such as Tomcat 3.3), HttpSessionListener did not exist, so you
will have to figure out how to hand-modify the container source code.
And, of course, you will be tying yourself to a particular version (3.3)
of a particular container (Tomcat) now and forever.  You should think
twice before making that sort of decision -- especially when you are
looking at tying yourself to a version of Tomcat that will soon (when
Tomcat 5 final is released) will be two major version numbers out of date.

> TIA
> Bala
>

Craig McClanahan


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



RE: Guidelines on application development

2003-03-26 Thread Greg Speechley
Thanks Dan, eclipse looks good.

I had a strange experience tho: I did ant remove and it deleted everything
from my myapp folder which I wasn't expecting! So I started again
reconfiguring build.xml and build.properties (very frustrating) but after
that I did ant install and tomcat saw the servlet that was in
/myapp/build/WEB-INF/classes :)

So apparently now it works like I was hoping. The only problem I see now is
with compiling java files in a java editor but by the sounds of it eclipse
will fix this problem because I can get it to put the class files into
/myapp/build/WEB-INF/classes.

BTW the only difference I could see compared to when it wasn't working is
that now it generates a WEB-INF folder with empty class and lib folders in
/myapp/build/WEB-INF/classes. Weird. And now ant dist (or ant javadoc)
doesn't generate all the documentation - it says that no source file is
found. Don't know what is going on!

Greg


> -Original Message-
> From: Dan Payne [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 27 March 2003 12:01 PM
> To: Tomcat Users List
> Subject: RE: Guidelines on application development
>
>
> The path refining my dev process sounds exactly like yours. The next step
> for me was to move to Eclipse. Designate your source folders and
> it compiles
> .java as needed, moving the .class files to their appropriate locations.
> Even exports .jars for uploading to the test/live servers and integrates
> with Tomcat.
>
> http://www.eclipse.org
>
> -Dan
>
> -Original Message-
> From: Greg Speechley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 7:01 PM
> To: Tomcat User
> Subject: Re: Guidelines on application development
>
>
> I have just migrated from Tomcat 4.0.3 to 4.1.24 on win2k. At present we
> have a test server which we do all development and testing on
> then once the
> app is stable we transfer the app directory onto the live server to
> $CATALINA_HOME\webapps, restart tomcat and it's good to go.
>
> During development we use a java editor eg jGrasp to edit .java
> files which
> are stored in $CATALINA_HOME\webapps\app\WEB-INF\classes and compile these
> individually. It gets a bit tiresome restarting tomcat after each
> recompile
> but I can live with that (I have reloadable=true but this doesn't
> seem to be
> reliable). Obviously this is a fairly poor way to do things so I
> am keen to
> use the manager in 4.1.24 to reload apps and ant to build it. I
> have looked
> at the docs and created the directory structure as suggested in the
> Application Developer's guide (java files in src\WEB-INF\classes, etc) and
> can build from src directory so that class files are stored in the
> build\WEB-INF\classes. BTW this dir structure should be stored in folder
> called "projectname" somewhere other than $CATALINA_HOME\webapps?
>
> Now from what I can tell I would then have to move these class files to
> $CATALINA_HOME\webapps\app\WEB-INF\classes to be able to test it, surely I
> am missing something because this seems to be quite laborious. Do you use
> ant each time you recompile during development or just compile from your
> editor? If anyone can provide some suggestions on the recommended
> way to do
> things I would greatly appreciate it coz I am trying to implement much
> better development practices :)
>
> Cheers
> Greg
>
>
> -
> 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]
>


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



RE: overhead running from war rather than unpacked

2003-03-26 Thread Craig R. McClanahan


> -Original Message-
> From: Koes, Derrick
> To: '[EMAIL PROTECTED]'
> Sent: 3/26/03 6:13 PM
> Subject: overhead running from war rather than unpacked
>
>
> How much overhead is there running directly from the war file rather
> than
> unpacked?
>
> Thanks,
> Derrick

On Wed, 26 Mar 2003, Sterin, Ilya wrote:

> Date: Wed, 26 Mar 2003 22:29:56 -0700
> From: "Sterin, Ilya" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'Koes, Derrick '" <[EMAIL PROTECTED]>,
>  "''[EMAIL PROTECTED]' '" <[EMAIL PROTECTED]>
> Subject: RE: overhead running from war rather than unpacked
>
> None???  When you deploy a war file, usually upon the start of tomcat, or
> restart, the war file is unpacked, into a directory.  Also, when pages are
> called, they are cached within the work directory, so truly, none.
>

Alas, it is not quite *that* simple, but it's fairly close.  Let's divide
the types of requests into a number of categories, and examine the
difference between running from a WAR and running from an unpacked
directory (the following is generally applicable to 4.1 -- there might
well be differences in how 3.x or 4.0 or 5.x do things), and this
discussion also assumes that you're doing non-SSL transactions (there are
performance differences in doing SSL in Java versus C/C++ code):

(1) Request that matches a servlet mapping -- in either scenario, the
static resources are never accessed, so directory vs. WAR is not
relevant.  The performance will be basically the same.

(2) JSP page, first time it is accessed -- the source code of the page
has to be made available as a file so that it can be compiled.  This
requires extracting it from the WAR if you're running from a WAR,
but that is only a one-time issue.

(3) JSP page, after it has been compiled -- The JSP servlet is mapped
to "*.jsp" so rule (1) is fired.  If the JSP servlet detects that the
page has already been compiled (the class file will be in the work
directory), and that the page has not been updated (this check is not
made unless you turn "development" mode on), then the generated
servlet class is invoked directly and it's not relevant whether the
webapp is unpacked or not.

(4) Static resource -- this is the most interesting case, because it
happens on every request (not just once).  There are two important
sub-cases:

(a) This is a request for a URL not stored in the browser's cache --
the resource will be served unconditionally by Tomcat.  Therefore,
we must compare the time to extract a resource from a WAR file
(which might have been compressed, depending on how you create it)
versus opening a file, copying it's content, and closing it.
The latter will likely be faster *most* of the time, but you need
to benchmark it for your own app+JDK+Tomcat combination to know
for sure which is faster in your case.

(b) This is a request for a URL stored in the browser's cache, so the
browser sends an "If-Modified-Since" header with the request.
- If the resource has not been modified, Tomcat sends back a
  "Not Modified" response (without accessing the webapp if it
  has dealt with this resource before, because it caches the
  last modified timestamp for each resource in memory).  In this
  case, WAR versus directory is not relevant.
- If the resource has been modified, this essentially becomes
  like sub-case (a) above.

In general, then, the difference between deploying a webapp directly from
a WAR or an unpacked directory primarily shows up in sub-case (a) of case
(4)  -- a static resource that is not already in the browser's cache (or a
page that has been modified more recently than the copy in the browser's
cache.

Note that all of the above comments are directed at a production
deployment scenario -- when I am developing webapps I *alway* use an
unpacked directory (plus Tomcat's dynamic install/remove commands via the
manager webapp) -- there's no reason to waste the time it takes to create
a WAR in the first place when you are repeatedly cycling through a
compile-test loop.

- Off Topic, But Related, Observations ---

Interestingly, this is also the exact situation where front-ending
Tomcat with a web server will generally be more performant -- in all of
the other scenarios, the approach which is faster is *very*
environmentally dependent, so you need to benchmark your particular app to
see what works better -- fortunatly, you can develop your app without
caring one way or the other, and make the decision about which deployment
approach to take for your production servers at the time you are ready to
deploy.

For production deployments, when you don't need the web server features
for other reasons, you should *always* benchmark a Tomcat standalone
deployment versus deploying with Tomcat behind a web server.  In many
cases, you'll find that the T

Re: Architecture Details

2003-03-26 Thread Balaji
Hi,

Does Interceptors in 3.x and Valves in 4.x the same thing? Where do I find 
documents on writing an interceptor? I'm trying a simple example of getting 
the number of active sessions by writing a interceptor. Can anyone help me?

Kind Regards
Bala


At 11:07 AM 3/27/2003 +0530, you wrote:
Hi,
Can anyone tell me where to find the overall component architecture of 
Catalina ?

TIA
Bala
At 08:12 PM 3/26/2003 -0800, you wrote:


On Wed, 26 Mar 2003, Koes, Derrick wrote:

> Date: Wed, 26 Mar 2003 20:29:00 -0500
> From: "Koes, Derrick" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Bug #5585, #11091, #13924, #18040 Workaround ???
>
>
> Sorry, no, but I've been looking for one.  I want to show MY OWN error 
page
> for a 401.
>
> I've posted to this list about this, but to no avail thus far.
>
> Basic auth seems to "work" BECAUSE a 401 is "thrown" for a protected
> resource.  Sort of makes sense, but makes it difficult to use the 
> tags to get a customized error page for a 401.
>

You do realize, I hope, that it's the *browser* that decides to ignore
whatever the server sends along with a 401 error and chooses to pop up the
login dialog instead?
Craig

-
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]


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


RE: Architecture Details

2003-03-26 Thread Filip Hanik
uuuh, it uses a
- small kernel, server/host
- it has a JMX kernel that registers and manages components
- It uses Valves (pipeline) to handle the request chain
- It uses Coyote connectors (pooled) to handle incoming requests
- Managers handle the sessions, Contexts handle the contexts including
managers

Filip

> -Original Message-
> From: Balaji [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 9:38 PM
> To: Tomcat Users List
> Subject: Architecture Details
>
>
> Hi,
> Can anyone tell me where to find the overall component architecture of
> Catalina ?
>
> TIA
> Bala
>
>
> At 08:12 PM 3/26/2003 -0800, you wrote:
>
>
> >On Wed, 26 Mar 2003, Koes, Derrick wrote:
> >
> > > Date: Wed, 26 Mar 2003 20:29:00 -0500
> > > From: "Koes, Derrick" <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> > > Subject: RE: Bug #5585, #11091, #13924, #18040 Workaround ???
> > >
> > >
> > > Sorry, no, but I've been looking for one.  I want to show MY
> OWN error page
> > > for a 401.
> > >
> > > I've posted to this list about this, but to no avail thus far.
> > >
> > > Basic auth seems to "work" BECAUSE a 401 is "thrown" for a protected
> > > resource.  Sort of makes sense, but makes it difficult to use
> the 
> > > tags to get a customized error page for a 401.
> > >
> >
> >You do realize, I hope, that it's the *browser* that decides to ignore
> >whatever the server sends along with a 401 error and chooses to
> pop up the
> >login dialog instead?
> >
> >Craig
> >
> >-
> >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]
>
>


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



Need Help in Server.XML

2003-03-26 Thread Surendra Kumar
Hi,
We were using Tomcat version 3.3.1 in our product and everything wad
working fine. Recently Tomcat released 3.3.1a with
security updates. To fix the security issue we have replaced the 4 jar files
(tomcat.jar, tomcat_modules.jar, tomcat_util.jar, facade22.jar)
mentioned in the report.
After updating the jar files our product is not working and throwing
class not found exception.
In server.xml we have the following configuration

#

#

After updating the tomcat jar files, the dir
"C:\PROGRA~1\myclasspath;C:\PROGRA~1\classpath" is not added in the
context's
classpath and all access to class files in this directory throws "Class Not
Found Exception"

We have narrowed down the problem to "tomcat_modules.jar". If we replace
this jar file from 3.3.1 version, everything works
fine.

I have downloaded the source for 3.3.1 and 3.3.1a and i didn't find any
change in LoaderInterceptor11.java. But the size of classfiles
in both jar are not same.

I have enabled debug for this module and the only difference i could note is
an extra "/" character is missing at the end of classpath
with new jar files. following are diff

 LoaderInterceptor11: file:C:/PROGRA~1/myclasspath
< LoaderInterceptor11: file:C:/PROGRA~1//classpath
< LoaderInterceptor11: DEFAULT:/test adding: file:C:/PROGRA~1/myclasspath
< LoaderInterceptor11: DEFAULT:/test adding: file:C:/PROGRA~1/classpath
---
> LoaderInterceptor11: file:C:/PROGRA~1/myclasspath/
> LoaderInterceptor11: file:C:/PROGRA~1/classpath/
> LoaderInterceptor11: DEFAULT:/test adding:
file:C:/PROGRA~1/CSCOpx/myclasspath/
> LoaderInterceptor11: DEFAULT:/test adding:
file:C:/PROGRA~1/CSCOpx/classpath/


I need help on debugging this. Thanks for any help and suggestion.

Regards
Surendra


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



Architecture Details

2003-03-26 Thread Balaji
Hi,
Can anyone tell me where to find the overall component architecture of 
Catalina ?

TIA
Bala
At 08:12 PM 3/26/2003 -0800, you wrote:


On Wed, 26 Mar 2003, Koes, Derrick wrote:

> Date: Wed, 26 Mar 2003 20:29:00 -0500
> From: "Koes, Derrick" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Bug #5585, #11091, #13924, #18040 Workaround ???
>
>
> Sorry, no, but I've been looking for one.  I want to show MY OWN error page
> for a 401.
>
> I've posted to this list about this, but to no avail thus far.
>
> Basic auth seems to "work" BECAUSE a 401 is "thrown" for a protected
> resource.  Sort of makes sense, but makes it difficult to use the 
> tags to get a customized error page for a 401.
>
You do realize, I hope, that it's the *browser* that decides to ignore
whatever the server sends along with a 401 error and chooses to pop up the
login dialog instead?
Craig

-
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: overhead running from war rather than unpacked

2003-03-26 Thread Sterin, Ilya
None???  When you deploy a war file, usually upon the start of tomcat, or
restart, the war file is unpacked, into a directory.  Also, when pages are
called, they are cached within the work directory, so truly, none.

Ilya

-Original Message-
From: Koes, Derrick
To: '[EMAIL PROTECTED]'
Sent: 3/26/03 6:13 PM
Subject: overhead running from war rather than unpacked


How much overhead is there running directly from the war file rather
than
unpacked?

Thanks,
Derrick



This electronic transmission is strictly confidential to Smith & Nephew
and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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


RE: Bug #5585, #11091, #13924, #18040 Workaround ???

2003-03-26 Thread Craig R. McClanahan


On Wed, 26 Mar 2003, Koes, Derrick wrote:

> Date: Wed, 26 Mar 2003 20:29:00 -0500
> From: "Koes, Derrick" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Bug #5585, #11091, #13924, #18040 Workaround ???
>
>
> Sorry, no, but I've been looking for one.  I want to show MY OWN error page
> for a 401.
>
> I've posted to this list about this, but to no avail thus far.
>
> Basic auth seems to "work" BECAUSE a 401 is "thrown" for a protected
> resource.  Sort of makes sense, but makes it difficult to use the 
> tags to get a customized error page for a 401.
>

You do realize, I hope, that it's the *browser* that decides to ignore
whatever the server sends along with a 401 error and chooses to pop up the
login dialog instead?

Craig

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



Re: configuring server.xml with a server with more than 1 IPaddress

2003-03-26 Thread Chris Gokey
This makes sense.  I'll use two different shutdown ports.

Thank for your response.
Chris


On Wed, 2003-03-26 at 18:15, Tim Funk wrote:
> The shutdown listerner always listens on localhost. So if you rn 
> multiple tomcat instances, you need to use different shutdown ports.
> 
> If you want them accessible from the outside (which is a real bad idea), 
> use  plug proxy.
> 
> -Tim
> 
> Chris Gokey wrote:
> > In server.xml, I'm looking for a way to specify both the host name and
> > port used for the  
> > declaration.
> > 
> > Something like:
> >  > debug="0">.
> > (similiar to how you would configure the HTTP connector)
> > 
> > I'm trying to launch two Tomcat servers both running under the same
> > ports but binding to different IPs on the same machine..  So, I need to
> > be able to specify the specific host address for the declaration above.
> > 
> > How can I do this?  I'm using Tomcat 4.03 under Redhat 8.
> > 
> > Thanks,
> > Chris
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



Re: SMTP Logger

2003-03-26 Thread Chris Gokey
I posted my latest implementation to this site, in case anyone else is
interested. 

http://home.attbi.com/~cgokey/java/logger/index.html

Seems to be working fairly well.

Thank you everyone for your comments.
Chris

On Tue, 2003-03-25 at 22:43, Craig R. McClanahan wrote:
> On Tue, 25 Mar 2003, Chris Gokey wrote:
> 
> > Date: 25 Mar 2003 21:47:43 -0500
> > From: Chris Gokey <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Re: SMTP Logger
> >
> > Hi everyone,
> >
> > Back to this again.. Any help would be very appreciated.
> >
> > I'd created a custom logger that will email errors rather than log them
> > to a file system.
> >
> > Unfortunately, if I add another  declaration to
> > server.xml, it will not use the existing Logger (FileLogger).  How can I
> > make it use both?
> >
> 
> You can't do this directly -- there is at most one Logger element per
> Engine/Host/Context element.
> 
> > Optionally, I thought of extends the FileLogger, but it is declared
> > final, so this won't work.
> >
> > How should I approach this?  Or maybe there is some class already part
> > of Tomcat that can do what I'm looking for?
> >
> 
> You've got two basic choices:
> 
> * Cut-n-paste the logic of FileLogger into your own SMTPLogger
>   (and then add the email stuff)
> 
> * Have your SMTPLogger create its own instance of FileLogger,
>   and delegate the log calls to that after sending the emails.
> 
> > I'm using Tomcat 4.03 under Redhat 8.
> >
> > Thanks in advance.
> > Chris
> 
> Craig
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



RE: Servlet help

2003-03-26 Thread Sandra Patricia Hunter
Thanks.
I got my servlet up and running but now I can't run my jsp. 
After rebooting I can see my jsp but I can't load another one.
Something is stuck somewhere according to some configuration I have made,
but I don't even know where to begin to look or what more information to
give you.
Any ideas?

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED] 
Sent: March 26, 2003 3:13 PM
To: Tomcat Users List
Subject: Re: Servlet help


Sandra,

if you are planning to do the changes often you are probably better off if 
you set reloadable parameter to true in server.xml file, 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html) 
however, setting it to reloadable means that you should accept that it will 
eat up some of your CPU time as well (not a significant one, but it's 
there).. otherwise, compiling your file, and restarting tomcat should 
suffice...

vlad

At 06:00 PM 3/26/2003, you wrote:
>This seems like a silly question:
>when I make changes in my servlet what do I have to do to load the new 
>file?
>
>I have tried just saving it. I have tried restarting Tomcat. I have 
>tried recompiling the file. I have tried recompiling while Tomcat was 
>shutdown and while Tomcat was running. I have tried restarting the 
>machine. Only restarting the machine seems to work. Comments? 
>Suggestions? Ridicule?
>
>Sandra Patricia Hunter
>Systems Development and Web Design
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


Vladimer Shioshvili

QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814

Phone: (301) 657 3077 ext. 155 


-
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: Guidelines on application development

2003-03-26 Thread Jeff Jensen
One of the first tasks on a project is to create the Ant build file for a
fully automated deploy.  It is used for every deploy to the app server,
including the compilation.  But, sometimes when working on a class, I
compile with the IDE until it is done/ready for the integrated build (I
typically use Emacs with JDE and it has a fast "compile server").

The Tomcat Ant tasks allow a fully automated deploy, including eliminating
that full restart of Tomcat (I do the same process no matter what app server
deploying to).  Particularly, look at the "deploy" and "undeploy" tasks in
Tomcat.


> -Original Message-
> From: Greg Speechley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 7:01 PM
> To: Tomcat User
> Subject: Re: Guidelines on application development
>
>
> I have just migrated from Tomcat 4.0.3 to 4.1.24 on win2k. At
> present we
> have a test server which we do all development and testing on
> then once the
> app is stable we transfer the app directory onto the live server to
> $CATALINA_HOME\webapps, restart tomcat and it's good to go.
>
> During development we use a java editor eg jGrasp to edit
> .java files which
> are stored in $CATALINA_HOME\webapps\app\WEB-INF\classes and
> compile these
> individually. It gets a bit tiresome restarting tomcat after
> each recompile
> but I can live with that (I have reloadable=true but this
> doesn't seem to be
> reliable). Obviously this is a fairly poor way to do things
> so I am keen to
> use the manager in 4.1.24 to reload apps and ant to build it.
> I have looked
> at the docs and created the directory structure as suggested in the
> Application Developer's guide (java files in
> src\WEB-INF\classes, etc) and
> can build from src directory so that class files are stored in the
> build\WEB-INF\classes. BTW this dir structure should be
> stored in folder
> called "projectname" somewhere other than $CATALINA_HOME\webapps?
>
> Now from what I can tell I would then have to move these
> class files to
> $CATALINA_HOME\webapps\app\WEB-INF\classes to be able to test
> it, surely I
> am missing something because this seems to be quite
> laborious. Do you use
> ant each time you recompile during development or just
> compile from your
> editor? If anyone can provide some suggestions on the
> recommended way to do
> things I would greatly appreciate it coz I am trying to implement much
> better development practices :)
>
> Cheers
> Greg
>
>
> -
> 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]



Servlet Error "Variable may not have been initialized"

2003-03-26 Thread hideaki KURASHIGE
Hi list.
(B
(BWhen I modify JSP files,sometimes servlet error occurr as follows.
(B
(B-- error 
(BGenerated servlet error:
(B/opt/tomcat/work/.jsp:487: Variable X may not have been initialized.
(B
(B
(BBy restarting tomcat,this servlet error disappears and everything works okay.
(B
(BI am using the following setup:
(BOS:Solaris 8
(BTOMCAT:4.0.3
(BJRE :1.4.0_01
(B
(B- I found same case in Tomcat Bugzilla(BUG#:11882),but I can not find any 
(Bsolution.
(B
(BDoes somebody know solution?
(B
(BBest regards.
(B
(B--
(BHIDEAKI KURASHIGE
(B[EMAIL PROTECTED]
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Are these two issues Tomcat bugs?

2003-03-26 Thread Tomasz Nowak
Filip Hanik <[EMAIL PROTECTED]> wrote:
>
> > [1]
> > http://localhost:8080/manager/html/remove?path=/tomcat-docs
> > OK - Removed application at context path /tomcat-docs
> > -> tomcat-docs directory has *not* been removed from hosts
> 
> yes, but the application is actually removed, did you try to access
> it to verify?

Application is unaccessable, but...

> I believe this is explained in the docs

... the docs say at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html

"WARNING - This command will delete the contents of the web application
directory and/or ".war" file if it exists within the appBase directory
(typically "webapps") for this virtual host . The web application
temporary work directory is also deleted. If you simply want to take
an application out of service, you should use the /stop command instead."

This command does not "delete the contents of" tomcat-docs directory
nor temporary work directory. Do I understand the act of deleting
in some strange, wrong way? ;)


-- 
Tomek

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



RE: Are these two issues Tomcat bugs?

2003-03-26 Thread Filip Hanik
> [1]
> http://localhost:8080/manager/html/remove?path=/tomcat-docs
> OK - Removed application at context path /tomcat-docs
> -> tomcat-docs directory has *not* been removed from hosts

yes, but the application is actually removed, did you try to access it to verify?
I believe this is explained in the docs

> http://localhost:8080/manager/html/install?path=/tomcat-docs
> FAIL - Invalid context path null was specified

looks like you are missing some parameters, not sure about this one

Filip


> -Original Message-
> From: Tomasz Nowak [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 5:38 PM
> To: [EMAIL PROTECTED]
> Subject: Are these two issues Tomcat bugs?
> 
> 
> I don't really know if these two issues are my faults or Tomcat bugs.
> I searched bugzilla, but none of these has been reported as a bug.
> 
> 1. conf.xml: autoDeploy="false" does not work in my 4.1.18
> 
> 2. /manager: 'install' and 'remove' commands does not work for me :(
>- remove command does not remove [1]
>- install - unsuccessfull in every single try [2]
> 
> 
> [1]
> http://localhost:8080/manager/html/remove?path=/tomcat-docs
> OK - Removed application at context path /tomcat-docs
> -> tomcat-docs directory has *not* been removed from hosts
>appBase, nor work-dir (they should be acc to docs)
> 
> [2]
> These URIs below were written by me by hand according to 
> manager-howto:
> 
> http://localhost:8080/manager/html/install?path=/tomcat-docs
> FAIL - Invalid context path null was specified
> 
> http://localhost:8080/manager/html/install?war=tomcat-docs
> FAIL - Invalid context path null was specified
> 
> http://localhost:8080/manager/html/install?war=file:/C:\Local\
tomcat-4.1.18\webapps\tomcat\tomcat-docs
FAIL - Invalid context path null was specified

http://localhost:8080/manager/html/install?path=/tomcat-docs&war=file:/C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs
FAIL - Invalid context path null was specified

Then I tried also html-form to install webapp:

http://localhost:8080/manager/html/install?path=&installPath=%2Ftomcat-docs&installConfig=&installWar=
FAIL - Invalid application URL was specified

# WAR URL: [ file:C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs ]
http://localhost:8080/manager/html/install?path=&installPath=&installConfig=&installWar=file%3AC%3A%5CLocal%5Ctomcat-4.1.18%5Cwebapps%5Ctomcat%5Ctomcat-docs
FAIL - Encountered exception java.net.MalformedURLException: no protocol:

# WAR URL: [ file:/C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs ]
http://localhost:8080/manager/html/install?path=&installPath=&installConfig=&installWar=file%3A%2FC%3A%5CLocal%5Ctomcat-4.1.18%5Cwebapps%5Ctomcat%5Ctomcat-docs%5C
FAIL - Encountered exception java.net.MalformedURLException: no protocol:

# WAR URL: [ file://C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs ]
http://localhost:8080/manager/html/install?path=&installPath=&installConfig=&installWar=file%3A%2F%2FC%3A%5CLocal%5Ctomcat-4.1.18%5Cwebapps%5Ctomcat%5Ctomcat-docs
FAIL - Encountered exception java.net.MalformedURLException: no protocol:


PS. Yes, I have such webapps directory structure.


RE: db resource mgmt

2003-03-26 Thread Chris Shen
i found the doc. thanks






From: "Filip Hanik" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: RE: db resource mgmt
Date: Wed, 26 Mar 2003 17:15:16 -0800
yes there is,
a common module called dbcp
search the archives
Filip
> -Original Message-
> From: Chris Shen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 5:12 PM
> To: [EMAIL PROTECTED]
> Subject: db resource mgmt
>
>
> is there some sort of connection pooling mechanism built into
> Tomcat? i was
> looking over the sample server.xml, and it seems that you can
> specify db
> resources. i am just wondering if tomcat actually manages
> some sort of db
> connection pooling or is that something we have to implement
> on our own.
> thanks.
>
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> -
> 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]


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Are these two issues Tomcat bugs?

2003-03-26 Thread Tomasz Nowak
I don't really know if these two issues are my faults or Tomcat bugs.
I searched bugzilla, but none of these has been reported as a bug.

1. conf.xml: autoDeploy="false" does not work in my 4.1.18

2. /manager: 'install' and 'remove' commands does not work for me :(
   - remove command does not remove [1]
   - install - unsuccessfull in every single try [2]


[1]
http://localhost:8080/manager/html/remove?path=/tomcat-docs
OK - Removed application at context path /tomcat-docs
-> tomcat-docs directory has *not* been removed from hosts
   appBase, nor work-dir (they should be acc to docs)

[2]
These URIs below were written by me by hand according to manager-howto:

http://localhost:8080/manager/html/install?path=/tomcat-docs
FAIL - Invalid context path null was specified

http://localhost:8080/manager/html/install?war=tomcat-docs
FAIL - Invalid context path null was specified

http://localhost:8080/manager/html/install?war=file:/C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs
FAIL - Invalid context path null was specified

http://localhost:8080/manager/html/install?path=/tomcat-docs&war=file:/C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs
FAIL - Invalid context path null was specified

Then I tried also html-form to install webapp:

http://localhost:8080/manager/html/install?path=&installPath=%2Ftomcat-docs&installConfig=&installWar=
FAIL - Invalid application URL was specified

# WAR URL: [ file:C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs ]
http://localhost:8080/manager/html/install?path=&installPath=&installConfig=&installWar=file%3AC%3A%5CLocal%5Ctomcat-4.1.18%5Cwebapps%5Ctomcat%5Ctomcat-docs
FAIL - Encountered exception java.net.MalformedURLException: no protocol:

# WAR URL: [ file:/C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs ]
http://localhost:8080/manager/html/install?path=&installPath=&installConfig=&installWar=file%3A%2FC%3A%5CLocal%5Ctomcat-4.1.18%5Cwebapps%5Ctomcat%5Ctomcat-docs%5C
FAIL - Encountered exception java.net.MalformedURLException: no protocol:

# WAR URL: [ file://C:\Local\tomcat-4.1.18\webapps\tomcat\tomcat-docs ]
http://localhost:8080/manager/html/install?path=&installPath=&installConfig=&installWar=file%3A%2F%2FC%3A%5CLocal%5Ctomcat-4.1.18%5Cwebapps%5Ctomcat%5Ctomcat-docs
FAIL - Encountered exception java.net.MalformedURLException: no protocol:


PS. Yes, I have such webapps directory structure.


RE: Guidelines on application development

2003-03-26 Thread Dan Payne
The path refining my dev process sounds exactly like yours. The next step
for me was to move to Eclipse. Designate your source folders and it compiles
.java as needed, moving the .class files to their appropriate locations.
Even exports .jars for uploading to the test/live servers and integrates
with Tomcat.

http://www.eclipse.org

-Dan

-Original Message-
From: Greg Speechley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:01 PM
To: Tomcat User
Subject: Re: Guidelines on application development


I have just migrated from Tomcat 4.0.3 to 4.1.24 on win2k. At present we
have a test server which we do all development and testing on then once the
app is stable we transfer the app directory onto the live server to
$CATALINA_HOME\webapps, restart tomcat and it's good to go.

During development we use a java editor eg jGrasp to edit .java files which
are stored in $CATALINA_HOME\webapps\app\WEB-INF\classes and compile these
individually. It gets a bit tiresome restarting tomcat after each recompile
but I can live with that (I have reloadable=true but this doesn't seem to be
reliable). Obviously this is a fairly poor way to do things so I am keen to
use the manager in 4.1.24 to reload apps and ant to build it. I have looked
at the docs and created the directory structure as suggested in the
Application Developer's guide (java files in src\WEB-INF\classes, etc) and
can build from src directory so that class files are stored in the
build\WEB-INF\classes. BTW this dir structure should be stored in folder
called "projectname" somewhere other than $CATALINA_HOME\webapps?

Now from what I can tell I would then have to move these class files to
$CATALINA_HOME\webapps\app\WEB-INF\classes to be able to test it, surely I
am missing something because this seems to be quite laborious. Do you use
ant each time you recompile during development or just compile from your
editor? If anyone can provide some suggestions on the recommended way to do
things I would greatly appreciate it coz I am trying to implement much
better development practices :)

Cheers
Greg


-
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: Bug #5585, #11091, #13924, #18040 Workaround ???

2003-03-26 Thread Koes, Derrick

Sorry, no, but I've been looking for one.  I want to show MY OWN error page
for a 401.

I've posted to this list about this, but to no avail thus far.

Basic auth seems to "work" BECAUSE a 401 is "thrown" for a protected
resource.  Sort of makes sense, but makes it difficult to use the 
tags to get a customized error page for a 401.



-Original Message-
From: x1x 82 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 8:12 PM
To: [EMAIL PROTECTED]
Subject: Bug #5585, #11091, #13924, #18040 Workaround ???

Does anybody know of a workaround for the following Tomcat 4.1.x bugs (which

I think are actually the same bug reported over and over again)...

http://issues.apache.org/bugzilla/show_bug.cgi?id=5585
http://issues.apache.org/bugzilla/show_bug.cgi?id=11091
http://issues.apache.org/bugzilla/show_bug.cgi?id=13924
http://issues.apache.org/bugzilla/show_bug.cgi?id=18040

The suggestions within the reports above have not worked so far.

Thanks,
Clint


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: db resource mgmt

2003-03-26 Thread Filip Hanik
yes there is,
a common module called dbcp 

search the archives
Filip

> -Original Message-
> From: Chris Shen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 5:12 PM
> To: [EMAIL PROTECTED]
> Subject: db resource mgmt
> 
> 
> is there some sort of connection pooling mechanism built into 
> Tomcat? i was 
> looking over the sample server.xml, and it seems that you can 
> specify db 
> resources. i am just wondering if tomcat actually manages 
> some sort of db 
> connection pooling or is that something we have to implement 
> on our own. 
> thanks.
> 
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.  
> http://join.msn.com/?page=features/featuredemail
> 
> 
> -
> 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]



db resource mgmt

2003-03-26 Thread Chris Shen
is there some sort of connection pooling mechanism built into Tomcat? i was 
looking over the sample server.xml, and it seems that you can specify db 
resources. i am just wondering if tomcat actually manages some sort of db 
connection pooling or is that something we have to implement on our own. 
thanks.

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


overhead running from war rather than unpacked

2003-03-26 Thread Koes, Derrick

How much overhead is there running directly from the war file rather than
unpacked?

Thanks,
Derrick



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Bug #5585, #11091, #13924, #18040 Workaround ???

2003-03-26 Thread x1x 82
Does anybody know of a workaround for the following Tomcat 4.1.x bugs (which 
I think are actually the same bug reported over and over again)...

http://issues.apache.org/bugzilla/show_bug.cgi?id=5585
http://issues.apache.org/bugzilla/show_bug.cgi?id=11091
http://issues.apache.org/bugzilla/show_bug.cgi?id=13924
http://issues.apache.org/bugzilla/show_bug.cgi?id=18040
The suggestions within the reports above have not worked so far.

Thanks,
Clint
_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: Guidelines on application development

2003-03-26 Thread Greg Speechley
I have just migrated from Tomcat 4.0.3 to 4.1.24 on win2k. At present we
have a test server which we do all development and testing on then once the
app is stable we transfer the app directory onto the live server to
$CATALINA_HOME\webapps, restart tomcat and it's good to go.

During development we use a java editor eg jGrasp to edit .java files which
are stored in $CATALINA_HOME\webapps\app\WEB-INF\classes and compile these
individually. It gets a bit tiresome restarting tomcat after each recompile
but I can live with that (I have reloadable=true but this doesn't seem to be
reliable). Obviously this is a fairly poor way to do things so I am keen to
use the manager in 4.1.24 to reload apps and ant to build it. I have looked
at the docs and created the directory structure as suggested in the
Application Developer's guide (java files in src\WEB-INF\classes, etc) and
can build from src directory so that class files are stored in the
build\WEB-INF\classes. BTW this dir structure should be stored in folder
called "projectname" somewhere other than $CATALINA_HOME\webapps?

Now from what I can tell I would then have to move these class files to
$CATALINA_HOME\webapps\app\WEB-INF\classes to be able to test it, surely I
am missing something because this seems to be quite laborious. Do you use
ant each time you recompile during development or just compile from your
editor? If anyone can provide some suggestions on the recommended way to do
things I would greatly appreciate it coz I am trying to implement much
better development practices :)

Cheers
Greg


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



RE: unpackWars not working

2003-03-26 Thread Koes, Derrick

I guess the other option would be to muck with the startup files to delete
sessions before starting up.  Hm.



-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:36 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working

OK, I see this is a known issue.  H.
I believe tomcat should first unpack the wars, THEN determine if docBase is
valid.

At any rate, it seems I have to design around this feature or submit a
patch.



-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:17 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


There is no other context other than the "Default Context".


-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:15 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


It would except that parts of my app depend on the war file being expanded.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:11 PM
To: Tomcat Users List
Subject: RE: unpackWars not working

could it be that it is not unpacking the war for the context that is already
defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


RE: unpackWars not working

2003-03-26 Thread Koes, Derrick
OK, I see this is a known issue.  H.
I believe tomcat should first unpack the wars, THEN determine if docBase is
valid.

At any rate, it seems I have to design around this feature or submit a
patch.



-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:17 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


There is no other context other than the "Default Context".


-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:15 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


It would except that parts of my app depend on the war file being expanded.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:11 PM
To: Tomcat Users List
Subject: RE: unpackWars not working

could it be that it is not unpacking the war for the context that is already
defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Help: start and shutdown a process through servlet

2003-03-26 Thread Tam, Michael
Hi all,

I am having a problem to use a servlet to invoke an external process and I
wish someone can give me some suggests on my approach which may help me
solve the issue.

Environment:
Windows, J2SDK 1.4.1_02, and Tomcat 4.1.24.


The scenario:

1) I would like to dedicate a servlet to invoke an external process i.e.
init() -> start the process and destroy() -> ends the process.
2) My process is a small and simple server process which use datagramsocket
to listen to localhost:port and handle messages which come from a client
servlet.
3) Currently, in the init() I initiate a static Runtime and get a static
reference of the process which is created by the runtime.exec("java
server",null,"path to the server class").  In the destroy(), I use send a
datagram message to the server which causes the shutdown of the server and I
call the process.waitfor() to wait until the server process completed before
destroy() exits.


problem:

1)  tomcat startups fine and the servlet has invoked the server process.
However, when I use a standalone client to talk to the server process, only
the first send/receive is completed.  The client doesn't receive any thing
corresponded to the second message and is infinitely waiting the response
from the server process.

2) After 1), attempt to shutdown tomcat and tomcat is not responding.
Forcing tomcat to shutdown by closing the prompt, then the server process
starts to work again and execute the 'queued' message.


Any input would be deeply appreciated.

Regards,
Michael

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



RE: unpackWars not working

2003-03-26 Thread Koes, Derrick

There is no other context other than the "Default Context".


-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 7:15 PM
To: 'Tomcat Users List'
Subject: RE: unpackWars not working


It would except that parts of my app depend on the war file being expanded.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:11 PM
To: Tomcat Users List
Subject: RE: unpackWars not working

could it be that it is not unpacking the war for the context that is already
defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: unpackWars not working

2003-03-26 Thread Koes, Derrick

It would except that parts of my app depend on the war file being expanded.


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:11 PM
To: Tomcat Users List
Subject: RE: unpackWars not working

could it be that it is not unpacking the war for the context that is already
defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: unpackWars not working

2003-03-26 Thread Filip Hanik
could it be that it is not unpacking the war for the context that is already defined?
hence it would overwrite that one maybe,

what happens if you set docBase="dora.war"

would that be sufficient for you?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: unpackWars not working
> 
> 
> 
> 
> The following configuration is not unpacking my war file.
> I cannot understand why.  unpackWARs is set to true.
> Can anyone help?
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>  
> className="org.apache.ajp.tomcat4.config.ApacheConfig" 
> 
> append="true" forwardAll="false" noRoot="false"/>
> 
>  
> override="true">
>  
> className="org.apache.catalina.session.StandardManager" 
> 
> pathname="">
> 
> 
> 
> 
> 
> Thanks,
> Derrick
> 
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]



unpackWars not working

2003-03-26 Thread Koes, Derrick


The following configuration is not unpacking my war file.
I cannot understand why.  unpackWARs is set to true.
Can anyone help?














Thanks,
Derrick




This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Raible, Matt
Currently, I live in Denver, Colorado and hope to be living in West Palm
Beach in the next 6 months.

> -Original Message-
> From: Micael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 4:32 PM
> To: Tomcat Users List
> Subject: RE: [OT] Contract Work Hourly Rates
> 
> 
> Where are you located, Matt?
> 
> At 03:45 PM 3/26/03 -0700, you wrote:
> >Most clients seem to want to pay b/w 30 and 50, from what 
> I've seen.  When
> >I've asked for more than that - I don't get any returned 
> e-mails or phone
> >calls.
> >
> >In Florida, where I've been hoping to find my next job, it's 
> more like
> >20-40/hour.  :(
> >
> >Matt
> >
> > > -Original Message-
> > > From: Micael [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 3:26 PM
> > > To: Tomcat Users List
> > > Subject: RE: [OT] Contract Work Hourly Rates
> > >
> > >
> > > Do you have a ballpark, since I was asked?
> > >
> > > At 03:15 PM 3/26/03 -0700, you wrote:
> > > >In this economy, I usually ask the client how much they're
> > > willing to spend.
> > > >Usually they will fess up and then you can decide from
> > > there.  Telling them
> > > >how much you (truly) want will usually result in "yeah, right."
> > > >
> > > >Matt
> > > >
> > > > > -Original Message-
> > > > > From: Micael [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, March 26, 2003 2:44 PM
> > > > > To: Tomcat Users List
> > > > > Subject: [OT] Contract Work Hourly Rates
> > > > >
> > > > >
> > > > > I have a job offer to do contract work coding websites.  I am
> > > > > well versed
> > > > > in most of the areas required, and wonder what is a good
> > > > > hourly rate to ask
> > > > > for?  I know Java (certified programmer), Tomcat, Struts,
> > > > > Ant, blah, blah,
> > > > > as well as scripting, Red Hat, etc.  Thanks for any 
> assistance.
> > > > >
> > > > >
> > > > > LEGAL NOTICE
> > > > >
> > > > > This electronic mail  transmission and any accompanying
> > > > > documents contain
> > > > > information belonging to the sender which may be confidential
> > > > > and legally
> > > > > privileged.  This information is intended only for 
> the use of the
> > > > > individual or entity to whom this electronic mail
> > > > > transmission was sent as
> > > > > indicated above. If you are not the intended recipient, any
> > > > > disclosure,
> > > > > copying, distribution, or action taken in reliance on the
> > > > > contents of the
> > > > > information contained in this transmission is strictly
> > > > > prohibited.  If you
> > > > > have received this transmission in error, please delete the
> > > > > message.  Thank you
> > > > >
> > > > >
> > > > >
> > > > >
> > > 
> -
> > > > > 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]
> > >
> > >
> > >
> > > LEGAL NOTICE
> > >
> > > This electronic mail  transmission and any accompanying
> > > documents contain
> > > information belonging to the sender which may be confidential
> > > and legally
> > > privileged.  This information is intended only for the use of the
> > > individual or entity to whom this electronic mail
> > > transmission was sent as
> > > indicated above. If you are not the intended recipient, any
> > > disclosure,
> > > copying, distribution, or action taken in reliance on the
> > > contents of the
> > > information contained in this transmission is strictly
> > > prohibited.  If you
> > > have received this transmission in error, please delete the
> > > message.  Thank
> > > you
> > >
> > >
> > >
> > > 
> -
> > > 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]
> 
> 
> 
> LEGAL NOTICE
> 
> This electronic mail  transmission and any accompanying 
> documents contain 
> information belonging to the sender which may be confidential 
> and legally 
> privileged.  This information is intended only for the use of the 
> individual or entity to whom this electronic mail 
> transmission was sent as 
> indicated above. If you are not the intended recipient, any 
> disclosure, 
> copying, distribution, or action taken in reliance on the 
> contents of the 
> information contained in this transmission is strictly 
> prohibited.  If you 
> have received this transmission in error, please delete the 
> message.  Thank 
> you  
> 
> 
> 
> -
> To unsubscribe, e-mail: [

Authenticator problem tomcat 4.0.4 no cookies

2003-03-26 Thread Mark Thill
version:  tomcat 4.0.4

Short version:
When I turn cookies off in my browser the
authenticator no longer works.  When cookies are on it
works fine.

Long version:
I've tried to make the subject as descriptive as
possible, but the problem I'm having is that when I am
using the form authenticator and I turn off cookies,
it always goes to the page that I have set up to
provide the username and password, and I see the
jsessionid in the url which leads me to believe that
it is trying to encode the url with the sessionid
because it knows cookies aren't on.  Then when I
submit the page I get an "Invalid direct reference to
form login page".  I know this is not correct though. 
The problem is that when it gets into the
authenticator and tries to retrieve the URL that the
user entered the first time before the authenticator
sends it to the login page IT CAN'T because the
sessionid is different the 2nd time through when it
tries to retrieve the old url from the session.  Since
the sessionid is different retrieving the url from
that session is going to return null, and that's when
I get the "Invalid direct reference to form login
page".  When I turn cookies back on in my browswer
everything works fine.  Anyone run into this bug or
this problem?

Any suggestions would be greatly appreciated
-Mark

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
Where are you located, Matt?

At 03:45 PM 3/26/03 -0700, you wrote:
Most clients seem to want to pay b/w 30 and 50, from what I've seen.  When
I've asked for more than that - I don't get any returned e-mails or phone
calls.
In Florida, where I've been hoping to find my next job, it's more like
20-40/hour.  :(
Matt

> -Original Message-
> From: Micael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 3:26 PM
> To: Tomcat Users List
> Subject: RE: [OT] Contract Work Hourly Rates
>
>
> Do you have a ballpark, since I was asked?
>
> At 03:15 PM 3/26/03 -0700, you wrote:
> >In this economy, I usually ask the client how much they're
> willing to spend.
> >Usually they will fess up and then you can decide from
> there.  Telling them
> >how much you (truly) want will usually result in "yeah, right."
> >
> >Matt
> >
> > > -Original Message-
> > > From: Micael [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 2:44 PM
> > > To: Tomcat Users List
> > > Subject: [OT] Contract Work Hourly Rates
> > >
> > >
> > > I have a job offer to do contract work coding websites.  I am
> > > well versed
> > > in most of the areas required, and wonder what is a good
> > > hourly rate to ask
> > > for?  I know Java (certified programmer), Tomcat, Struts,
> > > Ant, blah, blah,
> > > as well as scripting, Red Hat, etc.  Thanks for any assistance.
> > >
> > >
> > > LEGAL NOTICE
> > >
> > > This electronic mail  transmission and any accompanying
> > > documents contain
> > > information belonging to the sender which may be confidential
> > > and legally
> > > privileged.  This information is intended only for the use of the
> > > individual or entity to whom this electronic mail
> > > transmission was sent as
> > > indicated above. If you are not the intended recipient, any
> > > disclosure,
> > > copying, distribution, or action taken in reliance on the
> > > contents of the
> > > information contained in this transmission is strictly
> > > prohibited.  If you
> > > have received this transmission in error, please delete the
> > > message.  Thank you
> > >
> > >
> > >
> > >
> -
> > > 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]
>
>
>
> LEGAL NOTICE
>
> This electronic mail  transmission and any accompanying
> documents contain
> information belonging to the sender which may be confidential
> and legally
> privileged.  This information is intended only for the use of the
> individual or entity to whom this electronic mail
> transmission was sent as
> indicated above. If you are not the intended recipient, any
> disclosure,
> copying, distribution, or action taken in reliance on the
> contents of the
> information contained in this transmission is strictly
> prohibited.  If you
> have received this transmission in error, please delete the
> message.  Thank
> you
>
>
>
> -
> 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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: [OT] Contract Work Hourly Rates

2003-03-26 Thread awc
Do you own a grocery store??

Micael wrote:

> Thanks, anyway, Filip.  You must be poor, you cannot afford the rest of the
> "P", an "h" or the extra "l" in "Phillip".  LOL.  I will work for food
> too.  How much is the issue.  LOL.
>
> At 01:47 PM 3/26/03 -0800, you wrote:
> >will work for food
> >
> >Filip


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



RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
Thanks, Jeff.

At 03:40 PM 3/26/03 -0700, you wrote:
http://www.htmlgoodies.com/letters/221.html

A recent htmlgoodies.com newsletter dealt with this subject, helping
you with the formula since there is no real definitive easy answer that
we could give you.  Follow the link above, I hope it helps.
Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com
>>> [EMAIL PROTECTED] 3/26/03 3:26:27 PM >>>
Do you have a ballpark, since I was asked?
At 03:15 PM 3/26/03 -0700, you wrote:
>In this economy, I usually ask the client how much they're willing to
spend.
>Usually they will fess up and then you can decide from there.  Telling
them
>how much you (truly) want will usually result in "yeah, right."
>
>Matt
>
> > -Original Message-
> > From: Micael [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 2:44 PM
> > To: Tomcat Users List
> > Subject: [OT] Contract Work Hourly Rates
> >
> >
> > I have a job offer to do contract work coding websites.  I am
> > well versed
> > in most of the areas required, and wonder what is a good
> > hourly rate to ask
> > for?  I know Java (certified programmer), Tomcat, Struts,
> > Ant, blah, blah,
> > as well as scripting, Red Hat, etc.  Thanks for any assistance.
> >
> >
> > LEGAL NOTICE
> >
> > This electronic mail  transmission and any accompanying
> > documents contain
> > information belonging to the sender which may be confidential
> > and legally
> > privileged.  This information is intended only for the use of the
> > individual or entity to whom this electronic mail
> > transmission was sent as
> > indicated above. If you are not the intended recipient, any
> > disclosure,
> > copying, distribution, or action taken in reliance on the
> > contents of the
> > information contained in this transmission is strictly
> > prohibited.  If you
> > have received this transmission in error, please delete the
> > message.  Thank you
> >
> >
> >
> >
-
> > 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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents
contain
information belonging to the sender which may be confidential and
legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent
as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of
the
information contained in this transmission is strictly prohibited.  If
you
have received this transmission in error, please delete the message.
Thank
you


-
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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: configuring server.xml with a server with more than 1 IP address

2003-03-26 Thread Tim Funk
The shutdown listerner always listens on localhost. So if you rn 
multiple tomcat instances, you need to use different shutdown ports.

If you want them accessible from the outside (which is a real bad idea), 
use  plug proxy.

-Tim

Chris Gokey wrote:
In server.xml, I'm looking for a way to specify both the host name and
port used for the  
declaration.

Something like:
.
(similiar to how you would configure the HTTP connector)
I'm trying to launch two Tomcat servers both running under the same
ports but binding to different IPs on the same machine..  So, I need to
be able to specify the specific host address for the declaration above.
How can I do this?  I'm using Tomcat 4.03 under Redhat 8.

Thanks,
Chris


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


Re: Servlet help

2003-03-26 Thread Vladimer Shioshvili
Sandra,

if you are planning to do the changes often you are probably better off if 
you set reloadable parameter to true in server.xml file, 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html) 
however, setting it to reloadable means that you should accept that it will 
eat up some of your CPU time as well (not a significant one, but it's 
there).. otherwise, compiling your file, and restarting tomcat should 
suffice...

vlad

At 06:00 PM 3/26/2003, you wrote:
This seems like a silly question:
when I make changes in my servlet what do I have to do to load the new file?
I have tried just saving it. I have tried restarting Tomcat. I have tried
recompiling the file. I have tried recompiling while Tomcat was shutdown and
while Tomcat was running. I have tried restarting the machine. Only
restarting the machine seems to work.
Comments? Suggestions? Ridicule?
Sandra Patricia Hunter
Systems Development and Web Design


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

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


Re: [OT] Contract Work Hourly Rates

2003-03-26 Thread Susan Hoddinott
Why don't you take a statistical approach.  Aim for "sticker shock" and work
your way down until you get someone who begrudgingly pays your exorbitant
rate.  Could also try the other way - raise your rate with every rejection
so they get a sense of urgency.

- Original Message -
From: "Jeff Tulley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 6:40 AM
Subject: RE: [OT] Contract Work Hourly Rates


> http://www.htmlgoodies.com/letters/221.html
>
> A recent htmlgoodies.com newsletter dealt with this subject, helping
> you with the formula since there is no real definitive easy answer that
> we could give you.  Follow the link above, I hope it helps.
>
> Jeff Tulley  ([EMAIL PROTECTED])
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.com
>
> >>> [EMAIL PROTECTED] 3/26/03 3:26:27 PM >>>
> Do you have a ballpark, since I was asked?
>
> At 03:15 PM 3/26/03 -0700, you wrote:
> >In this economy, I usually ask the client how much they're willing to
> spend.
> >Usually they will fess up and then you can decide from there.  Telling
> them
> >how much you (truly) want will usually result in "yeah, right."
> >
> >Matt
> >
> > > -Original Message-
> > > From: Micael [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 2:44 PM
> > > To: Tomcat Users List
> > > Subject: [OT] Contract Work Hourly Rates
> > >
> > >
> > > I have a job offer to do contract work coding websites.  I am
> > > well versed
> > > in most of the areas required, and wonder what is a good
> > > hourly rate to ask
> > > for?  I know Java (certified programmer), Tomcat, Struts,
> > > Ant, blah, blah,
> > > as well as scripting, Red Hat, etc.  Thanks for any assistance.
> > >
> > >
> > > LEGAL NOTICE
> > >
> > > This electronic mail  transmission and any accompanying
> > > documents contain
> > > information belonging to the sender which may be confidential
> > > and legally
> > > privileged.  This information is intended only for the use of the
> > > individual or entity to whom this electronic mail
> > > transmission was sent as
> > > indicated above. If you are not the intended recipient, any
> > > disclosure,
> > > copying, distribution, or action taken in reliance on the
> > > contents of the
> > > information contained in this transmission is strictly
> > > prohibited.  If you
> > > have received this transmission in error, please delete the
> > > message.  Thank you
> > >
> > >
> > >
> > >
> -
> > > 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]
>
>
>
> LEGAL NOTICE
>
> This electronic mail  transmission and any accompanying documents
> contain
> information belonging to the sender which may be confidential and
> legally
> privileged.  This information is intended only for the use of the
> individual or entity to whom this electronic mail transmission was sent
> as
> indicated above. If you are not the intended recipient, any disclosure,
>
> copying, distribution, or action taken in reliance on the contents of
> the
> information contained in this transmission is strictly prohibited.  If
> you
> have received this transmission in error, please delete the message.
> Thank
> you
>
>
>
> -
> 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]
>
>


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



RE: Servlet help

2003-03-26 Thread jsp
Is tomcat being run as a service? If so you have to restart it there and
sometimes I also have to go to the command line c:\tomcat\bin\shutdown
... c:\tomcat\bin\startup for it to take. If your using the newer
versions of tomcat it doesn't seem to work any other way.

-wiley


-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 3:01 PM
To: 'Tomcat Users List'
Subject: Servlet help

This seems like a silly question: 
when I make changes in my servlet what do I have to do to load the new
file?

I have tried just saving it. I have tried restarting Tomcat. I have
tried
recompiling the file. I have tried recompiling while Tomcat was shutdown
and
while Tomcat was running. I have tried restarting the machine. Only
restarting the machine seems to work.
Comments? Suggestions? Ridicule?

Sandra Patricia Hunter
Systems Development and Web Design 
 


-
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]



Startup Exception

2003-03-26 Thread Luis A
Hi, I am running for the first time Tomcat 5, and I am getting the following
exception on startup - the index page opens fine, but I wonder if there is
something wrong:

Thanks,

Luis.


Mar 26, 2003 6:59:02 PM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /openejb_loader-0.9.1 threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet loader threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
31)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:867)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3682)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3927)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
31)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:305)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:825)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:562)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:814)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:428)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1235)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:791)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1227)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:351)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2291)
at org.apache.catalina.startup.Catalina.start(Catalina.java:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)





Atenciosamente,

Luis A Q Araujo

(21) 2422-0168
(21) 9131-4989
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]


Servlet help

2003-03-26 Thread Sandra Patricia Hunter
This seems like a silly question: 
when I make changes in my servlet what do I have to do to load the new file?

I have tried just saving it. I have tried restarting Tomcat. I have tried
recompiling the file. I have tried recompiling while Tomcat was shutdown and
while Tomcat was running. I have tried restarting the machine. Only
restarting the machine seems to work.
Comments? Suggestions? Ridicule?

Sandra Patricia Hunter
Systems Development and Web Design 
 


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



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Thanks.

This caused me to look a bit more closely.  The path was missing the
beginning "/".



-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 5:49 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

oops, 

try 

pathname=""

and set the debug="10" on your standardmanager to see what is going on,

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 2:44 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
>   
> Below is my configuration.  SESSIONS.ser is still written despite this
> configuration.
> 
> 
> 
>   
>className="org.apache.catalina.realm.JDBCRealm" connectionName="dora"
> connectionPassword="dora" connectionURL="jdbc:oracle:oci:@doradb"
> digest="MD5" driverName="oracle.jdbc.OracleDriver" 
> roleNameCol="D_RoleId"
> userCredCol="D_Password" userNameCol="D_Username" 
> userRoleTable="Dora_User"
> userTable="Dora_User"/>
>   
>appBase="webapps"
> unpackWARs="true" autoDeploy="true">
>className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> forwardAll="false" noRoot="false"/>
>   
>className="org.apache.catalina.session.StandardManager" pathname="">
>   
>   
>   
>className="org.apache.catalina.logger.FileLogger" directory="logs"
> prefix="localhost_log." suffix=".txt" timestamp="true"/>
>   
>   
> 
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:27 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> or use the persistence manager
> 
>   debug="0"
>  saveOnRestart="false"
>  maxActiveSessions="-1"
>  minIdleSwap="-1"
>  maxIdleSwap="-1"
>  maxIdleBackup="-1">
>className="org.apache.catalina.session.FileStore"/>
> 
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 1:17 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Can this be done with a listener?
> > 
> > 
> > -Original Message-
> > From: Koes, Derrick 
> > Sent: Wednesday, March 26, 2003 4:14 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > Either or.  I don't wish anything to timeout, yet I want them to be
> > invalidated when the server is restarted (at shutdown, or 
> at startup).
> > 
> > Thanks,
> > Derrick
> > 
> > -Original Message-
> > From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 26, 2003 4:03 PM
> > To: Tomcat Users List
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > what do mean you by "invalidating" on startup.
> > Startup an instance there are no sessions, unless they have 
> > been saved from
> > a previous run.
> > 
> > so are you really asking how to prevent them being saved on 
> shutdown?
> > 
> > Filip
> > 
> > > -Original Message-
> > > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 12:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: invalidate all sessions on tomcat start
> > > 
> > > 
> > > 
> > > Is there a way to invalidate all sessions on tomcat startup?
> > > Can someone provide an example?
> > > 
> > > Thanks,
> > > Derrick
> > > 
> > > 
> > > 
> > > This electronic transmission is strictly confidential to 
> > > Smith & Nephew and
> > > intended solely for the addressee.  It may contain 
> > > information which is
> > > covered by legal, professional or other privilege.  If you 
> > are not the
> > > intended addressee, or someone authorized by the intended 
> > addressee to
> > > receive transmissions on behalf of the addressee, you must 
> > not retain,
> > > disclose in any form, copy or take any action in reliance on this
> > > transmission.  If you have received this transmission in 
> > error, please
> > > notify the sender as soon as possible and destroy this message.
> > > 
> > > 
> > 
> -
> > > 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]
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew an

RE: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
oops, 

try 

pathname=""

and set the debug="10" on your standardmanager to see what is going on,

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 2:44 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
>   
> Below is my configuration.  SESSIONS.ser is still written despite this
> configuration.
> 
> 
> 
>   
>className="org.apache.catalina.realm.JDBCRealm" connectionName="dora"
> connectionPassword="dora" connectionURL="jdbc:oracle:oci:@doradb"
> digest="MD5" driverName="oracle.jdbc.OracleDriver" 
> roleNameCol="D_RoleId"
> userCredCol="D_Password" userNameCol="D_Username" 
> userRoleTable="Dora_User"
> userTable="Dora_User"/>
>   
>appBase="webapps"
> unpackWARs="true" autoDeploy="true">
>className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> forwardAll="false" noRoot="false"/>
>   
>className="org.apache.catalina.session.StandardManager" pathname="">
>   
>   
>   
>className="org.apache.catalina.logger.FileLogger" directory="logs"
> prefix="localhost_log." suffix=".txt" timestamp="true"/>
>   
>   
> 
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:27 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> or use the persistence manager
> 
>   debug="0"
>  saveOnRestart="false"
>  maxActiveSessions="-1"
>  minIdleSwap="-1"
>  maxIdleSwap="-1"
>  maxIdleBackup="-1">
>className="org.apache.catalina.session.FileStore"/>
> 
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 1:17 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Can this be done with a listener?
> > 
> > 
> > -Original Message-
> > From: Koes, Derrick 
> > Sent: Wednesday, March 26, 2003 4:14 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > Either or.  I don't wish anything to timeout, yet I want them to be
> > invalidated when the server is restarted (at shutdown, or 
> at startup).
> > 
> > Thanks,
> > Derrick
> > 
> > -Original Message-
> > From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 26, 2003 4:03 PM
> > To: Tomcat Users List
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > what do mean you by "invalidating" on startup.
> > Startup an instance there are no sessions, unless they have 
> > been saved from
> > a previous run.
> > 
> > so are you really asking how to prevent them being saved on 
> shutdown?
> > 
> > Filip
> > 
> > > -Original Message-
> > > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 12:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: invalidate all sessions on tomcat start
> > > 
> > > 
> > > 
> > > Is there a way to invalidate all sessions on tomcat startup?
> > > Can someone provide an example?
> > > 
> > > Thanks,
> > > Derrick
> > > 
> > > 
> > > 
> > > This electronic transmission is strictly confidential to 
> > > Smith & Nephew and
> > > intended solely for the addressee.  It may contain 
> > > information which is
> > > covered by legal, professional or other privilege.  If you 
> > are not the
> > > intended addressee, or someone authorized by the intended 
> > addressee to
> > > receive transmissions on behalf of the addressee, you must 
> > not retain,
> > > disclose in any form, copy or take any action in reliance on this
> > > transmission.  If you have received this transmission in 
> > error, please
> > > notify the sender as soon as possible and destroy this message.
> > > 
> > > 
> > 
> -
> > > 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]
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the add

RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Raible, Matt
Most clients seem to want to pay b/w 30 and 50, from what I've seen.  When
I've asked for more than that - I don't get any returned e-mails or phone
calls.

In Florida, where I've been hoping to find my next job, it's more like
20-40/hour.  :(

Matt

> -Original Message-
> From: Micael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 3:26 PM
> To: Tomcat Users List
> Subject: RE: [OT] Contract Work Hourly Rates
> 
> 
> Do you have a ballpark, since I was asked?
> 
> At 03:15 PM 3/26/03 -0700, you wrote:
> >In this economy, I usually ask the client how much they're 
> willing to spend.
> >Usually they will fess up and then you can decide from 
> there.  Telling them
> >how much you (truly) want will usually result in "yeah, right."
> >
> >Matt
> >
> > > -Original Message-
> > > From: Micael [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 2:44 PM
> > > To: Tomcat Users List
> > > Subject: [OT] Contract Work Hourly Rates
> > >
> > >
> > > I have a job offer to do contract work coding websites.  I am
> > > well versed
> > > in most of the areas required, and wonder what is a good
> > > hourly rate to ask
> > > for?  I know Java (certified programmer), Tomcat, Struts,
> > > Ant, blah, blah,
> > > as well as scripting, Red Hat, etc.  Thanks for any assistance.
> > >
> > >
> > > LEGAL NOTICE
> > >
> > > This electronic mail  transmission and any accompanying
> > > documents contain
> > > information belonging to the sender which may be confidential
> > > and legally
> > > privileged.  This information is intended only for the use of the
> > > individual or entity to whom this electronic mail
> > > transmission was sent as
> > > indicated above. If you are not the intended recipient, any
> > > disclosure,
> > > copying, distribution, or action taken in reliance on the
> > > contents of the
> > > information contained in this transmission is strictly
> > > prohibited.  If you
> > > have received this transmission in error, please delete the
> > > message.  Thank you
> > >
> > >
> > >
> > > 
> -
> > > 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]
> 
> 
> 
> LEGAL NOTICE
> 
> This electronic mail  transmission and any accompanying 
> documents contain 
> information belonging to the sender which may be confidential 
> and legally 
> privileged.  This information is intended only for the use of the 
> individual or entity to whom this electronic mail 
> transmission was sent as 
> indicated above. If you are not the intended recipient, any 
> disclosure, 
> copying, distribution, or action taken in reliance on the 
> contents of the 
> information contained in this transmission is strictly 
> prohibited.  If you 
> have received this transmission in error, please delete the 
> message.  Thank 
> you  
> 
> 
> 
> -
> 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: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick


Below is my configuration.  SESSIONS.ser is still written despite this
configuration.  








  
  
  
  







-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:27 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

or use the persistence manager


  


> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > 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]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addres

RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Jeff Tulley
http://www.htmlgoodies.com/letters/221.html 

A recent htmlgoodies.com newsletter dealt with this subject, helping
you with the formula since there is no real definitive easy answer that
we could give you.  Follow the link above, I hope it helps.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 3/26/03 3:26:27 PM >>>
Do you have a ballpark, since I was asked?

At 03:15 PM 3/26/03 -0700, you wrote:
>In this economy, I usually ask the client how much they're willing to
spend.
>Usually they will fess up and then you can decide from there.  Telling
them
>how much you (truly) want will usually result in "yeah, right."
>
>Matt
>
> > -Original Message-
> > From: Micael [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 26, 2003 2:44 PM
> > To: Tomcat Users List
> > Subject: [OT] Contract Work Hourly Rates
> >
> >
> > I have a job offer to do contract work coding websites.  I am
> > well versed
> > in most of the areas required, and wonder what is a good
> > hourly rate to ask
> > for?  I know Java (certified programmer), Tomcat, Struts,
> > Ant, blah, blah,
> > as well as scripting, Red Hat, etc.  Thanks for any assistance.
> >
> >
> > LEGAL NOTICE
> >
> > This electronic mail  transmission and any accompanying
> > documents contain
> > information belonging to the sender which may be confidential
> > and legally
> > privileged.  This information is intended only for the use of the
> > individual or entity to whom this electronic mail
> > transmission was sent as
> > indicated above. If you are not the intended recipient, any
> > disclosure,
> > copying, distribution, or action taken in reliance on the
> > contents of the
> > information contained in this transmission is strictly
> > prohibited.  If you
> > have received this transmission in error, please delete the
> > message.  Thank you
> >
> >
> >
> >
-
> > 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] 



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents
contain 
information belonging to the sender which may be confidential and
legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent
as 
indicated above. If you are not the intended recipient, any disclosure,

copying, distribution, or action taken in reliance on the contents of
the 
information contained in this transmission is strictly prohibited.  If
you 
have received this transmission in error, please delete the message. 
Thank 
you  



-
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]



configuring server.xml with a server with more than 1 IP address

2003-03-26 Thread Chris Gokey
In server.xml, I'm looking for a way to specify both the host name and
port used for the  
declaration.

Something like:
.
(similiar to how you would configure the HTTP connector)

I'm trying to launch two Tomcat servers both running under the same
ports but binding to different IPs on the same machine..  So, I need to
be able to specify the specific host address for the declaration above.

How can I do this?  I'm using Tomcat 4.03 under Redhat 8.

Thanks,
Chris

-- 
Christopher D. Gokey, SSAI, NASA/GCMD
18 Martin Road, Shelburne Falls, MA  01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
[EMAIL PROTECTED]
AOL: chrisgokey



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



RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
Do you have a ballpark, since I was asked?

At 03:15 PM 3/26/03 -0700, you wrote:
In this economy, I usually ask the client how much they're willing to spend.
Usually they will fess up and then you can decide from there.  Telling them
how much you (truly) want will usually result in "yeah, right."
Matt

> -Original Message-
> From: Micael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 2:44 PM
> To: Tomcat Users List
> Subject: [OT] Contract Work Hourly Rates
>
>
> I have a job offer to do contract work coding websites.  I am
> well versed
> in most of the areas required, and wonder what is a good
> hourly rate to ask
> for?  I know Java (certified programmer), Tomcat, Struts,
> Ant, blah, blah,
> as well as scripting, Red Hat, etc.  Thanks for any assistance.
>
>
> LEGAL NOTICE
>
> This electronic mail  transmission and any accompanying
> documents contain
> information belonging to the sender which may be confidential
> and legally
> privileged.  This information is intended only for the use of the
> individual or entity to whom this electronic mail
> transmission was sent as
> indicated above. If you are not the intended recipient, any
> disclosure,
> copying, distribution, or action taken in reliance on the
> contents of the
> information contained in this transmission is strictly
> prohibited.  If you
> have received this transmission in error, please delete the
> message.  Thank you
>
>
>
> -
> 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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Raible, Matt
In this economy, I usually ask the client how much they're willing to spend.
Usually they will fess up and then you can decide from there.  Telling them
how much you (truly) want will usually result in "yeah, right."

Matt

> -Original Message-
> From: Micael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 2:44 PM
> To: Tomcat Users List
> Subject: [OT] Contract Work Hourly Rates
> 
> 
> I have a job offer to do contract work coding websites.  I am 
> well versed 
> in most of the areas required, and wonder what is a good 
> hourly rate to ask 
> for?  I know Java (certified programmer), Tomcat, Struts, 
> Ant, blah, blah, 
> as well as scripting, Red Hat, etc.  Thanks for any assistance.
> 
> 
> LEGAL NOTICE
> 
> This electronic mail  transmission and any accompanying 
> documents contain 
> information belonging to the sender which may be confidential 
> and legally 
> privileged.  This information is intended only for the use of the 
> individual or entity to whom this electronic mail 
> transmission was sent as 
> indicated above. If you are not the intended recipient, any 
> disclosure, 
> copying, distribution, or action taken in reliance on the 
> contents of the 
> information contained in this transmission is strictly 
> prohibited.  If you 
> have received this transmission in error, please delete the 
> message.  Thank you 
> 
> 
> 
> -
> 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]



Authentication Best Practices

2003-03-26 Thread John Swapceinski
Here is some information I have put together on what I consider the best
practices for Tomcat Form Based Authentication.  I look forward to your
comments and suggestions.

 

John

 

 

Best Practices for Tomcat v4.1 Form Based Authentication

John Swapceinski

Ordinate Corp.

[EMAIL PROTECTED]

(3/26/03)

 

1 - In the form-login-page and the form-error-page, select something
trivial from the database to ascertain that the database is available.
If the SELECT fails, report to the user that the site is unavailable in
order to prevent the user from wasting time trying to log in and only
getting the message "login failed".

 

2 - In order to detect a user who has bookmarked the form-login-page or
the form-error-page, use each of the following two methods:

A - In the web.xml file, define a customized error page for
400 error codes.  The 400 error page is displayed when someone bookmarks
the login page and tries to log in, which generates the "invalid direct
reference to the login page" error.  

This error page (e.g. 400.jsp) should do the following check:

<% 

String mypage = (new
java.net.URL(request.getRequestURL().toString())).getFile();

final String errMsg;

if (request.getRemoteUser() != null &&
mypage.endsWith("j_security_check")) {

errMsg = "You were already logged in, but tried logging in a second
time.";

} else if (mypage.endsWith("j_security_check")) {

errMsg = "You bookmarked the login page."; 

} else {

errMsg = "Bad request: " + request.getRequestURL().toString();

} 

%>

B - Add this code to the very beginning of the
form-login-page and form-error-page pages:

<%

if (session.isNew()) { 

throw new IllegalArgumentException("You bookmarked the login
page.");

}

if (request.getRemoteUser() != null) {

throw new IllegalArgumentException("You are already logged
in.  Please make sure you have not bookmarked the login page.");

} 

%>

 

3 - In the web.xml file, define a customized error page for 404 error
codes. The 404 error page is displayed when someone tries to log in when
they are already logged in.  (Note - use a recent Tomcat release like
4.1.24, otherwise you'll get a blank screen when trying to set a custom
404 page)

This error page (e.g. 404.jsp) should do the following check:

<% 

String mypage = (new
java.net.URL(request.getRequestURL().toString())).getFile();

final String errMsg;

if (request.getRemoteUser() != null &&
mypage.endsWith("j_security_check")) {

errMsg = "You were already logged in, but tried logging in a second
time.";

} else if (mypage.endsWith("j_security_check")) {

errMsg = "You bookmarked the login page."; 

} else {

errMsg = "Your requested page, " + mypage + ", was not found on our
server.";

} 

%>

 

4 - Add a meta tag refresh to the form-login-page and the
form-error-page to keep the session from timing out and giving the user
an error when they finally do get around to logging in:



 

5 - If you need customized login pages for a webapp, create a new webapp
with the login pages you need, with a single protected html page that
redirects the user to the original (main) webapp.  Make this new webapp
require the same role as your main webapp. You'll need to have "single
sign on" enabled in your server.xml file for this to work (details here:
http://www.ingrid.org/jajakarta/tomcat/tomcat-4.0b5/src/catalina/docs/si
nglesignon.html)

 



Re: web.xml - not in order

2003-03-26 Thread p niemandt
Hi;

You are not guaranteed the order of the elements when using an
enumeration. This has more to do with basic data structures than with
the API. You would need to use a container that has a guaranteed order,
should you so wish.

This has to do with the dynamic nature of enumerations: They need to be
able to expand to store an unspecified amount of data. Should the
requirement enforce ordering on as well, you would loose the speed of
the enumeration.

You can always run through the enumeration, store this in an ArrayList,
and run Arrays.sort() on that, assuming that all the elements are
Comparable. Comparable -> You must be able to call ElementA < ElementB
without getting a cast exception.

Have a look at the Java Collections Framework.


hth,
Paul

On Wed, 2003-03-26 at 21:55, David Thielen wrote:
> Hi;
> 
> When I retrieve the / pairs from web.xml via:
> Enumeration en = pageContext.getServletContext().getInitParameterNames();
> 
> It does not return them in the order they appear in web.xml. Is random order just 
> part of the API definition?
> 
> thanks - dave
-- 
p niemandt <[EMAIL PROTECTED]>


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



RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
Thanks, anyway, Filip.  You must be poor, you cannot afford the rest of the 
"P", an "h" or the extra "l" in "Phillip".  LOL.  I will work for food 
too.  How much is the issue.  LOL.

At 01:47 PM 3/26/03 -0800, you wrote:
will work for food

Filip

> -Original Message-
> From: Micael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:44 PM
> To: Tomcat Users List
> Subject: [OT] Contract Work Hourly Rates
>
>
> I have a job offer to do contract work coding websites.  I am
> well versed
> in most of the areas required, and wonder what is a good
> hourly rate to ask
> for?  I know Java (certified programmer), Tomcat, Struts,
> Ant, blah, blah,
> as well as scripting, Red Hat, etc.  Thanks for any assistance.
>
>
> LEGAL NOTICE
>
> This electronic mail  transmission and any accompanying
> documents contain
> information belonging to the sender which may be confidential
> and legally
> privileged.  This information is intended only for the use of the
> individual or entity to whom this electronic mail
> transmission was sent as
> indicated above. If you are not the intended recipient, any
> disclosure,
> copying, distribution, or action taken in reliance on the
> contents of the
> information contained in this transmission is strictly
> prohibited.  If you
> have received this transmission in error, please delete the
> message.  Thank you
>
>
>
> -
> 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]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: [OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
I live in Washington (state) and the coding is being done for a firm in 
California.

At 04:46 PM 3/26/03 -0500, you wrote:


Micael wrote:
I have a job offer to do contract work coding websites.  I am well versed 
in most of the areas required, and wonder what is a good hourly rate to 
ask for?  I know Java (certified programmer), Tomcat, Struts, Ant, blah, 
blah, as well as scripting, Red Hat, etc.  Thanks for any assistance.
What country/city do you live in?

Erik

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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


web.xml - not in order

2003-03-26 Thread David Thielen
Hi;

When I retrieve the / pairs from web.xml via:
Enumeration en = pageContext.getServletContext().getInitParameterNames();

It does not return them in the order they appear in web.xml. Is random order just part 
of the API definition?

thanks - dave

RE: [OT] Contract Work Hourly Rates

2003-03-26 Thread Filip Hanik
will work for food

Filip

> -Original Message-
> From: Micael [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:44 PM
> To: Tomcat Users List
> Subject: [OT] Contract Work Hourly Rates
> 
> 
> I have a job offer to do contract work coding websites.  I am 
> well versed 
> in most of the areas required, and wonder what is a good 
> hourly rate to ask 
> for?  I know Java (certified programmer), Tomcat, Struts, 
> Ant, blah, blah, 
> as well as scripting, Red Hat, etc.  Thanks for any assistance.
> 
> 
> LEGAL NOTICE
> 
> This electronic mail  transmission and any accompanying 
> documents contain 
> information belonging to the sender which may be confidential 
> and legally 
> privileged.  This information is intended only for the use of the 
> individual or entity to whom this electronic mail 
> transmission was sent as 
> indicated above. If you are not the intended recipient, any 
> disclosure, 
> copying, distribution, or action taken in reliance on the 
> contents of the 
> information contained in this transmission is strictly 
> prohibited.  If you 
> have received this transmission in error, please delete the 
> message.  Thank you 
> 
> 
> 
> -
> 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: [OT] Contract Work Hourly Rates

2003-03-26 Thread Erik Price


Micael wrote:
I have a job offer to do contract work coding websites.  I am well 
versed in most of the areas required, and wonder what is a good hourly 
rate to ask for?  I know Java (certified programmer), Tomcat, Struts, 
Ant, blah, blah, as well as scripting, Red Hat, etc.  Thanks for any 
assistance.
What country/city do you live in?

Erik

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


[OT] Contract Work Hourly Rates

2003-03-26 Thread Micael
I have a job offer to do contract work coding websites.  I am well versed 
in most of the areas required, and wonder what is a good hourly rate to ask 
for?  I know Java (certified programmer), Tomcat, Struts, Ant, blah, blah, 
as well as scripting, Red Hat, etc.  Thanks for any assistance.

LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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


RE: request parameter question ...

2003-03-26 Thread Ron Day
Don't need to do this. You can use a requestDispatcher in servlet to perform
a forward (BTW: that's ultimately what a jsp relies on anyway !!)

Ron

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 3:36 PM
To: Tomcat Users List
Subject: RE: request parameter question ...


then I would suggest to make your servlet into a jsp page, and that way you
can use the jsp:forward to pass parameters

Filip

> -Original Message-
> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:02 AM
> To: Tomcat Users List
> Subject: Re: request parameter question ...
>
>
> I guess if i use setAttribute ... i have to use getAttribute
> ... thats
> the reason i get the blank string .. coz i was using getParameter
>
> my problem is that the jsp uses getParameter ... it would have been
> good if i could have used the same method regardless as how the
> parameter was set.
>
> On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:
>
> > that is what request.setAttribute is there for.
> >
> > you can also look at JSP forward, that allows you to set
> parameters,
> > not sure how this translates to a servlet
> >
> > http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html
> >
> >
> > filip
> >
> >> -Original Message-
> >> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, March 26, 2003 12:33 AM
> >> To: Tomcat List
> >> Subject: request parameter question ...
> >>
> >>
> >> Hi ,
> >>
> >> In my servlet I have the following code:
> >>
> >> String str = request.getParameter("name");
> >>
> >> if(str.equals("xyz") == true)
> >> {
> >>str = "ChangedName";
> >>request.setParameter("name", str);   //
> >> <- how
> >> do i do this ??? There is no method as request.setParameter()
> >> }
> >>
> >> try
> >> {
> >>String path = "/SomeJSP.jsp"
> >>
> >> getServletConfig().getServletContext().getRequestDispatcher(pa
> >> th).forwar
> >> d(request, response);
> >> }
> >> catch(Exception ex)
> >> {
> >>ex.printStackTrace();
> >> }
> >>
> >> one way to do it would be to append the parameter and its
> >> changed value
> >> to the path:
> >> String path = "/SomeJSP.jsp?name=str";
> >>
> >> But is there some method like setParameter to do what I
> want to do ?
> >>
> >> Thanks.
> >>
> >>
> >>
> -
> >> 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]
> >
>
>
> -
> 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]


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



Re: request parameter question ...

2003-03-26 Thread Erik Price


Mufaddal Khumri wrote:
I guess if i use setAttribute ... i have to use getAttribute ... thats 
the reason i get the blank string .. coz i was using getParameter

my problem is that the jsp uses getParameter ... it would have been good 
if i could have used the same method regardless as how the parameter was 
set.
There is a difference between the two methods, if you examine closely 
(at first they seem to be the same).  The [newer] *Attribute methods 
return Object whereas the [older] *Parameter methods return String.  You 
can see why the *Attribute methods are more flexible.

Erik

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


RE: request parameter question ...

2003-03-26 Thread Ron Day
Attributes and Parameters are different. Parameters only arrive as part
of a querystring or in a form post. Attributes are more general, and can be
set by the programmer. That said, they are set and read using different
methods. several responses to your post suggested using xxx?param=yy or
using a forward. Both these will set a parameter that you can read with
getParameter.

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 3:02 AM
To: Tomcat Users List
Subject: Re: request parameter question ...


I guess if i use setAttribute ... i have to use getAttribute ... thats
the reason i get the blank string .. coz i was using getParameter

my problem is that the jsp uses getParameter ... it would have been
good if i could have used the same method regardless as how the
parameter was set.

On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:

> that is what request.setAttribute is there for.
>
> you can also look at JSP forward, that allows you to set parameters,
> not sure how this translates to a servlet
>
> http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html
>
>
> filip
>
>> -Original Message-
>> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 26, 2003 12:33 AM
>> To: Tomcat List
>> Subject: request parameter question ...
>>
>>
>> Hi ,
>>
>> In my servlet I have the following code:
>>
>> String str = request.getParameter("name");
>>
>> if(str.equals("xyz") == true)
>> {
>>  str = "ChangedName";
>>  request.setParameter("name", str);   //
>> <- how
>> do i do this ??? There is no method as request.setParameter()
>> }
>>
>> try
>> {
>>  String path = "/SomeJSP.jsp"
>>
>> getServletConfig().getServletContext().getRequestDispatcher(pa
>> th).forwar
>> d(request, response);
>> }
>> catch(Exception ex)
>> {
>>  ex.printStackTrace();
>> }
>>
>> one way to do it would be to append the parameter and its
>> changed value
>> to the path:
>> String path = "/SomeJSP.jsp?name=str";
>>
>> But is there some method like setParameter to do what I want to do ?
>>
>> Thanks.
>>
>>
>> -
>> 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]
>


-
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: request parameter question ...

2003-03-26 Thread Tam, Michael

getParameter is used to obtain data being pass by post or get method

set/getAttribute is used to access the data in the request object.

They are different.  You need to understand which one you do need.

Michael

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:02 AM
To: Tomcat Users List
Subject: Re: request parameter question ...


I guess if i use setAttribute ... i have to use getAttribute ... thats 
the reason i get the blank string .. coz i was using getParameter

my problem is that the jsp uses getParameter ... it would have been 
good if i could have used the same method regardless as how the 
parameter was set.

On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:

> that is what request.setAttribute is there for.
>
> you can also look at JSP forward, that allows you to set parameters, 
> not sure how this translates to a servlet
>
> http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html
>
>
> filip
>
>> -Original Message-
>> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 26, 2003 12:33 AM
>> To: Tomcat List
>> Subject: request parameter question ...
>>
>>
>> Hi ,
>>
>> In my servlet I have the following code:
>>
>> String str = request.getParameter("name");
>>
>> if(str.equals("xyz") == true)
>> {
>>  str = "ChangedName";
>>  request.setParameter("name", str);   //
>> <- how
>> do i do this ??? There is no method as request.setParameter()
>> }
>>
>> try
>> {
>>  String path = "/SomeJSP.jsp"
>>  
>> getServletConfig().getServletContext().getRequestDispatcher(pa
>> th).forwar
>> d(request, response);
>> }
>> catch(Exception ex)
>> {
>>  ex.printStackTrace();
>> }
>>
>> one way to do it would be to append the parameter and its
>> changed value
>> to the path:
>> String path = "/SomeJSP.jsp?name=str";
>>
>> But is there some method like setParameter to do what I want to do ?
>>
>> Thanks.
>>
>>
>> -
>> 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]
>


-
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: request parameter question ...

2003-03-26 Thread Filip Hanik
then I would suggest to make your servlet into a jsp page, and that way you can use 
the jsp:forward to pass parameters

Filip

> -Original Message-
> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:02 AM
> To: Tomcat Users List
> Subject: Re: request parameter question ...
> 
> 
> I guess if i use setAttribute ... i have to use getAttribute 
> ... thats 
> the reason i get the blank string .. coz i was using getParameter
> 
> my problem is that the jsp uses getParameter ... it would have been 
> good if i could have used the same method regardless as how the 
> parameter was set.
> 
> On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:
> 
> > that is what request.setAttribute is there for.
> >
> > you can also look at JSP forward, that allows you to set 
> parameters, 
> > not sure how this translates to a servlet
> >
> > http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html
> >
> >
> > filip
> >
> >> -Original Message-
> >> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, March 26, 2003 12:33 AM
> >> To: Tomcat List
> >> Subject: request parameter question ...
> >>
> >>
> >> Hi ,
> >>
> >> In my servlet I have the following code:
> >>
> >> String str = request.getParameter("name");
> >>
> >> if(str.equals("xyz") == true)
> >> {
> >>str = "ChangedName";
> >>request.setParameter("name", str);   //
> >> <- how
> >> do i do this ??? There is no method as request.setParameter()
> >> }
> >>
> >> try
> >> {
> >>String path = "/SomeJSP.jsp"
> >>
> >> getServletConfig().getServletContext().getRequestDispatcher(pa
> >> th).forwar
> >> d(request, response);
> >> }
> >> catch(Exception ex)
> >> {
> >>ex.printStackTrace();
> >> }
> >>
> >> one way to do it would be to append the parameter and its
> >> changed value
> >> to the path:
> >> String path = "/SomeJSP.jsp?name=str";
> >>
> >> But is there some method like setParameter to do what I 
> want to do ?
> >>
> >> Thanks.
> >>
> >>
> >> 
> -
> >> 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]
> >
> 
> 
> -
> 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: request parameter question ...

2003-03-26 Thread Mufaddal Khumri
I guess if i use setAttribute ... i have to use getAttribute ... thats 
the reason i get the blank string .. coz i was using getParameter

my problem is that the jsp uses getParameter ... it would have been 
good if i could have used the same method regardless as how the 
parameter was set.

On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:

that is what request.setAttribute is there for.

you can also look at JSP forward, that allows you to set parameters, 
not sure how this translates to a servlet

http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html

filip

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 12:33 AM
To: Tomcat List
Subject: request parameter question ...
Hi ,

In my servlet I have the following code:

String str = request.getParameter("name");

if(str.equals("xyz") == true)
{
str = "ChangedName";
request.setParameter("name", str);   //
<- how
do i do this ??? There is no method as request.setParameter()
}
try
{
String path = "/SomeJSP.jsp"

getServletConfig().getServletContext().getRequestDispatcher(pa
th).forwar
d(request, response);
}
catch(Exception ex)
{
ex.printStackTrace();
}
one way to do it would be to append the parameter and its
changed value
to the path:
String path = "/SomeJSP.jsp?name=str";
But is there some method like setParameter to do what I want to do ?

Thanks.

-
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]


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


Re: request parameter question ...

2003-03-26 Thread Erik Price


Mufaddal Khumri wrote:
Hi ,

I tried using

request.setAttribute("name", "newName");

try
{
String path = "/SomeJSP.jsp"
 
getServletConfig().getServletContext().getRequestDispatcher(path).forwar 
d(request, response);
}
catch(Exception ex)
{
ex.printStackTrace();
}

When i do a request.getParameter in my JSP page .. it returns a blank  
sting "" . This is the reason I thought maybe request.setAttribute is  
not the method I should be using. Do you have any clues as to why this  
might be happening ?
What happens if you try request.getAttribute() ?

Erik

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


Re: request parameter question ...

2003-03-26 Thread Mufaddal Khumri
Hi ,

I tried using

request.setAttribute("name", "newName");

try
{
	String path = "/SomeJSP.jsp"
	 
getServletConfig().getServletContext().getRequestDispatcher(path).forwar 
d(request, response);
}
catch(Exception ex)
{
	ex.printStackTrace();
}

When i do a request.getParameter in my JSP page .. it returns a blank  
sting "" . This is the reason I thought maybe request.setAttribute is  
not the method I should be using. Do you have any clues as to why this  
might be happening ?

Thanks

On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:

that is what request.setAttribute is there for.

you can also look at JSP forward, that allows you to set parameters,  
not sure how this translates to a servlet

http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html

filip

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 12:33 AM
To: Tomcat List
Subject: request parameter question ...
Hi ,

In my servlet I have the following code:

String str = request.getParameter("name");

if(str.equals("xyz") == true)
{
str = "ChangedName";
request.setParameter("name", str);   //
<- how
do i do this ??? There is no method as request.setParameter()
}
try
{
String path = "/SomeJSP.jsp"

getServletConfig().getServletContext().getRequestDispatcher(pa
th).forwar
d(request, response);
}
catch(Exception ex)
{
ex.printStackTrace();
}
one way to do it would be to append the parameter and its
changed value
to the path:
String path = "/SomeJSP.jsp?name=str";
But is there some method like setParameter to do what I want to do ?

Thanks.

-
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]


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


RE: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
or use the persistence manager


  


> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > 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]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
oops, sent the wrong link to you :)

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > 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]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
still not sure what you are trying to achieve and why.

if you don't want sessions to be saved to disk on shutdown, just simply add the 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > 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]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]



Tomcat 4.1 resouces & classpaths

2003-03-26 Thread Pat McGroin
Hello.

I am trying to reference a few JAR files and a property file from an out-of-process 
Tomcat application.
The Tomcat 4.1 documentation says that unpacked classes and resources will be loaded 
out of the WEB-INF/classes directory and packed resources are loaded out of 
WEB-INF/lib of your web applcation.
See the documentation here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

I put my property file in WEB-INF/classes of my application but it is never loaded.  
This is the code I'm using to try to find it:

InputStream is = getClass().getResourceAsStream("/" + fileName);
theProperties.load(is);

Am I misunderstanding how resources are found in Tomcat 4.1?

Thanks in advance for any help!


___
GO.com Mail
Get Your Free, Private E-mail at http://mail.go.com



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



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Can this be done with a listener?


-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 4:14 PM
To: 'Tomcat Users List'
Subject: RE: invalidate all sessions on tomcat start


Either or.  I don't wish anything to timeout, yet I want them to be
invalidated when the server is restarted (at shutdown, or at startup).

Thanks,
Derrick

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:03 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

what do mean you by "invalidating" on startup.
Startup an instance there are no sessions, unless they have been saved from
a previous run.

so are you really asking how to prevent them being saved on shutdown?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: invalidate all sessions on tomcat start
> 
> 
> 
> Is there a way to invalidate all sessions on tomcat startup?
> Can someone provide an example?
> 
> Thanks,
> Derrick
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



need help with file security

2003-03-26 Thread rajeev shrestha
hi.

i am a student and am using tomcat 4.1.18. i have a question regarding file 
security. i want to protect files or sites fomr an unauthorized user. when 
ever a person clicks on a link or a file in the root directory it sud ask 
for a user and password. is it possible with tomcat? i am not sure about 
this. please let me know as soon as possible since it is creating problem in 
completeing my project.

thank you. kushan



_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Either or.  I don't wish anything to timeout, yet I want them to be
invalidated when the server is restarted (at shutdown, or at startup).

Thanks,
Derrick

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:03 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

what do mean you by "invalidating" on startup.
Startup an instance there are no sessions, unless they have been saved from
a previous run.

so are you really asking how to prevent them being saved on shutdown?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: invalidate all sessions on tomcat start
> 
> 
> 
> Is there a way to invalidate all sessions on tomcat startup?
> Can someone provide an example?
> 
> Thanks,
> Derrick
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



Re: request parameter question ...

2003-03-26 Thread Erik Price


Mufaddal Khumri wrote:

if(str.equals("xyz") == true)
{
str = "ChangedName";
request.setParameter("name", str);   // <- 
how  do i do this ??? There is no method as request.setParameter()
}

[...]

one way to do it would be to append the parameter and its changed value  
to the path:
String path = "/SomeJSP.jsp?name=str";

But is there some method like setParameter to do what I want to do ?
You are looking for ServletRequest.setAttribute():

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html#setAttribute(java.lang.String, 
java.lang.Object)

Erik

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


RE: request parameter question ...

2003-03-26 Thread Filip Hanik
that is what request.setAttribute is there for.

you can also look at JSP forward, that allows you to set parameters, not sure how this 
translates to a servlet

http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html


filip

> -Original Message-
> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:33 AM
> To: Tomcat List
> Subject: request parameter question ...
> 
> 
> Hi ,
> 
> In my servlet I have the following code:
> 
> String str = request.getParameter("name");
> 
> if(str.equals("xyz") == true)
> {
>   str = "ChangedName";
>   request.setParameter("name", str);   // 
> <- how  
> do i do this ??? There is no method as request.setParameter()
> }
> 
> try
> {
>   String path = "/SomeJSP.jsp"
>
> getServletConfig().getServletContext().getRequestDispatcher(pa
> th).forwar 
> d(request, response);
> }
> catch(Exception ex)
> {
>   ex.printStackTrace();
> }
> 
> one way to do it would be to append the parameter and its 
> changed value  
> to the path:
> String path = "/SomeJSP.jsp?name=str";
> 
> But is there some method like setParameter to do what I want to do ?
> 
> Thanks.
> 
> 
> -
> 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]



request parameter question ...

2003-03-26 Thread Mufaddal Khumri
Hi ,

In my servlet I have the following code:

String str = request.getParameter("name");

if(str.equals("xyz") == true)
{
	str = "ChangedName";
	request.setParameter("name", str);   // <- how  
do i do this ??? There is no method as request.setParameter()
}

try
{
	String path = "/SomeJSP.jsp"
	 
getServletConfig().getServletContext().getRequestDispatcher(path).forwar 
d(request, response);
}
catch(Exception ex)
{
	ex.printStackTrace();
}

one way to do it would be to append the parameter and its changed value  
to the path:
String path = "/SomeJSP.jsp?name=str";

But is there some method like setParameter to do what I want to do ?

Thanks.

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


RE: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
what do mean you by "invalidating" on startup.
Startup an instance there are no sessions, unless they have been saved from a previous 
run.

so are you really asking how to prevent them being saved on shutdown?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: invalidate all sessions on tomcat start
> 
> 
> 
> Is there a way to invalidate all sessions on tomcat startup?
> Can someone provide an example?
> 
> Thanks,
> Derrick
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> 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: webapp

2003-03-26 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
I had a similar issue when I built mod_webapp for HP-UX

what I did was the following in the Makefile

Basically I removed the $(MFLG) parameter.  As far as I could tell, it
picked the value for this variable from the apache/bin/apxs file variable my
$CFG_LDFLAGS_SHLIB.

Change

template: 
@ { $(ECHO) "" ; $(MECHO) "Entering directory \"$(MDIR)\"" ; cd $(MDIR) ;
$(MECHO) "Invoking \"$(MAKE) $(MFLG) $(MTGT)\"" ; $(MAKE) $(MFLG) $(MTGT);
RET=$$? ; $(MECHO) "Exiting directory \"$(MDIR)\"" ; cd $(SRCDIR) ; if test
"$${RET}" != "0" ; then exit $${RET} ; fi ; } 

to 

template: 
@ { $(ECHO) "" ; $(MECHO) "Entering directory \"$(MDIR)\"" ; cd $(MDIR) ;
$(MECHO) "Invoking \"$(MAKE) $(MTGT)\"" ; $(MAKE) $(MTGT); RET=$$? ;
$(MECHO) "Exiting directory \"$(MDIR)\"" ; cd $(SRCDIR) ; if test "$${RET}"
!= "0" ; then exit $${RET} ; fi ; } 




-Original Message-
From: Allan Campos de Moraes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 12:45 PM
To: 'Tomcat Users List'
Subject: webapp



Hi All !

I´m trying to generate the mod_webapp.so file but after all the steps when I
try to run "make" I receive the message below... some Ideas ? I had no error
on the steps before make...

Help !

___
/home/amoraes/jakarta/jakarta-tomcat-connectors-4.1.18-src/webapp> make

make[1]: Entering directory
"/export/home/amoraes/jakarta/jakarta-tomcat-connect
ors-4.1.18-src/webapp/apr-0.9.1"
Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
 [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][
-t ]
 [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro
+=value".
.. ]
make: Fatal error: Unknown option `-C'
*** Error code 1
make: Fatal error: Command failed for target `subdir'
Current working directory
/export/home/amoraes/jakarta/jakarta-tomcat-connectors
-4.1.18-src/webapp
*** Error code 1
make: Fatal error: Command failed for target `apr-build'
/home/amoraes/jakarta/jakarta-tomcat-connectors-4.1.18-src/webapp>



Thanks !

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003
 
  
Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas
e/ou de caráter confidencial, não podendo ser retransmitida sem autorização
do remetente. Se você não é o destinatário ou pessoa autorizada a recebê-la,
informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos.
Portanto, se você recebeu esta mensagem por engano, por favor, nos informe
respondendo imediatamente a este e-mail e em seguida apague-a.



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



invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Is there a way to invalidate all sessions on tomcat startup?
Can someone provide an example?

Thanks,
Derrick



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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



need help with file security

2003-03-26 Thread Kushan Maskey
hi.

i am a student and am using tomcat 4.1.18. i have a question regarding file
security. i want to protect files or sites fomr an unauthorized user. when ever
a person clicks on a link or a file in the root directory it sud ask for a user
and password. is it possible with tomcat? i am not sure about this. please let
me know as soon as possible since it is creating problem in completeing my
project. 

thank you. kushan

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



RE: Good documentation?

2003-03-26 Thread Reynir Hübner

Yes, I have very similar experience, hard to find good docs on what to do. 
Last time I configured IIS with mod_jk2 I wrote few lines on the subject which 
describe the most simple solution I could find to get that kind of setup running. I 
don't think it uses all the benefits of JK2 but it gets the thing running, and that's 
what I needed. 

You can check it out at http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html

[EMAIL PROTECTED] posted more detailed configuration (making use of lb and more) on 
the list I think around 15. of march, that you might want to check out. 

Hope it helps

-reynir.net


> -Original Message-
> From: Ryan Daly [mailto:[EMAIL PROTECTED] 
> Sent: 26. mars 2003 20:23
> To: [EMAIL PROTECTED]
> Subject: Good documentation?
> 
> 
> Is there any good documentation for deploying JK2 out there anywhere?
> 
> The documents I reviewed weren't that detailed, and I find 
> that things the doc says to put in jk2.properties actually 
> should live in workers2.properties.
> 
> Any one with similar experiences?
> 
> 
> 
> -
> 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: Tomcat Configuration - mod_jk2

2003-03-26 Thread Ryan Daly
Keep in mind that what the docs say to put in jk2.properties actually
needs to go in /conf/workers2.properties.

I discovered this last night after a few hours of trying various things
in jk2.properties.

--


> Hello.
>
> I'm trying to get the mod_jk2 connector to work on apache 2.0.44 with
> Tomcat 4.1.18.
>
> The server.xml is correctly configured and accessing the 80 of the
> /exemples/ directory i get this error on apache error.log
>
> [Wed Mar 26 11:00:09 2003] [error] channelUn.connect() connect failed
> 111 Connection refused
> [Wed Mar 26 11:00:09 2003] [error] ajp13.connect() failed
> ajp13:/usr/local/tomcat/work/jk2.socket
> [Wed Mar 26 11:00:09 2003] [error] ajp13.service() failed to connect
> endpoint errno=111 Connection refused
> [Wed Mar 26 11:00:09 2003] [error] ajp13.service() Error  forwarding
> ajp13:/usr/local/tomcat/work/jk2.socket 1 1
> [Wed Mar 26 11:00:09 2003] [error] mod_jk.handler() Error connecting to
>  tomcat 12
>
> Where can i find some more information about this error ?
>
> Thanks.
> VD
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]


--
Ryan Daly
CTCnet ISP
100 CTC Drive
Johnstown, PA US 15904-1935



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



Good documentation?

2003-03-26 Thread Ryan Daly
Is there any good documentation for deploying JK2 out there anywhere?

The documents I reviewed weren't that detailed, and I find that things
the doc says to put in jk2.properties actually should live in
workers2.properties.

Any one with similar experiences?



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



RE: Admin is incomplete

2003-03-26 Thread Reynir Hübner
Hi, 
There are two things I would like to point out. 

1. You don't really need the admin app ..so just read the manual on how to edit 
server.xml and web.xml.
2. It would be more efficient to post a bug in the bugzilla, than shout at the 
tomcat-user list. 

The admin application is really a new thing in tomcat, so I don't think everyone 
espects it to be fully working. 
Maybe it's enough for you to have the HTML-Manager application, read all about it at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/html-manager-howto.html   

There you can deploy, start, stop and reload your applications.

Hope it helps
-reynir


> -Original Message-
> From: Herbert G. Fischer [mailto:[EMAIL PROTECTED] 
> Sent: 26. mars 2003 19:53
> To: Tomcat Users List
> Subject: Re: Admin is incomplete
> 
> 
> THE PROBLEM IS BAD THAN I THOUGHT!!!
> 
> Sorry for the caps, but I'm very angry!!
> 
> Admin only works correctly on MS Internet Explorer...
> 
> How a multiplatform tecnology can be made this way
> 
> Damn!!!
> 
> 
> Herbert G. Fischer wrote:
> > Hi again,
> > 
> > I'm getting very angry with Tomcat 4.1.24...
> > It's half made... There's a lot of classes missing!!!
> > 
> > Another one...
> > 
> > 
> ==
> > 
> > HTTP Status 400 - Invalid path /logger/AddLogger was requested
> > 
> > type Status report
> > 
> > message Invalid path /logger/AddLogger was requested
> > 
> > description The request sent by the client was 
> syntactically incorrect
> > (Invalid path /logger/AddLogger was requested).
> > Apache Tomcat/4.1.24-LE-jdk14
> > 
> > 
> ==
> > =
> > 
> > 
> > 
> > 
> -
> > 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]
> 
> 

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



Re: RES: setting up alternate ways of accessing the same webapp

2003-03-26 Thread Richard Anderson
I've been trying to do this in mod_jk2 with apache 2 and have had no
luck. Can two virtual hosts connect to the same context?

Can the following vhosts both map to "webapps/vif"?

http://(A)/vif-one-webapp
http://(B)/vif-two-webapp


--Rick

On Wed, 2003-03-26 at 14:32, Tiago Ferraz Machado wrote:
> Hello,
> 
> If I understood your question, I think if you change the name on the virtual host at 
> apache configuration, it should solve your problem:
> 
> 
>   
> 
> 
> 
>   
>  
> So you can type at the browser:
> 
> http://(A)/vif-one-webapp
> or 
> http://(B)/vif-two-webapp
> 
> (Of course, (A) and (B) are names that points to the IP's vif-one and vif-two)
> 
> []'s
> 
> Tiago.
> 
> -Mensagem original-
> De: klute [mailto:[EMAIL PROTECTED]
> Enviada em: quarta-feira, 26 de março de 2003 15:16
> Para: [EMAIL PROTECTED]
> Assunto: setting up alternate ways of accessing the same webapp
> 
> 
> hi All,
> 
> it's hard to explain my question but i'll do my best.
> please feel free to ask for clarifications.
> 
> i have a tomcat/apache 1.3.2.7/mod_jk setup. all of
> the servers are on the same host (say host A). there
> are 2 vifs (virtual ip's) set up on this host and so i
> have something like this:
> 
> 
> 
> 
>  path="/vif-one-webapp" >
> 
> 
> 
> 
>  path="/vif-two-webapp" >
> 
> 
> 
> 
> 
> In apache, each of the vifs is a vhost. this config
> works well. 
> 
> i am able to call the first webapp 'vif-one-webapp' by
> visiting http://vif-one/vif-one-webapp. however, i'd
> like to be able to also reference this webapp by using
> the actual hostname (A) on the url instead of the
> virtual ip/host. any idea how i can do that? thanks a
> lot for your help!! 
> 
> james
> 
> __
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
> 
> -
> 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]
> 
> 




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



Re: url-pattern problem? Deployed servlet works in Tomcat 4.0.4 but fails in Tomcat 4.1.18

2003-03-26 Thread Randal E. Curnutt
I tried changing the URL Pattern as suggested below but that didn't fix 
the problem.  With regards to my code, I have a simple form in my JSP 
which uses the "GET" method to send some form field values to my 
servlet.  I'll paste the code below.



UserId:    
Password:  



When I run this under Tomcat 4.1.18 there is an extra "/" inserted 
between the action and the start of the query string.  I don't have 
this problem when running the exact same code in NetBeans using the 
Internal Tomcat version 4.0.4.  The incorrect URL which is generated 
under Tomcat 4.1.18 is:  
http://localhost:8080/SAWSServlet/action=logon&userId=test&password=test
Since the exact same code works in one version but fails in another 
that makes me suspect that the problem is a configuration issue.
Any clue what could be making the URL different between the two 
versions of Tomcat?
Thanks,
Randy

Quoting "Craig R. McClanahan" <[EMAIL PROTECTED]>:

...
> > It appears the problem might be related to the url-pattern.
> > In my web.xml file I have the following:
> >   
> > SAWSServlet
> > /SAWSServlet
> >   
> >
> > Running Tomcat 4.0.4 from within netbeans the URL which it
> successfully posts to after the logon
> > screen looks as follows: 
> http://localhost:8081/SAWSServlet?
action=logon&UserId=test&Password=test
> >
> > Under Tomcat 4.1.18 the URL which it tries to post to after logon
> has an extra "/" after the servlet name and
> > before the query string parameters: 
> http://localhost:8080/SAWSServlet/?
action=logon&UserId=test&Password=test
> >
> > Can anyone explain why I'm getting the extra "/" after the sevlet
> name?I'm wondering if there is a setting in the server.xml or
> web.xml for the whole Tomcat install that is different in 4.1.18 than
> the Netbeans Internal version of Tomcat 4.0.4.
> > TIA for any help!
> 
> Without seeing the code in your JSP page that generates the URL you
> are
> posting to, there is no way to know what's really going on.  However,
> a
> workaround that will make Tomcat forward the "extra slash" URL to
> your
> servlet anyway would be to change the URL pattern to
> "/SAWSServlet/*"
> instead.
> 
> > Randy
> >
> 
> Craig
> 
> -
> 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: Admin is incomplete

2003-03-26 Thread Raible, Matt
Just so 4.1.24 doesn't get a bad rap - I'm having awesome success with it
over 4.1.18.  I'm not using the LE version, but I am running it on JDK
1.4.1.  I used to get OutOfMemory errors all the time with 4.1.18, but
haven't had any since the upgrade.

The admin app doesn't work (details at http://tinyurl.com/87q7), but I never
use it, so I don't mind at all. 

Matt

> -Original Message-
> From: Richard Dunn [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: Tomcat Users List
> Subject: Re: Admin is incomplete
> 
> 
> On Wednesday 26 March 2003 12:50, Herbert G. Fischer wrote:
> > Hi again,
> >
> > I'm getting very angry with Tomcat 4.1.24...
> > It's half made... There's a lot of classes missing!!!
> >
> 
> I have not used the LE edition of Tomcat, but is it possible 
> the problems you 
> are having is because the Light Edition does not include the 
> classes you are 
> trying to use?
> 
> -
> 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: Admin is incomplete

2003-03-26 Thread Herbert G. Fischer
Yes, I'm using LE version, and as you know,
Tomcat LE just don't include classes that already commes
with JDK 1.4, and YES, I'm using JDK 1.4.
As I said, On IE, the admin works well... the problem
is not missing classes... is the fucking Microsoft that
even Tomcat developers insist to use. Maybe they need
some W3C/DOM classes to learn the bestest web standards
for web development. Just FYI, its possible to do sites
compatible with IE and Mozilla, with a little effort.
The first thing to help is NOT USE I.E. The second is
learn W3C/DOM.
p niemandt wrote:
No use in getting angry ;-) Computers don't feel, well, yet ...

Anyways: I don't have a solution for you, but a suggestion: It seems you
are using the LE (Light) of Tomcat, maybe try the full version? Using
the full version, also make sure you have installed the 1.4 JDK and not
just the JRE.
hth,
Paul
On Wed, 2003-03-26 at 19:53, Herbert G. Fischer wrote:

THE PROBLEM IS BAD THAN I THOUGHT!!!

Sorry for the caps, but I'm very angry!!

Admin only works correctly on MS Internet Explorer...

How a multiplatform tecnology can be made this way

Damn!!!

Herbert G. Fischer wrote:

Hi again,

I'm getting very angry with Tomcat 4.1.24...
It's half made... There's a lot of classes missing!!!
Another one...

==

HTTP Status 400 - Invalid path /logger/AddLogger was requested

type Status report

message Invalid path /logger/AddLogger was requested

description The request sent by the client was syntactically incorrect 
(Invalid path /logger/AddLogger was requested).
Apache Tomcat/4.1.24-LE-jdk14

===



-
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]


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


Re: different clients using the same instance of a bean

2003-03-26 Thread Mark Pease
I used all servlets, so I'm not an expert at doing this in jsp, but I can
give you the concepts that I would pursue:

1. Create a bean with a Hashtable or some structure to hold references to
all your state beans.

2. Create a bean that contains your data, methods, etc. that you want to
share between users.

3. When a user logs in, get THE instance of the application-scope 'manager'
bean.

4. From this 'manager' bean, you can get a reference to the state bean that
the user needs, by name.

5. The manager bean then either returns the reference to the bean from its
Hashtable if it exists, and if it doesn't, it creates a new one with the
name requested.


The getAttribute() simply returns a reference to the object requested by
name, otherwise it returns null... that is why if it returns null, the code
below uses setAttribute() to create an instance of the object and assign a
name to reference it by.  I'm not sure why they made it so difficult to
understand, but if I remember right the getServletContext() means that you
are getting application-scope.  I don't remember off the top of my head what
to use if you need page-level and session-level scope (I have it in a book
somewhere).

Does that help?  I think this is essentially what Leandro was referring to
earlier as well.

Mark


- Original Message -
From: "Michael Ni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 4:39 PM
Subject: Re: different clients using the same instance of a bean


> I copied some code I picked up from a website about application and
session
> scope.  Can someone explain how setAttribute and getAttribute works?  what
> do the actual parameters do?  also when i use jsp useBean, i usually have
a
> name, which is the name of my instance.  Where in servlet code does it use
> that name?
>
> mike
>
> ps pls look at code below
>
>
>
> 
>
> The servlet equivalent of the above useBean action is:
>
> foo.Counter counter =
> (foo.Counter)getServletContext().getAttribute("counter");
> if (counter == null) {
>   counter = new foo.Counter();
>   getServletContext().setAttribute("counter", counter);
> }
>
>
> --
>
> 
>
> The servlet equivalent of the above useBean action is:
>
> HttpSession session = request.getSession(true);
> foo.Counter counter = (foo.Counter)session.getValue("counter");
> if (counter == null) {
>   counter = new foo.Counter();
>   session.putValue("counter", counter);
> }
>
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
>
> -
> 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: Admin is incomplete

2003-03-26 Thread Richard Dunn
On Wednesday 26 March 2003 12:50, Herbert G. Fischer wrote:
> Hi again,
>
> I'm getting very angry with Tomcat 4.1.24...
> It's half made... There's a lot of classes missing!!!
>

I have not used the LE edition of Tomcat, but is it possible the problems you 
are having is because the Light Edition does not include the classes you are 
trying to use?

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



Re: Admin is incomplete

2003-03-26 Thread p niemandt
No use in getting angry ;-) Computers don't feel, well, yet ...

Anyways: I don't have a solution for you, but a suggestion: It seems you
are using the LE (Light) of Tomcat, maybe try the full version? Using
the full version, also make sure you have installed the 1.4 JDK and not
just the JRE.

hth,
Paul

On Wed, 2003-03-26 at 19:53, Herbert G. Fischer wrote:
> THE PROBLEM IS BAD THAN I THOUGHT!!!
> 
> Sorry for the caps, but I'm very angry!!
> 
> Admin only works correctly on MS Internet Explorer...
> 
> How a multiplatform tecnology can be made this way
> 
> Damn!!!
> 
> 
> Herbert G. Fischer wrote:
> > Hi again,
> > 
> > I'm getting very angry with Tomcat 4.1.24...
> > It's half made... There's a lot of classes missing!!!
> > 
> > Another one...
> > 
> > ==
> > 
> > HTTP Status 400 - Invalid path /logger/AddLogger was requested
> > 
> > type Status report
> > 
> > message Invalid path /logger/AddLogger was requested
> > 
> > description The request sent by the client was syntactically incorrect 
> > (Invalid path /logger/AddLogger was requested).
> > Apache Tomcat/4.1.24-LE-jdk14
> > 
> > ===
> > 
> > 
> > 
> > -
> > 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]
-- 
p niemandt <[EMAIL PROTECTED]>


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



Problems reading Context's Resources

2003-03-26 Thread Herbert G. Fischer
Hi,

I'm trying Tomcat 4.1.24 and I'm having problems reading Context's 
Resources. Here's my sample code and after the error output.
I've tryed a lot of things without success, I'm lost...
Note: I'm using JDK 1.4



<%@ page
  language="java"
  import="javax.naming.*,javax.sql.*,java.sql.*"
  contentType="text/html;charset=ISO-8859-1"%>
<%!
public Connection conn = null;
%>
<%
   Context initCtx = new InitialContext();
   if (initCtx == null ) throw new Exception("Boom - No Context");
   DataSource ds = (DataSource) 
initCtx.lookup("java:comp/env/jdbc/Oracle");
   conn = ds.getConnection();
%>


org.apache.jasper.JasperException: Cannot create resource instance
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
	at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:536)

root cause

javax.servlet.ServletException: Cannot create resource instance
	at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
	at org.apache.jsp.test_jsp._jspService(test_jsp.java:66)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at 
org.

Re: Admin is incomplete

2003-03-26 Thread Herbert G. Fischer
THE PROBLEM IS BAD THAN I THOUGHT!!!

Sorry for the caps, but I'm very angry!!

Admin only works correctly on MS Internet Explorer...

How a multiplatform tecnology can be made this way

Damn!!!

Herbert G. Fischer wrote:
Hi again,

I'm getting very angry with Tomcat 4.1.24...
It's half made... There's a lot of classes missing!!!
Another one...

==

HTTP Status 400 - Invalid path /logger/AddLogger was requested

type Status report

message Invalid path /logger/AddLogger was requested

description The request sent by the client was syntactically incorrect 
(Invalid path /logger/AddLogger was requested).
Apache Tomcat/4.1.24-LE-jdk14

===



-
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]


Admin is incomplete

2003-03-26 Thread Herbert G. Fischer
Hi again,

I'm getting very angry with Tomcat 4.1.24...
It's half made... There's a lot of classes missing!!!
Another one...

==

HTTP Status 400 - Invalid path /logger/AddLogger was requested

type Status report

message Invalid path /logger/AddLogger was requested

description The request sent by the client was syntactically incorrect 
(Invalid path /logger/AddLogger was requested).
Apache Tomcat/4.1.24-LE-jdk14

===



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


webapp

2003-03-26 Thread Allan Campos de Moraes

Hi All !

I´m trying to generate the mod_webapp.so file but after all the steps when I
try to run "make" I receive the message below... some Ideas ? I had no error
on the steps before make...

Help !

___
/home/amoraes/jakarta/jakarta-tomcat-connectors-4.1.18-src/webapp> make

make[1]: Entering directory
"/export/home/amoraes/jakarta/jakarta-tomcat-connect
ors-4.1.18-src/webapp/apr-0.9.1"
Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
 [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][
-t ]
 [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ "macro
+=value".
.. ]
make: Fatal error: Unknown option `-C'
*** Error code 1
make: Fatal error: Command failed for target `subdir'
Current working directory
/export/home/amoraes/jakarta/jakarta-tomcat-connectors
-4.1.18-src/webapp
*** Error code 1
make: Fatal error: Command failed for target `apr-build'
/home/amoraes/jakarta/jakarta-tomcat-connectors-4.1.18-src/webapp>



Thanks !

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003
 
  
Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas
e/ou de caráter confidencial, não podendo ser retransmitida sem autorização
do remetente. Se você não é o destinatário ou pessoa autorizada a recebê-la,
informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos.
Portanto, se você recebeu esta mensagem por engano, por favor, nos informe
respondendo imediatamente a este e-mail e em seguida apague-a.


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

RES: setting up alternate ways of accessing the same webapp

2003-03-26 Thread Tiago Ferraz Machado
Hello,

If I understood your question, I think if you change the name on the virtual host at 
apache configuration, it should solve your problem:







mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 26 de março de 2003 15:16
Para: [EMAIL PROTECTED]
Assunto: setting up alternate ways of accessing the same webapp


hi All,

it's hard to explain my question but i'll do my best.
please feel free to ask for clarifications.

i have a tomcat/apache 1.3.2.7/mod_jk setup. all of
the servers are on the same host (say host A). there
are 2 vifs (virtual ip's) set up on this host and so i
have something like this:















In apache, each of the vifs is a vhost. this config
works well. 

i am able to call the first webapp 'vif-one-webapp' by
visiting http://vif-one/vif-one-webapp. however, i'd
like to be able to also reference this webapp by using
the actual hostname (A) on the url instead of the
virtual ip/host. any idea how i can do that? thanks a
lot for your help!! 

james

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-
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: Anyone successfully authenticating Tomcat users w/ windows logininfo using a JNDIRealm?

2003-03-26 Thread Tim Funk
If you have multiple domains, I think your out of luck. If you run a 
single active directory domain, you *might* be able to do something like 
this:

ldap://need.morecowbell.com:389";
userBase="dc=more,dc=morecowbell,dc=com"
userSearch="(userPrincipalName={0})"
userRoleName="member"
roleBase="dc=more,dc=morecowbell,dc=com"
roleName="cn"
roleSearch="(member={0})"
connectionName="cn=A_USER,cn=Users,dc=more,dc=morecowbell,dc=com"
connectionPassword="prescription"
roleSubtree="true"
userSubtree="true" />
To connect to active directory, you need a special user connection. 
Thats why connectionName="cn=A_USER,cn=Users,dc=more,dc=morecowbell,dc=com"
is used.

I hope you have better luck that I had.

-Tim

Dan Payne wrote:
I'm looking for some assistance in setting up single-sign on with our
windows 2000 intranet and Tomcat using Windows Active Directory and a Tomcat
JINDIRealm and LDAP. What I'm essentially looking for is
HttpServletRequest.getRemoteUser() to return the username used to
authenticate to the Windows network (Active Directory).
My last post was rather vague and elicited no responses. I've done some more
research and this seems to be the way to go but it would be nice if anyone
who's already done it could relate their experiences or perhaps point me in
the right direction to some resources covering this issue.
Thanks again,

Dan
 


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


Reloading context-specific InitParameter

2003-03-26 Thread johannes . fiala
hi there,

is it possible to reload context-specific Initialization parameters stored 
in server.xml on the fly?
if I deploy a new webapp to Tomcat, I always have the problem, that the 
Context InitParameters are not available - only after a restart of Tomcat, 
the application runs as expected.

Is there any way to reload the InitParameters of a context after deploying 
a new webapp?

thx
Johannes

Anyone successfully authenticating Tomcat users w/ windows login info using a JNDIRealm?

2003-03-26 Thread Dan Payne
I'm looking for some assistance in setting up single-sign on with our
windows 2000 intranet and Tomcat using Windows Active Directory and a Tomcat
JINDIRealm and LDAP. What I'm essentially looking for is
HttpServletRequest.getRemoteUser() to return the username used to
authenticate to the Windows network (Active Directory).

My last post was rather vague and elicited no responses. I've done some more
research and this seems to be the way to go but it would be nice if anyone
who's already done it could relate their experiences or perhaps point me in
the right direction to some resources covering this issue.

Thanks again,

Dan


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



  1   2   >