Re: tomcat 5.5.7 won't start because of NPE

2005-02-13 Thread Joseph Shraibman
Yup, that was it.  I could have sworn I chwoned all the files but I 
guess I didn't.  Thanks.

Parsons Technical Services wrote:
The real problem is the lines above it. Either the server.xml is hosed, 
missing, corrupted or Tomcat doesn't have rights to it.

What OS are you running on?
Doug
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat 5.5.7 startup

2005-02-13 Thread P.M
Hi,

Based on information from people of this list, i tried
to use the startup.bat file to start tomcat server...
but it doesn't work...in fact it's worse than windows
installation with services. at least service works and
i can use tomcat server.

The startup.bat file seems to not work correctly under
windows XP SP2.

Does anyone have the same problem than me or am i the
only one ?

i tried to uncompress the zip file of tomcat 5.5.7
under C:\ or to place file under C:\tomcat5, but
nothing changed...

so what's wrong on my PC ?

thx,
Maileen



__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Session lost on netscape, mozilla and firefox, but not IE

2005-02-13 Thread Uwe Kubosch
On Sat, 2005-02-12 at 18:06 -0500, Robert Hunt wrote:
> I've seen some browsers (Netscape) truncate the query string portion of an 
> action URL in the  tag:
> 
>  http://target.com/servlet?param=val"; ...>
> 
> such that the target servlet receives the HTTP request without "param=val", 
> but that's usually with method="GET".

I verified that the servlet receives a POST request, so this should not
be it.

> Perhaps you should check the log to see if the session cookie is being set 
> and returned by the POST.

In which log can I find this, please?

I stepped through my code examining the fields in the CoyoteRequest, and
the browser has returned the one cookie I set explicitly, but i cannot
find the tomcat session cookie.  the session field of the CoyoteRequest
is set to null, even after both getSession() and getCookies() have been
called, and parseCookies has been set to true.

My current guess is that the browser does not send back the session
cookie, but how can that be?  This must be one of the most used features
in any browser, so it would be more likely that my code is at fault, but
I have no idea what that may be.

Any help is greatly appreciated.

With kind regards,
Uwe Kubosch


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



Re: tomcat 5.5.7 startup

2005-02-13 Thread Ben Souther
Are you running with a full JDK or just a JRE?


On Sun, 2005-02-13 at 08:17, P.M wrote:
> Hi,
> 
> Based on information from people of this list, i tried
> to use the startup.bat file to start tomcat server...
> but it doesn't work...in fact it's worse than windows
> installation with services. at least service works and
> i can use tomcat server.
> 
> The startup.bat file seems to not work correctly under
> windows XP SP2.
> 
> Does anyone have the same problem than me or am i the
> only one ?
> 
> i tried to uncompress the zip file of tomcat 5.5.7
> under C:\ or to place file under C:\tomcat5, but
> nothing changed...
> 
> so what's wrong on my PC ?
> 
> thx,
> Maileen
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Yahoo! Mail - now with 250MB free storage. Learn more.
> http://info.mail.yahoo.com/mail_250
> 
> -
> 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.7 startup

2005-02-13 Thread P.M
i run with both, JDK and JRE (are running on my PC)

--- Ben Souther <[EMAIL PROTECTED]> wrote:

> Are you running with a full JDK or just a JRE?
> 
> 
> On Sun, 2005-02-13 at 08:17, P.M wrote:
> > Hi,
> > 
> > Based on information from people of this list, i
> tried
> > to use the startup.bat file to start tomcat
> server...
> > but it doesn't work...in fact it's worse than
> windows
> > installation with services. at least service works
> and
> > i can use tomcat server.
> > 
> > The startup.bat file seems to not work correctly
> under
> > windows XP SP2.
> > 
> > Does anyone have the same problem than me or am i
> the
> > only one ?
> > 
> > i tried to uncompress the zip file of tomcat 5.5.7
> > under C:\ or to place file under C:\tomcat5, but
> > nothing changed...
> > 
> > so what's wrong on my PC ?
> > 
> > thx,
> > Maileen
> > 
> > 
> > 
> > __ 
> > Do you Yahoo!? 
> > Yahoo! Mail - now with 250MB free storage. Learn
> more.
> > http://info.mail.yahoo.com/mail_250
> > 
> >




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



