Re: Unable to verify

2004-10-12 Thread Peter Fogg
Thanks for the response.
I'm new to this business of verifying files and I read somewhere 
recently that it is not safe to use a .md5 file from the same server 
from which I get the distribution file. The reason given was that the 
.md5 file may also have been hacked along with the distribution file. 
That's why I was going the .asc route.

Peter -
On Oct 12, 2004, at 9:14 PM, Jacob Kjome wrote:
It verifies just fine against the .md5 file using Ant's  
task.

Jake
At 07:24 PM 10/12/2004 -0700, you wrote:
>The following files were downloaded from the Apache Jakarta Site:
>
>jakarta-tomcat-5.0.28.tar.gz
>jakarta-tomcat-5.0.28.tar.gz.asc
>jakarta-tomcat-5.0.28.tar.gz.md5
>
>Attempted to verify the distribution before installing it:
>
>$ gpg --verify jakarta-tomcat-5.0.28.tar.gz.asc
>jakarta-tomcat-5.0.28.tar.gz
>gpg: Signature made Sat Aug 28 18:02:16 2004 PDT using DSA key ID
>7C037D42
>gpg: Can't check signature: public key not found
>
>$ gpg --keyserver pgpkeys.mit.edu --recv-keys 7C037D42
>gpg: no valid OpenPGP data found.
>gpg: Total number processed: 0
>
>$
>.
>.
>.
>
>I have tried numerous keyservers with the same result. What am I doing
>wrong?
>
>Peter -
>
>
-
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: Repost: Hiding welcome page

2004-10-12 Thread Bill Barker

<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Assuming my site is http://www.mysite.com/  ,
> whenever I go to the site, I see http://www.mysite.com/index.jsp
>  . How do I enable tomcat 4.1 
> (preferably)
> or 5 to hide the index.jsp portion of the URL so all I see is
> http://www.mysite.com  ? I have been unable to 
> find
> a solution to this problem.
>

It can't be done in 4.1.  It's hidden by default in 5.x, and is a 
configuration setting in 3.3.2.

>
>
> Azam Khan
>
>
>
>
>
> 




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



Apache MaxClients vs. what in JK2 configuration?

2004-10-12 Thread raiden
Hello,

I currently have one Apache instance talking to one Tomcat instance.
However, I really want to understand the relationship between
client connections, because I plan to make this two Apache servers talking
to one or two Tomcat servers.

In Apache you can configure the maximum number of connections via
MaxClients?  What is the counterpart for JK2?

If I have two Apache instances (each with 200 MaxClients) talking to one
Tomcat server, I need to configure Tomcat for 400 maximum connections,
right?

Where do I do this?  (I can see it for the Coyote connector on 8080, but
not for the 8009 connector).

Thank you,
-Raiden Johnson


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



RE: Weird Red Hat Enterprise Startup

2004-10-12 Thread Mike Cherichetti \(Renegade Internet\)
Hi Everyone,

Well, I finally solved this problem.  OS patches didn't do the trick, still
had segmentation faults and unexplained crashes on startup and shutdown, no
core dumps, no error messages, and -server band-aid didn't work for me
either (I was running out of options!).  The solution was to use the IBM JDK
instead of the Sun JDK.  If you're having the same problem and you don't
need Java 1.5/5.0 for a while, give the IBM JDK a shot, it worked for me.

Have a nice day ...

Sincerely,

Mike Cherichetti


-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Shankar Unni
Sent: Monday, October 11, 2004 5:08 PM
To: [EMAIL PROTECTED]
Subject: Re: Weird Red Hat Enterprise Startup


Shapira, Yoav wrote:

> Any JVM switch to make an internal JVM crash "disappear" is cruising for
> a bruising.

Fully understood.

> Most likely, it's missing OS-level patches for your system.

True, except that for the Linux case, we are running on one of the
supported OSes (RH EL 3.0WS, stock), and there's no mention of any
required patches for Linux. Still get the crash.

In our case, it was readily triggered by a particularly large output
from a JSP - a table with ~1500 rows, which was a pathological case -
and we have workarounds for this particular symptom.  But there have
been other unexplained crashes, too, and we have found open bugs in the
Sun JDC bug database referring to crashes like this on Linux..

So yes, once again: -server is a band-aid (just one of many), it's not
guaranteed to fix anything at all (could even make things worse) - it
just shifts the problem around under the blanket. It's just one thing to
try, and *if it "works" in your case*, use it as a temporary workaround.


-
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: Unable to verify

2004-10-12 Thread Jacob Kjome
It verifies just fine against the .md5 file using Ant's  task.
Jake
At 07:24 PM 10/12/2004 -0700, you wrote:
>The following files were downloaded from the Apache Jakarta Site:
>
>jakarta-tomcat-5.0.28.tar.gz
>jakarta-tomcat-5.0.28.tar.gz.asc
>jakarta-tomcat-5.0.28.tar.gz.md5
>
>Attempted to verify the distribution before installing it:
>
>$ gpg --verify jakarta-tomcat-5.0.28.tar.gz.asc
>jakarta-tomcat-5.0.28.tar.gz
>gpg: Signature made Sat Aug 28 18:02:16 2004 PDT using DSA key ID
>7C037D42
>gpg: Can't check signature: public key not found
>
>$ gpg --keyserver pgpkeys.mit.edu --recv-keys 7C037D42
>gpg: no valid OpenPGP data found.
>gpg: Total number processed: 0
>
>$
>.
>.
>.
>
>I have tried numerous keyservers with the same result. What am I doing
>wrong?
>
>Peter -
>
>  

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


Re: mod_jk2 Ready/Recommended For Production?

2004-10-12 Thread Peng Tuck Kwok
Do you really need to put apache in front of tomcat ? Standalone
tomcat (since ver 4.x)
has always been pretty good in terms of  performance


On Tue, 12 Oct 2004 22:07:34 -0400, Mike Millson
<[EMAIL PROTECTED]> wrote:
> The Tomcat FAQ page still says that "mod_jk is great and should be used
> for production" and mod_jk2 "may not be production worthy for everyone."
> 
> http://jakarta.apache.org/tomcat/faq/connectors.html#vs
> 
> Is this still accurate, or is mod_jk2 now ready/recommended for
> production?
> 
> Thank you,
> Mike
> 
> -
> 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]



Unable to verify

2004-10-12 Thread Peter Fogg
The following files were downloaded from the Apache Jakarta Site:
jakarta-tomcat-5.0.28.tar.gz
jakarta-tomcat-5.0.28.tar.gz.asc
jakarta-tomcat-5.0.28.tar.gz.md5
Attempted to verify the distribution before installing it:
$ gpg --verify jakarta-tomcat-5.0.28.tar.gz.asc 
jakarta-tomcat-5.0.28.tar.gz
gpg: Signature made Sat Aug 28 18:02:16 2004 PDT using DSA key ID 
7C037D42
gpg: Can't check signature: public key not found

$ gpg --keyserver pgpkeys.mit.edu --recv-keys 7C037D42
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
$
.
.
.
I have tried numerous keyservers with the same result. What am I doing 
wrong?

Peter -


Re: mod_jk2 Ready/Recommended For Production?

2004-10-12 Thread QM
On Tue, Oct 12, 2004 at 10:07:34PM -0400, Mike Millson wrote:
: The Tomcat FAQ page still says that "mod_jk is great and should be used
: for production" and mod_jk2 "may not be production worthy for everyone."
:  [snip]
: Is this still accurate, or is mod_jk2 now ready/recommended for
: production?

Depends on who you ask.  Reviewing the list archives, you'll see a fair
number of problems with jk2.  Some are related to pilot error, but a few
issues stem from jk2 and APR (a required library) both being in flux.

Then again, several people on the list have reported having no jk2
problems whatsoever.  Knock on wood, I haven't seen any jk2 problems
recently.

Your decision will likely come down to:
1/ whether you want to take a crack at building jk2 yourself
2/ finding features you want that are in jk2 but not jk

As I don't use jk2, I can't offer much help for #2.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



mod_jk2 Ready/Recommended For Production?

2004-10-12 Thread Mike Millson
The Tomcat FAQ page still says that "mod_jk is great and should be used
for production" and mod_jk2 "may not be production worthy for everyone."

http://jakarta.apache.org/tomcat/faq/connectors.html#vs

Is this still accurate, or is mod_jk2 now ready/recommended for
production?

Thank you,
Mike



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



Re: Manager application in TC 4.1

2004-10-12 Thread Andoni
Ok, now I have rebooted the server I know it doesn't work!  I did exactly
what it said to do in the comment and this did not work. The same thing
(replacing the class name) *did* work in 4.0.4, which was my last version,
which is why I tried it in the 1st place :-)

Anyway any suggestion as to whether it is possible to change the URL for the
manager application in Tomcat 4.1.24 are welcome.

Thanks in advance.
Andoni.

- Original Message - 
From: "Andoni" <[EMAIL PROTECTED]>
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, October 12, 2004 9:58 PM
Subject: Manager application in TC 4.1


> Hello,
>
> I have just upgraded to Tomcat 4.1 and I have encountered the fact that
the manager application is now at:
>
> www.mydomain.com:8080/manager/html/
>
> What is the simples way to change this to be at
www.mydomain.com:8080/manager ?
>
> I have changed the mappings but that breaks the mappings in the manager
app. I know the comment in the manager's web.xml file says just to change
the class but is that right? I think that's just a legacy comment.
>
> Thanks,
>
> Andoni
>


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



RE: Manager application in TC 4.1

2004-10-12 Thread Mike Curwen
put an index.html page under $CATALINA_HOME/server/webapps/manager

and have it contain a link to /html or a meta refresh.


> -Original Message-
> From: Andoni [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 12, 2004 3:59 PM
> To: Tomcat Users List
> Subject: Manager application in TC 4.1
> 
> 
> Hello,
> 
> I have just upgraded to Tomcat 4.1 and I have encountered the 
> fact that the manager application is now at:
> 
> www.mydomain.com:8080/manager/html/
> 
> What is the simples way to change this to be at 
> www.mydomain.com:8080/manager ?
> 
> I have changed the mappings but that breaks the mappings in 
> the manager app. I know the comment in the manager's web.xml 
> file says just to change the class but is that right? I think 
> that's just a legacy comment.
> 
> Thanks,
> 
> Andoni
> 


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



Manager application in TC 4.1

2004-10-12 Thread Andoni
Hello,

I have just upgraded to Tomcat 4.1 and I have encountered the fact that the manager 
application is now at:

www.mydomain.com:8080/manager/html/

What is the simples way to change this to be at www.mydomain.com:8080/manager ?

I have changed the mappings but that breaks the mappings in the manager app. I know 
the comment in the manager's web.xml file says just to change the class but is that 
right? I think that's just a legacy comment.

Thanks,

Andoni


Re: request.getSession(false) randomly returns null in servlet

2004-10-12 Thread Justin Ruthenbeck
Mark,
Check the session id that is included in the request 
(getRequestedSessionId) and verify that this sessionid is ALWAYS 
identical to the one used when the session was created.  More than 
likely, you'll find this is not the case.  If you're convinced that the 
sessionid is found at one moment and not at another, try to find a way to 
reproduce it and then post that to the list.

There's a 99% chance something is wrong with your code and/or the 
client's response causing the behavior you're seeing.  The fact that 
you're seeing it with one particular servlet (presumably one type of use 
case) makes it even more likely.

justin
At 09:14 AM 10/12/2004, you wrote:
Hi David,
Thanks for reply but I guess I need something else. All answers to
your suggested situation are negative. Answers included in your
message.
--- David Wall <[EMAIL PROTECTED]> wrote:
> Is it possible that your session has ended (too long between
> requests)?
nope, another servlet get session with no problem. and after few
minutes servlet is null problem just works fine.
> Check how long you have configured sessions to be active (in
> web.xml).  Is
> it possible you are losing the encoded session ids (if cookies are
> not being
> used)? It's easy to miss an encoded URL on a page for get/post and
> thus lose
> the session id on the next request.  Then again, I've seen bugs
> before in
> which cookies are quite reliable, but encoded URLs don't always
> seem to
> work.
I do encode URL just in case, but Cookie is used on client
side(browser). When I look at the source page URL is not encoded.
>
> David
>
Any other ideas?
> - Original Message -
> From: "Mark" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 12, 2004 8:36 AM
> Subject: request.getSession(false) randomly returns null in servlet
>
>
> > Hi All,
> > I have unstable behavior in my web application when I try to get
> > HttpSession.
> > The problem is that the following code randomly returns _null_
> for
> > HttpSession.
> >
> > But next http request from different servlet using the same code
> is
> > fine. and when I call servlet with problem I've got null again.
> > Interesting, that if I wait for few minutes, this problem does
> not
> > exists: I'm getting a session object with no problems
> > Here the code:
> >
> > -- cut --
> > public void doPost( HttpServletRequest req, HttpServletResponse
> resp
> > )
> >   throws IOException, ServletException
> >   {
> > String cPath = req.getContextPath();
> > HttpSession ses = req.getSession(false);
> > /* ... ses is null sometimes ;(*/
> > 
> > - end cut 
> >
> >
> > Please note that I use req.getSession(true) in the login servlet
> and
> > DO know that session is created.
> >
> > Tech spec:
> >  Software: tomcat 5.0.24 on Redhat FS2
> >  Hardware: AMD 2700+, 512Mb, 120 GB HDD.
> >
> >
> > Any comments and suggestions are welcome.
> >
> > Thanks,
> > Mark.
> >
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
> > http://mobile.yahoo.com/maildemo
> >
> >
>
-
> > 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]
>
>

__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__
Justin Ruthenbeck
Lead Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.5.3 and JRE 1.5.0 on linux

2004-10-12 Thread Marc Logemann
Remy Maucherat wrote:
On Tue, 12 Oct 2004 21:32:51 +0200, Marc Logemann <[EMAIL PROTECTED]> wrote:
Hi,
i am feeling a little bit silly to ask, but i have to ;-)
I installed JRE 1.5.0 and Tomcat 5.5.3 on linux, set the JAVA_HOME
to the JRE location and started tomcat with ./catalina start
Then i got the "point to a JDK not a JRE" error. I checked the
setclasspath.sh and there is a paragraph that checks for javac and
stuff. Do i miss something here? There must be some straightforward
explanation for this, because i dont think the setclasspath.sh is from
an old tomcat distro ;-)

I think nobody updated the shell scripts yet (either for Unix or
Windows). If you do hack them a little, it will work.
Remy,
thanks for pointing out. Of course its not very hard to do it, in fact i 
just removed the checks for javac and jdb and it runs like a charm. I 
somehow havent believed that the scripts are not updated yet and 
searched for the error on my site.


--
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Catalina.out errors

2004-10-12 Thread Ciaran Hanley
I am running it from the command line. No errors print at all, it simply
ignores any stack traces. I thought that whoever installed it on the new
server must have somehow disabled it? Is there a way to ensure error logging
when starting tomcat from the command line?

Thanks

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 12 October 2004 20:26
To: Tomcat Users List
Subject: RE: Catalina.out errors


Hi,
Usually the full stack trace will be available.  We didn't remove that,
as it's an extremely useful feature.  Are you running Tomcat as a
service or from the command-line?

Yoav Shapira http://www.yoavshapira.com
 

>-Original Message-
>From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 12, 2004 3:21 PM
>To: Tomcat User Mailing List
>Subject: Catalina.out errors
>
>Hi,
>
>
>
>We have moved a tomcat webapp to a new server which uses tomcat 5.0.27,
(we
>were using version 5.0.18 on the old server). When an error is thrown
no
>stack trace is printed in the catalina.out or in the other log files as
was
>the case with the old server.
>
>
>
>Is there some configurations I can change so that the errors will be
>printed
>for debugging? I have looked at server.xml on both servers and cannot
see
>anything obvious which is stopping them from being printed on the new
>server.
>
>
>
>Thanks
>
>CH




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


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



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