HTTP: 500 Internal Server Error (Urjent)

2005-02-13 Thread Anand Pandey

Hi,
Can any one help me out in this serious case that I'm facing while
uploading the files.
" Getting HTTP: 500 Internal server Error, while uploading the XML file
(5.44 KB approx).
I'm using Tomcat3.3.1 and JRE ver 1.2.
To upload the XML file request is sent to IIS thru which it is directed to
Tomcat using Re-Director.
What I'd observed is that file uploading is fine till Java memory
utilization goes upto 80MB,
after that HTTP: 500 Internal Server Error is thrown from the servlet (This
is just my observation)."

Thanks & Regards,
Anand


*
Disclaimer:
The contents of this E-mail (including the contents of the enclosure(s) or 
attachment(s) if any) are privileged and confidential material of MBT and 
should not be disclosed to, used by or copied in any manner by anyone other 
than the intended addressee(s).   In case you are not the desired addressee, 
you should delete this message and/or re-direct it to the sender.  The views 
expressed in this E-mail message (including the enclosure(s) or attachment(s) 
if any) are those of the individual sender, except where the sender expressly, 
and with authority, states them to be the views of MBT.

This e-mail message including attachment/(s), if any, is believed to be free of 
any virus.  However, it is the responsibility of the recipient to ensure that 
it is virus free and MBT is not responsible for any loss or damage arising in 
any way from its use
  


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



Re: Session lost on netscape, mozilla and firefox, but not IE and Opera

2005-02-13 Thread Uwe Kubosch
I just did a test with Opera, and it works with Opera.

So current status is:

Session lost on netscape, mozilla and firefox on Linux, but not IE on
windoze and Opera on Linux.

With kind regards,
Uwe Kubosch


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



Re: Session lost on netscape, mozilla and firefox, but not IE and Opera

2005-02-13 Thread Uwe Kubosch
On Sun, 2005-02-13 at 15:01 +0100, Uwe Kubosch wrote:
> I just did a test with Opera, and it works with Opera.

Analyzed input from Opera, and I can find the JSESSIONID cookie, so I am
positive that it is missing when using firefox, mozilla and netscape.

Any ideas on how to fix this?


Uwe


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



Re: tomcat 5.5.7 startup

2005-02-13 Thread Ben Souther
Which is your JAVA_HOME environment variable pointing to?

On Sun, 2005-02-13 at 08:42, P.M wrote:
> i run with both, JDK and JRE (are running on my PC)
> 
> --- Ben Souther <[EMAIL PROTECTED]> wrote:
> 
> > Are you running with a full JDK or just a JRE?
> > 
> > 
> > On Sun, 2005-02-13 at 08:17, P.M wrote:
> > > Hi,
> > > 
> > > Based on information from people of this list, i
> > tried
> > > to use the startup.bat file to start tomcat
> > server...
> > > but it doesn't work...in fact it's worse than
> > windows
> > > installation with services. at least service works
> > and
> > > i can use tomcat server.
> > > 
> > > The startup.bat file seems to not work correctly
> > under
> > > windows XP SP2.
> > > 
> > > Does anyone have the same problem than me or am i
> > the
> > > only one ?
> > > 
> > > i tried to uncompress the zip file of tomcat 5.5.7
> > > under C:\ or to place file under C:\tomcat5, but
> > > nothing changed...
> > > 
> > > so what's wrong on my PC ?
> > > 
> > > thx,
> > > Maileen
> > > 
> > > 
> > >   
> > > __ 
> > > Do you Yahoo!? 
> > > Yahoo! Mail - now with 250MB free storage. Learn
> > more.
> > > http://info.mail.yahoo.com/mail_250
> > > 
> > >
> 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: HTTP: 500 Internal Server Error (Urjent)