Re: Tomcat 5.5.3 and JRE 1.5.0 on linux

2004-10-12 Thread Remy Maucherat
On Tue, 12 Oct 2004 21:32:51 +0200, Marc Logemann <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> i am feeling a little bit silly to ask, but i have to ;-)
> 
> I installed JRE 1.5.0 and Tomcat 5.5.3 on linux, set the JAVA_HOME
> to the JRE location and started tomcat with ./catalina start
> 
> Then i got the "point to a JDK not a JRE" error. I checked the
> setclasspath.sh and there is a paragraph that checks for javac and
> stuff. Do i miss something here? There must be some straightforward
> explanation for this, because i dont think the setclasspath.sh is from
> an old tomcat distro ;-)

I think nobody updated the shell scripts yet (either for Unix or
Windows). If you do hack them a little, it will work.

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



Tomcat 5.5.3 and JRE 1.5.0 on linux

2004-10-12 Thread Marc Logemann
Hi,
i am feeling a little bit silly to ask, but i have to ;-)
I installed JRE 1.5.0 and Tomcat 5.5.3 on linux, set the JAVA_HOME
to the JRE location and started tomcat with ./catalina start
Then i got the "point to a JDK not a JRE" error. I checked the 
setclasspath.sh and there is a paragraph that checks for javac and 
stuff. Do i miss something here? There must be some straightforward 
explanation for this, because i dont think the setclasspath.sh is from 
an old tomcat distro ;-)

Thanks for infos on that.
--
regards
Marc Logemann
http://www.logemann.org
http://www.logentis.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Catalina.out errors

2004-10-12 Thread Shapira, Yoav

Hi,
Usually the full stack trace will be available.  We didn't remove that,
as it's an extremely useful feature.  Are you running Tomcat as a
service or from the command-line?

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 12, 2004 3:21 PM
>To: Tomcat User Mailing List
>Subject: Catalina.out errors
>
>Hi,
>
>
>
>We have moved a tomcat webapp to a new server which uses tomcat 5.0.27,
(we
>were using version 5.0.18 on the old server). When an error is thrown
no
>stack trace is printed in the catalina.out or in the other log files as
was
>the case with the old server.
>
>
>
>Is there some configurations I can change so that the errors will be
>printed
>for debugging? I have looked at server.xml on both servers and cannot
see
>anything obvious which is stopping them from being printed on the new
>server.
>
>
>
>Thanks
>
>CH




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


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



Catalina.out errors

2004-10-12 Thread Ciaran Hanley
Hi,

 

We have moved a tomcat webapp to a new server which uses tomcat 5.0.27, (we
were using version 5.0.18 on the old server). When an error is thrown no
stack trace is printed in the catalina.out or in the other log files as was
the case with the old server.

 

Is there some configurations I can change so that the errors will be printed
for debugging? I have looked at server.xml on both servers and cannot see
anything obvious which is stopping them from being printed on the new
server.

 

Thanks

CH



RE: Form Based Authentication with Cookies?

2004-10-12 Thread Chris Ward
Chris,

For what it's worth, I spent ages trying to get a remember-me
login thing going "out of the box" but never managed it.

In the end I implemented my own user/role setup and use a 
Filter to ensure the user is logged in when accessing servlets/
JSPs with specifice URL paths.  The login page sets cookies to
do the "remembering".

If you get your's going (I'm now on Tomcat 5.0.28, maybe there's
something new) I'd be interested in the details.

Good luck.

Best regards
Chris

-- 

Chris Ward, Horizon Asset Limited

Tel +44 (20) 7367 7028, Fax 7367 7029

-- 


THIS E-MAIL MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION.
IF YOU ARE NOT THE INTENDED RECIPIENT (OR HAVE RECEIVED THIS E-MAIL
IN ERROR) PLEASE NOTIFY THE SENDER IMMEDIATELY AND DESTROY THIS E-
MAIL.  ANY UNAUTHORISED COPYING, DISCLOSURE OR DISTRIBUTION OF THE
MATERIAL IN THIS E-MAIL IS STRICTLY FORBIDDEN.

 HORIZON ASSET LIMITED IS AUTHORISED AND REGULATED
BY THE FINANCIAL SERVICES AUTHORITY.



> -Original Message-
> From: Chris Forbis [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 12, 2004 7:45 PM
> To: [EMAIL PROTECTED]
> Subject: Form Based Authentication with Cookies?
> 
> 
> I have been looking for a way withing tomcat using a 
> JDBCRealm to do form bases authentication and allow users to 
> set some sort of "Remember Me" cookie, so they do not need to 
> log into my application more than once a month or so.
> 
> It looks like to me that FormAuthenticator is sort of 
> hardcoded into tomcat without a way to allow for a context to 
> allow for a CustomFormAuthenticator that would allow for this.
> 
> Am I missing something, or is there no easy way to do this?
> 
> 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]



Form Based Authentication with Cookies?

2004-10-12 Thread Chris Forbis
I have been looking for a way withing tomcat using a JDBCRealm to do
form bases authentication and allow users to set some sort of
"Remember Me" cookie, so they do not need to log into my application
more than once a month or so.

It looks like to me that FormAuthenticator is sort of hardcoded into
tomcat without a way to allow for a context to allow for a
CustomFormAuthenticator that would allow for this.

Am I missing something, or is there no easy way to do this?

Thanks!

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



Tomcat 4.x with Oracle OCI connection-Error

2004-10-12 Thread Annamalai Ramasamy

Hi.,

   I'm using OCI to connect the oracle8.x from my Tomcat.

After some period of time tomcat get lost the DataBase Connection.

I'm getting this two errors.

ORA-03113: end-of-file on communication channel ,

ORA-03114: not connected to ORACLE 

If I restart the tomcat its working fine.Is there a way to setup autoRecconect or such 
parameter to eastablish the connection.

Please help me out to resolve this problem.

Thanks.,

MALAI


-
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  

RE: multiple tomcat instance and log4j

2004-10-12 Thread Shapira, Yoav