2005-02-13 Thread Ben Souther
Anad, you've just hijacked someone else's thread.

When posting to the list, please start a new message.  Don't just reply
to an existing one.  It limits the number of people reading your
question.




On Sun, 2005-02-13 at 08:45, Anand Pandey wrote:
> Hi,
>   Can any one help me out in this serious case that I'm facing while
> uploading the files.
> " Getting HTTP: 500 Internal server Error, while uploading the XML file
> (5.44 KB approx).
> I'm using Tomcat3.3.1 and JRE ver 1.2.
> To upload the XML file request is sent to IIS thru which it is directed to
> Tomcat using Re-Director.
> What I'd observed is that file uploading is fine till Java memory
> utilization goes upto 80MB,
> after that HTTP: 500 Internal Server Error is thrown from the servlet (This
> is just my observation)."
> 
> Thanks & Regards,
> Anand
> 
> 
> *
> Disclaimer:
> The contents of this E-mail (including the contents of the enclosure(s) or 
> attachment(s) if any) are privileged and confidential material of MBT and 
> should not be disclosed to, used by or copied in any manner by anyone other 
> than the intended addressee(s).   In case you are not the desired addressee, 
> you should delete this message and/or re-direct it to the sender.  The views 
> expressed in this E-mail message (including the enclosure(s) or attachment(s) 
> if any) are those of the individual sender, except where the sender 
> expressly, and with authority, states them to be the views of MBT.
> 
> This e-mail message including attachment/(s), if any, is believed to be free 
> of any virus.  However, it is the responsibility of the recipient to ensure 
> that it is virus free and MBT is not responsible for any loss or damage 
> arising in any way from its use
>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: tomcat 5.5.7 startup

2005-02-13 Thread P.M
I discover from where came the trouble...
JAVA_HOME pointed on J2SDK 1.4.2 and not JDK 5.0.
i changed it and not the scripts are working...
thanks a lot for help.

but admin application doesn't work :(

Maileen


--- Ben Souther <[EMAIL PROTECTED]> wrote:

> Are you running with a full JDK or just a JRE?
> 
> 
> On Sun, 2005-02-13 at 08:17, P.M wrote:
> > Hi,
> > 
> > Based on information from people of this list, i
> tried
> > to use the startup.bat file to start tomcat
> server...
> > but it doesn't work...in fact it's worse than
> windows
> > installation with services. at least service works
> and
> > i can use tomcat server.
> > 
> > The startup.bat file seems to not work correctly
> under
> > windows XP SP2.
> > 
> > Does anyone have the same problem than me or am i
> the
> > only one ?
> > 
> > i tried to uncompress the zip file of tomcat 5.5.7
> > under C:\ or to place file under C:\tomcat5, but
> > nothing changed...
> > 
> > so what's wrong on my PC ?
> > 
> > thx,
> > Maileen
> > 
> > 
> > 
> > __ 
> > Do you Yahoo!? 
> > Yahoo! Mail - now with 250MB free storage. Learn
> more.
> > http://info.mail.yahoo.com/mail_250
> > 
> >
>
-
> > 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!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



manager application

2005-02-13 Thread P.M
Hi,

I open the localhost:8080 without any trouble now, but
i hace an error message 403 everyting that i try to
access to manager or admin applications.

i tested all username and password which are in
tomcat-users.xml, but nothing work..

i know from windows install exe file, that another
profile existed : admin with empty password...but even
if this one doesn't work.

does anyone have seen it already ?
thx,
Maileen



__ 
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: Tomcat vs Jetty