Hi,
If you really think you need such a merge tool, go write it ;)  I don't
have suggestions off the back of my hand, but then again I don't see
much need for such a tool anyways ;)

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Simon Zeng [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 12, 2004 2:20 PM
>To: 'Tomcat Users List'
>Subject: RE: multiple tomcat instance and log4j
>
>Thanks for the quick response. Seperate logs for each tomcat was my
>proposal
>too. But people like to have an easy way to view them as a whole. A
nice
>merge tool would be nice. The first and minumum requirement for the
tool is
>to merge and sort all log records by time so that it can really be
viewed
>as
>if there is only one log file. grep/sort command in unix might help,
but we
>are in Windows. Chainsaw and Lumbermill provides nice GUI and filtering
but
>i don't see merge function in them. Any suggestions?
>
>Thanks a lot,
>-Simon
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 12, 2004 1:51 PM
>To: Tomcat Users List
>Subject: RE: multiple tomcat instance and log4j
>
>
>
>Hi,
>
>>It is my impression that lots of people on this user list are using
>log4j
>>as
>>their logging mechanism. Also i believe lots of people here use
>multiple
>>tomcat instances for load balancing. I am wondering how you guys are
>using
>>log4j in this case. If anyone can give me some ideas and/or answer my
>>questions below, that will be greatly appreciated.
>
>I'm one of those people, and my usage is as simple as can be:
everything
>separate.  Each webapp has its own log4j.properties and log4j.jar in
>WEB-INF/lib.  Each Tomcat server has its own logging configuration.
>They all write to separate log files.
>
>I use programmatic configuration with a repository selector originally
>written by Jacob Kjome and available in the log4j CVS repository.  I
(or
>rather our admins) also use the configuration servlet in from the log4j
>CVS to change log4j settings at runtime, and they sometimes attach
>chainsaw to running systems to look at what's going on.  All of this
has
>been working for years now without a problem, using log4j 1.2.8 and
>various versions of tomcat.
>
>Since I don't combine the logs or run any sort of statistics from them,
>I can't help with those questions you had.
>
>My take on it is to always keep everything separate.  It's easier to
>manage, deploy, and inspect only the relevant logs when an error
occurs.
>Disk space is virtually free not only for big companies anymore, but
for
>nearly anyone, so the cost of having N copies of the log4j.jar is
>negligible.
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Tomcat 4.1.31

2004-10-12 Thread Mark Thomas
I think all that has happened is that the announcement has come out before all
the mirrors have synchronised with the apache servers - hence you might see an
older release.

For the record, it is both "available" and "production quality".

Mark


From: Harald Henkel [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 12, 2004 1:56 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 4.1.31
> 
> Hello.
> 
> Sorry for this thread beeing appended to the above one (about 
> TC 5.5.3).
> 
> QM wrote:
> > 
> > On Tue, Oct 12, 2004 at 01:56:08PM +0200, Harald Henkel wrote:
> > : Jakarta Project announced Tomcat 4.1.31, although it is 
> not downloadable
> > : yet (the links still point to 4.1.30).
> > 
> > I missed the announcement.  Was it declared "available" or 
> "production
> > quality?"  It won't appear on the main download page until 
> it reaches
> > the latter status.
> 
> Well, just take a look at the Jakarta Homepage.
> The announcement is from yesterday and it says:
> 
> The tomcat team is pleased to announce Tomcat 4.1.31 Stable is now
> available.
> The announcement continues with links to the real 4.1.31 release notes
> and to binary and source download pages which still only show 4.1.30 -
> and 5.0.28, 5.0.29 Beta and 5.5.3 Alpha, although I think the Beta
> refers to 5.0.29 (while 5.0.28 is stable) while the Alpha refers to
> 5.5.x meaing that the whole 5.5 is still not in stable/production
> quality (5.5.2 Alpha beeing the previous release, no 5.5.2 
> "Stable") !?
> 
> So, what do you mean by "won't appear on the main download 
> page until it
> reaches "production quality"" ?
> 
> Regards,
> Harald Henkel
> 
> -- 
> Harald Henkel
> 
> GS automation GmbH
> Winterstraße 2
> 82223 Eichenau
> Germany
> Tel:+ 49-8141-35 731-37
> Fax:+ 49-8141-35 731-38
> Mobile: + 49-178-7829126
> e-mail: [EMAIL PROTECTED]
> Web:www.GS-automation.DE
> 
> -
> 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: Tomcat5 and Debian Sarge

2004-10-12 Thread Kai Neubecker
ok, the problem is I run Tomcat in a vserver. (www.linux-vserver.org)

in the syslog of the hostsystem I found a error about to many processes.

Oct 12 19:31:17 srvxxx kernel: PAX: From 80.xxx.xxx.xxx: execution
attempt in: /usr/local/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so,
2beb9000-2bed4000 003fb000
Oct 12 19:31:17 srvxxx kernel: PAX: From 80.xxx.xxx.xxx: terminating
task: /usr/local/j2sdk1.4.2_05/bin/java(java):3982, uid/euid: 0/0, PC:
2bec2b44, SP: 5d750964
Oct 12 19:31:17 srvxxx kernel: PAX: bytes at PC: .. ... .. .. .. 4 00 58
c3 90 cc cc cc cc 00 80 01 00
Oct 12 19:31:17 srvxxx kernel: grsec: From 80.xxx.xxx.xxx: attempted
resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 by
/xxx/vserver/xxx/usr/local/j2sdk1.4.2_05/bin/java[java:3982]
uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0
gid/egid:0/0



Am Di, den 12.10.2004 schrieb Ben Souther um 3:07:
> Did you try hitting it with a browser to see if it is running?
> http://localhost:8080
> 
> Your logs should be in /logs
> 
> 
> On Mon, 2004-10-11 at 18:28, Kai Neubecker wrote:
> > I try to start Tomcat 5 first time. 
> > 
> > /usr/local/tomcat/bin/startup.sh
> > Using CATALINA_BASE:   /usr/local/tomcat
> > Using CATALINA_HOME:   /usr/local/tomcat
> > Using CATALINA_TMPDIR: /usr/local/tomcat/temp
> > Using JAVA_HOME:   /usr/local/java
> > 
> > the server do not start. I can't find a logfile or a error in syslog.
> > 
> > j2sdk-1_4_2_05-linux-i586.bin + jakarta-tomcat-5.0.28.tar.gz (binary)
> > 
> > missing package?
> > 
> > can some ome help me ?
> > 
> > thanx, Kai
> > 
> > 
> > -
> > 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: multiple tomcat instance and log4j

2004-10-12 Thread Simon Zeng
Thanks for the quick response. Seperate logs for each tomcat was my proposal
too. But people like to have an easy way to view them as a whole. A nice
merge tool would be nice. The first and minumum requirement for the tool is
to merge and sort all log records by time so that it can really be viewed as
if there is only one log file. grep/sort command in unix might help, but we
are in Windows. Chainsaw and Lumbermill provides nice GUI and filtering but
i don't see merge function in them. Any suggestions?

Thanks a lot,
-Simon

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 1:51 PM
To: Tomcat Users List
Subject: RE: multiple tomcat instance and log4j



Hi,

>It is my impression that lots of people on this user list are using
log4j
>as
>their logging mechanism. Also i believe lots of people here use
multiple
>tomcat instances for load balancing. I am wondering how you guys are
using
>log4j in this case. If anyone can give me some ideas and/or answer my
>questions below, that will be greatly appreciated.

I'm one of those people, and my usage is as simple as can be: everything
separate.  Each webapp has its own log4j.properties and log4j.jar in
WEB-INF/lib.  Each Tomcat server has its own logging configuration.
They all write to separate log files.

I use programmatic configuration with a repository selector originally
written by Jacob Kjome and available in the log4j CVS repository.  I (or
rather our admins) also use the configuration servlet in from the log4j
CVS to change log4j settings at runtime, and they sometimes attach
chainsaw to running systems to look at what's going on.  All of this has
been working for years now without a problem, using log4j 1.2.8 and
various versions of tomcat.

Since I don't combine the logs or run any sort of statistics from them,
I can't help with those questions you had.  

My take on it is to always keep everything separate.  It's easier to
manage, deploy, and inspect only the relevant logs when an error occurs.
Disk space is virtually free not only for big companies anymore, but for
nearly anyone, so the cost of having N copies of the log4j.jar is
negligible.

Yoav Shapira http://www.yoavshapira.com




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


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

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



RE: multiple tomcat instance and log4j

2004-10-12 Thread Shapira, Yoav

Hi,

>It is my impression that lots of people on this user list are using
log4j
>as
>their logging mechanism. Also i believe lots of people here use
multiple
>tomcat instances for load balancing. I am wondering how you guys are
using
>log4j in this case. If anyone can give me some ideas and/or answer my
>questions below, that will be greatly appreciated.

I'm one of those people, and my usage is as simple as can be: everything
separate.  Each webapp has its own log4j.properties and log4j.jar in
WEB-INF/lib.  Each Tomcat server has its own logging configuration.
They all write to separate log files.

I use programmatic configuration with a repository selector originally
written by Jacob Kjome and available in the log4j CVS repository.  I (or
rather our admins) also use the configuration servlet in from the log4j
CVS to change log4j settings at runtime, and they sometimes attach
chainsaw to running systems to look at what's going on.  All of this has
been working for years now without a problem, using log4j 1.2.8 and
various versions of tomcat.

Since I don't combine the logs or run any sort of statistics from them,
I can't help with those questions you had.

My take on it is to always keep everything separate.  It's easier to
manage, deploy, and inspect only the relevant logs when an error occurs.
Disk space is virtually free not only for big companies anymore, but for
nearly anyone, so the cost of having N copies of the log4j.jar is
negligible.

Yoav Shapira http://www.yoavshapira.com




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


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



RE: multiple tomcat instance and log4j

2004-10-12 Thread Simon Zeng
Hello,

It is my impression that lots of people on this user list are using log4j as
their logging mechanism. Also i believe lots of people here use multiple
tomcat instances for load balancing. I am wondering how you guys are using
log4j in this case. If anyone can give me some ideas and/or answer my
questions below, that will be greatly appreciated.

Thanks,
-Simon

-Original Message-
From: Simon Zeng [mailto:[EMAIL PROTECTED]
Sent: Monday, October 11, 2004 6:32 PM
To: 'Tomcat Users List'
Subject: multiple tomcat instance and log4j


Hello,

I have a question here. Our application is running under multiple tomcat
intance. We have our own plan logging mechanism. We are moving to use log4j
to replace in-house one.

1. Would it be better to keep one log for each tomcat instance or all share
the same log?
a. If former, how can we conordinate, from application, writting log
information into the one log without conflicting each other and in the right
sequence.
b. If latter, is any tools we can easily merge all logs into one (as if it
is one)  so we can do statistics.

2. Does log4j caching records in the buffer and flush them to disk once
buffer is full or it write records everytime it receives a log command? If
former, how does it solve the issue when system fails and the cached records
lost?

Thanks,
-Simon

-
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: Anti file locking features.

2004-10-12 Thread Shapira, Yoav

Hi,
Read
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 12, 2004 12:51 PM
>To: Tomcat Users List
>Subject: Anti file locking features.
>
>Hi.
>
>Can anyone tell me how to install or enable "anti file locking
features"
>for (or in) Tomcat 5.5?
>
>I have problems undeploying and redeploying webapps under Tomcat 5.5.3
on
>Windows.
>
>I tried to use the Manager webapp to do this. It faild to delete the
>expanded webapplications.
>
>I have been informed that "anti file locking features" are required to
get
>this to work under Windows, and in the Tomcat 5.5.0 changelog I found
this
>entry:
>[QUOTE]
>Revamped deployer, alloying full hotdeploy (note: on Windows, this
>requires the anti file locking features). (remm)
>[END QUOTE]
>
>I have looked very thoroughly in... well just about all the wrong
places
>apparantly - I still don't have a clue as to what to do.
>Please guide me in the right direction.
>
>Best regards
>Claus Nielsen
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: AS/400 DB2

2004-10-12 Thread Reynir Þór Hübner
hi,
To continue with what Chris Egolf said, in my experience, you must get this driver from the exact distribution of the AS400 / ISeries 
machine, because it will not work if they are not of the same version as the database.
There are other drivers available such as the Datadirect ones, and I think Merant/DataDirect should be able to answer this question via 
customer support. Keep in mind, that the DB2 for ISeries and As400 is quite different from the DB2 for windows/unix (sometimes showing very 
different behaviour).
hope it helps,

 [EMAIL PROTECTED]


Chris Egolf wrote:
Have you tried the JT400 jdbc driver from IBM?
http://oss.software.ibm.com/developerworks/opensource/jt400/
That's the only JDBC driver I know of that works with DB2 on the 
AS/400.  Your connection string would look then look like this:

"jdbc:as400://serverName"
and the driver class name is com.ibm.as400.access.AS400JDBCDriver
sudip shrestha wrote:
Hi !
I am trying to connect to an AS/400 DB2 via IBM DataDirect JDBC 
DriverWondering if anybody has any experience with this.
You have to specify a location and collectionId attribute.  My url 
connection string looks like this:
"jdbc:datadirect:db2://serverName:5;Location=nameOfDatabase;CollectionId=DEFAULT;" 


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


Anti file locking features.

2004-10-12 Thread cn
Hi.

Can anyone tell me how to install or enable "anti file locking features"
for (or in) Tomcat 5.5?

I have problems undeploying and redeploying webapps under Tomcat 5.5.3 on
Windows.

I tried to use the Manager webapp to do this. It faild to delete the
expanded webapplications.

I have been informed that "anti file locking features" are required to get
this to work under Windows, and in the Tomcat 5.5.0 changelog I found this
entry:
[QUOTE]
Revamped deployer, alloying full hotdeploy (note: on Windows, this
requires the anti file locking features). (remm)
[END QUOTE]

I have looked very thoroughly in... well just about all the wrong places
apparantly - I still don't have a clue as to what to do.
Please guide me in the right direction.

Best regards
Claus Nielsen



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



Re: Running tomcat 5.0 as a service in Windows OS

2004-10-12 Thread Shankar Unni
Pramod Jain wrote:
a) with tomcat5w.exe, I go to startup tab and enter:  start -config 
"C:\abc\my_server.xml"
b) In Windows Services editor I go to Apache-Tomcat -> Properties -> Start Parameters 
and enter:  start -config
"C:\abc\my_server.xml"
Don't use double-quotes - those will be passed literally to Tomcat, and 
it will try to open a file name with an embedded double-quote.

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


Re: request.getSession(false) randomly returns null in servlet

2004-10-12 Thread Mark
Hi David,
Thanks for reply but I guess I need something else. All answers to
your suggested situation are negative. Answers included in your
message.
--- David Wall <[EMAIL PROTECTED]> wrote:

> Is it possible that your session has ended (too long between
> requests)?
nope, another servlet get session with no problem. and after few
minutes servlet is null problem just works fine.
> Check how long you have configured sessions to be active (in
> web.xml).  Is
> it possible you are losing the encoded session ids (if cookies are
> not being
> used)? It's easy to miss an encoded URL on a page for get/post and
> thus lose
> the session id on the next request.  Then again, I've seen bugs
> before in
> which cookies are quite reliable, but encoded URLs don't always
> seem to
> work.
I do encode URL just in case, but Cookie is used on client
side(browser). When I look at the source page URL is not encoded.

> 
> David
> 

Any other ideas?
> - Original Message - 
> From: "Mark" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 12, 2004 8:36 AM
> Subject: request.getSession(false) randomly returns null in servlet
> 
> 
> > Hi All,
> > I have unstable behavior in my web application when I try to get
> > HttpSession.
> > The problem is that the following code randomly returns _null_
> for
> > HttpSession.
> >
> > But next http request from different servlet using the same code
> is
> > fine. and when I call servlet with problem I've got null again.
> > Interesting, that if I wait for few minutes, this problem does
> not
> > exists: I'm getting a session object with no problems
> > Here the code:
> >
> > -- cut --
> > public void doPost( HttpServletRequest req, HttpServletResponse
> resp
> > )
> >   throws IOException, ServletException
> >   {
> > String cPath = req.getContextPath();
> > HttpSession ses = req.getSession(false);
> > /* ... ses is null sometimes ;(*/
> > 
> > - end cut 
> >
> >
> > Please note that I use req.getSession(true) in the login servlet
> and
> > DO know that session is created.
> >
> > Tech spec:
> >  Software: tomcat 5.0.24 on Redhat FS2
> >  Hardware: AMD 2700+, 512Mb, 120 GB HDD.
> >
> >
> > Any comments and suggestions are welcome.
> >
> > Thanks,
> > Mark.
> >
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
> > http://mobile.yahoo.com/maildemo
> >
> >
>
-
> > 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]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Re: 5.5.3 zip has no tomcat exe for windows

2004-10-12 Thread Christopher Watson
Remy Maucherat wrote:
On Tue, 12 Oct 2004 08:49:31 +0100, Christopher Watson
<[EMAIL PROTECTED]> wrote:
 

Hi All,
Just unzipped 5.5.3 zip and tried to run service.bat to install the w2k
service
It says "The tomcat.exe was not found ..."
There are tomcat5.exe and tomcat5w.exe in 5.5.2 zip
Why are they missing from 5.5.3 ? By accident or design?
   

By design.
 

If design, how would I get the windows service running?
   

Get the .exe.
 

The windows installer .exe ? I have persistent problems with that and 
have given up - see thread with subject "tomcat 5.x windows installer"

or the tomcat5(w).exe? In which case where from? Lucky for me I had the 
5.5.2 one, but otherwise is it elsewhere?

If accident, can I safely just copy the .exes from 5.5.2? That's what
I'm going to try now.
   

BTW The above worked just fine
Regards,
Christopher

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


Re: AS/400 DB2

2004-10-12 Thread Chris Egolf
Have you tried the JT400 jdbc driver from IBM?
http://oss.software.ibm.com/developerworks/opensource/jt400/
That's the only JDBC driver I know of that works with DB2 on the AS/400.  Your 
connection string would look then look like this:

"jdbc:as400://serverName"
and the driver class name is com.ibm.as400.access.AS400JDBCDriver
sudip shrestha wrote:
Hi !
I am trying to connect to an AS/400 DB2 via IBM DataDirect JDBC 
DriverWondering if anybody has any experience with this.
You have to specify a location and collectionId attribute.  My url 
connection string looks like this:
"jdbc:datadirect:db2://serverName:5;Location=nameOfDatabase;CollectionId=DEFAULT;" 


--

   Chris Egolf
 http://www.ugholf.net [EMAIL PROTECTED]

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


Repost: Hiding welcome page

2004-10-12 Thread khanaz
Assuming my site is http://www.mysite.com/  ,
whenever I go to the site, I see http://www.mysite.com/index.jsp
 . How do I enable tomcat 4.1 (preferably)
or 5 to hide the index.jsp portion of the URL so all I see is
http://www.mysite.com  ? I have been unable to find
a solution to this problem.

 

Azam Khan

 

 



Re: request.getSession(false) randomly returns null in servlet

2004-10-12 Thread David Wall
Is it possible that your session has ended (too long between requests)?
Check how long you have configured sessions to be active (in web.xml).  Is
it possible you are losing the encoded session ids (if cookies are not being
used)? It's easy to miss an encoded URL on a page for get/post and thus lose
the session id on the next request.  Then again, I've seen bugs before in
which cookies are quite reliable, but encoded URLs don't always seem to
work.

David

- Original Message - 
From: "Mark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 12, 2004 8:36 AM
Subject: request.getSession(false) randomly returns null in servlet


> Hi All,
> I have unstable behavior in my web application when I try to get
> HttpSession.
> The problem is that the following code randomly returns _null_ for
> HttpSession.
>
> But next http request from different servlet using the same code is
> fine. and when I call servlet with problem I've got null again.
> Interesting, that if I wait for few minutes, this problem does not
> exists: I'm getting a session object with no problems
> Here the code:
>
> -- cut --
> public void doPost( HttpServletRequest req, HttpServletResponse resp
> )
>   throws IOException, ServletException
>   {
> String cPath = req.getContextPath();
> HttpSession ses = req.getSession(false);
> /* ... ses is null sometimes ;(*/
> 
> - end cut 
>
>
> Please note that I use req.getSession(true) in the login servlet and
> DO know that session is created.
>
> Tech spec:
>  Software: tomcat 5.0.24 on Redhat FS2
>  Hardware: AMD 2700+, 512Mb, 120 GB HDD.
>
>
> Any comments and suggestions are welcome.
>
> Thanks,
> Mark.
>
>
>
>
> __
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo
>
> -
> 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.getSession(false) randomly returns null in servlet

2004-10-12 Thread Mark
Hi All,
I have unstable behavior in my web application when I try to get
HttpSession.
The problem is that the following code randomly returns _null_ for
HttpSession.

But next http request from different servlet using the same code is
fine. and when I call servlet with problem I've got null again.
Interesting, that if I wait for few minutes, this problem does not
exists: I'm getting a session object with no problems
Here the code:

-- cut --
public void doPost( HttpServletRequest req, HttpServletResponse resp
)
  throws IOException, ServletException
  {
String cPath = req.getContextPath();
HttpSession ses = req.getSession(false);
/* ... ses is null sometimes ;(*/

- end cut 


Please note that I use req.getSession(true) in the login servlet and
DO know that session is created.

Tech spec:
 Software: tomcat 5.0.24 on Redhat FS2
 Hardware: AMD 2700+, 512Mb, 120 GB HDD.


Any comments and suggestions are welcome.

Thanks,
Mark.




__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



Re: Blocking access to static content

2004-10-12 Thread QM
On Tue, Oct 12, 2004 at 09:01:04AM -0600, Robert Harper wrote:
: http://localhost:8080/ctimpact/usr/1234567890/.properties,
: I would get the contents of that file. This is not acceptable.

So far, so good.

What about putting the  and  inside
 tags?  That works for me:

   
  
 Subscriber Area
 /access/subscriber/*
  

  
  


-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: How to make Tomcat write its server config to server.xml ...

2004-10-12 Thread erh
On Tue, Oct 12, 2004 at 11:21:29AM +0200, Krist van Besien wrote:
> Hello all,
> (This is a repost, as I had no anwers last time. I still hope there is an 
> answer though, as this issue just bit me again).
> 
> Around here we install webapps in non standard locations from the command 
> line.
> We do this by creating an .xml that contains all that tomcat (ver 4.1.27)
> needs to know about a new context and then do:
> 
> get --http-user="admin" --http-passwd="*" -O- \
> http://localhost:8080/manager/install?config=file:/data/myapp/conf/myapp.xml
> 
> This installs the context just fine, everything works.
> 
> Just one problem remains. The new context is not added to the server.xml. I
> need to get in to a browser, log on to the admin application, and then press
> "commit changes". If I don't do that Tomcat forgets all about the new 
> context
> after the next restart.
> 
> Is there way to tell Tomcat to write any changes to the running config back 
> to the server.xml, _from the command line_ ?

Grab the login page:
get http://localhost:8080/admin > foo.html

parse the html and grab the jsessionid:
jsid=`grep jsessionid foo.html | sed -e's/.*jsessionid=\(.*\)\'.*/\1/'`

login:
get \
http://localhost:8080/admin/j_security_check;jsessionid=${jsid}?j_username=...&j_password=...

commit changes:
get \
http://localhost:8080/admin/commitChanges.do;jsessionid=${jsid}?submit=Commit%20Changes
 

That should work.  I haven't tried it though.

eric

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



Re: error-page exception-type

2004-10-12 Thread François Richard
YESS !!!
This is the answer of my problem ;-))
THX  A LOT !!!
Steve Kirk wrote:
That reminds me.
I remember reading a few days ago on this list that IE ignores pages that
are shorter than 512 bytes in length.
 

-Original Message-
From: Markus Schönhaber [mailto:[EMAIL PROTECTED] 
Sent: Tuesday 12 October 2004 15:47
To: Tomcat Users List
Subject: Re: error-page exception-type

François Richard wrote:
   

I have a beginning of answer,
 

theguiltycouldbeInternetExplorer6.0...
   

The redirection works fine with Firefox and mozilla.
Anyone no why ? Anyone have this working on IE6 ?
 

Does redirection really not happen or is the error page 
simply not shown
by IE? IE ignores the page content sent by the server and display it's
own error page, if the HTTP status-code isn't 2xx and 
"Internet Settings
/ Advanced / Show short HTTP error messages" is selected (I'm not sure
whether the name of the option is exactly right, since I don't use an
English windows - but you'll get the point, I hope).

   

Streve >
1) In my case the problem is the same with the redirection 
 

error-code, 
   

like :
  
  404
  /pagesErreur/404.jsp
  
2) yes, same problem ...
Steve Kirk wrote:
 

I've had similar problems myself (not fully answered yet). 
   

Here's a 
   

couple
of issues that I found:
1. Check the exception messages / stack traces in your browser and 
logfiles
carefully to make sure that droit.jsp is not itself 
   

throwing a second
   

exception when trying to display the DroitsException that 
   

"called" it.
   

2. does droits.jsp contain this line?
  <[EMAIL PROTECTED] isErrorPage="true"%>

   

-Original Message-
From: François Richard [mailto:[EMAIL PROTECTED] Sent: 
 

Monday 04 
   

October 2004 13:53
To: [EMAIL PROTECTED]
Subject: error-page exception-type
Hi,
I'm blocked since this morning with an annoying problem on Tomcat 
(5.27 and 5.28). Impossible to redirect users with the 
 

error-page tag 
   

on jsp and html files. I'm using that on the web.xml :
  
  

 

com.sofice.commun.securite.DroitsException
   

ception-type>
 

/pagesError/droits.jsp
  
The jsp are well-compiled but the broswer display an 
 

error message 
   

(HTTP 500). The start of the DroitsException (jsp, 
 

servlet ...) is 
   

unimportant the problem is the same.
Notice that the redirection works fine with servlet and 
 

'directory 
   

listing' :
  
  

 

com.sofice.commun.securite.DroitsException
   

ception-type>
 

/servlet/test
  
  

 

com.sofice.commun.securite.DroitsException
   

ception-type>
 

/pagesError/
  
Many thanks for your answer.
 
 

 

-
   

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: how to bind the shutdown port to one single IP address

2004-10-12 Thread Shapira, Yoav

Hi,
Undocumented options? ;)  This is why our code is open for all to see:
look at org.apache.catalina.startup.Catalina line 397.  The 127.0.0.1
localhost address is hard-coded.