2005-02-13 Thread Remy Maucherat
On Sat, 12 Feb 2005 10:51:53 +0100, PA <[EMAIL PROTECTED]> wrote:
> 
> On Feb 12, 2005, at 06:20, Peter Lin wrote:
> 
> > For those who are curious. I decided to run apache AB against jetty to
> > see if there are any differences.
> 
> If you are into this kind of micro-benchmarks, take a look at Simple:
> 
> http://simpleweb.sourceforge.net/
> 
> Niall Gallagher ran some comparisons between Apache, Resin and Tomcat:
> 
> http://simpleweb.sourceforge.net/performance/comparison.php
> 
> Quite instructive :P

Unless Peter does a round of benchmarking on that, I see nothing but
misinformation.

Right now, the test is not very fair (conviniently old Tomcat version;
not the same application code appeared to be running on both servers
as the other one doesn't support the servlet API) and not very well
specified either (there's text about the test, but I don't understand
it in a way that woud allow me to reproduce the test).

-- 
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: tomcat 5.5.7 startup

2005-02-13 Thread Ben Souther
The admin app no longer ships with Tomcat by default.
You have to download it separately.


On Sun, 2005-02-13 at 09:37, P.M wrote:
> I discover from where came the trouble...
> JAVA_HOME pointed on J2SDK 1.4.2 and not JDK 5.0.
> i changed it and not the scripts are working...
> thanks a lot for help.
> 
> but admin application doesn't work :(
> 
> Maileen
> 
> 
> --- Ben Souther <[EMAIL PROTECTED]> wrote:
> 
> > Are you running with a full JDK or just a JRE?
> > 
> > 
> > On Sun, 2005-02-13 at 08:17, P.M wrote:
> > > Hi,
> > > 
> > > Based on information from people of this list, i
> > tried
> > > to use the startup.bat file to start tomcat
> > server...
> > > but it doesn't work...in fact it's worse than
> > windows
> > > installation with services. at least service works
> > and
> > > i can use tomcat server.
> > > 
> > > The startup.bat file seems to not work correctly
> > under
> > > windows XP SP2.
> > > 
> > > Does anyone have the same problem than me or am i
> > the
> > > only one ?
> > > 
> > > i tried to uncompress the zip file of tomcat 5.5.7
> > > under C:\ or to place file under C:\tomcat5, but
> > > nothing changed...
> > > 
> > > so what's wrong on my PC ?
> > > 
> > > thx,
> > > Maileen
> > > 
> > > 
> > >   
> > > __ 
> > > Do you Yahoo!? 
> > > Yahoo! Mail - now with 250MB free storage. Learn
> > more.
> > > http://info.mail.yahoo.com/mail_250
> > > 
> > >
> >
> -
> > > 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!? 
> All your favorites on one personal page  Try My Yahoo!
> http://my.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: Tomcat vs Jetty

2005-02-13 Thread Peter Lin
I had a hard time understanding what those graphs mean. It really
could use better captions to really explain clearly what the X and Y
axis mean. I don't see any point comparing simple honestly, since it's
not a servlet container.

but I'm totally bias :)

peter


On Sun, 13 Feb 2005 15:53:27 +0100, Remy Maucherat
<[EMAIL PROTECTED]> wrote:
> On Sat, 12 Feb 2005 10:51:53 +0100, PA <[EMAIL PROTECTED]> wrote:
> >
> > On Feb 12, 2005, at 06:20, Peter Lin wrote:
> >
> > > For those who are curious. I decided to run apache AB against jetty to
> > > see if there are any differences.
> >
> > If you are into this kind of micro-benchmarks, take a look at Simple:
> >
> > http://simpleweb.sourceforge.net/
> >
> > Niall Gallagher ran some comparisons between Apache, Resin and Tomcat:
> >
> > http://simpleweb.sourceforge.net/performance/comparison.php
> >
> > Quite instructive :P
> 
> Unless Peter does a round of benchmarking on that, I see nothing but
> misinformation.
> 
> Right now, the test is not very fair (conviniently old Tomcat version;
> not the same application code appeared to be running on both servers
> as the other one doesn't support the servlet API) and not very well
> specified either (there's text about the test, but I don't understand
> it in a way that woud allow me to reproduce the test).
> 
> --
> 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 5.5.7 startup

2005-02-13 Thread micky none
Hi,
I am also having a somewat similar problem.I installed tomcat5.5.7 on my 
windows xp system through the *.exe file.The server starts and stops properly 
but i dont know why I am not able to see the index file.When i give the command 
"http://localhost:8080/",it displays nothing.I even tried to "ping" localhost 
and that works.Can someone please tell me where I am goin wrong.
thanks


On Sun, 13 Feb 2005 PM wrote :
>I discover from where came the trouble...
>JAVA_HOME pointed on J2SDK 1.4.2 and not JDK 5.0.
>i changed it and not the scripts are working...
>thanks a lot for help.
>
>but admin application doesn't work :(
>
>Maileen
>
>
>--- Ben Souther <[EMAIL PROTECTED]> wrote:
>
> > Are you running with a full JDK or just a JRE?
> >
> >
> > On Sun, 2005-02-13 at 08:17, P.M wrote:
> > > Hi,
> > >
> > > Based on information from people of this list, i
> > tried
> > > to use the startup.bat file to start tomcat
> > server...
> > > but it doesn't work...in fact it's worse than
> > windows
> > > installation with services. at least service works
> > and
> > > i can use tomcat server.
> > >
> > > The startup.bat file seems to not work correctly
> > under
> > > windows XP SP2.
> > >
> > > Does anyone have the same problem than me or am i
> > the
> > > only one ?
> > >
> > > i tried to uncompress the zip file of tomcat 5.5.7
> > > under C:\ or to place file under C:\tomcat5, but
> > > nothing changed...
> > >
> > > so what's wrong on my PC ?
> > >
> > > thx,
> > > Maileen
> > >
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > Yahoo! Mail - now with 250MB free storage. Learn
> > more.
> > > http://info.mail.yahoo.com/mail_250
> > >
> > >
> >
>-
> > > 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!?
>All your favorites on one personal page – Try My Yahoo!
>http://my.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: Session lost on netscape, mozilla and firefox, but not IE and Opera

2005-02-13 Thread Robert Hunt
If you've got a  defined for the 
 node in server.xml for your Tomcat installation, you should be able 
to see cookies being passed in HTTP requests:
==
2005-02-02 10:30:39 RequestDumperValve[engine]: REQUEST URI 
=/calendar/DownloadEvents
2005-02-02 10:30:39 RequestDumperValve[engine]: authType=null
2005-02-02 10:30:39 RequestDumperValve[engine]: characterEncoding=null
2005-02-02 10:30:39 RequestDumperValve[engine]: 
cookie=n.gp.8c52f99421cdaa97=20050123
2005-02-02 10:30:39 RequestDumperValve[engine]: 
cookie=n.gp.01a0d577f34f043b=20050319
2005-02-02 10:30:39 RequestDumperValve[engine]: header=accept=*/*
2005-02-02 10:30:39 RequestDumperValve[engine]: header=accept-language=en-us
2005-02-02 10:30:39 RequestDumperValve[engine]: header=accept-encoding=gzip, 
deflate
   :::
2005-02-02 10:30:39 RequestDumperValve[engine]: requestedSessionId=null
2005-02-02 10:30:39 RequestDumperValve[engine]: scheme=http
2005-02-02 10:30:39 RequestDumperValve[engine]: serverName=sample.com
2005-02-02 10:30:39 RequestDumperValve[engine]: serverPort=80
2005-02-02 10:30:39 RequestDumperValve[engine]: 
servletPath=/calendar/DownloadEvents
2005-02-02 10:30:39 RequestDumperValve[engine]: isSecure=false
==

The cookies in the above sample are app-specific and not Tomcat session 
cookies, but give the general idea.


You should also check the security settings/preferences of the browsers in 
question as such settings can constrain the browser's use of cookies.

Re: Session lost on netscape, mozilla and firefox, but not IE and Opera

2005-02-13 Thread sven morales
Hi, 
   Another tool is TCPMON tool from Apache Axis
project, its an applet.  This allows you to see the
the request response
between client and Tomcat.

aka_sergio
--- Robert Hunt <[EMAIL PROTECTED]> wrote:

> If you've got a 
className="org.apache.catalina.valves.RequestDumperValve"/>
> defined for the  node in server.xml for
> your Tomcat installation, you should be able to see
> cookies being passed in HTTP requests:
>
==
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> REQUEST URI =/calendar/DownloadEvents
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> authType=null
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> characterEncoding=null
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> cookie=n.gp.8c52f99421cdaa97=20050123
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> cookie=n.gp.01a0d577f34f043b=20050319
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> header=accept=*/*
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> header=accept-language=en-us
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> header=accept-encoding=gzip, deflate
>::   
> :
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> requestedSessionId=null
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> scheme=http
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> serverName=sample.com
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> serverPort=80
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> servletPath=/calendar/DownloadEvents
> 2005-02-02 10:30:39 RequestDumperValve[engine]:
> isSecure=false
>
==
> 
> The cookies in the above sample are app-specific and
> not Tomcat session cookies, but give the general
> idea.
> 
> 
> You should also check the security
> settings/preferences of the browsers in question as
> such settings can constrain the browser's use of
cookies.




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: [OT] Automated tool for creating mime-multipart e-mail from web page

2005-02-13 Thread Robert Hunt
Huy,

A PDF is an alternative.  However, I'm inclined to stay with HTML without 
having to require client to have Acrobat reader properly installed.

Setting ContentType and encoding for all jsp pages

2005-02-13 Thread Gioele Barabucci
I want to send the output of my JSPs as "application/xhtml+xml" in UTF-8.

All the pages I send are XHTML in UTF-8, but the browsers can't understand
them because Tomcat (Apache-Coyote/1.1, the one bundled with JBoss 3.2.5)
set Content-Type to text/html without any encoding information.

I tried to put 
  
jsp
application/xhtml+xml
  
in web.xml, but this directive seems to be ignored... (how can I test this?)
Also I can't find how to tell Tomcat that the JSP output should be declared
as UTF-8 encoded.

[I know that I can add
  <%@ page contentType="application/xhtml+xml" %>
  <%@ page pageEncoding="UTF-8" %>
to all my pages, but I'd like to avoid this...]

--
Gioele


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



Re: Setting ContentType and encoding for all jsp pages

2005-02-13 Thread Ethan Sutin
http://java.sun.com/products/servlet/Filters.html
Gioele Barabucci wrote:
I want to send the output of my JSPs as "application/xhtml+xml" in UTF-8.
All the pages I send are XHTML in UTF-8, but the browsers can't understand
them because Tomcat (Apache-Coyote/1.1, the one bundled with JBoss 3.2.5)
set Content-Type to text/html without any encoding information.
I tried to put 
 
   jsp
   application/xhtml+xml
 
in web.xml, but this directive seems to be ignored... (how can I test this?)
Also I can't find how to tell Tomcat that the JSP output should be declared
as UTF-8 encoded.

[I know that I can add
 <%@ page contentType="application/xhtml+xml" %>
 <%@ page pageEncoding="UTF-8" %>
to all my pages, but I'd like to avoid this...]
--
Gioele
-
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: SOLVED - commons-logging logger instances - how to initialize in replicated session objects

2005-02-13 Thread Richard Mixon (qwest)
In case anyone else ends up with similar problems trying to get session
replication to work for objects that have a commons logging (or other
similar) non-serializable instance variable), here's how I solved it.

I created the following abstract class with the two methods "readObject"
and "readObjectNoData" (not sure this one is really needed). All of my
classes that might bet saved in a session and be replicated drive
directly/indirectly from this class. I was hoping for something a bit
more elegant, but it works for now.

Thanks Trond for the idea.

Any comments or criticisms are welcome.

Thanks - Richard

package com.acme.common.util;
import java.io.Serializable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**Loggable Object Class.
 * Abstract class to derive business and utility
 * objects from that require logging support and that
 * may be serialized (e.g. for Session replication, etc.).
 */
public abstract class LoggableObject implements Serializable {
private static final long serialVersionUID = 1L;
public transient Log log = LogFactory.getLog(getClass().getName());
private void readObject(java.io.ObjectInputStream stream) throws
java.io.IOException, ClassNotFoundException {
stream.defaultReadObject(); // Let default behaviour occur (i.e.
handle non-static, non-transient fields)
if (log == null) { // Initialize log instance if it is null
log = LogFactory.getLog(getClass().getName());
}
}
   private void readObjectNoData() throws java.io.ObjectStreamException
{
if (log == null) { // Initialize log instance if it is null
log = LogFactory.getLog(getClass().getName());
}
}
}


-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 12, 2005 6:43 AM
To: Tomcat Users List
Subject: RE: commons-logging logger instances - how to initialize in
replicated session objects


Thanks Trond, I had forgotten about readObject.That may be a better
option than creating yet another utility method.

Trond G. Ziarkowski wrote:
> Hi,
>
> I'm maybe stepping out of my territory here, but I think that static
> members are not serialized/deserialized. To re-initialize your static
> logger maybe you should try to implement the
> readObject(java.io.ObjectInputStream in) method from the
> java.io.Serializable interface something like this:
>
> readObject(...) {
> super.readObject(...);
> log = LogFactory.getLog(...);
> }
>
> Hope this is of some help
>
> Trond
>
>
> -
> 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]



Tomcat 5.5.7 webapp not reload after META-INF/context.xml change

2005-02-13 Thread Trevor Baker
Hi,

I have an unpacked ROOT webapp and if I change the
web.xml for it, the webapp gets reloaded. However if I
change the META-INF/context.xml for it, it doesn't get
reloaded. It's a WatchedResource too like web.xml. All
I'm doing is changing a context-param value in
context.xml (as a trivial example to explain my
issue).

When I change context.xml, I get this in the log:
Feb 13, 2005 6:11:39 PM
org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context []

So it looks like it should be reloaded, but it
doesn't.

In:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

There is:

WatchedResource - The auto deployer will monitor the
specified static resource of the web application for
updates, and will reload the web application if is is
updated. The content of this element must be a string.


So I'm not dreaming.

I've also tried restaring the webapp with the manager
webapp and still no change.

Anyone else have the same issue? Am I doing something
wrong? Otherwise I'm going to enter it as a bug.

thanks,
Trev

__ 
Post your free ad now! http://personals.yahoo.ca

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



Re: Tomcat 5.5.7 webapp not reload after META-INF/context.xml change

2005-02-13 Thread sven morales
Hi,
   Can perhaps the settings of cacheAllowed nullify
the changes you just made?  cacheAllowed - If the
value of this flag is true, the cache for static
resources will be used. If not specified, the default
value of the flag is true.
   

aka_sergio


--- Trevor Baker <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have an unpacked ROOT webapp and if I change the
> web.xml for it, the webapp gets reloaded. However if
> I
> change the META-INF/context.xml for it, it doesn't
> get
> reloaded. It's a WatchedResource too like web.xml.
> All
> I'm doing is changing a context-param value in
> context.xml (as a trivial example to explain my
> issue).
> 
> When I change context.xml, I get this in the log:
> Feb 13, 2005 6:11:39 PM
> org.apache.catalina.startup.HostConfig
> checkResources
> INFO: Reloading context []
> 
> So it looks like it should be reloaded, but it
> doesn't.
> 
> In:
>
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
> 
> There is:
> 
> WatchedResource - The auto deployer will monitor the
> specified static resource of the web application for
> updates, and will reload the web application if is
> is
> updated. The content of this element must be a
> string.
> 
> 
> So I'm not dreaming.
> 
> I've also tried restaring the webapp with the
> manager
> webapp and still no change.
> 
> Anyone else have the same issue? Am I doing
> something
> wrong? Otherwise I'm going to enter it as a bug.
> 
> thanks,
> Trev
> 
>
__
> 
> Post your free ad now! http://personals.yahoo.ca
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Error JSP pages

2005-02-13 Thread deepak suldhal
Hi
Working with 5.0.28 Tomcat version, For jsp errors or
for an URL which is not in my application 
I get
http://www.marsfind.com/search.html?ver=100&uid=7d914e20f8eb41559137d01a9847d0cb&status=404&Keywords=http%3A%2F%2Flocalhost%3A8080%2Ftest1&app=domain

Why is this happening ?.



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Tomcat 5.5.7 webapp not reload after META-INF/context.xml change

2005-02-13 Thread Richard Mixon (qwest)
Tevor,

Not sure if I have much to add, so much as just clarifying what you are
asking. Its of interest to me also.

If you are using the tomcat-deployer app, then file
"tomcat/webapps//META-INF/context.xml" normally gets
deployed to "tomcat/conf/Catalina/localhost/.xml". I
realize that the "tomcat/conf/context.xml" specifies that
META-INF/context.xml is a watched resource and if changed it should
reload the webapp. But are you also expecting it to redeploy
META-INF/context.xml to conf/Catalina/localhost/.xml ?? I
cannot see how that could happen.

OTOH, this may just reflect my rather narrow use of Tomcat 5.x - always
using tomcat-deployer to deploy my applications. Maybe someone else that
know more can comment and we will both learn a bit.

HTH - Richard

-Original Message-
From: Trevor Baker [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 13, 2005 7:30 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.7 webapp not reload after META-INF/context.xml
change


Hi,

I have an unpacked ROOT webapp and if I change the
web.xml for it, the webapp gets reloaded. However if I
change the META-INF/context.xml for it, it doesn't get
reloaded. It's a WatchedResource too like web.xml. All
I'm doing is changing a context-param value in
context.xml (as a trivial example to explain my
issue).

When I change context.xml, I get this in the log:
Feb 13, 2005 6:11:39 PM
org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context []

So it looks like it should be reloaded, but it
doesn't.

In:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

There is:

WatchedResource - The auto deployer will monitor the
specified static resource of the web application for
updates, and will reload the web application if is is
updated. The content of this element must be a string.


So I'm not dreaming.

I've also tried restaring the webapp with the manager
webapp and still no change.

Anyone else have the same issue? Am I doing something
wrong? Otherwise I'm going to enter it as a bug.

thanks,
Trev

__
Post your free ad now! http://personals.yahoo.ca

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



JDBC setup

2005-02-13 Thread deepak suldhal
All I have is 
Eclipse with JDK
Tomcat 5.0.28
Now I need to set up a JDBC connection (to connect to
Sybase)
Should I download Jconnect for this ?
How do I define a resourse Reference ?
Should this code be in web.xml under conf.

If I do this with admin tool does that work ?

Thanks
D









__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



tomcat hackers ...

2005-02-13 Thread B Wiley

Hello, I've been getting some things in my logs like ...

217.20.113.110 - - [13/Feb/2005:09:41:39 -0500] "GET 
/Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../Myapp/../hosting.html 
HTTP/1.1" 200 5564 "-" "Mozilla/4.0 (compatible; MSIE 5.16; Mac_PowerPC)"

What is this guy getting from this ? Am I just paranoid or what ???



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