So the answer to your question is no: to accomplish what you want, you
must build a custom version of Tomcat which will have a configurable
shutdown address.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Sascha Vital [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 12, 2004 11:07 AM
>To: [EMAIL PROTECTED]
>Subject: how to bind the shutdown port to one single IP address
>
>Hi,
>is it possible to bind the shutdown port to one single IP address?
>
>I do have a clustered environment and running different virtual hosts
on
>the same physical host. Tomcat now binds the shutdown port always to
>localhost.8005 and with this "localhost", all virtual hosts are
included.
>But I just want to bind it to one single virtual host e.g. asterix.8005
and
>idefix.8005
>
>For the ajp port and http port I can use the attribute "address" to
bind
>these ports to one single IP address, but I did not find a way to bind
the
>shutdown port to one single IP address.
>
>Is there may be a way to start Tomcat with different parameters (e.g. -
>Dcatalina.host="asterix") or are there any uncommented commands?
>
>  
>
>Thanks for your help,
>Sascha
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



how to bind the shutdown port to one single IP address

2004-10-12 Thread Sascha Vital
Hi,
is it possible to bind the shutdown port to one single IP address?

I do have a clustered environment and running different virtual hosts on the same 
physical host. Tomcat now binds the shutdown port always to localhost.8005 and with 
this "localhost", all virtual hosts are included. But I just want to bind it to one 
single virtual host e.g. asterix.8005 and idefix.8005

For the ajp port and http port I can use the attribute "address" to bind these ports 
to one single IP address, but I did not find a way to bind the shutdown port to one 
single IP address.

Is there may be a way to start Tomcat with different parameters (e.g. 
-Dcatalina.host="asterix") or are there any uncommented commands?

  

Thanks for your help,
Sascha


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



RE: error-page exception-type

2004-10-12 Thread Steve Kirk

That reminds me.

I remember reading a few days ago on this list that IE ignores pages that
are shorter than 512 bytes in length.

> -Original Message-
> From: Markus Schönhaber [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday 12 October 2004 15:47
> To: Tomcat Users List
> Subject: Re: error-page exception-type
> 
> 
> François Richard wrote:
> > I have a beginning of answer,
> theguiltycouldbeInternetExplorer6.0...
> > The redirection works fine with Firefox and mozilla.
> > 
> > Anyone no why ? Anyone have this working on IE6 ?
> > 
> 
> Does redirection really not happen or is the error page 
> simply not shown
> by IE? IE ignores the page content sent by the server and display it's
> own error page, if the HTTP status-code isn't 2xx and 
> "Internet Settings
> / Advanced / Show short HTTP error messages" is selected (I'm not sure
> whether the name of the option is exactly right, since I don't use an
> English windows - but you'll get the point, I hope).
> 
> > Streve >
> > 1) In my case the problem is the same with the redirection 
> error-code, 
> > like :
> >
> >404
> >/pagesErreur/404.jsp
> >
> > 2) yes, same problem ...
> > 
> > Steve Kirk wrote:
> > 
> >> I've had similar problems myself (not fully answered yet). 
>  Here's a 
> >> couple
> >> of issues that I found:
> >>
> >> 1. Check the exception messages / stack traces in your browser and 
> >> logfiles
> >> carefully to make sure that droit.jsp is not itself 
> throwing a second
> >> exception when trying to display the DroitsException that 
> "called" it.
> >>
> >> 2. does droits.jsp contain this line?
> >><[EMAIL PROTECTED] isErrorPage="true"%>
> >>
> >>
> >>  
> >>
> >>> -Original Message-
> >>> From: François Richard [mailto:[EMAIL PROTECTED] Sent: 
> Monday 04 
> >>> October 2004 13:53
> >>> To: [EMAIL PROTECTED]
> >>> Subject: error-page exception-type
> >>>
> >>>
> >>> Hi,
> >>> I'm blocked since this morning with an annoying problem on Tomcat 
> >>> (5.27 and 5.28). Impossible to redirect users with the 
> error-page tag 
> >>> on jsp and html files. I'm using that on the web.xml :
> >>>
> >>>
> >>> 
> com.sofice.commun.securite.DroitsException
> >>> /pagesError/droits.jsp
> >>>
> >>>
> >>> The jsp are well-compiled but the broswer display an 
> error message 
> >>> (HTTP 500). The start of the DroitsException (jsp, 
> servlet ...) is 
> >>> unimportant the problem is the same.
> >>> Notice that the redirection works fine with servlet and 
> 'directory 
> >>> listing' :
> >>>
> >>>
> >>> 
> com.sofice.commun.securite.DroitsException
> >>> /servlet/test
> >>>
> >>>
> >>> 
> com.sofice.commun.securite.DroitsException
> >>> /pagesError/
> >>>
> >>>
> >>> Many thanks for your answer.
> >>>   
> > 
> > 
> > 
> -
> > 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: Blocking access to static content

2004-10-12 Thread Robert Harper
I have a tree that looks something like the following:

+---ctimpact
│   +---ctimpact
│   │   +---CTImpact
│   │   L---src
│   │   L---com
│   │   L---iat
│   │   +---ctimpact
│   │   L---utils
│   +---images
│   +---usr
│   │   +---1000
│   │   │   +---download
│   │   │   +---html
│   │   │   │   L---images
│   │   │   L---upload
│   │   +---123
│   │   │   +---download
│   │   │   L---upload
│   │   +---1234567890
│   │   │   +---download
│   │   │   +---html
│   │   │   │   L---images
│   │   │   L---upload
│   │   +---145000
│   │   │   +---download
│   │   │   +---html
│   │   │   │   L---images
│   │   │   L---upload
│   │   +---145001
│   │   │   +---download
│   │   │   +---html
│   │   │   │   L---images
│   │   │   L---upload
│   │   +---test
│   │   │   +---download
│   │   │   +---html
│   │   │   │   L---images
│   │   │   L---upload
│   │   L---Test14
│   │   +---download
│   │   +---html
│   │   │   L---images
│   │   L---upload
│   L---WEB-INF
│   +---classes
│   │   +---com
│   │   │   L---iat
│   │   │   +---ctimpact
│   │   │   L---utils
│   │   +---compressionFilters
│   │   +---filters
│   │   +---listeners
│   │   L---util
│   L---images

What I need to do is block access to anything under usr from direct access. I
have turned off listings in the default servlet so it is harder to browse but if
I were to put the URL http://localhost:8080/ctimpact/usr/1234567890/.properties,
I would get the contents of that file. This is not acceptable. I have added the
following security constraint:


User Content
All user data
/usr/*
GET
PUT
POST
DELETE

not_allowed



This does not seem to block access to anything under the /usr branch. If I use
the URL above, my filter is not called. I'm having a hard time locating
information I need in either the docs or books.

Any help would be appreciated.

Robert S. Harper
801.265.8800 ex. 255

> -Original Message-
> From: QM [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 11, 2004 9:05 PM
> To: Tomcat Users List
> Subject: Re: Blocking access to static content
> 
> On Mon, Oct 11, 2004 at 01:27:14PM -0600, Robert Harper wrote:
> : I tried filters but my filters were not always called.
> 
> It may be helpful to get to the root of why the filters weren't called.
> What happened?  What was in web.xml?
> 
> Better yet, just define security-constraints in web.xml and limit access
> to a role that's not assigned to anyone.
> 
> Putting the files in WEB-INF has mixed results as far as container
> portability.  Furthermore, it's not really a place for content...
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.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: error-page exception-type

2004-10-12 Thread Markus Schönhaber
François Richard wrote:
I have a beginning of answer, the guilty could be Internet Explorer 6.0 ...
The redirection works fine with Firefox and mozilla.
Anyone no why ? Anyone have this working on IE6 ?
Does redirection really not happen or is the error page simply not shown
by IE? IE ignores the page content sent by the server and display it's
own error page, if the HTTP status-code isn't 2xx and "Internet Settings
/ Advanced / Show short HTTP error messages" is selected (I'm not sure
whether the name of the option is exactly right, since I don't use an
English windows - but you'll get the point, I hope).
Streve >
1) In my case the problem is the same with the redirection error-code, 
like :
   
   404
   /pagesErreur/404.jsp
   
2) yes, same problem ...

Steve Kirk wrote:
I've had similar problems myself (not fully answered yet).  Here's a 
couple
of issues that I found:

1. Check the exception messages / stack traces in your browser and 
logfiles
carefully to make sure that droit.jsp is not itself throwing a second
exception when trying to display the DroitsException that "called" it.

2. does droits.jsp contain this line?
   <[EMAIL PROTECTED] isErrorPage="true"%>
 

-Original Message-
From: François Richard [mailto:[EMAIL PROTECTED] Sent: Monday 04 
October 2004 13:53
To: [EMAIL PROTECTED]
Subject: error-page exception-type

Hi,
I'm blocked since this morning with an annoying problem on Tomcat 
(5.27 and 5.28). Impossible to redirect users with the error-page tag 
on jsp and html files. I'm using that on the web.xml :
   
   
com.sofice.commun.securite.DroitsException
/pagesError/droits.jsp
   

The jsp are well-compiled but the broswer display an error message 
(HTTP 500). The start of the DroitsException (jsp, servlet ...) is 
unimportant the problem is the same.
Notice that the redirection works fine with servlet and 'directory 
listing' :
   
   
com.sofice.commun.securite.DroitsException
/servlet/test
   
   
com.sofice.commun.securite.DroitsException
/pagesError/
   

Many thanks for your answer.
  

-
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]Setting default value for form input type

2004-10-12 Thread Ben Souther
No, browsers won't allow that.

Picture what kind of files a malicious page could grab off of your
machine with a hidden form if they did.




On Tue, 2004-10-12 at 10:18, Antony Paul wrote:
> Hi,
>Is there any way to set the default value for the file field when
> the form is loaded ?.
> 
> rgds
> Antony Paul
> 
> -
> 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: versions 2.3 and 2.4 of web.xml

2004-10-12 Thread Steve Kirk
didn't try 5.0.28 but might upgrade to that soon and if so will test there
too

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday 12 October 2004 15:10
> To: Tomcat Users List
> Subject: RE: versions 2.3 and 2.4 of web.xml
> 
> 
> Hi,
> 
> Seems like a solid report.  Post it in Bugzilla (probably to 
> the Jasper
> component).  I notice you said 5.0.27: does 5.0.28 work?
> 
>  
> 
> Yoav Shapira  
> 
>  
> 
> >-Original Message-
> 
> >From: Steve Kirk [mailto:[EMAIL PROTECTED]
> 
> >Sent: Monday, October 11, 2004 2:50 PM
> 
> >To: 'Tomcat Users List'
> 
> >Subject: RE: versions 2.3 and 2.4 of web.xml
> 
> >
> 
> >Yoav, I have recreated my example.  I deleted my installation and
> 
> >reinstalled 5.0.27 from scratch (on win2k / JDK 1.4.2_05).
> 
> >
> 
> >I then added a simple webapp called "test" by adding these 
> three files
> 
> >under
> 
> >the webapps folder:
> 
> >test\index.jsp
> 
> >test\prelude.jspf
> 
> >test\WEB-INF\web.xml
> 
> >
> 
> >The file contents are as follows (I know that the jsps contain
> incomplete
> 
> >HTML but they suffice to keep the example simple).
> 
> >
> 
> >--index.jsp--
> 
> >==
> 
> >This is index.jsp
> 
> >==
> 
> >
> 
> >--prelude.jspf--
> 
> >==
> 
> >This is prelude.jspf
> 
> >==
> 
> >
> 
> >--web.xml--
> 
> >==
> 
> >
> 
> > 
> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> 
> >"http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> >
> 
> > 
> 
> >   
> 
> > *.jsp
> 
> > prelude.jspf
> 
> >   
> 
> > 
> 
> >
> 
> >==
> 
> >
> 
> >Note that the web.xml above uses the 2.3 DTD.
> 
> >I made no other changes to the standard installation.
> 
> >
> 
> >I then started tomcat (I already have it installed as a service).  I
> then
> 
> >accessed http://localhost:8080/test/ using IE6.  This displayed the
> file
> 
> >index.jsp. The browser showed just the text "This is index.jsp".  In
> other
> 
> >words, no text from prelude.jspf was included even though this is
> 
> >configured
> 
> >in web.xml.  No errors were logged in any of the logfiles.
> 
> >
> 
> >As a check, I then stopped tomcat and edited web.xml to give 
> it the 2.4
> 
> >headers, deleted all the files from the work directory, then 
> restarted
> 
> >tomcat and ctrl-F5'd IE to force-reload the page.  This 
> time, the text
> from
> 
> >prelude.jspf was included in index.jsp, and no errors were logged.
> 
> >
> 
> >So, as far as I can tell, it seems that the  tag is
> being
> 
> >silently ignored when placed in a 2.3 web.xml, but no errors 
> are being
> 
> >thrown.
> 
> >
> 
> >> -Original Message-
> 
> >> From: Steve Kirk [mailto:[EMAIL PROTECTED]
> 
> >> Sent: Thursday 07 October 2004 18:42
> 
> >> To: 'Tomcat Users List'
> 
> >> Subject: RE: versions 2.3 and 2.4 of web.xml
> 
> >>
> 
> >>
> 
> >>
> 
> >> Unfortunately I deleted my example once I'd realised what the
> 
> >> problem was.
> 
> >> Like you I don't have time now, but will try to find time
> 
> >> soon to redo it,
> 
> >> and post an example.
> 
> >>
> 
> >> > -Original Message-
> 
> >> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> 
> >> > Sent: Thursday 07 October 2004 16:43
> 
> >> > To: Tomcat Users List
> 
> >> > Subject: RE: versions 2.3 and 2.4 of web.xml
> 
> >> >
> 
> >> >
> 
> >> >
> 
> >> > Hi,
> 
> >> > I didn't follow the thread on include-prelude (not my cup
> 
> >> of tea).  If
> 
> >> > you can post a web.xml (or better yet, a simple WAR 
> containing this
> 
> >> > web.xml) that is invalid according to its own declared 
> DTD and yet
> 
> >> > Tomcat doesn't complain, that'd be great.  I don't have time
> 
> >> > to look at
> 
> >> > this now, there are more important issues around, but maybe
> 
> >> > eventually... ;)
> 
> >> >
> 
> >> > Yoav Shapira
> 
> >> > Millennium Research Informatics
> 
> >> >
> 
> >> >
> 
> >> > >-Original Message-
> 
> >> > >From: Steve Kirk [mailto:[EMAIL PROTECTED]
> 
> >> > >Sent: Thursday, October 07, 2004 11:27 AM
> 
> >> > >To: 'Tomcat Users List'
> 
> >> > >Subject: RE: versions 2.3 and 2.4 of web.xml
> 
> >> > >
> 
> >> > >
> 
> >> > >Yoav, I see your point in your previousu post on this thread
> 
> >> > re 2.3 DTD
> 
> >> > >still being valid. However what do you think regarding the
> 
> >> > possible bug
> 
> >> > >mentioned in my later post below?  (i.e. that a 2.4
> 
> >> feature used in a
> 
> >> > 2.3
> 
> >> > >file does not cause an exception, but instead is silently
> ignored).
> 
> >> > The
> 
> >> > >validation that tomcat does on web.xml is usually very thorough,
> so
> 
> >> > this
> 
> >> > >case seems to be a bit of an anomaly.
> 
> >> > >
> 
> >> > >> -Original Message-
> 
> >> > >> From: Steve Kirk [mailto:[EMAIL PROTECTED]
> 
> >> > >> Sent: Thur

RE: RE: Check for deployed applications

2004-10-12 Thread Shapira, Yoav

Hi,
That's a decent solution.  JMeter does something similar with the status servlet's XML 
output.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: kax [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, October 12, 2004 10:23 AM
>To: Tomcat Users List
>Subject: Re: RE: Check for deployed applications
>
>Maybe I can make a http request to the url and parse the result? Is that a
>good solution or is there any better?
>
>/Kax
>
>>
>> From: kax <[EMAIL PROTECTED]>
>> Date: 2004/10/12 ti PM 02:09:42 GMT
>> To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> Ämne: Re: RE: Check for deployed applications
>>
>> Yes, but the problem is that I want to get this information from an
>external application.
>>
>> /Kax
>>
>> >
>> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>> > Date: 2004/10/12 ti PM 01:42:59 GMT
>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> > Ämne: RE: Check for deployed applications
>> >
>> > Hi,
>> >
>> > You can use the Manager webapp's HTML interface:
>> > http://localhost:8080/manager/list in your browser.
>> >
>> >
>> >
>> >
>> >
>> > Yoav Shapira
>> >
>> >
>> >
>> > >-Original Message-
>> >
>> > >From: kax [mailto:[EMAIL PROTECTED]
>> >
>> > >Sent: Monday, October 11, 2004 3:04 AM
>> >
>> > >To: [EMAIL PROTECTED]
>> >
>> > >Subject: Check for deployed applications
>> >
>> > >
>> >
>> > >Hello,
>> >
>> > >
>> >
>> > >I know I can use the ant ListTask for getting the deployed
>applications
>> > on
>> >
>> > >tomcat, but doing that I'm not getting a result to see if I have an
>> >
>> > >applicatioon deployed at the root or at any other path. Is there
>> > another
>> >
>> > >way to check this?
>> >
>> > >
>> >
>> > >Thanks in advance
>> >
>> > >
>> >
>> > >/Kax
>> >
>> > >
>> >
>> > >
>> >
>> > >-
>> >
>> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >
>> > >For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>> >
>> >
>> >
>> > This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an) intended
>recipient, please immediately delete this e-mail from your computer system
>and notify the sender.  Thank you.
>> >
>> >
>> >
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE : RE: Check for deployed applications

2004-10-12 Thread Boulay Arnaud
Ant tomcat tasks is a better way ...
regards,
Arnaud

 Message d'origine 
De: kax [mailto:[EMAIL PROTECTED] 
Date: mar. 12/10/2004 16:22 
Ã: Tomcat Users List 
Cc: 
Objet: Re: RE: Check for deployed applications



Maybe I can make a http request to the url and parse the result? Is that a 
good solution or is there any better?

/Kax

>
> From: kax <[EMAIL PROTECTED]>
> Date: 2004/10/12 ti PM 02:09:42 GMT
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Ãmne: Re: RE: Check for deployed applications
>
> Yes, but the problem is that I want to get this information from an external 
application.
>
> /Kax
>
> >
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > Date: 2004/10/12 ti PM 01:42:59 GMT
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Ãmne: RE: Check for deployed applications
> >
> > Hi,
> >
> > You can use the Manager webapp's HTML interface:
> > http://localhost:8080/manager/list in your browser.
> >
> >
> >
> >
> >
> > Yoav Shapira
> >
> >
> >
> > >-Original Message-
> >
> > >From: kax [mailto:[EMAIL PROTECTED]
> >
> > >Sent: Monday, October 11, 2004 3:04 AM
> >
> > >To: [EMAIL PROTECTED]
> >
> > >Subject: Check for deployed applications
> >
> > >
> >
> > >Hello,
> >
> > >
> >
> > >I know I can use the ant ListTask for getting the deployed applications
> > on
> >
> > >tomcat, but doing that I'm not getting a result to see if I have an
> >
> > >applicatioon deployed at the root or at any other path. Is there
> > another
> >
> > >way to check this?
> >
> > >
> >
> > >Thanks in advance
> >
> > >
> >
> > >/Kax
> >
> > >
> >
> > >
> >
> > >-
> >
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> > This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
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: Performance issue

2004-10-12 Thread Faisal Abdullah
> So what's your complaint?  That it's GC'ing too much?  
I don't know if its GCing too much or not. I haven't any idea what the ideal 
GC should be like. But thanks for your comments on that.

>That it's not
> handling enough concurrent clients?  Those connection reset messages
> that were in your log?  Do you have defined performance goals are you
> simply trying to make it "not sluggish" ?
> 

Those connection resets - I don' t know if they're normal or not.
Should I be worried about it?
I guess I'm trying to find the *reason* why this performance issue exists.
Once I'm able to identify it, hopefully i'll be able to do something about it.

Regards,
Faisal

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



Re: RE: Check for deployed applications

2004-10-12 Thread kax
Maybe I can make a http request to the url and parse the result? Is that a good 
solution or is there any better?

/Kax

> 
> From: kax <[EMAIL PROTECTED]>
> Date: 2004/10/12 ti PM 02:09:42 GMT
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Ämne: Re: RE: Check for deployed applications
> 
> Yes, but the problem is that I want to get this information from an external 
> application. 
> 
> /Kax
> 
> > 
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > Date: 2004/10/12 ti PM 01:42:59 GMT
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Ämne: RE: Check for deployed applications
> > 
> > Hi,
> > 
> > You can use the Manager webapp's HTML interface:
> > http://localhost:8080/manager/list in your browser.
> > 
> > 
> > 
> > 
> > 
> > Yoav Shapira
> > 
> > 
> > 
> > >-Original Message-
> > 
> > >From: kax [mailto:[EMAIL PROTECTED]
> > 
> > >Sent: Monday, October 11, 2004 3:04 AM
> > 
> > >To: [EMAIL PROTECTED]
> > 
> > >Subject: Check for deployed applications
> > 
> > >
> > 
> > >Hello,
> > 
> > >
> > 
> > >I know I can use the ant ListTask for getting the deployed applications
> > on
> > 
> > >tomcat, but doing that I'm not getting a result to see if I have an
> > 
> > >applicatioon deployed at the root or at any other path. Is there
> > another
> > 
> > >way to check this?
> > 
> > >
> > 
> > >Thanks in advance
> > 
> > >
> > 
> > >/Kax
> > 
> > >
> > 
> > >
> > 
> > >-
> > 
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > 
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > 
> > 
> > This e-mail, including any attachments, is a confidential business communication, 
> > and may contain information that is confidential, proprietary and/or privileged.  
> > This e-mail is intended only for the individual(s) to whom it is addressed, and 
> > may not be saved, copied, printed, disclosed or used by anyone else.  If you are 
> > not the(an) intended recipient, please immediately delete this e-mail from your 
> > computer system and notify the sender.  Thank you.
> > 
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



[OT]Setting default value for form input type

2004-10-12 Thread Antony Paul
Hi,
   Is there any way to set the default value for the file field when
the form is loaded ?.

rgds
Antony Paul

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



RE: Undefined hosts being directed to localhost

2004-10-12 Thread Shapira, Yoav
Hi,

The RemoteAddr/RemoteHost filter valves may be useful for you in this
scenario as well, especially as they can be configured at the Engine
level to cover all your Hosts.  See the Valve configuration
documentation page for details.



Yoav Shapira 



>-Original Message-

>From: David Smith [mailto:[EMAIL PROTECTED]

>Sent: Monday, October 11, 2004 1:44 PM

>To: Tomcat Users List

>Subject: Re: Undefined hosts being directed to localhost

>

>Or as I've seen, kiddies on the internet are looking for an open proxy

>to hide their tracks or get past firewall rules.  I just make sure my

>server is properly configured not to proxy and ignore it.

>

>What they really get from a properly configured server is either (a) a

>404 if the requested resource doesn't exist on the local server, or (b)

>the local server's version of that resource if it exists.  In the case

>of requesting the home page of www.yahoo.com, they actually get my

>site's homepage instead.

>

>--David

>

>Hassan Schroeder wrote:

>

>> Robert Hunt wrote:

>>

>>> Okay, I should have remembered about the defaultHost attr of the

>>>  node. (duh Rob!)

>>>

>>> However, I'd like to redirect/stop spurious requests that have

>>> nothing to do with my hosts; I've gotten a couple requests with

>>> "www.yahoo.com" as the requested host.  Anyone already got a (or

>>> cleverly configured an existing)  class to do so?

>>

>>

>> ? If a request for "www.yahoo.com" is really being sent to your IP

>> address, either someone's using a bad nameserver or it's some kind

>> of attempted exploit.

>>

>> Is your concern related to the latter?

>>

>

>-

>To unsubscribe, e-mail: [EMAIL PROTECTED]

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






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



RE: versions 2.3 and 2.4 of web.xml

2004-10-12 Thread Shapira, Yoav
Hi,

Seems like a solid report.  Post it in Bugzilla (probably to the Jasper
component).  I notice you said 5.0.27: does 5.0.28 work?



Yoav Shapira 



>-Original Message-

>From: Steve Kirk [mailto:[EMAIL PROTECTED]

>Sent: Monday, October 11, 2004 2:50 PM

>To: 'Tomcat Users List'

>Subject: RE: versions 2.3 and 2.4 of web.xml

>

>Yoav, I have recreated my example.  I deleted my installation and

>reinstalled 5.0.27 from scratch (on win2k / JDK 1.4.2_05).

>

>I then added a simple webapp called "test" by adding these three files

>under

>the webapps folder:

>test\index.jsp

>test\prelude.jspf

>test\WEB-INF\web.xml

>

>The file contents are as follows (I know that the jsps contain
incomplete

>HTML but they suffice to keep the example simple).

>

>--index.jsp--

>==

>This is index.jsp

>==

>

>--prelude.jspf--

>==

>This is prelude.jspf

>==

>

>--web.xml--

>==

>

> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

>"http://java.sun.com/dtd/web-app_2_3.dtd";>

>

> 

>   

> *.jsp

> prelude.jspf

>   

> 

>

>==

>

>Note that the web.xml above uses the 2.3 DTD.

>I made no other changes to the standard installation.

>

>I then started tomcat (I already have it installed as a service).  I
then

>accessed http://localhost:8080/test/ using IE6.  This displayed the
file

>index.jsp. The browser showed just the text "This is index.jsp".  In
other

>words, no text from prelude.jspf was included even though this is

>configured

>in web.xml.  No errors were logged in any of the logfiles.

>

>As a check, I then stopped tomcat and edited web.xml to give it the 2.4

>headers, deleted all the files from the work directory, then restarted

>tomcat and ctrl-F5'd IE to force-reload the page.  This time, the text
from

>prelude.jspf was included in index.jsp, and no errors were logged.

>

>So, as far as I can tell, it seems that the  tag is
being

>silently ignored when placed in a 2.3 web.xml, but no errors are being

>thrown.

>

>> -Original Message-

>> From: Steve Kirk [mailto:[EMAIL PROTECTED]

>> Sent: Thursday 07 October 2004 18:42

>> To: 'Tomcat Users List'

>> Subject: RE: versions 2.3 and 2.4 of web.xml

>>

>>

>>

>> Unfortunately I deleted my example once I'd realised what the

>> problem was.

>> Like you I don't have time now, but will try to find time

>> soon to redo it,

>> and post an example.

>>

>> > -Original Message-

>> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED]

>> > Sent: Thursday 07 October 2004 16:43

>> > To: Tomcat Users List

>> > Subject: RE: versions 2.3 and 2.4 of web.xml

>> >

>> >

>> >

>> > Hi,

>> > I didn't follow the thread on include-prelude (not my cup

>> of tea).  If

>> > you can post a web.xml (or better yet, a simple WAR containing this

>> > web.xml) that is invalid according to its own declared DTD and yet

>> > Tomcat doesn't complain, that'd be great.  I don't have time

>> > to look at

>> > this now, there are more important issues around, but maybe

>> > eventually... ;)

>> >

>> > Yoav Shapira

>> > Millennium Research Informatics

>> >

>> >

>> > >-Original Message-

>> > >From: Steve Kirk [mailto:[EMAIL PROTECTED]

>> > >Sent: Thursday, October 07, 2004 11:27 AM

>> > >To: 'Tomcat Users List'

>> > >Subject: RE: versions 2.3 and 2.4 of web.xml

>> > >

>> > >

>> > >Yoav, I see your point in your previousu post on this thread

>> > re 2.3 DTD

>> > >still being valid. However what do you think regarding the

>> > possible bug

>> > >mentioned in my later post below?  (i.e. that a 2.4

>> feature used in a

>> > 2.3

>> > >file does not cause an exception, but instead is silently
ignored).

>> > The

>> > >validation that tomcat does on web.xml is usually very thorough,
so

>> > this

>> > >case seems to be a bit of an anomaly.

>> > >

>> > >> -Original Message-

>> > >> From: Steve Kirk [mailto:[EMAIL PROTECTED]

>> > >> Sent: Thursday 30 September 2004 18:03

>> > >> To: 'Tomcat Users List'

>> > >> Subject: RE: versions 2.3 and 2.4 of web.xml

>> > >>

>> > >>

>> > >>

>> > >> Further to my note below, plus my previous posts on "Who has got

>> > >>  to work?", I think I might have stumbled

>> > across the

>> > >> answers to both myself.

>> > >>

>> > >> Basically my web.xml files were based on the v2.3 files that

>> > >> shipped with

>> > >> the standard installation, and using these seems to have

>> > >> silently suppressed

>> > >> the 2.4 features, including .

>> > >>

>> > >> Not sure if this is a bug - if web.xml encounters a tag which

>> > >> it knows is

>> > >> valid in its current version, but not in the earlier version

>> > >> declared in the

>> > >>  tag, should an exception be thrown, or should it

>> > >> silently ign

Re: RE: Check for deployed applications

2004-10-12 Thread kax
Yes, but the problem is that I want to get this information from an external 
application. 

/Kax

> 
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> Date: 2004/10/12 ti PM 01:42:59 GMT
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Ämne: RE: Check for deployed applications
> 
> Hi,
> 
> You can use the Manager webapp's HTML interface:
> http://localhost:8080/manager/list in your browser.
> 
> 
> 
> 
> 
> Yoav Shapira
> 
> 
> 
> >-Original Message-
> 
> >From: kax [mailto:[EMAIL PROTECTED]
> 
> >Sent: Monday, October 11, 2004 3:04 AM
> 
> >To: [EMAIL PROTECTED]
> 
> >Subject: Check for deployed applications
> 
> >
> 
> >Hello,
> 
> >
> 
> >I know I can use the ant ListTask for getting the deployed applications
> on
> 
> >tomcat, but doing that I'm not getting a result to see if I have an
> 
> >applicatioon deployed at the root or at any other path. Is there
> another
> 
> >way to check this?
> 
> >
> 
> >Thanks in advance
> 
> >
> 
> >/Kax
> 
> >
> 
> >
> 
> >-
> 
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> 


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



RE: Tomcat5 Install problem

2004-10-12 Thread Shapira, Yoav
Hi,

Look in the logs subdirectory of where you installed Tomcat to see the
logs.  You can also try to run it from the command-line first, before
running as a service, to make sure it's installed fine.  You can use
"catalina.bat run" to keep the DOS window open so that messages don't
disappear.



Yoav Shapira 



>-Original Message-

>From: Cord Awtry [mailto:[EMAIL PROTECTED]

>Sent: Sunday, October 10, 2004 2:02 PM

>To: [EMAIL PROTECTED]

>Subject: Tomcat5 Install problem

>

>Hey all,

>

>I'm trying to install Tomcat 5.0.28 on a Win2k server. It

>installs just fine but the service won't install saying there's already
a

>service running with the same name. There definitely isn't one but I
can't

>read the rest of the log because it flashes by so fast and I can't find

>where (or if) the install log is written to.

>

>Has anyone seen this issue?

>

>Does anyone know where the install log is written to?

>

>Thanks,

>

>-C-




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



Re: reloading JSP files without reloading classes/beans

2004-10-12 Thread Jonathan Wilson
Just an FYI for anybody else that is trying to learn the "standard" way 
of doing things in Tomcat development. The following article is out of 
date with respect to the most recent version of Tomcat, but it does 
provide a framework for doing JSP development using Tomcat. It also  
provides code/scripts that create WAR's and deploys them for you.

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/appdev/contents.html
--JW
QM wrote:
On Mon, Oct 11, 2004 at 05:27:05PM -0500, Jonathan Wilson wrote:
: New Question (While I've got ya :): Given that I can use a WAR file 
: to "deploy," would you advise using Tomcat 5.x as my test server, 
: creating a WAR and then deploying that to a production 3.3.1 server? 
: This would kinda let me test using 5.x and still support a 3.3.1 box. 

Not really.  To run an app under Tomcat 5, you should build against the
Tomcat 5 JARs and such, which would limit the chances of that same WAR
file working transparently under Tomcat 3.
Not to mention, you really want your dev and production environments to
mirror one another.  Otherwise, how can you be certain the app will act
the same in the two environments?  To experiment with Tomcat 5, setup a
separate instance and rebuild your app there.  You can run both Tomcat
versions on the same machine, if you play your cards right.
For your other questions (e.g. how to create a WAR file, how to deploy),
you may want to review the servlet spec and the Tomcat docs.  

-QM
 

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


RE: Tomcat + NFS

2004-10-12 Thread Shapira, Yoav
Hi,

Definitely not a Tomcat issue: it's an NFS issue, contact your sysadmin.
Tomcat (and Java apps in general) don't want, need, or can mess with
your NFS mount setup.



Yoav Shapira 



>-Original Message-

>From: Amin Abbaspour [mailto:[EMAIL PROTECTED]

>Sent: Monday, October 11, 2004 5:13 AM

>To: [EMAIL PROTECTED]

>Subject: Tomcat + NFS

>

>Hi,

>

>I am using Tomcat 4.1.9. Tomcat directory is shared via NFS in
Linux(FC1).

>I noticed that after deployment of WAR files, there will be some hidden

>files in the extracted directory with ".nfs" prefix. These files are
not

>removed easily and hence redeploy/undeploy of the project is nearly

>impossible, unless I restart the tomcat instance.

>

>I want to know whether this is a known issue, and whether I should do

>modifications to Tomcat or NFS to solve this.

>

>Sincerely,

>Amin

>

>-

>To unsubscribe, e-mail: [EMAIL PROTECTED]

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






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



RE: Realm for Admin tool?

2004-10-12 Thread Shapira, Yoav
Hi,

The default Realm for Admin and Manager is a Memory realm using
conf/tomcat-users.xml that's declared in the GlobalNamingResources
section of the default server.xml file.



Yoav Shapira 



>-Original Message-

>From: Andoni [mailto:[EMAIL PROTECTED]

>Sent: Monday, October 11, 2004 1:52 PM

>To: Tomcat Users List

>Subject: Fw: Realm for Admin tool?

>

>Hello,

>

>I have just changed over from Tocmat 4.0.4 to Tomcat 4.1.24 and now I
want

>to get the Admin tool working.

>

>The error message I am getting is "No Realm has been configured to

>authenticate against" but there is no Realm in my Windows version of
Admin

>tool either and it seems to work fine!

>

>The manager tool does not work either. I had them working at one stage
but

>then while configuring Apache and copying things from the old server I

>broke it somehow. Can somebody please give me a hint as to what change
that

>I made may have broken this?

>

>Thanks,

>

>Andoni.




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



Re: unpackWARs="false" => hot unzip for static resources

2004-10-12 Thread Larry Meadors
>From what I have seen, everything gets unpacked anyway...just into the
work directory instead of the webapps directory (with my version of
tomcat - 4.1.29). 

Larry

>>> [EMAIL PROTECTED] 10/12/04 3:54 AM >>>
Hello !
I would like to have confirmation for this topic :
 
Says a XML context file "myapp.xml" like this :

 
and unpackWARs set to "false" in  tag and server.xml file.
 
What does happen when the client call static resource (like HTML file) ?
Is there an "unzip call" each time ? or something else (files stored in
temp dir) ?
Thanks,
Arnaud

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



RE: euro sign tomcat 4 -> 5

2004-10-12 Thread Shapira, Yoav
Hi,

No problem: thank you for posting your solution.



Tomcat 5 in general is much stricter in each charset handling.  It follows the servlet 
and JSP specifications rigidly.



Yoav Shapira 



>-Original Message-

>From: Xavier Frisaye [mailto:[EMAIL PROTECTED]

>Sent: Tuesday, October 12, 2004 5:59 AM

>To: Tomcat Users List

>Subject: RE: euro sign tomcat 4 -> 5

>

>I found my problem :

>

>I was calling response.getWriter() before

>response.setContentType("text/xml; charset=utf-8") and thus as java servlet

>2.3 spec, the writer never use the charset specified in content type (with

>Tomcat 5 but with Tomcat 4 it does).

>

>So, sorry for the inconvenience and thank to you all.

>

>Regards.

>

>Xavier Frisaye

>

>-Original Message-

>From: Andoni [mailto:[EMAIL PROTECTED]

>Sent: lundi 11 octobre 2004 15:26

>To: Tomcat Users List

>Subject: Re: euro sign tomcat 4 -> 5

>

>

>If the same web-app worked perfectly in Tomcat 4 and now doesn't that would

>suggest the problem is with Tomcat, but if you never made the change to

>UTF-8 in Tomcat4 then that would suggest the problem is with your webapp!!

>

>Anyway, to change Tomcat to use UTF-8 you have to tell this to the JVM as

>it

>starts. the best way to do this is by editing catalina.bat (window) and

>setting CATALINA_OPTS = -Dfile.encoding=UTF-8

>

>CATALINA_OPTS is then inserted by the script into the call to the JVM.

>

>Hope that helps.

>Andoni.

>

>PS: I have never used Tomcat 5 but I would be surprised if this kind of

>thing has changed much.

>

>A.

>

>- Original Message -

>From: "Michiel Toneman" <[EMAIL PROTECTED]>

>To: "Tomcat Users List" <[EMAIL PROTECTED]>

>Sent: Monday, October 11, 2004 2:07 PM

>Subject: Re: euro sign tomcat 4 -> 5

>

>

>> IIRC you need 8859-15 for the EURO symbol if you are using the 8859

>> family of encodings. Better would be to use UTF-8. I'm guessing you were

>> using UTF-8 before?

>>

>> Regards,

>>

>> Michiel

>>

>> Dale, Matt wrote:

>>

>> >Sounds like your character set is set to 8859-1 instead of 8859-2. I'm

>not sure how or where to change this though.

>> >

>> >-Original Message-

>> >From: Xavier Frisaye [mailto:[EMAIL PROTECTED]

>> >Sent: 11 October 2004 13:50

>> >To: Tomcat Users List

>> >Subject: euro sign tomcat 4 -> 5

>> >

>> >

>> >Hi all,

>> >

>> >I've ugraded from Tomcat 4.1.24 to 5.0.28 and i'm encountering problem

>with euro sign when i try to write it from a servlet :

>> >it appears as ? instead of €, certainly charset problem.

>> >

>> >Is there any change made to tomcat 5 wich could explain this problem?

>> >

>> >(It works perfectly with Tomcat 4.1.24)

>> >

>> >Regards

>> >

>> >Xavier Frisaye

>> >

>> >

>> >

>> >

>> >Any opinions expressed in this E-mail may be those of the individual and

>not necessarily the company. This E-mail and any files transmitted with it

>are confidential and solely for the use of the intended recipient. If you

>are not the intended recipient or the person responsible for delivering to

>the intended recipient, be advised that you have received this E-mail in

>error and that any use or copying is strictly prohibited. If you have

>received this E-mail in error please notify the beCogent postmaster at

>[EMAIL PROTECTED]

>> >Unless expressly stated, opinions in this email are those of the

>individual sender and not beCogent Ltd. You must take full responsibility

>for virus checking this email and any attachments.

>> >Please note that the content of this email or any of its attachments may

>contain data that falls within the scope of the Data Protection Acts and

>that you must ensure that any handling or processing of such data by you is

>fully compliant with the terms and provisions of the Data Protection Act

>1984 and 1998.

>> >

>> >

>> >

>> >

>> >

>> >

>> >-

>> >To unsubscribe, e-mail: [EMAIL PROTECTED]

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

>> >

>>

>>

>> --

>> Michiel Toneman  Software Engineer   Bibit Global Payment Services

>> Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]

>> Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended onl

RE: Performance issue

2004-10-12 Thread Shapira, Yoav
Hi,



>The machine's are not swapping, simply JVM's max memory is 2GB. Our



They might not be swapping, but they certainly appear to be spending a
good amount of time on GC.  0.8sec for an incremental GC is significant.
But that might be because your heap is so high.



>RAM is 4GB. Any attempt to assign larger max memory to java, will

>cause failure in starting tomcat. A friend has tried doing this on

>FreeBSD and Gentoo Linux as well with the same results.



That's a JVM limitation, not a Tomcat one, so contact Sun if you want to
address more memory (I think J2SE 5.0 allows this already).



>43421.932: [GC 1704578K->1569670K(2073856K), 0.8122640 secs]

>43436.720: [GC 1756038K->1612010K(2073856K), 0.7409810 secs]

>43449.488: [GC 1798378K->1648439K(2073856K), 0.6549710 secs]

>43453.472: [GC 1834807K->1679482K(2073856K), 0.5872020 secs]

>43481.034: [Full GC 1865850K->809682K(2073856K), 8.6202320 secs]

>43502.707: [GC 996050K->851676K(2073856K), 0.5027510 secs]

>43523.369: [GC 1038044K->879605K(2073856K), 0.5389870 secs]

>43542.764: [GC 1065973K->883973K(2073856K), 0.2121380 secs]

>43569.000: [GC 1070340K->895005K(2073856K), 0.1536880 secs]

>43591.007: [GC 1081336K->917841K(2073856K), 0.4391310 secs]

>43619.284: [GC 1104209K->953106K(2073856K), 0.6477030 secs]

>43658.215: [GC 1139474K->985160K(2073856K), 0.5575750 secs]



So what's your complaint?  That it's GC'ing too much?  That it's not
handling enough concurrent clients?  Those connection reset messages
that were in your log?  Do you have defined performance goals are you
simply trying to make it "not sluggish" ?



Yoav Shapira 




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



RE: Name jdbc is not bound in this Context

2004-10-12 Thread Shapira, Yoav
Hi,

I bet it's just your webapp code that's looking for "jdbc" instead of
"jdbc/myapp" ;)  Your config (original: you don't need to do the
GlobalResources stuff, your original config is better) looks fine.



Yoav Shapira





>-Original Message-

>From: Mauro Romano Trajber [mailto:[EMAIL PROTECTED]

>Sent: Saturday, October 09, 2004 11:34 AM

>To: [EMAIL PROTECTED]

>Subject: Name jdbc is not bound in this Context

>

>I have configured the following datasource in

>$TOMCAT_HOME/conf/Catalina/localhost/myapp.xml:

>

>

>

>

>factoryorg.apache.commons.dbcp.BasicData
Sour

>ceFactory

>driverClassNamecom.mysql.jdbc.Driver

>

>urljdbc:mysql://localhost/myappt
rameter>

>...

>

>

>

>Then in my web.xml:

>...

>

>jdbc/myapp

>javax.sql.DataSource

>Container

>

>...

>

>I'm trying to use Hibernate throung Hibernate Synchronizer Eclipse

>Plugin, using JNDI. But I keep getting the error:

>

>javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context

>

>What's missing ?

>

>-

>To unsubscribe, e-mail: [EMAIL PROTECTED]

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






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



RE: How to make Tomcat write its server config to server.xml ...

2004-10-12 Thread Jérôme BATON

Hi Krist,

You found the way, it is using the "commit changes" class, a Struts Action.

To get the MBeanServer from your class, use the following (deprecated) code
Registry.getRegistry().getMBeanServer();

And then send the same commands that the Action class (look in the source code).


As you'll need to have Tomcat running, you should do it in an access-protected page 
that you would access from an httpclient class used at the command line


If you look at a recent post of mine, you'll see I have some trouble with the 
MBeanServer, it's not a trivial object. 
Good luck


HIH


Jerome

-Message d'origine-
De : Krist van Besien [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 12 octobre 2004 11:21
À : [EMAIL PROTECTED]
Objet : How to make Tomcat write its server config to server.xml ...

Hello all,
(This is a repost, as I had no anwers last time. I still hope there is an answer 
though, as this issue just bit me again).

Around here we install webapps in non standard locations from the command line.
We do this by creating an .xml that contains all that tomcat (ver 4.1.27) needs to 
know about a new context and then do:

get --http-user="admin" --http-passwd="*" -O- \ 
http://localhost:8080/manager/install?config=file:/data/myapp/conf/myapp.xml

This installs the context just fine, everything works.

Just one problem remains. The new context is not added to the server.xml. I need to 
get in to a browser, log on to the admin application, and then press "commit changes". 
If I don't do that Tomcat forgets all about the new context after the next restart.

Is there way to tell Tomcat to write any changes to the running config back to the 
server.xml, _from the command line_ ?

TIA,

Krist

--

Krist van Besien   Bern, Switzerland





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



RE: Help!

2004-10-12 Thread Pawson, David
 

-Original Message-
From: Martin Crowe 

Could anyone point me in the right direction please - any 
pointers to manuals or webpages that would help, or just 
any knowledge that could be passed on to me regarding this.

http://cymulacrum.net/writings/tomcat5/book1.html helped me a lot.

Thereafter its just a slog working with the documents to get what
you want.

HTH DaveP

** snip here **



-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



Help!

2004-10-12 Thread Martin Crowe
Ok, let me introduce myself, just to give you a level of experience with 
linux. I know very little about linux - basic commands etc. My company 
is on my back about installing a linux box with tomcat and apache. They 
seem to be very good at telling me what they want (ie what packages 
running), but can't give any real support on how to set it up.

So far, I have managed to install debian 3.0.2 (Woody). I have set up an 
entry in our firewall to point to this server's ip address, and can ping 
it etc.

This is all fine. Next, I installed apache-ssl using apt-get. If anyone 
wants the version of this then you'd need to tell me the command to find 
out.
I haven't done any set-up on this yet, but have seen the conf file and 
some of it looks fairly self explanatory, whereas other bits look more 
difficult.

I installed jdk1.5 and this wasn't too hard. Put a class_path 
environment variable in.

Next, I spent literally days trying to get an install for tomcat 5.5 
that i could figure out. I ended up downloading a tar.gz package from 
one of the jakarta mirrors. (Version 5.5.3-alpha). This is then put on 
the server, and unzipped it (what's the linux for this, untar?) to a 
directory /var/install/tomcat/jakarta-tomcat-5.5.3.   I then ran the 
startup script in the bin directory and in it's most basic form, this 
worked. I modified part of the server.xml file from localhost to the dns 
name i put in the firewall, as i don't have a browser on the linux 
machine (as far as I'm aware - yes this just shows my linux expertise!). 
It starts up fine without any other modifications (that I can remeber 
doing anyway), and I can browse to it on port 8080.

Ok, now I'm stuck (I also know nothing about jsp or sevlets)
What they want is to be able to have multiple versions of their jsp 
enabled site running on different ports on the machine, through apache 
using tomcat.

Eg:
   The main site will be in /home/www, and to browse to that we would 
type in http://hostname/   eg port 80
   Each developer will have their own local copy of the site in their 
/home/user/www directory, and would browse to it with a given port 
number, so for example if one of the developers was assigned say port 
8004, they could look at their local copy of the site by browsing to 
http://hostname:8004.

I can't seem to work out how to link apache and tomcat, have read 
something about using mod_jk or mod_jserv, but i just can't figure them 
out. I also can't seem to find any documents that will describe using 
multiple homes on both servers (eg i can figure this out on apache's 
conf  file, but haven't got a clue how to do all this in tomcat as well.

Could anyone point me in the right direction please - any pointers to 
manuals or webpages that would help, or just any knowledge that could be 
passed on to me regarding this.

I'm sorry, I know this is one of those questions that's very long and 
doesn't have one simple answer

Thanks
Martin
--
Martin Crowe
Developer
MitchellConnerSearson
3-5 High Pavement
The Lace Market
Nottingham  NG1 1HF
Tel +44 (0)115 959 6455
Fax +44 (0)115 959 6456
Direct +44 (0)115 959 6469
www.choosemcs.co.uk
Confidentiality: This e-mail and its attachments are intended for the above named only 
and may be confidential. If they have come to you in error you must take no action 
based on them, nor must you copy or show them to anyone; please reply to this e-mail 
and highlight the error.
Security Warning: Please note that this e-mail has been created in the knowledge that 
Internet e-mail is not a 100% secure communications medium. We advise that you 
understand and observe this lack of security when e-mailing us.
Viruses: Although we have taken steps to ensure that this e-mail and attachments are 
free from any virus, we advise that in keeping with good computing practice the 
recipient should ensure they are actually virus free.

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


RE: Check for deployed applications

2004-10-12 Thread Shapira, Yoav
Hi,

You can use the Manager webapp's HTML interface:
http://localhost:8080/manager/list in your browser.





Yoav Shapira



>-Original Message-

>From: kax [mailto:[EMAIL PROTECTED]

>Sent: Monday, October 11, 2004 3:04 AM

>To: [EMAIL PROTECTED]

>Subject: Check for deployed applications

>

>Hello,

>

>I know I can use the ant ListTask for getting the deployed applications
on

>tomcat, but doing that I'm not getting a result to see if I have an

>applicatioon deployed at the root or at any other path. Is there
another

>way to check this?

>

>Thanks in advance

>

>/Kax

>

>

>-

>To unsubscribe, e-mail: [EMAIL PROTECTED]

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






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



Re: error-page exception-type

2004-10-12 Thread François Richard
I have a beginning of answer, the guilty could be Internet Explorer 6.0 ...
The redirection works fine with Firefox and mozilla.
Anyone no why ? Anyone have this working on IE6 ?
Streve >
1) In my case the problem is the same with the redirection error-code, 
like :
   
   404
   /pagesErreur/404.jsp
   
2) yes, same problem ...

Steve Kirk wrote:
I've had similar problems myself (not fully answered yet).  Here's a couple
of issues that I found:
1. Check the exception messages / stack traces in your browser and logfiles
carefully to make sure that droit.jsp is not itself throwing a second
exception when trying to display the DroitsException that "called" it.
2. does droits.jsp contain this line?
   <[EMAIL PROTECTED] isErrorPage="true"%>
 

-Original Message-
From: François Richard [mailto:[EMAIL PROTECTED] 
Sent: Monday 04 October 2004 13:53
To: [EMAIL PROTECTED]
Subject: error-page exception-type

Hi,
I'm blocked since this morning with an annoying problem on 
Tomcat (5.27 
and 5.28). Impossible to redirect users with the error-page 
tag on jsp 
and html files. I'm using that on the web.xml :
   
   
com.sofice.commun.securite.DroitsException/pagesError/droits.jsp
   

The jsp are well-compiled but the broswer display an error 
message (HTTP 
500). The start of the DroitsException (jsp, servlet ...) is 
unimportant 
the problem is the same.
Notice that the redirection works fine with servlet and 'directory 
listing' :
   
   
com.sofice.commun.securite.DroitsException/servlet/test
   
   
com.sofice.commun.securite.DroitsException/pagesError/
   

Many thanks for your answer.
   

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


RE: Javascript and cookie

2004-10-12 Thread Shapira, Yoav
Hi,

Cookies you can test: simply write one, sendRedirect, and try to read
it.  If it works, then you know the browser supports cookies.



Detecting whether JavaScript is enabled can be done in a similarly
tricky way, by including some JavaScript in a response that pings a
server URL of your choice.  If the URL is pinged, it can set a session
attribute indicating JavaScript is enabled.



These are of course fragile approaches, as the user can change either
cookie support or JavaScript settings in the middle of his/her session.



The Servlet API itself doesn't offer programmatic hooks to do this,
because your apps should work fine with or without these services, at
least according to the spirit of the Servlet Spec.



Yoav Shapira



>-Original Message-

>From: Carlos Bracho [mailto:[EMAIL PROTECTED]

>Sent: Saturday, October 09, 2004 8:25 PM

>To: Tomcat Users List

>Subject: Javascript and cookie

>

>Hi everybody...

>

>Can I know if the browser has cookies and javascript set as enable? of

>course using jps or servlet.

>

>Regards

>Carlos

>--

>--

> Carlos J, Bracho M.

> "The significant problems we face cannot

>  be solved at the same level of thinking

>  we were at when we created them."

>  Albert Einstein

>--

> e-mail:  [EMAIL PROTECTED]

> MSN:[EMAIL PROTECTED]

>--

>

>-

>To unsubscribe, e-mail: [EMAIL PROTECTED]

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






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



RE: Intalling Tomcat 5.0 on AIX

2004-10-12 Thread Shapira, Yoav
Hi,

Hmm... I have Tomcat 5 running nicely on AIX, but standalone (no Apache
in front, as we have no need for it) and therefore no connectors.  So I
can't help much on this one, sorry ;(





Yoav Shapira



>-Original Message-

>From: Kyle Boyd [mailto:[EMAIL PROTECTED]

>Sent: Friday, October 08, 2004 5:00 PM

>To: [EMAIL PROTECTED]

>Subject: Intalling Tomcat 5.0 on AIX

>

>I am trying to install Tomcat 5.0 on aix with apache. When I run the

>make file I get an error message stating mod_jk2.so does not exist. I

>would appreciate any help.

>

>AIX 5.1

>Apache 1.3.19.3

>

>jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2, run make:

>

>Making  in server/apache13

>make[1]: Entering directory

>`/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/

>apache13'

>mkdir -p ../../../build/jk2/apache13//usr/HTTPServer/libexec

>/bin/sh ../../libtool --mode=install /usr/bin/cp

>../../../build/jk2/apache13/mod_jk2.la

>`pwd`/../../../build/jk2/apache13//usr/HTTPServer/libexec

>/usr/bin/cp ../../../build/jk2/apache13/.libs/mod_jk2.lai

>/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/

>apache13/../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.la

>/usr/bin/cp ../../../build/jk2/apache13/.libs/mod_jk2.a

>/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/

>apache13/../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.a

>ranlib

>/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/

>apache13/../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.a

>chmod 644

>/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/

>apache13/../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.a

>libtool: install: warning: remember to run `libtool --finish

>/usr/HTTPServer/libexec'

>/usr/bin/cp

>../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.so

>../../../build/jk2/apache13/mod_jk2.so

>cp: ../../../build/jk2/apache13//usr/HTTPServer/libexec/mod_jk2.so: A

>file or directory in the path name does not exist.

>make[1]: *** [../../../build/jk2/apache13/mod_jk2.so] Error 1

>make[1]: Leaving directory

>`/usr/ben/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/

>apache13'

>make: *** [jk2-build] Error 1

>

>

>-

>To unsubscribe, e-mail: [EMAIL PROTECTED]

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






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



RE: How to make Tomcat write its server config to server.xml ...

2004-10-12 Thread Shapira, Yoav
Hi,

Well, if you put myapp.xml in the conf directory, Tomcat will remember
it ;)  Otherwise, the answer to your question is no.





Yoav Shapira



>-Original Message-

>From: Krist van Besien [mailto:[EMAIL PROTECTED]

>Sent: Tuesday, October 12, 2004 5:21 AM

>To: [EMAIL PROTECTED]

>Subject: How to make Tomcat write its server config to server.xml ...

>

>Hello all,

>(This is a repost, as I had no anwers last time. I still hope there is
an

>answer though, as this issue just bit me again).

>

>Around here we install webapps in non standard locations from the
command

>line.

>We do this by creating an .xml that contains all that tomcat (ver
4.1.27)

>needs to know about a new context and then do:

>

>get --http-user="admin" --http-passwd="*" -O- \

>http://localhost:8080/manager/install?config=file:/data/myapp/conf/myap
p.xm

>l

>

>This installs the context just fine, everything works.

>

>Just one problem remains. The new context is not added to the
server.xml. I

>need to get in to a browser, log on to the admin application, and then

>press

>"commit changes". If I don't do that Tomcat forgets all about the new

>context

>after the next restart.

>

>Is there way to tell Tomcat to write any changes to the running config
back

>to

>the server.xml, _from the command line_ ?

>

>TIA,

>

>Krist

>

>--

>---
-

>Krist van Besien   Bern,
Switzerland

>---
-

>

>

>

>-

>To unsubscribe, e-mail: [EMAIL PROTECTED]

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






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



RE: [OT] Re: AW: DefaultServlet

2004-10-12 Thread Shapira, Yoav

Hi,

>Okay, so for a start, can I do some changes that I think would be good
for
>the code, make a diff and send that to you?

No.

First, don't send me anything personally.

Second, don't send me just a patch.  Send a patch and at least one unit
test that proves it doesn't break anything.  Alternatively, with your
patch send a Tomcat build output showing all the tester tests pass with
your patch applied.

But best of all, see my other message, where I suggest you instead start
by looking at any of the open Tomcat bugs in Bugzilla and address those.

Yoav



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


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



SSL Definitions in Server.xml

2004-10-12 Thread Hubble, Christopher
Why can you define the keystore in server.xml, but you have to set the
truststore in the jvm?  Has this been changed in tomcat 5?  It makes setting
up client side auth a lot more work than it should be.

Chris

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



Re: Tomcat 4.1.31

2004-10-12 Thread Harald Henkel
Hello.

Sorry for this thread beeing appended to the above one (about TC 5.5.3).

QM wrote:
> 
> On Tue, Oct 12, 2004 at 01:56:08PM +0200, Harald Henkel wrote:
> : Jakarta Project announced Tomcat 4.1.31, although it is not downloadable
> : yet (the links still point to 4.1.30).
> 
> I missed the announcement.  Was it declared "available" or "production
> quality?"  It won't appear on the main download page until it reaches
> the latter status.

Well, just take a look at the Jakarta Homepage.
The announcement is from yesterday and it says:

The tomcat team is pleased to announce Tomcat 4.1.31 Stable is now
available.
The announcement continues with links to the real 4.1.31 release notes
and to binary and source download pages which still only show 4.1.30 -
and 5.0.28, 5.0.29 Beta and 5.5.3 Alpha, although I think the Beta
refers to 5.0.29 (while 5.0.28 is stable) while the Alpha refers to
5.5.x meaing that the whole 5.5 is still not in stable/production
quality (5.5.2 Alpha beeing the previous release, no 5.5.2 "Stable") !?

So, what do you mean by "won't appear on the main download page until it
reaches "production quality"" ?

Regards,
Harald Henkel

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Re: Where can I get mod_jk-2.0.42.so?

2004-10-12 Thread QM
On Tue, Oct 12, 2004 at 02:29:40PM +0200, Brenner, Andrea wrote:
: I'm trying to set up an intranet solution and following the instructions
: included apache 2 now asks for mod_jk-2.0.42.so. I installed the apache
: tomcat jk2 connector rpm, but this module file is not on the pc.

You can list what files were installed by the RPM:

rpm -q -l {package name}

Add grep action as needed.

Perhaps the mod_jk library has a different version number in the RPM you
installed.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Where can I get mod_jk-2.0.42.so?

2004-10-12 Thread Brenner, Andrea
Hi,

some time ago there was a download link for mod_jk-2.0.42.so at
jakarta.apache.org, but it seems they have a new website structure now and I
am not able to find this file there anymore.

Is this file no more needed? 

I'm trying to set up an intranet solution and following the instructions
included apache 2 now asks for mod_jk-2.0.42.so. I installed the apache
tomcat jk2 connector rpm, but this module file is not on the pc.

Many thanks for your help in anticipation!

Best Regards,

Andrea

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



Re: TOMCAT 5 over 4

2004-10-12 Thread QM
On Tue, Oct 12, 2004 at 04:23:45PM +0530, Kumar Singh Rathour, Raj (Vedam) wrote:
: Any one can get me the comparative of TOMCAT 5 and 4. As some thoughts I cud
: get using manual but I think this does not provide exact comparative.

Check the 5.0.x change log for the exhaustive list of updates.  For more
of a summary, please search the archives; your question has been asked
(and answered) before.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat 4.1.31

2004-10-12 Thread QM
On Tue, Oct 12, 2004 at 01:56:08PM +0200, Harald Henkel wrote:
: Jakarta Project announced Tomcat 4.1.31, although it is not downloadable
: yet (the links still point to 4.1.30).

I missed the announcement.  Was it declared "available" or "production
quality?"  It won't appear on the main download page until it reaches
the latter status.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat5 and Debian Sarge

2004-10-12 Thread Kai Neubecker
Hi Ben,

It's a intenet server. I try http://myserver.tld:8080. no connect.

a netstat -an show me, the port 8080 is not open. 

in /logs is a emty file "catalina.out"

thanx, Kai


Am Di, den 12.10.2004 schrieb Ben Souther um 3:07:
> Did you try hitting it with a browser to see if it is running?
> http://localhost:8080
> 
> Your logs should be in /logs
> 
> 
> On Mon, 2004-10-11 at 18:28, Kai Neubecker wrote:
> > I try to start Tomcat 5 first time. 
> > 
> > /usr/local/tomcat/bin/startup.sh
> > Using CATALINA_BASE:   /usr/local/tomcat
> > Using CATALINA_HOME:   /usr/local/tomcat
> > Using CATALINA_TMPDIR: /usr/local/tomcat/temp
> > Using JAVA_HOME:   /usr/local/java
> > 
> > the server do not start. I can't find a logfile or a error in syslog.
> > 
> > j2sdk-1_4_2_05-linux-i586.bin + jakarta-tomcat-5.0.28.tar.gz (binary)
> > 
> > missing package?
> > 
> > can some ome help me ?
> > 
> > thanx, Kai
> > 
> > 
> > -
> > 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: 5.5.3 zip has no tomcat exe for windows

2004-10-12 Thread Remy Maucherat
On Tue, 12 Oct 2004 13:50:29 +0200, Harald Henkel
<[EMAIL PROTECTED]> wrote:
> 
> Anyway, reducing the size by a factor of > 50% !?
> Just by throwing out unimportant pieces ?
> What a lot of never (?) used stuff did Tomcat contain until now ?

I don't know if you were using these:
- admin webapp
- javadocs for the internal Tomcat APIs (not the servlet & JSP javadocs)
- binaries for JDK 1.3 and 1.4 (including Xerces and JMX) - that one
is likely not useless, but the JVM targetted by the binary in now JRE
5.0, which makes them redundant
- the JDK (you only need a JRE now)

There's a separate download for each of these items. So you can stop
complaining that Tomcat is slow or the download is too big now :)

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



Re: 5.5.3 zip has no tomcat exe for windows

2004-10-12 Thread Michael Medwith
I will refund and ship via UPS tonight

-Mike


On Tue, 12 Oct 2004 13:41:39 +0200, Remy Maucherat
<[EMAIL PROTECTED]> wrote:
> On Tue, 12 Oct 2004 13:40:13 +0200, Harald Henkel
> <[EMAIL PROTECTED]> wrote:
> > Hello.
> >
> > > By design.
> >
> > So, does the .exe (Windows installer) download contain the tomcat.exe?
> >
> > I downloaded 5.5.0 sometime ago but never used it.
> > What struck me after downloading 5.5.3 is that it's only 4.2 MB while
> > all other versions (4.1.30, 5.0.28, 5.5.0) were between about 8.7 and
> > and 10.3 MB. Is there anything missing from this file ? Would I have to
> > download something else ..Deployer.zip, ..Admin.zip etc. ?
> 
> The admin is "missing". Given than few people use it, it's now a
> separate download. Inside the documentation, the (very large) javadoc
> is also now a separate download.
> The deployer is not missing, it's just a special purpose binary which
> makes it easy to precompile webapps and deploy them.
> 
> I'm not so certain the missing tomcat5.exe is by design now. It could
> be that it wasn't included in the build when Yoav didn't build the
> installer on the first attempt (it's copied in that same target as
> building the installer). It's fairly minor, so it won't be fixed in
> this build.
> 
> 
> 
> --
> x
> Rémy Maucherat
> Developer & Consultant
> JBoss Group (Europe) SàRL
> x
> 
> -
> 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.31

2004-10-12 Thread Harald Henkel
Hello all.

Jakarta Project announced Tomcat 4.1.31, although it is not downloadable
yet (the links still point to 4.1.30).

In the Release Notes (which are alread available) I found:
JDBCStore:
Optimize use of database session persistence to improve scaling and
performance.

Does anybody have more details (link?) on this change ?

With kind regards,
Harald Henkel

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Re: 5.5.3 zip has no tomcat exe for windows

2004-10-12 Thread Remy Maucherat
On Tue, 12 Oct 2004 13:40:13 +0200, Harald Henkel
<[EMAIL PROTECTED]> wrote:
> Hello.
> 
> > By design.
> 
> So, does the .exe (Windows installer) download contain the tomcat.exe?
> 
> I downloaded 5.5.0 sometime ago but never used it.
> What struck me after downloading 5.5.3 is that it's only 4.2 MB while
> all other versions (4.1.30, 5.0.28, 5.5.0) were between about 8.7 and
> and 10.3 MB. Is there anything missing from this file ? Would I have to
> download something else ..Deployer.zip, ..Admin.zip etc. ?

The admin is "missing". Given than few people use it, it's now a
separate download. Inside the documentation, the (very large) javadoc
is also now a separate download.
The deployer is not missing, it's just a special purpose binary which
makes it easy to precompile webapps and deploy them.

I'm not so certain the missing tomcat5.exe is by design now. It could
be that it wasn't included in the build when Yoav didn't build the
installer on the first attempt (it's copied in that same target as
building the installer). It's fairly minor, so it won't be fixed in
this build.

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



Re: 5.5.3 zip has no tomcat exe for windows

2004-10-12 Thread Harald Henkel


Harald Henkel wrote:

> > > Just unzipped 5.5.3 zip and tried to run service.bat to install the w2k
> > > service
> > >
> > > It says "The tomcat.exe was not found ..."
> > >
> > > There are tomcat5.exe and tomcat5w.exe in 5.5.2 zip
> > >
> > > Why are they missing from 5.5.3 ? By accident or design?
> >
> > By design.
> 
> So, does the .exe (Windows installer) download contain the tomcat.exe?

Ok. I just found the thread above explaining this.

> I downloaded 5.5.0 sometime ago but never used it.
> What struck me after downloading 5.5.3 is that it's only 4.2 MB while
> all other versions (4.1.30, 5.0.28, 5.5.0) were between about 8.7 and
> and 10.3 MB. Is there anything missing from this file ? Would I have to
> download something else ..Deployer.zip, ..Admin.zip etc. ?

Anyway, reducing the size by a factor of > 50% !?
Just by throwing out unimportant pieces ?
What a lot of never (?) used stuff did Tomcat contain until now ?



-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Re: 5.5.3 zip has no tomcat exe for windows

2004-10-12 Thread Harald Henkel
Hello.

> > Just unzipped 5.5.3 zip and tried to run service.bat to install the w2k
> > service
> >
> > It says "The tomcat.exe was not found ..."
> >
> > There are tomcat5.exe and tomcat5w.exe in 5.5.2 zip
> >
> > Why are they missing from 5.5.3 ? By accident or design?
> 
> By design.

So, does the .exe (Windows installer) download contain the tomcat.exe?

I downloaded 5.5.0 sometime ago but never used it.
What struck me after downloading 5.5.3 is that it's only 4.2 MB while
all other versions (4.1.30, 5.0.28, 5.5.0) were between about 8.7 and
and 10.3 MB. Is there anything missing from this file ? Would I have to
download something else ..Deployer.zip, ..Admin.zip etc. ?

With kind regards,
Harald Henkel


-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



TOMCAT 5 over 4

2004-10-12 Thread Kumar Singh Rathour, Raj \(Vedam\)
Hi All,

Any one can get me the comparative of TOMCAT 5 and 4. As some thoughts I cud get using 
manual but I think this does not provide exact comparative.

Kindly let me know if any one know.


thanx & regards
RKS Rathour


=
Disclaimer : The information contained in this Message is confidential and intended 
only for the use of the individual or entity identified. If the reader of this message 
is not the intended recipient, any dissemination, distribution or copying of the 
information contained in this message is strictly prohibited. If you received this 
message in error, please notify the sender immediately.

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



RE: euro sign tomcat 4 -> 5

2004-10-12 Thread Xavier Frisaye
I found my problem :

I was calling response.getWriter() before response.setContentType("text/xml; 
charset=utf-8") and thus as java servlet 2.3 spec, the writer never use the charset 
specified in content type (with Tomcat 5 but with Tomcat 4 it does).

So, sorry for the inconvenience and thank to you all.

Regards.

Xavier Frisaye

-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: lundi 11 octobre 2004 15:26
To: Tomcat Users List
Subject: Re: euro sign tomcat 4 -> 5


If the same web-app worked perfectly in Tomcat 4 and now doesn't that would
suggest the problem is with Tomcat, but if you never made the change to
UTF-8 in Tomcat4 then that would suggest the problem is with your webapp!!

Anyway, to change Tomcat to use UTF-8 you have to tell this to the JVM as it
starts. the best way to do this is by editing catalina.bat (window) and
setting CATALINA_OPTS = -Dfile.encoding=UTF-8

CATALINA_OPTS is then inserted by the script into the call to the JVM.

Hope that helps.
Andoni.

PS: I have never used Tomcat 5 but I would be surprised if this kind of
thing has changed much.

A.

- Original Message - 
From: "Michiel Toneman" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 11, 2004 2:07 PM
Subject: Re: euro sign tomcat 4 -> 5


> IIRC you need 8859-15 for the EURO symbol if you are using the 8859
> family of encodings. Better would be to use UTF-8. I'm guessing you were
> using UTF-8 before?
>
> Regards,
>
> Michiel
>
> Dale, Matt wrote:
>
> >Sounds like your character set is set to 8859-1 instead of 8859-2. I'm
not sure how or where to change this though.
> >
> >-Original Message-
> >From: Xavier Frisaye [mailto:[EMAIL PROTECTED]
> >Sent: 11 October 2004 13:50
> >To: Tomcat Users List
> >Subject: euro sign tomcat 4 -> 5
> >
> >
> >Hi all,
> >
> >I've ugraded from Tomcat 4.1.24 to 5.0.28 and i'm encountering problem
with euro sign when i try to write it from a servlet :
> >it appears as ? instead of â, certainly charset problem.
> >
> >Is there any change made to tomcat 5 wich could explain this problem?
> >
> >(It works perfectly with Tomcat 4.1.24)
> >
> >Regards
> >
> >Xavier Frisaye
> >
> >
> >
> >
> >Any opinions expressed in this E-mail may be those of the individual and
not necessarily the company. This E-mail and any files transmitted with it
are confidential and solely for the use of the intended recipient. If you
are not the intended recipient or the person responsible for delivering to
the intended recipient, be advised that you have received this E-mail in
error and that any use or copying is strictly prohibited. If you have
received this E-mail in error please notify the beCogent postmaster at
[EMAIL PROTECTED]
> >Unless expressly stated, opinions in this email are those of the
individual sender and not beCogent Ltd. You must take full responsibility
for virus checking this email and any attachments.
> >Please note that the content of this email or any of its attachments may
contain data that falls within the scope of the Data Protection Acts and
that you must ensure that any handling or processing of such data by you is
fully compliant with the terms and provisions of the Data Protection Act
1984 and 1998.
> >
> >
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -- 
> Michiel Toneman  Software Engineer   Bibit Global Payment Services
> Regulierenring 10  3981 LB  Bunnik   [EMAIL PROTECTED]
> Tel. +31-30-6595168  Fax +31-30-6564464  http://www.bibit.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]


unpackWARs="false" => hot unzip for static resources

2004-10-12 Thread Boulay Arnaud
Hello !
I would like to have confirmation for this topic :
 
Says a XML context file "myapp.xml" like this :

 
and unpackWARs set to "false" in  tag and server.xml file.
 
What does happen when the client call static resource (like HTML file) ? Is there an 
"unzip call" each time ? or something else (files stored in temp dir) ?
Thanks,
Arnaud
 

 


Re: unsetting characterEncoding?

2004-10-12 Thread Shinobu Kawai

Hi Ronald,

> Is it possible to unset the character encoding for some requests.
> I call setCharacterEncoding("windows-1252") for every request in a filter.
> But now my image/jpeg servlets add charset to the content-type.
> If I now call setCharacterEncoding(null) in my image-servlet it doesn't unset the 
> charset.
> 
> How can I do this?
You can configure your filter-mapping so your image/jpeg servlets don't
get filtered.

Best regards,
-- Shinobu Kawai

--
Shinobu Kawai <[EMAIL PROTECTED]>


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



Re: 5.5.3 zip has no tomcat exe for windows

2004-10-12 Thread Remy Maucherat
On Tue, 12 Oct 2004 08:49:31 +0100, Christopher Watson
<[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> Just unzipped 5.5.3 zip and tried to run service.bat to install the w2k
> service
> 
> It says "The tomcat.exe was not found ..."
> 
> There are tomcat5.exe and tomcat5w.exe in 5.5.2 zip
> 
> Why are they missing from 5.5.3 ? By accident or design?

By design.

> If design, how would I get the windows service running?

Get the .exe.

> If accident, can I safely just copy the .exes from 5.5.2? That's what
> I'm going to try now.

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



How to make Tomcat write its server config to server.xml ...

2004-10-12 Thread Krist van Besien
Hello all,
(This is a repost, as I had no anwers last time. I still hope there is an 
answer though, as this issue just bit me again).

Around here we install webapps in non standard locations from the command line.
We do this by creating an .xml that contains all that tomcat (ver 4.1.27)
needs to know about a new context and then do:
get --http-user="admin" --http-passwd="*" -O- \
http://localhost:8080/manager/install?config=file:/data/myapp/conf/myapp.xml
This installs the context just fine, everything works.
Just one problem remains. The new context is not added to the server.xml. I
need to get in to a browser, log on to the admin application, and then press
"commit changes". If I don't do that Tomcat forgets all about the new context
after the next restart.
Is there way to tell Tomcat to write any changes to the running config back to 
the server.xml, _from the command line_ ?

TIA,
Krist
--

Krist van Besien   Bern, Switzerland


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


unsetting characterEncoding?

2004-10-12 Thread Ronald Klop
Hello,
Is it possible to unset the character encoding for some requests.
I call setCharacterEncoding("windows-1252") for every request in a filter.
But now my image/jpeg servlets add charset to the content-type.
If I now call setCharacterEncoding(null) in my image-servlet it doesn't unset the 
charset.
How can I do this?
Ronald.
PS: I know it is not necessary, because the browser will ignore this parameter to content-type, but is just saves those extra bytes. :-)


RE: Adding DataSources to a specific webapp context using MBeanServer - half success

2004-10-12 Thread Jérôme BATON
Hi all,

Could anyone tell me the order of the initializations of the webapps contexts, the 
webapps, the servlets (those run at startup).

I succeeded in creating my DataSources in my webapp context by redeploying my classes 
with tomcat running, I just copied the newly compiled 
classes to the WEB-INF/classes directory, and tada! The datasources appeared in the 
admin webapp. 
It works but the problem is not solved as I did it by hand.

I'll explore the way of making it recompiled automatically by another webapp which 
name alphabetically follows my webapp's name and is therefore deployed after.
But I would prefer a less dirty way.


Thanks for your help


Jerome

-Message d'origine-
De : Jérôme BATON 
Envoyé : lundi 11 octobre 2004 19:55
À : [EMAIL PROTECTED]
Objet : Adding DataSources to a specific webapp context using MBeanServer


Hi all,

My goal is to dynamically add DataSources to the context of a specific webapp.


To do this, I wrote a struts plugin which reads a properties file. 


I've looked at the admin webapp for the JMX/MBeanServer code, I used the code in class 
SaveDataSourceAction.
And it works fine _only if_ I choose "Global" (ResourceUtils.GLOBAL_TYPE) as parameter 
and not when I use "Context" (ResourceUtils.CONTEXT_TYPE) in the following code 
fragment.

oname = new ObjectName( domain + ResourceUtils.RESOURCE_TYPE + 
ResourceUtils.GLOBAL_TYPE + ",class=" + params[1] + 
",name=" + params[0]);


I used the same parameters as those seen from the running admin webapp but I get a 
javax.management.InstanceNotFoundException.


javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with 
ObjectName 
Catalina:type=NamingResources,resourcetype=Context,path=/struts-arch,host=localhost
at mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:528)
at mx4j.server.MBeanServerImpl.invoke(MBeanServerImpl.java:1351)
at 
igc.arch.action.plugin.DBPropertiesToContextPlugin.ajouteDataSource(DBPropertiesToContextPlugin.java:236)
at 
igc.arch.action.plugin.DBPropertiesToContextPlugin.init(DBPropertiesToContextPlugin.java:108)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)





I run Tomcat 5.0. on an xp pro box


Thanks a lot 


Jerome 


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



5.5.3 zip has no tomcat exe for windows

2004-10-12 Thread Christopher Watson
Hi All,
Just unzipped 5.5.3 zip and tried to run service.bat to install the w2k 
service

It says "The tomcat.exe was not found ..."
There are tomcat5.exe and tomcat5w.exe in 5.5.2 zip
Why are they missing from 5.5.3 ? By accident or design?
If design, how would I get the windows service running?
If accident, can I safely just copy the .exes from 5.5.2? That's what 
I'm going to try now.

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