Rights Management on small multi-user webapp

2004-11-22 Thread Marot Laurent
Hi all,

I want to create a small webapp that should work froms 1 to 20 users. Each of 
them should have a "protected" directory for uploading and storing his own 
files without any read rights on other user files.

How can i design such an application with tomcat realm security if i want users 
to be managed dynamically ? Say for example, i add a user and he automatically 
gets it's own protected storage area.

Earlier thanks for adives to come


Laurent

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



Réf. : Re: SSL

2004-11-22 Thread valerie . bauche

Just add this in the web.xml of your servlet :



IHM Authent
Accessible uniquement en SSL
/*
GET
POST


Activation SSL
CONFIDENTIAL



Valerie





Andoni <[EMAIL PROTECTED]> sur 19/11/2004 18:31:49

Veuillez répondre à "Tomcat Users List" <[EMAIL PROTECTED]>

Pour : Tomcat Users List <[EMAIL PROTECTED]>
cc :
Objet : Re: SSL


Hi,

Do you mean "... into two Services"?

Andoni.

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Thursday, November 18, 2004 5:53 PM
Subject: RE: SSL



Hi,
Yeah, reorganize your server.xml into two engines, with one connector
and webapp each.  One engine will have the SSL connector and webapp, and
the other engine will have the non-SSL connector and webapp.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Richard HALLIER [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 18, 2004 12:42 PM
>To: Tomcat Users List
>Subject: RE: SSL
>
>Thank you for your reply, but I've omitted to say that I have another
>webapp
>that is non-ssl, so I must have the two connectors (http, https) up.
>Do you have a solution ?
>Really thank you for your help.
>Richard
>
>-Message d'origine-
>De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Envoye : jeudi 18 novembre 2004 18:09
>A : Tomcat Users List
>Objet : RE: SSL
>
>
>
>Hi,
>Comment out the non-SSL connector element in server.xml.
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>>-Original Message-
>>From: Richard HALLIER [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, November 18, 2004 12:02 PM
>>To: tomcat mailing-list
>>Subject: SSL
>>
>>Hi everybody,
>>Sorry if this question has been already asked, but i didnt find any
>>pointers
>>in the archive.
>>I'm in the following context : Tomcat 5.0.x, Connector SSL active.
>>I'd like to prevent everybody from using my webapp with the HTTP
>protocol,
>>in fact I'd like to restrict access to my webapp only to the https
>>protocol.
>>For the moment and with a standard configuration, I can access my
>webapp
>>from http and https protocol ...
>>Thank you for your help.
>>Richard
>>
>>
>>-
>>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]









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



RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Hi.

Further to my email below, I have noticed that it happens after the first
time I re-deoply classes - i.e. after the first context reload...

Carl 

-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 8:50 AM
To: Tomcat Users List
Subject: Tomcat 5.5.4 - classes in classpath not being "released"

Greetings.

Having the following problem using Tomcat 5.5.4 under JDK 1.5:

After running my webapp for a bit in a development environment, I want to
copy new and replacement classes to the webapp classes location, but
sometimes (about 50/50) I cannot overrite/delete some of the classes - as
the VM has not let them go (file handles I assume)?  I have to shut the JVM
(Tomcat) down before I can deploy my new classes

Is this something in the new JDK/JRE (5.0)? Or is this something in the
Tomcat 5.5.4 classloaders?  I cannot recall (and have not been able to
replicate) the problem on 5.0.x under JDK 1.4.x.

Any input would be appreciated.

Thanks!

Carl

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



Error with request for /index.jsp - Is this a bug?

2004-11-22 Thread Shiva.Devaguptapu
Hi,
I am using the following configuration. When I request for
http://abc.shiva.com/index.jsp or http://def.shiva.com/index.jsp, I am
getting the tomcat welcome index.jsp page displayed. If I have some xyz.jsp
as the welcome page, it serves fine. Is this a known bug in tomcat? Any
solutions to get the application's index.jsp, as anyone expect?


=
server.xml

=























=


=
web.xml

=


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


index.jsp




=

Thanks,
Shiva

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



Re: Error with request for /index.jsp - Is this a bug?

2004-11-22 Thread Quinton Delpeche
On Monday 22 November 2004 11:04, Shiva.Devaguptapu wrote:
> Hi,
>   I am using the following configuration. When I request for
> http://abc.shiva.com/index.jsp or http://def.shiva.com/index.jsp, I am
> getting the tomcat welcome index.jsp page displayed. If I have some xyz.jsp
> as the welcome page, it serves fine. Is this a known bug in tomcat? Any
> solutions to get the application's index.jsp, as anyone expect?

Okay,

Let me check if I understand you correctly.

You want to replace the ROOT index.jsp with your page.

If this is yes then do the following.

1). Stop Tomcat.

2). Delete all files in ROOT directory of the tomcat server.

3). Put your files in the ROOT directory.

4). Restart Tomcat.

I find that this helped me when I had to put my own version of a ROOT engine 
in place.

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

When more and more people are thrown out of work, unemployment
results.
-- Calvin Coolidge


pgppjXK5k0m7D.pgp
Description: PGP signature


Re: NoSuchElementException in cluster

2004-11-22 Thread Ronald Klop
Thanks.
How bad is it that I get these errors now? Wil I loose sessions?
Ronald.
On Fri Nov 19 20:34:21 CET 2004 Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:
I've updated the delta request to avoid these errors in the next release of tomcat5.0 and tomcat 5.5
 
Filip
- Original Message -
From: Ronald Klop
To: Filip Hanik - Dev
Sent: Friday, November 19, 2004 10:44 AM
Subject: Re: NoSuchElementException in cluster
Yes, but we never change the session. It only holds the User object, which is 
set at login.
I have looked at the tomcat code. This session replication is not thread safe 
as is documented.
This is my server.xml. It is a quite heavily used web-application with about 
2000-3000 sessions, 30 req/sec.
   
   
   
   
   
   
Ronald.
On Fri Nov 19 17:17:19 CET 2004 Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:
are you using frames or in anyway have your system setup to access the same 
session by more than one thread?
Filip
- Original Message - 
From: "Ronald Klop" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Cc: "Ronald Klop" <[EMAIL PROTECTED]>
Sent: Friday, November 19, 2004 5:35 AM
Subject: Re: NoSuchElementException in cluster

Hello,
I found these two bug reports, looking similar to my issue below.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27104
http://issues.apache.org/bugzilla/show_bug.cgi?id=31328
Are there any comments/ideas on this for version 5.0.x?
Ronald.
On Tue Nov 16 18:23:14 CET 2004 Ronald Klop <[EMAIL PROTECTED]> wrote:
>Sorry, I'm using Tomcat 5.0.28. Somebody upgraded the boxes.
> 
>On Tue Nov 16 16:43:29 CET 2004 Ronald Klop <[EMAIL PROTECTED]> wrote:
>>Hello,
>> 
>>I'm seeing these exceptions on one of my 2 nodes.
>>The memory cosumption of this server is now growing for a couple of hours, but I cannot tell if that is related with this.
>>I removed the server from the worker list of mod_jk so it is still in the cluster, but not receiving any requests anymore.
>> 
>>Any ideas about the exceptions. Are they harmless? Can they be related to a constantly growing amount of in-use memory?
>>I'm running Tomcat 5.0.25 on Linux 2.4 and 2.6 with JDK 1.4.2. It runs very well most of the time.
>> 
>>Ronald.
>> 
>>SEVERE: Unable to perform replication request.
>>java.util.NoSuchElementException
>>at java.util.LinkedList.remove(LinkedList.java:579)
>>at java.util.LinkedList.removeFirst(LinkedList.java:131)
>>at org.apache.catalina.cluster.session.DeltaRequest.reset(DeltaRequest.java:153)
>>at org.apache.catalina.cluster.session.DeltaSession.resetDeltaRequest(DeltaSession.java:938)
>>at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaManager.java:786)
>>at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:203)
>>at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>>at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>>at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>>at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>>at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>>at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>>at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>>at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
>>at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>>at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>>at java.lang.Thread.run(Thread.java:534)
>> 
>>SEVERE: Unable to receive message through TCP channel
>>java.util.NoSuchElementException
>>at java.util.LinkedList.remove(LinkedList.java:579)
>>at java.util.LinkedList.removeFirst(LinkedList.java:131)
>>at org.apache.catalina.cluster.session.DeltaRequest.reset(DeltaRequest.java:153)
>>at org.apache.catalina.cluster.session.DeltaRequest.readExternal(DeltaRequest.java:184)
>>at org.apache.catalina.cluster.session.DeltaManager.loadDeltaRequest(DeltaManager.java:385)
>>at org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManager.java:898)
>>at org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaManager.java:762)
>>at org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:576)
>>at org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:70)
>>at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicati

RE: Error with request for /index.jsp - Is this a bug?

2004-11-22 Thread Shiva.Devaguptapu
After doing all this, I changed the server.xml to have the Context as
follows :



But still I get the same tomcat welcome page.

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 2:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Error with request for /index.jsp - Is this a bug?


On Monday 22 November 2004 11:04, Shiva.Devaguptapu wrote:
> Hi,
>   I am using the following configuration. When I request for
> http://abc.shiva.com/index.jsp or http://def.shiva.com/index.jsp, I am
> getting the tomcat welcome index.jsp page displayed. If I have some
xyz.jsp
> as the welcome page, it serves fine. Is this a known bug in tomcat? Any
> solutions to get the application's index.jsp, as anyone expect?

Okay,

Let me check if I understand you correctly.

You want to replace the ROOT index.jsp with your page.

If this is yes then do the following.

1). Stop Tomcat.

2). Delete all files in ROOT directory of the tomcat server.

3). Put your files in the ROOT directory.

4). Restart Tomcat.

I find that this helped me when I had to put my own version of a ROOT engine

in place.

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

When more and more people are thrown out of work, unemployment
results.
-- Calvin Coolidge

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



RE: SSL Redirect problem

2004-11-22 Thread Richard HALLIER
Thomas,
I did your quick test, and I can confirm what you thought.
If I configure Tomcat with the default port for http (80) and https (443),
it works !
So it's an IE bug. Anyway, it will be a known bug !
Thank you.
Richard.

-Message d'origine-
De : Mark Thomas [mailto:[EMAIL PROTECTED]
Envoye : dimanche 21 novembre 2004 17:28
A : 'Tomcat Users List'
Objet : RE: SSL Redirect problem


Sounds like an IE bug. I suspect IE is sending the wrong port information at
some point in the redirect from http to https. To confirm this you'll need
to
look at the http headers going back and forth.

One quick test would be to configure tomcat for the default ports (80 for
http
and 443 for https). If you use the default ports IE doesn't send any port
info
and hence doesn't send the wrong port info.

Mark

> -Original Message-
> From: Richard HALLIER [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 21, 2004 3:30 PM
> To: Tomcat Users List
> Subject: SSL Redirect problem
>
> Hi,
> I'd like to submit a weird problem that occurs with the following
> configuration :
> - Server Tomcat 5.0.28 - https connector activated with client
> authentification
> - Browser IE v6 sp2 with client certificate installed
> - Browser FireFox 1.0final  with client certificate installed
>
> Sequence under Firefox :
> - Connection to http://localhost:8080/mywebapp
> - SSL server part OK
> - SSL client authentification OK
> - Displayed url in the browser : https://localhost:8443/mywebapp
> - Webapp displayed
>
> Sequence under IE :
> - Connection to http://localhost:8080/mywebapp
> - SSL server part OK
> - SSL client authentification  : timeout
>
> Sequence under IE :
> - Connection to https://localhost:8443/mywebapp
> - SSL server part OK
> - SSL client authentification OK
> - Webapp displayed
>
> I cant resolve my problem ! I'm lost, have you any pointers ?
> Any help appreciated !
> Thank you.
> Richard
>
>
> -
> 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: Error with request for /index.jsp - Is this a bug?

2004-11-22 Thread Quinton Delpeche
On Monday 22 November 2004 11:31, Shiva.Devaguptapu wrote:
> After doing all this, I changed the server.xml to have the Context as
> follows :

Mine looks as follows:






>allowLinking="true" debug="9" />

Hm... ...this is a strange one.

> But still I get the same tomcat welcome page.

I am not sure what is going on, sounds like one of two things:

1). It has cached the files and server config somewhere.
2). It is not pointing to the correct path.

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Concept, n.:
Any "idea" for which an outside consultant billed you more than
$25,000.


pgpLGSppDUXDj.pgp
Description: PGP signature


high traffic Tomcat sites out there?

2004-11-22 Thread LAM Kwun Wa Joseph
For my Tomcat cluster I'm looking for an upper limit on the estimation of
how much traffic it may face. Say, would thousands of HTTP req/s be too
'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm talking
about dynamic pages such as stock quotes and news)

Does anyone know of any high traffic JSP/servlet sites(running Tomcat or
similar servlet container)? I'm mostly interested to know what's the
typical "magnitude" of their HTTP throughput (e.g. hundreds or thousands
of HTTP/s) and what kinds of apps are they running.

Joseph Lam


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



How to set Error Log for Unpacked Web Application in Apache Tomcat 5.5.0 Server

2004-11-22 Thread inr
Hi,
  I need to set the Error log for the unpacked Web Application,for
which i used in Sun One Web server.Now i migrated to Tomcat 5.5, Here i am
using the Unpacked Web Application. HOw to set the Error Log,

Thanks in Advance,
inr


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



RE: Error with request for /index.jsp - Is this a bug?

2004-11-22 Thread Shiva.Devaguptapu
Still the result is same.

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 3:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Error with request for /index.jsp - Is this a bug?


On Monday 22 November 2004 11:31, Shiva.Devaguptapu wrote:
> After doing all this, I changed the server.xml to have the Context as
> follows :

Mine looks as follows:






>allowLinking="true" debug="9" />

Hm... ...this is a strange one.

> But still I get the same tomcat welcome page.

I am not sure what is going on, sounds like one of two things:

1). It has cached the files and server config somewhere.
2). It is not pointing to the correct path.

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Concept, n.:
Any "idea" for which an outside consultant billed you more than
$25,000.

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



Re: Servlet mapping problem.

2004-11-22 Thread Andoni
If you are not using Struts why did you call the login JSP,
loginResponse.do?

Did you add .do to your web.xml file as a JSP type? Can you post your
web.xml.

Andoni.

- Original Message - 
From: "Stefan" <[EMAIL PROTECTED]>
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Monday, November 22, 2004 5:36 AM
Subject: Re: Servlet mapping problem.


> Hi,
>
> I'm not using struts.
>
> Stefan
>
> www.killersites.com
>
>
> - Original Message - 
> From: "sven morales" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 12:25 AM
> Subject: Re: Servlet mapping problem.
>
>
> >   Can you also post all your struts-config.xml  >  ..> ? I was looking for something that may be
> > ing it to login.jsp.  This line you have in
> > your form,   > action="/context_name/loginResponse.do"  points to
> > context_name/loginResponse.do  so show this 
> > line of your struts-config.xml
> >
> > --- Stefan <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > I am actually using a form to post to the target
> > > servlet:
> > >
> > >  > > method="post">
> > >
> > > name: 
> > >
> > > 
> > >
> > > 
> > >
> > > The form itself is sitting in a page with this URL:
> > >
> > > http://127.0.0.1/myWebsite/logIn.jsp
> > >
> > > And the strange thing is that when I submit the form
> > > I am taken to this URL:
> > >
> > > http://127.0.0.1/login.jsp
> > >
> > > And I get this error:
> > >
> > > HTTP Status 404 - /login.jsp
> > >
> > >
> > >
>
> --
> --
> > > 
> > >
> > > type Status report
> > >
> > > message /login.jsp
> > >
> > > description The requested resource (/login.jsp) is
> > > not available.
> > >
> > >
> > >
>
> --
> --
> > > 
> > >
> > > Apache Tomcat/5.0.28
> > > Any ideas? Is this a bug in Tomcat ? This works fine
> > > (naturally) in Resin.
> > >
> > >
> > > Stefan
> > >
> > > www.killersites.com
> > >
> > > - Original Message - 
> > > From: "sven morales" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List"
> > > <[EMAIL PROTECTED]>
> > > Sent: Sunday, November 21, 2004 9:58 PM
> > > Subject: Re: Servlet mapping problem.
> > >
> > >
> > > >Can you show us what you type in to your
> > > browser?
> > > >
> > > > --- Stefan <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I first posted this question with the wrong
> > > subject
> > > > > heading ... sorry about
> > > > > the duplicates.
> > > > >
> > > > > My question:
> > > > >
> > > > > Using Tomcat 5.0.28 standalone on windows XP
> > > with
> > > > > JVM 1.4, I get this error
> > > > > even though I have mapped my servlet in the
> > > web.xml
> > > > > file of the web app:
> > > > >
> > > > >
> > > > > HTTP Status 404 - /loginResponse.do
> > > > >
> > > > >
> > > >
> > >
>
> --
> > > --
> > > > > 
> > > > >
> > > > > type Status report
> > > > >
> > > > > message /loginResponse.do
> > > > >
> > > > > description The requested resource
> > > > > (/loginResponse.do) is not available.
> > > > >
> > > > >
> > > > >
> > > >
> > >
>
> --
> > > --
> > > > > 
> > > > >
> > > > > Apache Tomcat/5.0.28
> > > > >
> > > > >
> > > > > I've placed my webapp folder in Tomcats' webapps
> > > > > directory and all the jsp
> > > > > pages run fine as do my POJO's for business
> > > logic,
> > > > > any ideas why the servlet
> > > > > code could be causing problems?
> > > > >
> > > > > The servlet mappings:
> > > > >
> > > > >
> > > > >   code:
> > > > >
> > > >
> > >
>
> --
> > > --
> > > > > --
> > > > >
> > > > >   
> > > > > loginResponse
> > > > >
> > > >
> > >
> > com._ABC.authenticateAdmin
> > > > > 
> > > > > adminPassword
> > > > > xxx
> > > > >   
> > > > > loginResponse
> > > > > /loginResponse.do
> > > > > 
> > > > >
> > > >
> > >
>
> --
> > > --
> > > > > --
> > > > >
> > > > >
> > > > >
> > > > > It's my first time using Tomcat, been a Resin
> > > user
> > > > > for years ... any ideas?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Stef
> > > > >
> > > > >
> > > > >
> > > > > - Original Message - 
> > > > > From: "Mark Thomas" <[EMAIL PROTECTED]>
> > > > > To: "'Tomcat Users List'"
> > > > > <[EMAIL PROTECTED]>
> > > > > Sent: Sunday, November 21, 2004 12:10 PM
> > > > > Subject: RE: CGI Again...Servlet.service() for
> > > > > servlet cgi threw exception
> > > > >
> > > > >
> > > > > > I'll look into this but I need a bit more
> > > info:
> > > > > >
> > > > > > 1. What servlet mapping did you specify in
> > > > > web.xml?
> > > > > > 2. What URL are you requesting?
> > > > > >
> > > > > > Mark
> > > > > >
> > > > > > > -Original Message

Re: high traffic Tomcat sites out there?

2004-11-22 Thread Ronald Klop
On Mon Nov 22 11:55:08 CET 2004 LAM Kwun Wa Joseph <[EMAIL PROTECTED]> wrote:
For my Tomcat cluster I'm looking for an upper limit on the estimation of
how much traffic it may face. Say, would thousands of HTTP req/s be too
'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm talking
about dynamic pages such as stock quotes and news)
Does anyone know of any high traffic JSP/servlet sites(running Tomcat or
similar servlet container)? I'm mostly interested to know what's the
typical "magnitude" of their HTTP throughput (e.g. hundreds or thousands
of HTTP/s) and what kinds of apps are they running.
Joseph Lam

Hello,
I am also interested in some realworld figures. Our configuration is this.
2-node cluster of 2-cpu P4-2.8Ghz machines.
The  web-application is a database application (with a lot of updates and 
non-index queries) for logged-in users.
We have about 1500 logged in persons doing 70 req/s. Half of the requests go to 
Tomcat, the other half to Apache for static content.
The average (Tomcat) req takes about 250 ms in our system.
But I have no idea if this is an high/average/low load compared to other 
systems.
Btw, we are using Tomcat 5.0.28, JDK 1.4.2, Debian Sarge (linux 2.6.x), Apache 
1.3.x/mod_jk 1.2.6.
Ronald.


[OT] Asynchronous Event processing API

2004-11-22 Thread Tim Funk
I am hoping other people have this problem ...
I want to utilize an event processing system for when certain "things" happen 
on a website I maintain. For example, if someone wishes to contact my client, 
 the web site writes to a database to record the entry, then emails customer 
service for notification. On certain occasions - other events also are run 
real time before the user is shown the response. The whole model stinks when 
an additional action needs injected since it takes longer for the user to 
receive feedback after they have pressed the submit button. (The system is 
also more brittle since any event in the real time chain may break causing a 
500 error back to the user)

My solution to fix this is to have the contact us action only write to a 
database, and then fire off an event to "something". Then I could register 0 
or more listeners to that event. Then items such as email customer service, 
email a sales rep, add an entry into a CRM database, or whatever cna be done 
asynchonrously.

As an added bonus - I'd like to eventually chain events together to create a 
new rule. For a ficticious example - if you look try to add some items to a 
shopping cart, then go a store locator and abandon the cart - feed the user 
to customer service for a random survey to see if they abadoned the cart due 
to bad UI.

I know such things probably exist ... but don't know what terminolgy to use 
for finding such products/apis. Doing the first part is easy to write myself, 
but chaining events together would take a lot more time.

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


Re: high traffic Tomcat sites out there?

2004-11-22 Thread Peter Lin
250ms response time is rock solid. Getting the total response time
lower than 250ms is pretty darn tough. based on your info, that means
each tomcat is getting on average 15-16 concurrent requests.

one way to improve the response time would be to use smart caching and
avoid the cost of making a real insert/update to the database. that
will mainly depend on the requirements of your application. 35
pageviews/second is good amount of traffic, but it's not the crazy
traffic that yahoo or google support :)  then again yahoo and google
both have tens of thousands of servers.

peter


On Mon, 22 Nov 2004 14:36:47 +0100 (CET), Ronald Klop
<[EMAIL PROTECTED]> wrote:
> On Mon Nov 22 11:55:08 CET 2004 LAM Kwun Wa Joseph <[EMAIL PROTECTED]> wrote:
> 
> 
> > For my Tomcat cluster I'm looking for an upper limit on the estimation of
> > how much traffic it may face. Say, would thousands of HTTP req/s be too
> > 'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm talking
> > about dynamic pages such as stock quotes and news)
> >
> > Does anyone know of any high traffic JSP/servlet sites(running Tomcat or
> > similar servlet container)? I'm mostly interested to know what's the
> > typical "magnitude" of their HTTP throughput (e.g. hundreds or thousands
> > of HTTP/s) and what kinds of apps are they running.
> >
> > Joseph Lam
> 
> 
> Hello,
> 
> I am also interested in some realworld figures. Our configuration is this.
> 2-node cluster of 2-cpu P4-2.8Ghz machines.
> The  web-application is a database application (with a lot of updates and 
> non-index queries) for logged-in users.
> We have about 1500 logged in persons doing 70 req/s. Half of the requests go 
> to Tomcat, the other half to Apache for static content.
> The average (Tomcat) req takes about 250 ms in our system.
> But I have no idea if this is an high/average/low load compared to other 
> systems.
> Btw, we are using Tomcat 5.0.28, JDK 1.4.2, Debian Sarge (linux 2.6.x), 
> Apache 1.3.x/mod_jk 1.2.6.
> 
> Ronald.
> 
>

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



RE: How to set Error Log for Web Application in TOmcat 5.5

2004-11-22 Thread Shapira, Yoav

Hi,
Not only does this NOT help, it hurts ;)  Please be careful to not to
post Tomcat 5.0 (or 4.x, or 3.x) configuration files for a Tomcat 5.5
question, or the other way around.  We have enough confused newbies as
it is ;)

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Sarath PS [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 2:52 AM
>To: Tomcat Users List
>Subject: Re: How to set Error Log for Web Application in TOmcat 5.5
>
>hi,
>
>   Here is a sample of my tomcat server.xml file. Hope it will be help
>ful to you
>
>unpackWARs="true"
>autoDeploy="true">
>
> directory="logs/www.example.com/access"
>prefix="example_com." suffix=".txt"
> pattern="common"
>resolveHosts="false"/>
>
> directory="logs/example.com/fileLogger"
>prefix="example_com." suffix=".txt"
>timestamp="true"/>
>
>
>
>
>  
>allowLinking="true" docBase="" />
>  
>
>
>inr wrote:
>
>>Hai all,
>>  How to set the Error Log file for Our Own Web
>Application
>>in Tomcat 5.5
>>
>>Thanks
>>inr
>>
>>
>>-
>>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: multipart/byteranges bug in tomcat 4.1.x

2004-11-22 Thread Shapira, Yoav

Hi,
Don't hold your breath, upgrade if/when possible.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Vincent Gogan [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 19, 2004 9:09 PM
>To: [EMAIL PROTECTED]
>Subject: multipart/byteranges bug in tomcat 4.1.x
>
>I had to write some byte-streaming code and it took me
>quite a while to find my problem because I had manged to
>get my behaviour byte-for-byte identical to Tomcat 4.1.x
>behaviour.
>
>My bug was that I wasn't outputting CRLF before each separator.
>The same bug still exists in DefaultServlet.java in Tomcat 4.1.31.
>I checked the 5.0.28 code and the bug was fixed. It might be nice
>to fix the old version of Tomcat as it is still quite heavily used.
>
>Regards,
>
>Vincent
>
>
>-
>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: Looking for classes that were moved out

2004-11-22 Thread Shapira, Yoav

Hi,
It's your code that's looking for this class, not Tomcat.  Anyways,
putting code in jre/lib/ext is tantamount to playing Russian roulette.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Wout Perquin [mailto:[EMAIL PROTECTED]
>Sent: Saturday, November 20, 2004 10:29 PM
>To: Tomcat Users List
>Subject: Looking for classes that were moved out
>
>Hi,
>
>My web application is in /var/tomcat4/webapps/logging2.
>
>Initially I had placed a number of classes (com.sun.jini.reggie.*) in
>/var/tomcat4/webapps/logging/WEB-INF/classes
>Later on I moved them into the extension directory.
>
>However, and this is my problem, log catalina.out keeps on saying:
>java.security.AccessControlException: access denied
(java.io.FilePermission
>/var/tomcat4/webapps/logging/WEB-
>INF/classes/com/sun/jini/reggie/RegistrarAd
>min.class read)
>and many more similar messages
>
>Bottom line:
>1) Tomcat searches for classes that have been moved, it should not
because:
>2) my application runs ok.  In other words the classes are found
elsewhere
>
>I did the following to resolve it:
>a) I stopped tomcat, moved the webapp out of the /var/tomcat4/webapps
>directory, started tomcat, stopped tomcat again, moved the webapp back
in
>but now with a changed directory name being logging2 iso logging
>No difference.  Now catalina.out says:
>java.security.AccessControlException: access denied
(java.io.FilePermission
>/var/tomcat4/webapps/logging2/WEB-
>INF/classes/com/sun/jini/reggie/RegistrarA
>dmin.class read)
>and many more similar messages
>
>
>Anybody some clue ?
>Much appreciated.
>
>Regards, Wout Perquin
>
>
>
>-
>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]



Tomcat 5 Cluster on blades with multiple network adapters

2004-11-22 Thread Maibaum, Norbert
Title: Tomcat 5 Cluster on blades with multiple network adapters






I try to get Tomcat-Cluster running on blades

where two network-adapters are active.


So i figured out that "mcastBindAddr" parameter has to specified.

(mcastBindAddr = bind the multicast socket to a specific address)


Has anyone an example for the parameter?

How has it look like?






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

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Shapira, Yoav

Hi,
You would need to turn on the antiJARLocking or antiResourceLocking
features of Tomcat 5.5.x (they are Context attributes, use either one
but not both at the same time).

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 3:45 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Hi.
>
>Further to my email below, I have noticed that it happens after the
first
>time I re-deoply classes - i.e. after the first context reload...
>
>Carl
>
>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 8:50 AM
>To: Tomcat Users List
>Subject: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Greetings.
>
>Having the following problem using Tomcat 5.5.4 under JDK 1.5:
>
>After running my webapp for a bit in a development environment, I want
to
>copy new and replacement classes to the webapp classes location, but
>sometimes (about 50/50) I cannot overrite/delete some of the classes -
as
>the VM has not let them go (file handles I assume)?  I have to shut the
JVM
>(Tomcat) down before I can deploy my new classes
>
>Is this something in the new JDK/JRE (5.0)? Or is this something in the
>Tomcat 5.5.4 classloaders?  I cannot recall (and have not been able to
>replicate) the problem on 5.0.x under JDK 1.4.x.
>
>Any input would be appreciated.
>
>Thanks!
>
>Carl
>
>-
>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: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav

Hi,
>message /loginResponse.do
>
>description The requested resource (/loginResponse.do) is not
available.

It seems the context_name part of your  element is blank, missing,
or wrong, since the page is asking for /loginResponse.do and not
/whatever/loginResponse.do.  Accordingly, how do you generate this
 element?  I assume you don't have the webapp's name hard-coded.

To answer your question in general, Tomcat's servlet mapping behavior is
extremely well-tested, and has been for years.  I'd be surprised if this
issue was NOT caused by a configuration or coding mistake in your
webapp.  That said, Tomcat is not as lax in permitting developer
conveniences as some other containers.

Finally, a small note: please start a new thread for a new issue, don't
reply to a different message and change the subject.  It screws up the
archives.

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]



RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Ok, thanks!!

Appreciate the response as always!

Carl 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 3:58 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"


Hi,
You would need to turn on the antiJARLocking or antiResourceLocking features
of Tomcat 5.5.x (they are Context attributes, use either one but not both at
the same time).

Yoav Shapira http://www.yoavshapira.com
 

>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 3:45 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Hi.
>
>Further to my email below, I have noticed that it happens after the
first
>time I re-deoply classes - i.e. after the first context reload...
>
>Carl
>
>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 8:50 AM
>To: Tomcat Users List
>Subject: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Greetings.
>
>Having the following problem using Tomcat 5.5.4 under JDK 1.5:
>
>After running my webapp for a bit in a development environment, I want
to
>copy new and replacement classes to the webapp classes location, but 
>sometimes (about 50/50) I cannot overrite/delete some of the classes -
as
>the VM has not let them go (file handles I assume)?  I have to shut the
JVM
>(Tomcat) down before I can deploy my new classes
>
>Is this something in the new JDK/JRE (5.0)? Or is this something in the 
>Tomcat 5.5.4 classloaders?  I cannot recall (and have not been able to
>replicate) the problem on 5.0.x under JDK 1.4.x.
>
>Any input would be appreciated.
>
>Thanks!
>
>Carl
>
>-
>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]

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



Re: high traffic Tomcat sites out there?

2004-11-22 Thread Peter Lin
look at the poweredby list http://wiki.apache.org/jakarta-tomcat/PoweredBy

the biggest factor in how much bandwidth your 4 node cluster is
primarily going to be network bandwidth and database performance. 
Normally, since buckle due to database crashing. I know of a directory
site that gets millions of pageviews per day. Just look at the top 3
and  you'll find it.

peter


On Mon, 22 Nov 2004 18:55:08 +0800 (HKT), LAM Kwun Wa Joseph
<[EMAIL PROTECTED]> wrote:
> For my Tomcat cluster I'm looking for an upper limit on the estimation of
> how much traffic it may face. Say, would thousands of HTTP req/s be too
> 'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm talking
> about dynamic pages such as stock quotes and news)
> 
> Does anyone know of any high traffic JSP/servlet sites(running Tomcat or
> similar servlet container)? I'm mostly interested to know what's the
> typical "magnitude" of their HTTP throughput (e.g. hundreds or thousands
> of HTTP/s) and what kinds of apps are they running.
> 
> Joseph Lam
> 
> -
> 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.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Hectic.

When it says startup performance penalties its not kidding eh?  Context set
tot antiResourceLocking="true" and added like 30 seconds to the server
startup time :)

 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 3:58 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"


Hi,
You would need to turn on the antiJARLocking or antiResourceLocking features
of Tomcat 5.5.x (they are Context attributes, use either one but not both at
the same time).

Yoav Shapira http://www.yoavshapira.com
 

>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 3:45 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Hi.
>
>Further to my email below, I have noticed that it happens after the
first
>time I re-deoply classes - i.e. after the first context reload...
>
>Carl
>
>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 8:50 AM
>To: Tomcat Users List
>Subject: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Greetings.
>
>Having the following problem using Tomcat 5.5.4 under JDK 1.5:
>
>After running my webapp for a bit in a development environment, I want
to
>copy new and replacement classes to the webapp classes location, but 
>sometimes (about 50/50) I cannot overrite/delete some of the classes -
as
>the VM has not let them go (file handles I assume)?  I have to shut the
JVM
>(Tomcat) down before I can deploy my new classes
>
>Is this something in the new JDK/JRE (5.0)? Or is this something in the 
>Tomcat 5.5.4 classloaders?  I cannot recall (and have not been able to
>replicate) the problem on 5.0.x under JDK 1.4.x.
>
>Any input would be appreciated.
>
>Thanks!
>
>Carl
>
>-
>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]

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



RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Shapira, Yoav

Hi,
Yup, not kidding.  However, the reason to turn this on is to do in-place
reloading, as opposed to server restarting, so the penalty is easily
amortized over a few (not many) reloads.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 9:37 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Hectic.
>
>When it says startup performance penalties its not kidding eh?  Context
set
>tot antiResourceLocking="true" and added like 30 seconds to the server
>startup time :)
>
>
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 3:58 PM
>To: Tomcat Users List
>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>
>
>Hi,
>You would need to turn on the antiJARLocking or antiResourceLocking
>features
>of Tomcat 5.5.x (they are Context attributes, use either one but not
both
>at
>the same time).
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>>-Original Message-
>>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>>Sent: Monday, November 22, 2004 3:45 AM
>>To: Tomcat Users List
>>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>>
>>Hi.
>>
>>Further to my email below, I have noticed that it happens after the
>first
>>time I re-deoply classes - i.e. after the first context reload...
>>
>>Carl
>>
>>-Original Message-
>>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>>Sent: Monday, November 22, 2004 8:50 AM
>>To: Tomcat Users List
>>Subject: Tomcat 5.5.4 - classes in classpath not being "released"
>>
>>Greetings.
>>
>>Having the following problem using Tomcat 5.5.4 under JDK 1.5:
>>
>>After running my webapp for a bit in a development environment, I want
>to
>>copy new and replacement classes to the webapp classes location, but
>>sometimes (about 50/50) I cannot overrite/delete some of the classes -
>as
>>the VM has not let them go (file handles I assume)?  I have to shut
the
>JVM
>>(Tomcat) down before I can deploy my new classes
>>
>>Is this something in the new JDK/JRE (5.0)? Or is this something in
the
>>Tomcat 5.5.4 classloaders?  I cannot recall (and have not been able to
>>replicate) the problem on 5.0.x under JDK 1.4.x.
>>
>>Any input would be appreciated.
>>
>>Thanks!
>>
>>Carl
>>
>>-
>>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]
>
>-
>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 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Agreed.

Just nice to be aware of the penalties!

If you undeploy and redeploy a site (using the core Catalina) classes etc,
if this was NOT activated (the antiResourceLocking) would there be any
effects?  I am not talking about a redeployment via class changes, but a
manual redeploy from within code

(e.g. get the StandardHost and call remove on the service/engine and then
recreate a StandardHost instance with all the relevant settings, then
calling deploy and start on it...)

Thanks,

Carl

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 4:45 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"


Hi,
Yup, not kidding.  However, the reason to turn this on is to do in-place
reloading, as opposed to server restarting, so the penalty is easily
amortized over a few (not many) reloads.

Yoav Shapira http://www.yoavshapira.com
 

>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 9:37 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Hectic.
>
>When it says startup performance penalties its not kidding eh?  Context
set
>tot antiResourceLocking="true" and added like 30 seconds to the server 
>startup time :)
>
>
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 3:58 PM
>To: Tomcat Users List
>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>
>
>Hi,
>You would need to turn on the antiJARLocking or antiResourceLocking 
>features of Tomcat 5.5.x (they are Context attributes, use either one 
>but not
both
>at
>the same time).
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>>-Original Message-
>>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>>Sent: Monday, November 22, 2004 3:45 AM
>>To: Tomcat Users List
>>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>>
>>Hi.
>>
>>Further to my email below, I have noticed that it happens after the
>first
>>time I re-deoply classes - i.e. after the first context reload...
>>
>>Carl
>>
>>-Original Message-
>>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>>Sent: Monday, November 22, 2004 8:50 AM
>>To: Tomcat Users List
>>Subject: Tomcat 5.5.4 - classes in classpath not being "released"
>>
>>Greetings.
>>
>>Having the following problem using Tomcat 5.5.4 under JDK 1.5:
>>
>>After running my webapp for a bit in a development environment, I want
>to
>>copy new and replacement classes to the webapp classes location, but 
>>sometimes (about 50/50) I cannot overrite/delete some of the classes -
>as
>>the VM has not let them go (file handles I assume)?  I have to shut
the
>JVM
>>(Tomcat) down before I can deploy my new classes
>>
>>Is this something in the new JDK/JRE (5.0)? Or is this something in
the
>>Tomcat 5.5.4 classloaders?  I cannot recall (and have not been able to
>>replicate) the problem on 5.0.x under JDK 1.4.x.
>>
>>Any input would be appreciated.
>>
>>Thanks!
>>
>>Carl
>>
>>-
>>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]
>
>-
>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-ma

RE: Tomcat 5.5.4 - classes in classpath not being "released"

2004-11-22 Thread Carl Olivier
Ooppps.

Sorry -meant 300 seconds! 

-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 4:37 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"

Hectic.

When it says startup performance penalties its not kidding eh?  Context set
tot antiResourceLocking="true" and added like 30 seconds to the server
startup time :)

 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 3:58 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"


Hi,
You would need to turn on the antiJARLocking or antiResourceLocking features
of Tomcat 5.5.x (they are Context attributes, use either one but not both at
the same time).

Yoav Shapira http://www.yoavshapira.com
 

>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 3:45 AM
>To: Tomcat Users List
>Subject: RE: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Hi.
>
>Further to my email below, I have noticed that it happens after the
first
>time I re-deoply classes - i.e. after the first context reload...
>
>Carl
>
>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 8:50 AM
>To: Tomcat Users List
>Subject: Tomcat 5.5.4 - classes in classpath not being "released"
>
>Greetings.
>
>Having the following problem using Tomcat 5.5.4 under JDK 1.5:
>
>After running my webapp for a bit in a development environment, I want
to
>copy new and replacement classes to the webapp classes location, but 
>sometimes (about 50/50) I cannot overrite/delete some of the classes -
as
>the VM has not let them go (file handles I assume)?  I have to shut the
JVM
>(Tomcat) down before I can deploy my new classes
>
>Is this something in the new JDK/JRE (5.0)? Or is this something in the 
>Tomcat 5.5.4 classloaders?  I cannot recall (and have not been able to
>replicate) the problem on 5.0.x under JDK 1.4.x.
>
>Any input would be appreciated.
>
>Thanks!
>
>Carl
>
>-
>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]

-
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.4 - classes in classpath not being "released"

2004-11-22 Thread Shapira, Yoav

Hi,

>(e.g. get the StandardHost and call remove on the service/engine and
then
>recreate a StandardHost instance with all the relevant settings, then
>calling deploy and start on it...)

This is really not a recommended practice.  With the increased JMX and
Logging interaction, it's hard to get this right.

However, if you do it, the effects will be the same with respect to
antiJAR/ResourceLocking, because the classloader path through the code
is the same.  (It's the ClassLoader references that lock up these
files).

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]



Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi,

This is my web.xml for the web app:



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

 index.jsp

 
  authentication filter
  com._XYZ.authenticateAdminFilter
 

 
  authentication filter
  /admin/*
 

 
  loginResponse
  com._XYZ.authenticateAdmin

  
   testPassword
   xxx
  
 

 
  loginResponse
  /loginResponse.do
 



At this point I'm stumped as to why Tomcat refuses the servlet mapping?

Stefan

www.killersites.com


- Original Message - 
From: "Andoni" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 7:39 AM
Subject: Re: Servlet mapping problem.


> If you are not using Struts why did you call the login JSP,
> loginResponse.do?
>
> Did you add .do to your web.xml file as a JSP type? Can you post your
> web.xml.
>
> Andoni.
>
> - Original Message - 
> From: "Stefan" <[EMAIL PROTECTED]>
> Newsgroups: gmane.comp.jakarta.tomcat.user
> Sent: Monday, November 22, 2004 5:36 AM
> Subject: Re: Servlet mapping problem.
>
>
> > Hi,
> >
> > I'm not using struts.
> >
> > Stefan
> >
> > www.killersites.com
> >
> >
> > - Original Message - 
> > From: "sven morales" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, November 22, 2004 12:25 AM
> > Subject: Re: Servlet mapping problem.
> >
> >
> > >   Can you also post all your struts-config.xml  > >  ..> ? I was looking for something that may be
> > > ing it to login.jsp.  This line you have in
> > > your form,   > > action="/context_name/loginResponse.do"  points to
> > > context_name/loginResponse.do  so show this 
> > > line of your struts-config.xml
> > >
> > > --- Stefan <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi,
> > > >
> > > > I am actually using a form to post to the target
> > > > servlet:
> > > >
> > > >  > > > method="post">
> > > >
> > > > name: 
> > > >
> > > > 
> > > >
> > > > 
> > > >
> > > > The form itself is sitting in a page with this URL:
> > > >
> > > > http://127.0.0.1/myWebsite/logIn.jsp
> > > >
> > > > And the strange thing is that when I submit the form
> > > > I am taken to this URL:
> > > >
> > > > http://127.0.0.1/login.jsp
> > > >
> > > > And I get this error:
> > > >
> > > > HTTP Status 404 - /login.jsp
> > > >
> > > >
> > > >
> >
>
> --
> > --
> > > > 
> > > >
> > > > type Status report
> > > >
> > > > message /login.jsp
> > > >
> > > > description The requested resource (/login.jsp) is
> > > > not available.
> > > >
> > > >
> > > >
> >
>
> --
> > --
> > > > 
> > > >
> > > > Apache Tomcat/5.0.28
> > > > Any ideas? Is this a bug in Tomcat ? This works fine
> > > > (naturally) in Resin.
> > > >
> > > >
> > > > Stefan
> > > >
> > > > www.killersites.com
> > > >
> > > > - Original Message - 
> > > > From: "sven morales" <[EMAIL PROTECTED]>
> > > > To: "Tomcat Users List"
> > > > <[EMAIL PROTECTED]>
> > > > Sent: Sunday, November 21, 2004 9:58 PM
> > > > Subject: Re: Servlet mapping problem.
> > > >
> > > >
> > > > >Can you show us what you type in to your
> > > > browser?
> > > > >
> > > > > --- Stefan <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I first posted this question with the wrong
> > > > subject
> > > > > > heading ... sorry about
> > > > > > the duplicates.
> > > > > >
> > > > > > My question:
> > > > > >
> > > > > > Using Tomcat 5.0.28 standalone on windows XP
> > > > with
> > > > > > JVM 1.4, I get this error
> > > > > > even though I have mapped my servlet in the
> > > > web.xml
> > > > > > file of the web app:
> > > > > >
> > > > > >
> > > > > > HTTP Status 404 - /loginResponse.do
> > > > > >
> > > > > >
> > > > >
> > > >
> >
>
> --
> > > > --
> > > > > > 
> > > > > >
> > > > > > type Status report
> > > > > >
> > > > > > message /loginResponse.do
> > > > > >
> > > > > > description The requested resource
> > > > > > (/loginResponse.do) is not available.
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> >
>
> --
> > > > --
> > > > > > 
> > > > > >
> > > > > > Apache Tomcat/5.0.28
> > > > > >
> > > > > >
> > > > > > I've placed my webapp folder in Tomcats' webapps
> > > > > > directory and all the jsp
> > > > > > pages run fine as do my POJO's for business
> > > > logic,
> > > > > > any ideas why the servlet
> > > > > > code could be causing problems?
> > > > > >
> > > > > > The servlet mappings:
> > > > > >
> > > > > >
> > > > > >   code:
> > > > > >
> > > > >
> > > >
> >
>
> --
> > > > --
> > > > > > --
> > > > > >
> > > > > >   
> > > > > > loginResponse
> > > > > >
> > > > >
> > > >
> > > com._ABC.authenticateAdmin
> > > > > > 
> > > > > > adminPassword
> > > > > > xxx
> > > > > >   
> > > > > >

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav

Hi,
The web.xml file looks reasonable.  But you have yet to answer the other
question, which is how you generate the form tag.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Stefan [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 10:00 AM
>To: Tomcat Users List
>Subject: Re: Servlet mapping problem.
>
>Hi,
>
>This is my web.xml for the web app:
>
>
>
>2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> index.jsp
>
> 
>  authentication filter
>  com._XYZ.authenticateAdminFilter
> 
>
> 
>  authentication filter
>  /admin/*
> 
>
> 
>  loginResponse
>  com._XYZ.authenticateAdmin
>
>  
>   testPassword
>   xxx
>  
> 
>
> 
>  loginResponse
>  /loginResponse.do
> 
>
>
>
>At this point I'm stumped as to why Tomcat refuses the servlet mapping?
>
>Stefan
>
>www.killersites.com
>
>
>- Original Message -
>From: "Andoni" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Monday, November 22, 2004 7:39 AM
>Subject: Re: Servlet mapping problem.
>
>
>> If you are not using Struts why did you call the login JSP,
>> loginResponse.do?
>>
>> Did you add .do to your web.xml file as a JSP type? Can you post your
>> web.xml.
>>
>> Andoni.
>>
>> - Original Message -
>> From: "Stefan" <[EMAIL PROTECTED]>
>> Newsgroups: gmane.comp.jakarta.tomcat.user
>> Sent: Monday, November 22, 2004 5:36 AM
>> Subject: Re: Servlet mapping problem.
>>
>>
>> > Hi,
>> >
>> > I'm not using struts.
>> >
>> > Stefan
>> >
>> > www.killersites.com
>> >
>> >
>> > - Original Message -
>> > From: "sven morales" <[EMAIL PROTECTED]>
>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> > Sent: Monday, November 22, 2004 12:25 AM
>> > Subject: Re: Servlet mapping problem.
>> >
>> >
>> > >   Can you also post all your struts-config.xml > > >  ..> ? I was looking for something that may be
>> > > ing it to login.jsp.  This line you have in
>> > > your form,  > > > action="/context_name/loginResponse.do"  points to
>> > > context_name/loginResponse.do  so show this 
>> > > line of your struts-config.xml
>> > >
>> > > --- Stefan <[EMAIL PROTECTED]> wrote:
>> > >
>> > > > Hi,
>> > > >
>> > > > I am actually using a form to post to the target
>> > > > servlet:
>> > > >
>> > > > > > > > method="post">
>> > > >
>> > > > name: 
>> > > >
>> > > > 
>> > > >
>> > > > 
>> > > >
>> > > > The form itself is sitting in a page with this URL:
>> > > >
>> > > > http://127.0.0.1/myWebsite/logIn.jsp
>> > > >
>> > > > And the strange thing is that when I submit the form
>> > > > I am taken to this URL:
>> > > >
>> > > > http://127.0.0.1/login.jsp
>> > > >
>> > > > And I get this error:
>> > > >
>> > > > HTTP Status 404 - /login.jsp
>> > > >
>> > > >
>> > > >
>> >
>>
>>

-
>-
>> > --
>> > > > 
>> > > >
>> > > > type Status report
>> > > >
>> > > > message /login.jsp
>> > > >
>> > > > description The requested resource (/login.jsp) is
>> > > > not available.
>> > > >
>> > > >
>> > > >
>> >
>>
>>

-
>-
>> > --
>> > > > 
>> > > >
>> > > > Apache Tomcat/5.0.28
>> > > > Any ideas? Is this a bug in Tomcat ? This works fine
>> > > > (naturally) in Resin.
>> > > >
>> > > >
>> > > > Stefan
>> > > >
>> > > > www.killersites.com
>> > > >
>> > > > - Original Message -
>> > > > From: "sven morales" <[EMAIL PROTECTED]>
>> > > > To: "Tomcat Users List"
>> > > > <[EMAIL PROTECTED]>
>> > > > Sent: Sunday, November 21, 2004 9:58 PM
>> > > > Subject: Re: Servlet mapping problem.
>> > > >
>> > > >
>> > > > >Can you show us what you type in to your
>> > > > browser?
>> > > > >
>> > > > > --- Stefan <[EMAIL PROTECTED]> wrote:
>> > > > >
>> > > > > > Hi,
>> > > > > >
>> > > > > > I first posted this question with the wrong
>> > > > subject
>> > > > > > heading ... sorry about
>> > > > > > the duplicates.
>> > > > > >
>> > > > > > My question:
>> > > > > >
>> > > > > > Using Tomcat 5.0.28 standalone on windows XP
>> > > > with
>> > > > > > JVM 1.4, I get this error
>> > > > > > even though I have mapped my servlet in the
>> > > > web.xml
>> > > > > > file of the web app:
>> > > > > >
>> > > > > >
>> > > > > > HTTP Status 404 - /loginResponse.do
>> > > > > >
>> > > > > >
>> > > > >
>> > > >
>> >
>>
>>

-
>-
>> > > > --
>> > > > > > 
>> > > > > >
>> > > > > > type Status report
>> > > > > >
>> > > > > > message /loginResponse.do
>> > > > > >
>> > > > > > description The requested resource
>> > > > > > (/loginResponse.do) is not available.
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > >
>> > > >
>> >
>>
>>

-
>-
>> > > > --
>> > > > > > 
>> > > > > >
>> > > > > > Apache Tomcat/5.0.28
>> > > > > >
>> > > > > >
>> > > > > > I've placed my webapp folder in Tomcats' webapps
>> > > > > > directory and all the jsp
>>

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi,

my form code:



name: 





To naswer your questions:

Q. Accordingly, how do you generate this  element?
A. I'm not sure what you mean, it's just a hard-coded HTML form.

Q. I assume you don't have the webapp's name hard-coded
A. Hard-coded where? In the forms' action attribute? If so, is that a
problem?

Thanks,


Stefan

www.killersites.com


- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 9:03 AM
Subject: RE: Servlet mapping problem.



Hi,
>message /loginResponse.do
>
>description The requested resource (/loginResponse.do) is not
available.

It seems the context_name part of your  element is blank, missing,
or wrong, since the page is asking for /loginResponse.do and not
/whatever/loginResponse.do.  Accordingly, how do you generate this
 element?  I assume you don't have the webapp's name hard-coded.

To answer your question in general, Tomcat's servlet mapping behavior is
extremely well-tested, and has been for years.  I'd be surprised if this
issue was NOT caused by a configuration or coding mistake in your
webapp.  That said, Tomcat is not as lax in permitting developer
conveniences as some other containers.

Finally, a small note: please start a new thread for a new issue, don't
reply to a different message and change the subject.  It screws up the
archives.

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]


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



Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi,

Just out of curiousity I changed the forms' action attribute to include the
full path:

http://127.0.0.1/the_context/loginResponse.do"; method="post">

>From a page with this URL: http://127.0.0.1/the_context/logIn.jsp

And when I submit the form I am taken to Tomcats' web server admin tool
login page!

The URL: http://127.0.0.1/admin/index.jsp

And for the sake of completeness my mapping for the servlet:


  loginResponse
  /loginResponse.do
 


Does this shed any light on what is going on?


Stefan

www.killersites.com


- Original Message - 
From: "Stefan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, November 21, 2004 10:31 PM
Subject: Re: Servlet mapping problem.


> Hi,
>
> I am actually using a form to post to the target servlet:
>
> 
>
> name: 
>
> 
>
> 
>
> The form itself is sitting in a page with this URL:
>
> http://127.0.0.1/myWebsite/logIn.jsp
>
> And the strange thing is that when I submit the form I am taken to this
URL:
>
> http://127.0.0.1/login.jsp
>
> And I get this error:
>
> HTTP Status 404 - /login.jsp
>
>
> --
--
> 
>
> type Status report
>
> message /login.jsp
>
> description The requested resource (/login.jsp) is not available.
>
>
> --
--
> 
>
> Apache Tomcat/5.0.28
> Any ideas? Is this a bug in Tomcat ? This works fine (naturally) in Resin.
>
>
> Stefan
>
> www.killersites.com
>
> - Original Message - 
> From: "sven morales" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, November 21, 2004 9:58 PM
> Subject: Re: Servlet mapping problem.
>
>
> >Can you show us what you type in to your browser?
> >
> > --- Stefan <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > I first posted this question with the wrong subject
> > > heading ... sorry about
> > > the duplicates.
> > >
> > > My question:
> > >
> > > Using Tomcat 5.0.28 standalone on windows XP with
> > > JVM 1.4, I get this error
> > > even though I have mapped my servlet in the web.xml
> > > file of the web app:
> > >
> > >
> > > HTTP Status 404 - /loginResponse.do
> > >
> > >
>
> --
> --
> > > 
> > >
> > > type Status report
> > >
> > > message /loginResponse.do
> > >
> > > description The requested resource
> > > (/loginResponse.do) is not available.
> > >
> > >
> > >
>
> --
> --
> > > 
> > >
> > > Apache Tomcat/5.0.28
> > >
> > >
> > > I've placed my webapp folder in Tomcats' webapps
> > > directory and all the jsp
> > > pages run fine as do my POJO's for business logic,
> > > any ideas why the servlet
> > > code could be causing problems?
> > >
> > > The servlet mappings:
> > >
> > >
> > >   code:
> > >
>
> --
> --
> > > --
> > >
> > >   
> > > loginResponse
> > >
> > com._ABC.authenticateAdmin
> > > 
> > > adminPassword
> > > xxx
> > >   
> > > loginResponse
> > > /loginResponse.do
> > > 
> > >
>
> --
> --
> > > --
> > >
> > >
> > >
> > > It's my first time using Tomcat, been a Resin user
> > > for years ... any ideas?
> > >
> > > Thanks,
> > >
> > > Stef
> > >
> > >
> > >
> > > - Original Message - 
> > > From: "Mark Thomas" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'"
> > > <[EMAIL PROTECTED]>
> > > Sent: Sunday, November 21, 2004 12:10 PM
> > > Subject: RE: CGI Again...Servlet.service() for
> > > servlet cgi threw exception
> > >
> > >
> > > > I'll look into this but I need a bit more info:
> > > >
> > > > 1. What servlet mapping did you specify in
> > > web.xml?
> > > > 2. What URL are you requesting?
> > > >
> > > > Mark
> > > >
> > > > > -Original Message-
> > > > > From: Sergey Kamshilin
> > > [mailto:[EMAIL PROTECTED]
> > > > > Sent: Saturday, November 20, 2004 12:00 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: CGI Again...Servlet.service() for
> > > servlet cgi threw exception
> > > > >
> > > > > Sorry guys, I gave up digging into it and
> > > haven't seen such
> > > > > problems in
> > > > > archives...
> > > > >
> > > > > Tomcat 4.1.31 on Solaris.
> > > > >
> > > > > I enabled cgi scripting:
> > > > > changes in web.xml:
> > > > > --
> > > > > 
> > > > > cgi
> > > > >
> > > > >
> > >
> > org.apache.catalina.servlets.CGIServlet
> > > > > 
> > > > >   debug
> > > > >   6
> > > > > 
> > > > > 
> > > > >   cgiPathPrefix
> > > > >
> > > /WEB-INF/cgi-bin/
> > > > > 
> > > > > 5
> > > > > 
> > > > > --
> > > > > renamed servlets-cgi.jar
> > > > >
> > > > > The script is
> > > > >
> > >
> > /usr/jakarta-tomcat/webapps/ROOT/WEB-INF/cgi-bin/index.pl
> > > > > (Everythin

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav

Hi,

>
>
>name: 
>
>
>
>

I meant the server-side code, not the HTML output.

>Q. Accordingly, how do you generate this  element?
>A. I'm not sure what you mean, it's just a hard-coded HTML form.

It shouldn't be.  Try a relative URL instead.

>Q. I assume you don't have the webapp's name hard-coded
>A. Hard-coded where? In the forms' action attribute? If so, is that a
>problem?

It's poor design that limits your portability and presents a possible
problem if your server configuration doesn't match your hard-coded
value.  For example, if could be that Tomcat is deploying your webapp at
a different path, then you would get a 404...

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]



Re: SSL and form-based login

2004-11-22 Thread erh
On Sun, Nov 21, 2004 at 10:53:52AM -0800, footh wrote:
> The URL in the browser is the URL of the protected
> page I'm trying to access.  So, for example if
> /test/test.jsp is protected by forms-login and I click
> a link to that page, /test/test.jsp will be the URL in
> the browser, but the login page will appear on the
> screen.
Well, that sounds like you're not getting an actual redirect
to the login page.  Unless you do that, the brower never sends
another request, so you stay in http mode.  According to the 
servlet spec it's not supposed to do a redirect.
Since it's not a redirect, the urls specified in login-config don't
 get matched against a security constraint.
If they did, it'd be hard not to create loops.  e.g.:
access to somepage.jsp triggers security-constraint on *.jsp requiring
 realm foo.
login-config is triggered to allow tomcat to figure out which realm the
 user is in
url for that is login.jsp, security-constraint is triggered, etc...
That seems to make the automatic form login not all that useful
for ssl stuff, at least not at first glance.  A solution might be to
point your login-config url at a page that does an immediate redirect to the
actual login page.

i.e.:
define a security constraint that forces ssl and applies only to login.jsp
 no realm!  since there's an explicit redirect we don't want to create a loop.
define another security constraint that specifies a realm and applies
 to everything else.
setup login-config to point to redirect.jsp
redirect.jsp does an immediate c:redirect to login.jsp
login.jsp works like normal. (j_security_check form and all)

Well, that's how I'm hoping it would work.  That depends on whether
the redirect that redirect.jsp does, and the extra get the browser
does, will cause tomcat to clear out it's original stored url.
It seemed to work that way with a quick test I just did, but I'm
not entirely sure I did it right.

eric

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



Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
Why don't you just use a relative link?:


On Mon, 2004-11-22 at 10:13, Stefan wrote:
> Hi,
> 
> Just out of curiousity I changed the forms' action attribute to include the
> full path:
> 
> http://127.0.0.1/the_context/loginResponse.do"; method="post">
> 
> >From a page with this URL: http://127.0.0.1/the_context/logIn.jsp
> 
> And when I submit the form I am taken to Tomcats' web server admin tool
> login page!
> 
> The URL: http://127.0.0.1/admin/index.jsp
> 
> And for the sake of completeness my mapping for the servlet:
> 
> 
>   loginResponse
>   /loginResponse.do
>  
> 
> 
> Does this shed any light on what is going on?
> 
> 
> Stefan
> 
> www.killersites.com
> 
> 
> - Original Message - 
> From: "Stefan" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, November 21, 2004 10:31 PM
> Subject: Re: Servlet mapping problem.
> 
> 
> > Hi,
> >
> > I am actually using a form to post to the target servlet:
> >
> > 
> >
> > name: 
> >
> > 
> >
> > 
> >
> > The form itself is sitting in a page with this URL:
> >
> > http://127.0.0.1/myWebsite/logIn.jsp
> >
> > And the strange thing is that when I submit the form I am taken to this
> URL:
> >
> > http://127.0.0.1/login.jsp
> >
> > And I get this error:
> >
> > HTTP Status 404 - /login.jsp
> >
> >
> > --
> --
> > 
> >
> > type Status report
> >
> > message /login.jsp
> >
> > description The requested resource (/login.jsp) is not available.
> >
> >
> > --
> --
> > 
> >
> > Apache Tomcat/5.0.28
> > Any ideas? Is this a bug in Tomcat ? This works fine (naturally) in Resin.
> >
> >
> > Stefan
> >
> > www.killersites.com
> >
> > - Original Message - 
> > From: "sven morales" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Sunday, November 21, 2004 9:58 PM
> > Subject: Re: Servlet mapping problem.
> >
> >
> > >Can you show us what you type in to your browser?
> > >
> > > --- Stefan <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi,
> > > >
> > > > I first posted this question with the wrong subject
> > > > heading ... sorry about
> > > > the duplicates.
> > > >
> > > > My question:
> > > >
> > > > Using Tomcat 5.0.28 standalone on windows XP with
> > > > JVM 1.4, I get this error
> > > > even though I have mapped my servlet in the web.xml
> > > > file of the web app:
> > > >
> > > >
> > > > HTTP Status 404 - /loginResponse.do
> > > >
> > > >
> >
> > --
> > --
> > > > 
> > > >
> > > > type Status report
> > > >
> > > > message /loginResponse.do
> > > >
> > > > description The requested resource
> > > > (/loginResponse.do) is not available.
> > > >
> > > >
> > > >
> >
> > --
> > --
> > > > 
> > > >
> > > > Apache Tomcat/5.0.28
> > > >
> > > >
> > > > I've placed my webapp folder in Tomcats' webapps
> > > > directory and all the jsp
> > > > pages run fine as do my POJO's for business logic,
> > > > any ideas why the servlet
> > > > code could be causing problems?
> > > >
> > > > The servlet mappings:
> > > >
> > > >
> > > >   code:
> > > >
> >
> > --
> > --
> > > > --
> > > >
> > > >   
> > > > loginResponse
> > > >
> > > com._ABC.authenticateAdmin
> > > > 
> > > > adminPassword
> > > > xxx
> > > >   
> > > > loginResponse
> > > > /loginResponse.do
> > > > 
> > > >
> >
> > --
> > --
> > > > --
> > > >
> > > >
> > > >
> > > > It's my first time using Tomcat, been a Resin user
> > > > for years ... any ideas?
> > > >
> > > > Thanks,
> > > >
> > > > Stef
> > > >
> > > >
> > > >
> > > > - Original Message - 
> > > > From: "Mark Thomas" <[EMAIL PROTECTED]>
> > > > To: "'Tomcat Users List'"
> > > > <[EMAIL PROTECTED]>
> > > > Sent: Sunday, November 21, 2004 12:10 PM
> > > > Subject: RE: CGI Again...Servlet.service() for
> > > > servlet cgi threw exception
> > > >
> > > >
> > > > > I'll look into this but I need a bit more info:
> > > > >
> > > > > 1. What servlet mapping did you specify in
> > > > web.xml?
> > > > > 2. What URL are you requesting?
> > > > >
> > > > > Mark
> > > > >
> > > > > > -Original Message-
> > > > > > From: Sergey Kamshilin
> > > > [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Saturday, November 20, 2004 12:00 AM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: CGI Again...Servlet.service() for
> > > > servlet cgi threw exception
> > > > > >
> > > > > > Sorry guys, I gave up digging into it and
> > > > haven't seen such
> > > > > > problems in
> > > > > > archives...
> > > > > >
> > > > > > Tomcat 4.1.31 on Solaris.
> > > > > >
> > > > > > I enabled cgi scripting:
> > > > > > changes in web.xml:
> > > > > > --
> > > 

logging compression stats

2004-11-22 Thread Ben Simon
Howdy,

I've enabled compression on my server [1]:

,
|  
`

And, when I make a request with the Accept-Encoding header set to gzip,
I do indeed get compressed output.

However, the file size logged in the access log is the same as if I
requested it and it wasn't compressed.

Is there an way to enable any kind of logging or cause the access log to
record the size of the encoded content sent to the browser?  If I enable
compression I'd like to able to audit how often it gets used and what kind
of savings I'm getting from it.

Thanks,
Ben


[1] Server details:
 Tomcat:  5.0.28
 Java:SUN, 1.4.2_06-b03
 OS:  Linux, Redhat 9
 

-- 
Ben Simon Amazing Media, Inc.


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



Re: Servlet mapping problem.

2004-11-22 Thread Stefan
The HTML form is actually in a static page, I'm not generating the form via
a servlet.

I've actually began this with a relative URL, I've just been trying
different things to see if I could figure out how to get this to work. I
agree with your comments regarding the portability, I've just been trying
anything now to get this to work...

With that being said and having shown you my web.xml et cetera, can you see
what I am doing wrong?

Thanks,

Stefan

www.killersites.com

- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 10:12 AM
Subject: RE: Servlet mapping problem.



Hi,

>
>
>name: 
>
>
>
>

I meant the server-side code, not the HTML output.

>Q. Accordingly, how do you generate this  element?
>A. I'm not sure what you mean, it's just a hard-coded HTML form.

It shouldn't be.  Try a relative URL instead.

>Q. I assume you don't have the webapp's name hard-coded
>A. Hard-coded where? In the forms' action attribute? If so, is that a
>problem?

It's poor design that limits your portability and presents a possible
problem if your server configuration doesn't match your hard-coded
value.  For example, if could be that Tomcat is deploying your webapp at
a different path, then you would get a 404...

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]


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



Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi Ben,

I've used a relative link - same problem ...

Could this be a problem having to do with setting up the context? What I did
to do this,  was drop an xml file with my web apps name in the folder:

conf\Catalina\localhost

In the xml file (contexName.xml) I have this entry:



Of course, my web app is sitting in the 'webapps' directory in Tomcat.

Any ideas?

Stefan

www.killersites.com


- Original Message - 
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 10:19 AM
Subject: Re: Servlet mapping problem.


> Why don't you just use a relative link?:
> 
>
> On Mon, 2004-11-22 at 10:13, Stefan wrote:
> > Hi,
> >
> > Just out of curiousity I changed the forms' action attribute to include
the
> > full path:
> >
> > http://127.0.0.1/the_context/loginResponse.do";
method="post">
> >
> > >From a page with this URL: http://127.0.0.1/the_context/logIn.jsp
> >
> > And when I submit the form I am taken to Tomcats' web server admin tool
> > login page!
> >
> > The URL: http://127.0.0.1/admin/index.jsp
> >
> > And for the sake of completeness my mapping for the servlet:
> >
> > 
> >   loginResponse
> >   /loginResponse.do
> >  
> >
> >
> > Does this shed any light on what is going on?
> >
> >
> > Stefan
> >
> > www.killersites.com
> >
> >
> > - Original Message - 
> > From: "Stefan" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Sunday, November 21, 2004 10:31 PM
> > Subject: Re: Servlet mapping problem.
> >
> >
> > > Hi,
> > >
> > > I am actually using a form to post to the target servlet:
> > >
> > > 
> > >
> > > name: 
> > >
> > > 
> > >
> > > 
> > >
> > > The form itself is sitting in a page with this URL:
> > >
> > > http://127.0.0.1/myWebsite/logIn.jsp
> > >
> > > And the strange thing is that when I submit the form I am taken to
this
> > URL:
> > >
> > > http://127.0.0.1/login.jsp
> > >
> > > And I get this error:
> > >
> > > HTTP Status 404 - /login.jsp
> > >
> > >
> >
> --
> > --
> > > 
> > >
> > > type Status report
> > >
> > > message /login.jsp
> > >
> > > description The requested resource (/login.jsp) is not available.
> > >
> > >
> >
> --
> > --
> > > 
> > >
> > > Apache Tomcat/5.0.28
> > > Any ideas? Is this a bug in Tomcat ? This works fine (naturally) in
Resin.
> > >
> > >
> > > Stefan
> > >
> > > www.killersites.com
> > >
> > > - Original Message - 
> > > From: "sven morales" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Sunday, November 21, 2004 9:58 PM
> > > Subject: Re: Servlet mapping problem.
> > >
> > >
> > > >Can you show us what you type in to your browser?
> > > >
> > > > --- Stefan <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I first posted this question with the wrong subject
> > > > > heading ... sorry about
> > > > > the duplicates.
> > > > >
> > > > > My question:
> > > > >
> > > > > Using Tomcat 5.0.28 standalone on windows XP with
> > > > > JVM 1.4, I get this error
> > > > > even though I have mapped my servlet in the web.xml
> > > > > file of the web app:
> > > > >
> > > > >
> > > > > HTTP Status 404 - /loginResponse.do
> > > > >
> > > > >
> > >
> >
> --
> > > --
> > > > > 
> > > > >
> > > > > type Status report
> > > > >
> > > > > message /loginResponse.do
> > > > >
> > > > > description The requested resource
> > > > > (/loginResponse.do) is not available.
> > > > >
> > > > >
> > > > >
> > >
> >
> --
> > > --
> > > > > 
> > > > >
> > > > > Apache Tomcat/5.0.28
> > > > >
> > > > >
> > > > > I've placed my webapp folder in Tomcats' webapps
> > > > > directory and all the jsp
> > > > > pages run fine as do my POJO's for business logic,
> > > > > any ideas why the servlet
> > > > > code could be causing problems?
> > > > >
> > > > > The servlet mappings:
> > > > >
> > > > >
> > > > >   code:
> > > > >
> > >
> >
> --
> > > --
> > > > > --
> > > > >
> > > > >   
> > > > > loginResponse
> > > > >
> > > > com._ABC.authenticateAdmin
> > > > > 
> > > > > adminPassword
> > > > > xxx
> > > > >   
> > > > > loginResponse
> > > > > /loginResponse.do
> > > > > 
> > > > >
> > >
> >
> --
> > > --
> > > > > --
> > > > >
> > > > >
> > > > >
> > > > > It's my first time using Tomcat, been a Resin user
> > > > > for years ... any ideas?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Stef
> > > > >
> > > > >
> > > > >
> > > > > - Original Message - 
> > > > > From: "Mark Thomas" <[EMAIL PROTECTED]>
> > > > > To: "'Tomcat Users List'"
> > > > > <[EMAIL PROTECTED]>
> >

webapps directory disappears

2004-11-22 Thread Scott Pippin
Sometimes when I undeploy an application on Tomcat 5.0.28 the entire
webapps directory disappears.  Has anyone else had problems with this?
 
Tomcat 5.0.28
AIX 5.2.10
Apache 2.x
 
Thanks,
 
Scott Pippin
[EMAIL PROTECTED] 


Tomcat startup error.

2004-11-22 Thread g k
Hi
I am new to Tomcat. I have version 5.0.25 installed on my pc. When i startup 
tomcat using the startup.bat i get the following error (apologies for the 
long details).

22-Nov-2004 16:13:53 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
22-Nov-2004 16:13:54 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1762 ms
22-Nov-2004 16:13:54 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
22-Nov-2004 16:13:54 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\jakarta-tomcat-5.0.25\co
nf\Catalina\localhost\admin.xml
22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.util.LocalStrings', 
returnNull=tru
e
22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNul
l=true
22-Nov-2004 16:13:56 org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
retur
nNull=true
22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\jakarta-tomcat-5.0.25\co
nf\Catalina\localhost\balancer.xml
22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\jakarta-tomcat-5.0.25\co
nf\Catalina\localhost\manager.xml
22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL 
file:C:\
jakarta-tomcat-5.0.25\webapps\jsp-examples
22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /legacypas from URL 
file:C:\jak
arta-tomcat-5.0.25\webapps\legacypas
16:14:02,806 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:88] - 
DEBUG
- MessageHandler Using the following Properties :
16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:89] - 
DEBUG
- Queue Name : et_LegacyAsyncWebRequest
16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:90] - 
DEBUG
- Port Number : 24056
16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:91] - 
DEBUG
- Host Name : localhost
16:14:08,284 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:118] - 
ERROR
- JMS Exception Encountered: javax.jms.JMSException: Could not connect to 
host:
localhost, port: 24056
Log4j : /tmp/log4j/log4j.properties
22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL 
file:C:\jakarta-tomca
t-5.0.25\webapps\ROOT
22-Nov-2004 16:14:09 org.apache.commons.modeler.Registry registerComponent
SEVERE: Null component 
Catalina:type=JspMonitor,WebModule=//localhost/,J2EEAppli
cation=none,J2EEServer=none
22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer install
INFO: Error installing
org.apache.commons.logging.LogConfigurationException: 
java.lang.ClassNotFoundExc
eption: org.apache.commons.logging.impl.Log4jFactory
   at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609)
   at java.security.AccessController.doPrivileged(Native Method)
   at 
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)

   at 
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:298)

   at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
   at 
org.apache.catalina.session.ManagerBase.(ManagerBase.java:63)
   at 
org.apache.catalina.session.StandardManager.(StandardManager.ja
va:64)
   at 
org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig
.java:315)
   at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
5)
   at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:216)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
268)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

   at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
   at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
   at 
o

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
In your context tag, your specifying: path=""
but in your url you're using:
http://127.0.0.1/the_context/loginResponse.do";
 ^^^ 


Either put: path="/the_context" in your context tag or
don't specify it in your url.
loginResponse.do





On Mon, 2004-11-22 at 10:31, Stefan wrote:
> Hi Ben,
> 
> I've used a relative link - same problem ...
> 
> Could this be a problem having to do with setting up the context? What I did
> to do this,  was drop an xml file with my web apps name in the folder:
> 
> conf\Catalina\localhost
> 
> In the xml file (contexName.xml) I have this entry:
> 
>  reloadable="true">
> 
> Of course, my web app is sitting in the 'webapps' directory in Tomcat.
> 
> Any ideas?
> 
> Stefan
> 
> www.killersites.com
> 
> 
> - Original Message - 
> From: "Ben Souther" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 10:19 AM
> Subject: Re: Servlet mapping problem.
> 
> 
> > Why don't you just use a relative link?:
> > 
> >
> > On Mon, 2004-11-22 at 10:13, Stefan wrote:
> > > Hi,
> > >
> > > Just out of curiousity I changed the forms' action attribute to include
> the
> > > full path:
> > >
> > > http://127.0.0.1/the_context/loginResponse.do";
> method="post">
> > >
> > > >From a page with this URL: http://127.0.0.1/the_context/logIn.jsp
> > >
> > > And when I submit the form I am taken to Tomcats' web server admin tool
> > > login page!
> > >
> > > The URL: http://127.0.0.1/admin/index.jsp
> > >
> > > And for the sake of completeness my mapping for the servlet:
> > >
> > > 
> > >   loginResponse
> > >   /loginResponse.do
> > >  
> > >
> > >
> > > Does this shed any light on what is going on?
> > >
> > >
> > > Stefan
> > >
> > > www.killersites.com
> > >
> > >
> > > - Original Message - 
> > > From: "Stefan" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Sunday, November 21, 2004 10:31 PM
> > > Subject: Re: Servlet mapping problem.
> > >
> > >
> > > > Hi,
> > > >
> > > > I am actually using a form to post to the target servlet:
> > > >
> > > > 
> > > >
> > > > name: 
> > > >
> > > > 
> > > >
> > > > 
> > > >
> > > > The form itself is sitting in a page with this URL:
> > > >
> > > > http://127.0.0.1/myWebsite/logIn.jsp
> > > >
> > > > And the strange thing is that when I submit the form I am taken to
> this
> > > URL:
> > > >
> > > > http://127.0.0.1/login.jsp
> > > >
> > > > And I get this error:
> > > >
> > > > HTTP Status 404 - /login.jsp
> > > >
> > > >
> > >
> > --
> > > --
> > > > 
> > > >
> > > > type Status report
> > > >
> > > > message /login.jsp
> > > >
> > > > description The requested resource (/login.jsp) is not available.
> > > >
> > > >
> > >
> > --
> > > --
> > > > 
> > > >
> > > > Apache Tomcat/5.0.28
> > > > Any ideas? Is this a bug in Tomcat ? This works fine (naturally) in
> Resin.
> > > >
> > > >
> > > > Stefan
> > > >
> > > > www.killersites.com
> > > >
> > > > - Original Message - 
> > > > From: "sven morales" <[EMAIL PROTECTED]>
> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > Sent: Sunday, November 21, 2004 9:58 PM
> > > > Subject: Re: Servlet mapping problem.
> > > >
> > > >
> > > > >Can you show us what you type in to your browser?
> > > > >
> > > > > --- Stefan <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I first posted this question with the wrong subject
> > > > > > heading ... sorry about
> > > > > > the duplicates.
> > > > > >
> > > > > > My question:
> > > > > >
> > > > > > Using Tomcat 5.0.28 standalone on windows XP with
> > > > > > JVM 1.4, I get this error
> > > > > > even though I have mapped my servlet in the web.xml
> > > > > > file of the web app:
> > > > > >
> > > > > >
> > > > > > HTTP Status 404 - /loginResponse.do
> > > > > >
> > > > > >
> > > >
> > >
> > --
> > > > --
> > > > > > 
> > > > > >
> > > > > > type Status report
> > > > > >
> > > > > > message /loginResponse.do
> > > > > >
> > > > > > description The requested resource
> > > > > > (/loginResponse.do) is not available.
> > > > > >
> > > > > >
> > > > > >
> > > >
> > >
> > --
> > > > --
> > > > > > 
> > > > > >
> > > > > > Apache Tomcat/5.0.28
> > > > > >
> > > > > >
> > > > > > I've placed my webapp folder in Tomcats' webapps
> > > > > > directory and all the jsp
> > > > > > pages run fine as do my POJO's for business logic,
> > > > > > any ideas why the servlet
> > > > > > code could be causing problems?
> > > > > >
> > > > > > The servlet mappings:
> > > > > >
> > > > > >
> > > > > >   code:
> > > > > >
> > > >
> > >
> > --
> > > > --

Re: SSL and form-based login

2004-11-22 Thread footh
Thanks for the help.  I see what you are saying about
the redirection to the login page not being a true
redirect.  I'll give your method a shot and see how it
turns out.  I can't believe this issue hasn't been
resolved before but I can't seem to find it via a
search on the archives.

On another note, once I'm in a page that is set to use
SSL all relative links within that page continue to
use SSL even though I would rather they be non-SSL. 
Is there an easy way to prevent that other than
hardcoding absolute URLs in all the non-SSL links?  

I guess I could set transport-guarantee tags to NONE
for every single non-SSL page.  That just seems like a
bit of an administrative hassle as everytime I add a
new page (or rather, folder) I'd have to add the
appropriate transport tag.


--- [EMAIL PROTECTED] wrote:

> On Sun, Nov 21, 2004 at 10:53:52AM -0800, footh
> wrote:
> > The URL in the browser is the URL of the protected
> > page I'm trying to access.  So, for example if
> > /test/test.jsp is protected by forms-login and I
> click
> > a link to that page, /test/test.jsp will be the
> URL in
> > the browser, but the login page will appear on the
> > screen.
>   Well, that sounds like you're not getting an actual
> redirect
> to the login page.  Unless you do that, the brower
> never sends
> another request, so you stay in http mode. 
> According to the 
> servlet spec it's not supposed to do a redirect.
>   Since it's not a redirect, the urls specified in
> login-config don't
>  get matched against a security constraint.
> If they did, it'd be hard not to create loops. 
> e.g.:
> access to somepage.jsp triggers security-constraint
> on *.jsp requiring
>  realm foo.
> login-config is triggered to allow tomcat to figure
> out which realm the
>  user is in
> url for that is login.jsp, security-constraint is
> triggered, etc...
>   That seems to make the automatic form login not all
> that useful
> for ssl stuff, at least not at first glance.  A
> solution might be to
> point your login-config url at a page that does an
> immediate redirect to the
> actual login page.
> 
> i.e.:
> define a security constraint that forces ssl and
> applies only to login.jsp
>  no realm!  since there's an explicit redirect we
> don't want to create a loop.
> define another security constraint that specifies a
> realm and applies
>  to everything else.
> setup login-config to point to redirect.jsp
> redirect.jsp does an immediate c:redirect to
> login.jsp
> login.jsp works like normal. (j_security_check form
> and all)
> 
> Well, that's how I'm hoping it would work.  That
> depends on whether
> the redirect that redirect.jsp does, and the extra
> get the browser
> does, will cause tomcat to clear out it's original
> stored url.
> It seemed to work that way with a quick test I just
> did, but I'm
> not entirely sure I did it right.
> 
> eric
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



RE: Tomcat startup error.

2004-11-22 Thread Shapira, Yoav

... and to add to my previous message, also check out the Tomcat FAQ's
section on logging with log4j and commons-logging.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: g k [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 11:16 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat startup error.
>
>Hi
>
>I am new to Tomcat. I have version 5.0.25 installed on my pc. When i
>startup
>tomcat using the startup.bat i get the following error (apologies for
the
>long details).
>
>22-Nov-2004 16:13:53 org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on http-8081
>22-Nov-2004 16:13:54 org.apache.catalina.startup.Catalina load
>INFO: Initialization processed in 1762 ms
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardService start
>INFO: Starting service Catalina
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardEngine start
>INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost start
>INFO: XML validation disabled
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost getDeployer
>INFO: Create Host deployer for direct deployment ( non-jmx )
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Processing Context configuration file URL
>file:C:\jakarta-tomcat-5.0.25\co
>nf\Catalina\localhost\admin.xml
>22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources

>INFO: Initializing, config='org.apache.struts.util.LocalStrings',
>returnNull=tru
>e
>22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources

>INFO: Initializing, config='org.apache.struts.action.ActionResources',
>returnNul
>l=true
>22-Nov-2004 16:13:56 org.apache.struts.util.PropertyMessageResources

>INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources',
>retur
>nNull=true
>22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Processing Context configuration file URL
>file:C:\jakarta-tomcat-5.0.25\co
>nf\Catalina\localhost\balancer.xml
>22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Processing Context configuration file URL
>file:C:\jakarta-tomcat-5.0.25\co
>nf\Catalina\localhost\manager.xml
>22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Installing web application at context path /jsp-examples from URL
>file:C:\
>jakarta-tomcat-5.0.25\webapps\jsp-examples
>22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Installing web application at context path /legacypas from URL
>file:C:\jak
>arta-tomcat-5.0.25\webapps\legacypas
>16:14:02,806 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:88]
-
>DEBUG
>- MessageHandler Using the following Properties :
>16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:89]
-
>DEBUG
>- Queue Name : et_LegacyAsyncWebRequest
>16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:90]
-
>DEBUG
>- Port Number : 24056
>16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:91]
-
>DEBUG
>- Host Name : localhost
>16:14:08,284 [MessageAsyncHandler.java] [MessageAsyncHandler]
[init:118] -
>ERROR
>- JMS Exception Encountered: javax.jms.JMSException: Could not connect
to
>host:
>localhost, port: 24056
>Log4j : /tmp/log4j/log4j.properties
>22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Installing web application at context path  from URL
>file:C:\jakarta-tomca
>t-5.0.25\webapps\ROOT
>22-Nov-2004 16:14:09 org.apache.commons.modeler.Registry
registerComponent
>SEVERE: Null component
>Catalina:type=JspMonitor,WebModule=//localhost/,J2EEAppli
>cation=none,J2EEServer=none
>22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Error installing
>org.apache.commons.logging.LogConfigurationException:
>java.lang.ClassNotFoundExc
>eption: org.apache.commons.logging.impl.Log4jFactory
>at
org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609)
>at java.security.AccessController.doPrivileged(Native Method)
>at
>org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)
>
>at
>org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:298)
>
>at
>org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
>at
>org.apache.catalina.session.ManagerBase.(ManagerBase.java:63)
>at
>org.apache.catalina.session.StandardManager.(StandardManager.ja
>va:64)
>at
>org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig
>.java:315)
>at
>org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
>5)
>at
>org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
>g.java:216)
>at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>eSupport.java:119)
>at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:4
>268)
>at
>org.apa

RE: Tomcat startup error.

2004-11-22 Thread Shapira, Yoav

Hi,
This is not an out-of-the-box Tomcat.  Modify your log4j properties so
that they don't look for a non-existent (or not running) JMS server ;)

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: g k [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 11:16 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat startup error.
>
>Hi
>
>I am new to Tomcat. I have version 5.0.25 installed on my pc. When i
>startup
>tomcat using the startup.bat i get the following error (apologies for
the
>long details).
>
>22-Nov-2004 16:13:53 org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on http-8081
>22-Nov-2004 16:13:54 org.apache.catalina.startup.Catalina load
>INFO: Initialization processed in 1762 ms
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardService start
>INFO: Starting service Catalina
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardEngine start
>INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost start
>INFO: XML validation disabled
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost getDeployer
>INFO: Create Host deployer for direct deployment ( non-jmx )
>22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Processing Context configuration file URL
>file:C:\jakarta-tomcat-5.0.25\co
>nf\Catalina\localhost\admin.xml
>22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources

>INFO: Initializing, config='org.apache.struts.util.LocalStrings',
>returnNull=tru
>e
>22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources

>INFO: Initializing, config='org.apache.struts.action.ActionResources',
>returnNul
>l=true
>22-Nov-2004 16:13:56 org.apache.struts.util.PropertyMessageResources

>INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources',
>retur
>nNull=true
>22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Processing Context configuration file URL
>file:C:\jakarta-tomcat-5.0.25\co
>nf\Catalina\localhost\balancer.xml
>22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Processing Context configuration file URL
>file:C:\jakarta-tomcat-5.0.25\co
>nf\Catalina\localhost\manager.xml
>22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Installing web application at context path /jsp-examples from URL
>file:C:\
>jakarta-tomcat-5.0.25\webapps\jsp-examples
>22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Installing web application at context path /legacypas from URL
>file:C:\jak
>arta-tomcat-5.0.25\webapps\legacypas
>16:14:02,806 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:88]
-
>DEBUG
>- MessageHandler Using the following Properties :
>16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:89]
-
>DEBUG
>- Queue Name : et_LegacyAsyncWebRequest
>16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:90]
-
>DEBUG
>- Port Number : 24056
>16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:91]
-
>DEBUG
>- Host Name : localhost
>16:14:08,284 [MessageAsyncHandler.java] [MessageAsyncHandler]
[init:118] -
>ERROR
>- JMS Exception Encountered: javax.jms.JMSException: Could not connect
to
>host:
>localhost, port: 24056
>Log4j : /tmp/log4j/log4j.properties
>22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Installing web application at context path  from URL
>file:C:\jakarta-tomca
>t-5.0.25\webapps\ROOT
>22-Nov-2004 16:14:09 org.apache.commons.modeler.Registry
registerComponent
>SEVERE: Null component
>Catalina:type=JspMonitor,WebModule=//localhost/,J2EEAppli
>cation=none,J2EEServer=none
>22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer
install
>INFO: Error installing
>org.apache.commons.logging.LogConfigurationException:
>java.lang.ClassNotFoundExc
>eption: org.apache.commons.logging.impl.Log4jFactory
>at
org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609)
>at java.security.AccessController.doPrivileged(Native Method)
>at
>org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561)
>
>at
>org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:298)
>
>at
>org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
>at
>org.apache.catalina.session.ManagerBase.(ManagerBase.java:63)
>at
>org.apache.catalina.session.StandardManager.(StandardManager.ja
>va:64)
>at
>org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig
>.java:315)
>at
>org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
>5)
>at
>org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
>g.java:216)
>at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>eSupport.java:119)
>at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:4
>2

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Hi,

I actually put the context reference in the context tag ... just something I
omitted in the email. But alas, it still does not work ...

:(

I'm actually going to see if I can get the client to use Resin (for some
reason, everything works fine is Resin ... out of the box), frankly at this
point I'm not too impressed the Tomcat.

Thanks Ben.

Stefan




- Original Message - 
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 10:40 AM
Subject: Re: Servlet mapping problem.


> In your context tag, your specifying: path=""
> but in your url you're using:
> http://127.0.0.1/the_context/loginResponse.do";
>  ^^^
>
>
> Either put: path="/the_context" in your context tag or
> don't specify it in your url.
> loginResponse.do
>
>
>
>
>
> On Mon, 2004-11-22 at 10:31, Stefan wrote:
> > Hi Ben,
> >
> > I've used a relative link - same problem ...
> >
> > Could this be a problem having to do with setting up the context? What I
did
> > to do this,  was drop an xml file with my web apps name in the folder:
> >
> > conf\Catalina\localhost
> >
> > In the xml file (contexName.xml) I have this entry:
> >
> >  > reloadable="true">
> >
> > Of course, my web app is sitting in the 'webapps' directory in Tomcat.
> >
> > Any ideas?
> >
> > Stefan
> >
> > www.killersites.com
> >
> >
> > - Original Message - 
> > From: "Ben Souther" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, November 22, 2004 10:19 AM
> > Subject: Re: Servlet mapping problem.
> >
> >
> > > Why don't you just use a relative link?:
> > > 
> > >
> > > On Mon, 2004-11-22 at 10:13, Stefan wrote:
> > > > Hi,
> > > >
> > > > Just out of curiousity I changed the forms' action attribute to
include
> > the
> > > > full path:
> > > >
> > > > http://127.0.0.1/the_context/loginResponse.do";
> > method="post">
> > > >
> > > > >From a page with this URL: http://127.0.0.1/the_context/logIn.jsp
> > > >
> > > > And when I submit the form I am taken to Tomcats' web server admin
tool
> > > > login page!
> > > >
> > > > The URL: http://127.0.0.1/admin/index.jsp
> > > >
> > > > And for the sake of completeness my mapping for the servlet:
> > > >
> > > > 
> > > >   loginResponse
> > > >   /loginResponse.do
> > > >  
> > > >
> > > >
> > > > Does this shed any light on what is going on?
> > > >
> > > >
> > > > Stefan
> > > >
> > > > www.killersites.com
> > > >
> > > >
> > > > - Original Message - 
> > > > From: "Stefan" <[EMAIL PROTECTED]>
> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > Sent: Sunday, November 21, 2004 10:31 PM
> > > > Subject: Re: Servlet mapping problem.
> > > >
> > > >
> > > > > Hi,
> > > > >
> > > > > I am actually using a form to post to the target servlet:
> > > > >
> > > > > 
> > > > >
> > > > > name: 
> > > > >
> > > > > 
> > > > >
> > > > > 
> > > > >
> > > > > The form itself is sitting in a page with this URL:
> > > > >
> > > > > http://127.0.0.1/myWebsite/logIn.jsp
> > > > >
> > > > > And the strange thing is that when I submit the form I am taken to
> > this
> > > > URL:
> > > > >
> > > > > http://127.0.0.1/login.jsp
> > > > >
> > > > > And I get this error:
> > > > >
> > > > > HTTP Status 404 - /login.jsp
> > > > >
> > > > >
> > > >
> >
> --
> > > > --
> > > > > 
> > > > >
> > > > > type Status report
> > > > >
> > > > > message /login.jsp
> > > > >
> > > > > description The requested resource (/login.jsp) is not available.
> > > > >
> > > > >
> > > >
> >
> --
> > > > --
> > > > > 
> > > > >
> > > > > Apache Tomcat/5.0.28
> > > > > Any ideas? Is this a bug in Tomcat ? This works fine (naturally)
in
> > Resin.
> > > > >
> > > > >
> > > > > Stefan
> > > > >
> > > > > www.killersites.com
> > > > >
> > > > > - Original Message - 
> > > > > From: "sven morales" <[EMAIL PROTECTED]>
> > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > > Sent: Sunday, November 21, 2004 9:58 PM
> > > > > Subject: Re: Servlet mapping problem.
> > > > >
> > > > >
> > > > > >Can you show us what you type in to your browser?
> > > > > >
> > > > > > --- Stefan <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I first posted this question with the wrong subject
> > > > > > > heading ... sorry about
> > > > > > > the duplicates.
> > > > > > >
> > > > > > > My question:
> > > > > > >
> > > > > > > Using Tomcat 5.0.28 standalone on windows XP with
> > > > > > > JVM 1.4, I get this error
> > > > > > > even though I have mapped my servlet in the web.xml
> > > > > > > file of the web app:
> > > > > > >
> > > > > > >
> > > > > > > HTTP Status 404 - /loginResponse.do
> > > > > > >
> > > > > > >
> > > > >
> > > >
> >
> --
> > > > > --
> > > > > > > 
> > 

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav

Hi,

>I actually put the context reference in the context tag ... just
something
>I
>omitted in the email. But alas, it still does not work ...

>I'm actually going to see if I can get the client to use Resin (for
some
>reason, everything works fine is Resin ... out of the box), frankly at
this
>point I'm not too impressed the Tomcat.

And we tend to be not too impressed with people who omit details from
their emails and hard-code absolute context paths, but nonetheless good
luck and have fun ;)

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]



Re: logging compression stats

2004-11-22 Thread Tim Funk
There is no way to log that information right now.
-Tim
Ben Simon wrote:
Howdy,
I've enabled compression on my server [1]:
,
| 
|maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
|enableLookups="false" redirectPort="8453" acceptCount="100"
|debug="0" connectionTimeout="2"  
|compression="on" compressionMinSize="2048" 
|compressableMimeType="text/html,text/xml,text/plain,text/javascript,text/css"
|disableUploadTimeout="true"/> 
`

And, when I make a request with the Accept-Encoding header set to gzip,
I do indeed get compressed output.
However, the file size logged in the access log is the same as if I
requested it and it wasn't compressed.
Is there an way to enable any kind of logging or cause the access log to
record the size of the encoded content sent to the browser?  If I enable
compression I'd like to able to audit how often it gets used and what kind
of savings I'm getting from it. 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
If you're interested, I've got some simple apps all WARed up on my site.
http://simple.souther.us.

Try dropping one of those wars in your webapps directory.  If they work
(which they will if you have an out of the box installation of Tomcat), 
you can compare them with your app to see what's different.

Good-luck.




On Mon, 2004-11-22 at 11:29, Stefan wrote:
> Hi,
> 
> I actually put the context reference in the context tag ... just something I
> omitted in the email. But alas, it still does not work ...
> 
> :(
> 
> I'm actually going to see if I can get the client to use Resin (for some
> reason, everything works fine is Resin ... out of the box), frankly at this
> point I'm not too impressed the Tomcat.
> 
> Thanks Ben.
> 
> Stefan
> 
> 
> 
> 
> - Original Message - 
> From: "Ben Souther" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 10:40 AM
> Subject: Re: Servlet mapping problem.
> 
> 
> > In your context tag, your specifying: path=""
> > but in your url you're using:
> > http://127.0.0.1/the_context/loginResponse.do";
> >  ^^^
> >
> >
> > Either put: path="/the_context" in your context tag or
> > don't specify it in your url.
> > loginResponse.do
> >
> >
> >
> >
> >
> > On Mon, 2004-11-22 at 10:31, Stefan wrote:
> > > Hi Ben,
> > >
> > > I've used a relative link - same problem ...
> > >
> > > Could this be a problem having to do with setting up the context? What I
> did
> > > to do this,  was drop an xml file with my web apps name in the folder:
> > >
> > > conf\Catalina\localhost
> > >
> > > In the xml file (contexName.xml) I have this entry:
> > >
> > >  > > reloadable="true">
> > >
> > > Of course, my web app is sitting in the 'webapps' directory in Tomcat.
> > >
> > > Any ideas?
> > >
> > > Stefan
> > >
> > > www.killersites.com
> > >
> > >
> > > - Original Message - 
> > > From: "Ben Souther" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Monday, November 22, 2004 10:19 AM
> > > Subject: Re: Servlet mapping problem.
> > >
> > >
> > > > Why don't you just use a relative link?:
> > > > 
> > > >
> > > > On Mon, 2004-11-22 at 10:13, Stefan wrote:
> > > > > Hi,
> > > > >
> > > > > Just out of curiousity I changed the forms' action attribute to
> include
> > > the
> > > > > full path:
> > > > >
> > > > > http://127.0.0.1/the_context/loginResponse.do";
> > > method="post">
> > > > >
> > > > > >From a page with this URL: http://127.0.0.1/the_context/logIn.jsp
> > > > >
> > > > > And when I submit the form I am taken to Tomcats' web server admin
> tool
> > > > > login page!
> > > > >
> > > > > The URL: http://127.0.0.1/admin/index.jsp
> > > > >
> > > > > And for the sake of completeness my mapping for the servlet:
> > > > >
> > > > > 
> > > > >   loginResponse
> > > > >   /loginResponse.do
> > > > >  
> > > > >
> > > > >
> > > > > Does this shed any light on what is going on?
> > > > >
> > > > >
> > > > > Stefan
> > > > >
> > > > > www.killersites.com
> > > > >
> > > > >
> > > > > - Original Message - 
> > > > > From: "Stefan" <[EMAIL PROTECTED]>
> > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > > Sent: Sunday, November 21, 2004 10:31 PM
> > > > > Subject: Re: Servlet mapping problem.
> > > > >
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am actually using a form to post to the target servlet:
> > > > > >
> > > > > > 
> > > > > >
> > > > > > name: 
> > > > > >
> > > > > > 
> > > > > >
> > > > > > 
> > > > > >
> > > > > > The form itself is sitting in a page with this URL:
> > > > > >
> > > > > > http://127.0.0.1/myWebsite/logIn.jsp
> > > > > >
> > > > > > And the strange thing is that when I submit the form I am taken to
> > > this
> > > > > URL:
> > > > > >
> > > > > > http://127.0.0.1/login.jsp
> > > > > >
> > > > > > And I get this error:
> > > > > >
> > > > > > HTTP Status 404 - /login.jsp
> > > > > >
> > > > > >
> > > > >
> > >
> > --
> > > > > --
> > > > > > 
> > > > > >
> > > > > > type Status report
> > > > > >
> > > > > > message /login.jsp
> > > > > >
> > > > > > description The requested resource (/login.jsp) is not available.
> > > > > >
> > > > > >
> > > > >
> > >
> > --
> > > > > --
> > > > > > 
> > > > > >
> > > > > > Apache Tomcat/5.0.28
> > > > > > Any ideas? Is this a bug in Tomcat ? This works fine (naturally)
> in
> > > Resin.
> > > > > >
> > > > > >
> > > > > > Stefan
> > > > > >
> > > > > > www.killersites.com
> > > > > >
> > > > > > - Original Message - 
> > > > > > From: "sven morales" <[EMAIL PROTECTED]>
> > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > > > Sent: Sunday, November 21, 2004 9:58 PM
> > > > > > Subject: Re: Servlet mapping problem.
> > > > > >
> > > > > >
> > > > > > >Can you show us what you type in to your browser?
> > > > > > >
> >

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Ha ha ha ha ha 

I wasn't meant as an insult, but the truth cannot be ignored ...

You have to ask yourself a question when you take the exact same code and
drop it into Resin and in 1 minute it works fine, whereas with Tomcat, after
an hour or two of poking around, it still doesn't work ...

Thanks for your help.

Stefan



- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 11:34 AM
Subject: RE: Servlet mapping problem.



Hi,

>I actually put the context reference in the context tag ... just
something
>I
>omitted in the email. But alas, it still does not work ...

>I'm actually going to see if I can get the client to use Resin (for
some
>reason, everything works fine is Resin ... out of the box), frankly at
this
>point I'm not too impressed the Tomcat.

And we tend to be not too impressed with people who omit details from
their emails and hard-code absolute context paths, but nonetheless good
luck and have fun ;)

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]


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



Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Thanks Ben - I'll give it a go .. the client may insist still on Tomcat,
anyway it bugs me that I can't get it to work!

Thanks.

Stefan

www.killersites.com
www.how-to-build-websites.com
www.secretsites.com
www.csstutorial.net
www.websitereviews.org
www.websitetemplates.name

- Original Message - 
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 11:41 AM
Subject: Re: Servlet mapping problem.


> If you're interested, I've got some simple apps all WARed up on my site.
> http://simple.souther.us.
>
> Try dropping one of those wars in your webapps directory.  If they work
> (which they will if you have an out of the box installation of Tomcat),
> you can compare them with your app to see what's different.
>
> Good-luck.
>
>
>
>
> On Mon, 2004-11-22 at 11:29, Stefan wrote:
> > Hi,
> >
> > I actually put the context reference in the context tag ... just
something I
> > omitted in the email. But alas, it still does not work ...
> >
> > :(
> >
> > I'm actually going to see if I can get the client to use Resin (for some
> > reason, everything works fine is Resin ... out of the box), frankly at
this
> > point I'm not too impressed the Tomcat.
> >
> > Thanks Ben.
> >
> > Stefan
> >
> >
> >
> >
> > - Original Message - 
> > From: "Ben Souther" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, November 22, 2004 10:40 AM
> > Subject: Re: Servlet mapping problem.
> >
> >
> > > In your context tag, your specifying: path=""
> > > but in your url you're using:
> > > http://127.0.0.1/the_context/loginResponse.do";
> > >  ^^^
> > >
> > >
> > > Either put: path="/the_context" in your context tag or
> > > don't specify it in your url.
> > > loginResponse.do
> > >
> > >
> > >
> > >
> > >
> > > On Mon, 2004-11-22 at 10:31, Stefan wrote:
> > > > Hi Ben,
> > > >
> > > > I've used a relative link - same problem ...
> > > >
> > > > Could this be a problem having to do with setting up the context?
What I
> > did
> > > > to do this,  was drop an xml file with my web apps name in the
folder:
> > > >
> > > > conf\Catalina\localhost
> > > >
> > > > In the xml file (contexName.xml) I have this entry:
> > > >
> > > >  > > > reloadable="true">
> > > >
> > > > Of course, my web app is sitting in the 'webapps' directory in
Tomcat.
> > > >
> > > > Any ideas?
> > > >
> > > > Stefan
> > > >
> > > > www.killersites.com
> > > >
> > > >
> > > > - Original Message - 
> > > > From: "Ben Souther" <[EMAIL PROTECTED]>
> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > Sent: Monday, November 22, 2004 10:19 AM
> > > > Subject: Re: Servlet mapping problem.
> > > >
> > > >
> > > > > Why don't you just use a relative link?:
> > > > > 
> > > > >
> > > > > On Mon, 2004-11-22 at 10:13, Stefan wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Just out of curiousity I changed the forms' action attribute to
> > include
> > > > the
> > > > > > full path:
> > > > > >
> > > > > > http://127.0.0.1/the_context/loginResponse.do";
> > > > method="post">
> > > > > >
> > > > > > >From a page with this URL:
http://127.0.0.1/the_context/logIn.jsp
> > > > > >
> > > > > > And when I submit the form I am taken to Tomcats' web server
admin
> > tool
> > > > > > login page!
> > > > > >
> > > > > > The URL: http://127.0.0.1/admin/index.jsp
> > > > > >
> > > > > > And for the sake of completeness my mapping for the servlet:
> > > > > >
> > > > > > 
> > > > > >   loginResponse
> > > > > >   /loginResponse.do
> > > > > >  
> > > > > >
> > > > > >
> > > > > > Does this shed any light on what is going on?
> > > > > >
> > > > > >
> > > > > > Stefan
> > > > > >
> > > > > > www.killersites.com
> > > > > >
> > > > > >
> > > > > > - Original Message - 
> > > > > > From: "Stefan" <[EMAIL PROTECTED]>
> > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > > > Sent: Sunday, November 21, 2004 10:31 PM
> > > > > > Subject: Re: Servlet mapping problem.
> > > > > >
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am actually using a form to post to the target servlet:
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > name: 
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > The form itself is sitting in a page with this URL:
> > > > > > >
> > > > > > > http://127.0.0.1/myWebsite/logIn.jsp
> > > > > > >
> > > > > > > And the strange thing is that when I submit the form I am
taken to
> > > > this
> > > > > > URL:
> > > > > > >
> > > > > > > http://127.0.0.1/login.jsp
> > > > > > >
> > > > > > > And I get this error:
> > > > > > >
> > > > > > > HTTP Status 404 - /login.jsp
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> >
> --
> > > > > > --
> > > > > > > 
> > > > > > >
> > > > > > > type Status report
> > > > > > >
> > > > > > > message /login.jsp
> > > > > > >
> > > > > > > description The requested 

RE: Looking for classes that were moved out

2004-11-22 Thread sven morales
  Is that statement playing a russian roulette refers
to -- classes installed in the extention dirs does not
use security policies? 



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav

Hi,
The problem is that you've messed up your configuration.  You created
context.xml and you created your static HTML page.  One says path="" and
the other asks for path="/context_name".  It's a beginner's mistake
that's trivial to correct, and it's your mistake, not Tomcat's fault. 

You don't even need a context.xml file: you could have simply created a
directory for your app under webapps, and put your files there, and
voila: i.e. you didn't need to do ANY server configuration to get this
running.  But since you chose to have a context.xml file, it's up to you
to learn how to use it.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Stefan [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 11:54 AM
>To: Tomcat Users List
>Subject: Re: Servlet mapping problem.
>
>Thanks Ben - I'll give it a go .. the client may insist still on
Tomcat,
>anyway it bugs me that I can't get it to work!
>
>Thanks.
>
>Stefan
>
>www.killersites.com
>www.how-to-build-websites.com
>www.secretsites.com
>www.csstutorial.net
>www.websitereviews.org
>www.websitetemplates.name
>
>- Original Message -
>From: "Ben Souther" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Monday, November 22, 2004 11:41 AM
>Subject: Re: Servlet mapping problem.
>
>
>> If you're interested, I've got some simple apps all WARed up on my
site.
>> http://simple.souther.us.
>>
>> Try dropping one of those wars in your webapps directory.  If they
work
>> (which they will if you have an out of the box installation of
Tomcat),
>> you can compare them with your app to see what's different.
>>
>> Good-luck.
>>
>>
>>
>>
>> On Mon, 2004-11-22 at 11:29, Stefan wrote:
>> > Hi,
>> >
>> > I actually put the context reference in the context tag ... just
>something I
>> > omitted in the email. But alas, it still does not work ...
>> >
>> > :(
>> >
>> > I'm actually going to see if I can get the client to use Resin (for
>some
>> > reason, everything works fine is Resin ... out of the box), frankly
at
>this
>> > point I'm not too impressed the Tomcat.
>> >
>> > Thanks Ben.
>> >
>> > Stefan
>> >
>> >
>> >
>> >
>> > - Original Message -
>> > From: "Ben Souther" <[EMAIL PROTECTED]>
>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> > Sent: Monday, November 22, 2004 10:40 AM
>> > Subject: Re: Servlet mapping problem.
>> >
>> >
>> > > In your context tag, your specifying: path=""
>> > > but in your url you're using:
>> > > http://127.0.0.1/the_context/loginResponse.do";
>> > >  ^^^
>> > >
>> > >
>> > > Either put: path="/the_context" in your context tag or
>> > > don't specify it in your url.
>> > > loginResponse.do
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > On Mon, 2004-11-22 at 10:31, Stefan wrote:
>> > > > Hi Ben,
>> > > >
>> > > > I've used a relative link - same problem ...
>> > > >
>> > > > Could this be a problem having to do with setting up the
context?
>What I
>> > did
>> > > > to do this,  was drop an xml file with my web apps name in the
>folder:
>> > > >
>> > > > conf\Catalina\localhost
>> > > >
>> > > > In the xml file (contexName.xml) I have this entry:
>> > > >
>> > > > > > > > reloadable="true">
>> > > >
>> > > > Of course, my web app is sitting in the 'webapps' directory in
>Tomcat.
>> > > >
>> > > > Any ideas?
>> > > >
>> > > > Stefan
>> > > >
>> > > > www.killersites.com
>> > > >
>> > > >
>> > > > - Original Message -
>> > > > From: "Ben Souther" <[EMAIL PROTECTED]>
>> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> > > > Sent: Monday, November 22, 2004 10:19 AM
>> > > > Subject: Re: Servlet mapping problem.
>> > > >
>> > > >
>> > > > > Why don't you just use a relative link?:
>> > > > > 
>> > > > >
>> > > > > On Mon, 2004-11-22 at 10:13, Stefan wrote:
>> > > > > > Hi,
>> > > > > >
>> > > > > > Just out of curiousity I changed the forms' action
attribute to
>> > include
>> > > > the
>> > > > > > full path:
>> > > > > >
>> > > > > > http://127.0.0.1/the_context/loginResponse.do";
>> > > > method="post">
>> > > > > >
>> > > > > > >From a page with this URL:
>http://127.0.0.1/the_context/logIn.jsp
>> > > > > >
>> > > > > > And when I submit the form I am taken to Tomcats' web
server
>admin
>> > tool
>> > > > > > login page!
>> > > > > >
>> > > > > > The URL: http://127.0.0.1/admin/index.jsp
>> > > > > >
>> > > > > > And for the sake of completeness my mapping for the
servlet:
>> > > > > >
>> > > > > > 
>> > > > > >   loginResponse
>> > > > > >   /loginResponse.do
>> > > > > >  
>> > > > > >
>> > > > > >
>> > > > > > Does this shed any light on what is going on?
>> > > > > >
>> > > > > >
>> > > > > > Stefan
>> > > > > >
>> > > > > > www.killersites.com
>> > > > > >
>> > > > > >
>> > > > > > - Original Message -
>> > > > > > From: "Stefan" <[EMAIL PROTECTED]>
>> > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> > > > > > Sent: Sunday, November 21, 2004 10:31 PM
>> > > > > > Subject: Re: Servlet mapping problem.
>> > > > > >
>> > > > > >
>>

Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Ben,

I just dropped in your SimpleServlet war file and got this error:

HTTP Status 404 - /SimpleServlet/test




type Status report

message /SimpleServlet/test

description The requested resource (/SimpleServlet/test) is not available.

Well at least we know it is something with the server config and not the web
apps themselves ... where to go now ...

Would it make a difference with this version of Tomcat if it's installed in
the 'Program Files' directory - that is to say, could it be some physical
path issue?

Thanks,


Stefan



- Original Message - 
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 11:41 AM
Subject: Re: Servlet mapping problem.


> If you're interested, I've got some simple apps all WARed up on my site.
> http://simple.souther.us.
>
> Try dropping one of those wars in your webapps directory.  If they work
> (which they will if you have an out of the box installation of Tomcat),
> you can compare them with your app to see what's different.
>
> Good-luck.
>
>
>
>
> On Mon, 2004-11-22 at 11:29, Stefan wrote:
> > Hi,
> >
> > I actually put the context reference in the context tag ... just
something I
> > omitted in the email. But alas, it still does not work ...
> >
> > :(
> >
> > I'm actually going to see if I can get the client to use Resin (for some
> > reason, everything works fine is Resin ... out of the box), frankly at
this
> > point I'm not too impressed the Tomcat.
> >
> > Thanks Ben.
> >
> > Stefan
> >
> >
> >
> >
> > - Original Message - 
> > From: "Ben Souther" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, November 22, 2004 10:40 AM
> > Subject: Re: Servlet mapping problem.
> >
> >
> > > In your context tag, your specifying: path=""
> > > but in your url you're using:
> > > http://127.0.0.1/the_context/loginResponse.do";
> > >  ^^^
> > >
> > >
> > > Either put: path="/the_context" in your context tag or
> > > don't specify it in your url.
> > > loginResponse.do
> > >
> > >
> > >
> > >
> > >
> > > On Mon, 2004-11-22 at 10:31, Stefan wrote:
> > > > Hi Ben,
> > > >
> > > > I've used a relative link - same problem ...
> > > >
> > > > Could this be a problem having to do with setting up the context?
What I
> > did
> > > > to do this,  was drop an xml file with my web apps name in the
folder:
> > > >
> > > > conf\Catalina\localhost
> > > >
> > > > In the xml file (contexName.xml) I have this entry:
> > > >
> > > >  > > > reloadable="true">
> > > >
> > > > Of course, my web app is sitting in the 'webapps' directory in
Tomcat.
> > > >
> > > > Any ideas?
> > > >
> > > > Stefan
> > > >
> > > > www.killersites.com
> > > >
> > > >
> > > > - Original Message - 
> > > > From: "Ben Souther" <[EMAIL PROTECTED]>
> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > Sent: Monday, November 22, 2004 10:19 AM
> > > > Subject: Re: Servlet mapping problem.
> > > >
> > > >
> > > > > Why don't you just use a relative link?:
> > > > > 
> > > > >
> > > > > On Mon, 2004-11-22 at 10:13, Stefan wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Just out of curiousity I changed the forms' action attribute to
> > include
> > > > the
> > > > > > full path:
> > > > > >
> > > > > > http://127.0.0.1/the_context/loginResponse.do";
> > > > method="post">
> > > > > >
> > > > > > >From a page with this URL:
http://127.0.0.1/the_context/logIn.jsp
> > > > > >
> > > > > > And when I submit the form I am taken to Tomcats' web server
admin
> > tool
> > > > > > login page!
> > > > > >
> > > > > > The URL: http://127.0.0.1/admin/index.jsp
> > > > > >
> > > > > > And for the sake of completeness my mapping for the servlet:
> > > > > >
> > > > > > 
> > > > > >   loginResponse
> > > > > >   /loginResponse.do
> > > > > >  
> > > > > >
> > > > > >
> > > > > > Does this shed any light on what is going on?
> > > > > >
> > > > > >
> > > > > > Stefan
> > > > > >
> > > > > > www.killersites.com
> > > > > >
> > > > > >
> > > > > > - Original Message - 
> > > > > > From: "Stefan" <[EMAIL PROTECTED]>
> > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > > > Sent: Sunday, November 21, 2004 10:31 PM
> > > > > > Subject: Re: Servlet mapping problem.
> > > > > >
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am actually using a form to post to the target servlet:
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > name: 
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > The form itself is sitting in a page with this URL:
> > > > > > >
> > > > > > > http://127.0.0.1/myWebsite/logIn.jsp
> > > > > > >
> > > > > > > And the strange thing is that when I submit the form I am
taken to
> > > > this
> > > > > > URL:
> > > > > > >
> > > > > > > http://127.0.0.1/login.jsp
> > > > > > >
> > > > > > > And I get this error:
> > > > > > >
> > > > > >

RE: Looking for classes that were moved out

2004-11-22 Thread Shapira, Yoav

Hi,

>  Is that statement playing a russian roulette refers
>to -- classes installed in the extention dirs does not
>use security policies?

No, I wasn't talking about security.  I was talking about app separation
and maintainability, both of which suffer significantly when you put
classes in jre/lib/ext.

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]



Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Yoav,

As I stated in a previous post - I actually included the context name in the
context.xml file, I just omitted it in my email.

Beyond that, I initially did not include a context.xml file - but it did not
work, so I figured I'd give it a go.

But if you noticed in my last post, I just dropped in Bens war file and it
is not working either ... seems to be some container issue and not a web app
issue ...

Yes, you're right, I am just starting out (again) with Tomcat. First time
I've looked at it in years ...

Stefan



- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 11:58 AM
Subject: RE: Servlet mapping problem.



Hi,
The problem is that you've messed up your configuration.  You created
context.xml and you created your static HTML page.  One says path="" and
the other asks for path="/context_name".  It's a beginner's mistake
that's trivial to correct, and it's your mistake, not Tomcat's fault.

You don't even need a context.xml file: you could have simply created a
directory for your app under webapps, and put your files there, and
voila: i.e. you didn't need to do ANY server configuration to get this
running.  But since you chose to have a context.xml file, it's up to you
to learn how to use it.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Stefan [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 11:54 AM
>To: Tomcat Users List
>Subject: Re: Servlet mapping problem.
>
>Thanks Ben - I'll give it a go .. the client may insist still on
Tomcat,
>anyway it bugs me that I can't get it to work!
>
>Thanks.
>
>Stefan
>
>www.killersites.com
>www.how-to-build-websites.com
>www.secretsites.com
>www.csstutorial.net
>www.websitereviews.org
>www.websitetemplates.name
>
>- Original Message -
>From: "Ben Souther" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Monday, November 22, 2004 11:41 AM
>Subject: Re: Servlet mapping problem.
>
>
>> If you're interested, I've got some simple apps all WARed up on my
site.
>> http://simple.souther.us.
>>
>> Try dropping one of those wars in your webapps directory.  If they
work
>> (which they will if you have an out of the box installation of
Tomcat),
>> you can compare them with your app to see what's different.
>>
>> Good-luck.
>>
>>
>>
>>
>> On Mon, 2004-11-22 at 11:29, Stefan wrote:
>> > Hi,
>> >
>> > I actually put the context reference in the context tag ... just
>something I
>> > omitted in the email. But alas, it still does not work ...
>> >
>> > :(
>> >
>> > I'm actually going to see if I can get the client to use Resin (for
>some
>> > reason, everything works fine is Resin ... out of the box), frankly
at
>this
>> > point I'm not too impressed the Tomcat.
>> >
>> > Thanks Ben.
>> >
>> > Stefan
>> >
>> >
>> >
>> >
>> > - Original Message -
>> > From: "Ben Souther" <[EMAIL PROTECTED]>
>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> > Sent: Monday, November 22, 2004 10:40 AM
>> > Subject: Re: Servlet mapping problem.
>> >
>> >
>> > > In your context tag, your specifying: path=""
>> > > but in your url you're using:
>> > > http://127.0.0.1/the_context/loginResponse.do";
>> > >  ^^^
>> > >
>> > >
>> > > Either put: path="/the_context" in your context tag or
>> > > don't specify it in your url.
>> > > loginResponse.do
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > On Mon, 2004-11-22 at 10:31, Stefan wrote:
>> > > > Hi Ben,
>> > > >
>> > > > I've used a relative link - same problem ...
>> > > >
>> > > > Could this be a problem having to do with setting up the
context?
>What I
>> > did
>> > > > to do this,  was drop an xml file with my web apps name in the
>folder:
>> > > >
>> > > > conf\Catalina\localhost
>> > > >
>> > > > In the xml file (contexName.xml) I have this entry:
>> > > >
>> > > > > > > > reloadable="true">
>> > > >
>> > > > Of course, my web app is sitting in the 'webapps' directory in
>Tomcat.
>> > > >
>> > > > Any ideas?
>> > > >
>> > > > Stefan
>> > > >
>> > > > www.killersites.com
>> > > >
>> > > >
>> > > > - Original Message -
>> > > > From: "Ben Souther" <[EMAIL PROTECTED]>
>> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> > > > Sent: Monday, November 22, 2004 10:19 AM
>> > > > Subject: Re: Servlet mapping problem.
>> > > >
>> > > >
>> > > > > Why don't you just use a relative link?:
>> > > > > 
>> > > > >
>> > > > > On Mon, 2004-11-22 at 10:13, Stefan wrote:
>> > > > > > Hi,
>> > > > > >
>> > > > > > Just out of curiousity I changed the forms' action
attribute to
>> > include
>> > > > the
>> > > > > > full path:
>> > > > > >
>> > > > > > http://127.0.0.1/the_context/loginResponse.do";
>> > > > method="post">
>> > > > > >
>> > > > > > >From a page with this URL:
>http://127.0.0.1/the_context/logIn.jsp
>> > > > > >
>> > > > > > And when I submit the form I am taken to Tomcats' web
server
>admin
>> > tool
>> > > > > > login page!
>> > > > > >
>> > 

[OT] Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
I've added the [OT] because those examples are not a Tomcat issue.

SimpleServlet (as the name implies) is the most basic example you can
create.  It has worked for everyone else who has tried it.

Try again, with a fresh Tomcat install. Don't configure anything.





On Mon, 2004-11-22 at 12:00, Stefan wrote:
> Ben,
> 
> I just dropped in your SimpleServlet war file and got this error:
> 
> HTTP Status 404 - /SimpleServlet/test
> 
> 
> 
> 
> type Status report
> 
> message /SimpleServlet/test
> 
> description The requested resource (/SimpleServlet/test) is not available.
> 
> Well at least we know it is something with the server config and not the web
> apps themselves ... where to go now ...
> 
> Would it make a difference with this version of Tomcat if it's installed in
> the 'Program Files' directory - that is to say, could it be some physical
> path issue?
> 
> Thanks,
> 
> 
> Stefan
> 
> 
> 
> - Original Message - 
> From: "Ben Souther" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 11:41 AM
> Subject: Re: Servlet mapping problem.
> 
> 
> > If you're interested, I've got some simple apps all WARed up on my site.
> > http://simple.souther.us.
> >
> > Try dropping one of those wars in your webapps directory.  If they work
> > (which they will if you have an out of the box installation of Tomcat),
> > you can compare them with your app to see what's different.
> >
> > Good-luck.
> >
> >
> >
> >
> > On Mon, 2004-11-22 at 11:29, Stefan wrote:
> > > Hi,
> > >
> > > I actually put the context reference in the context tag ... just
> something I
> > > omitted in the email. But alas, it still does not work ...
> > >
> > > :(
> > >
> > > I'm actually going to see if I can get the client to use Resin (for some
> > > reason, everything works fine is Resin ... out of the box), frankly at
> this
> > > point I'm not too impressed the Tomcat.
> > >
> > > Thanks Ben.
> > >
> > > Stefan
> > >
> > >
> > >
> > >
> > > - Original Message - 
> > > From: "Ben Souther" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Monday, November 22, 2004 10:40 AM
> > > Subject: Re: Servlet mapping problem.
> > >
> > >
> > > > In your context tag, your specifying: path=""
> > > > but in your url you're using:
> > > > http://127.0.0.1/the_context/loginResponse.do";
> > > >  ^^^
> > > >
> > > >
> > > > Either put: path="/the_context" in your context tag or
> > > > don't specify it in your url.
> > > > loginResponse.do
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Mon, 2004-11-22 at 10:31, Stefan wrote:
> > > > > Hi Ben,
> > > > >
> > > > > I've used a relative link - same problem ...
> > > > >
> > > > > Could this be a problem having to do with setting up the context?
> What I
> > > did
> > > > > to do this,  was drop an xml file with my web apps name in the
> folder:
> > > > >
> > > > > conf\Catalina\localhost
> > > > >
> > > > > In the xml file (contexName.xml) I have this entry:
> > > > >
> > > > >  > > > > reloadable="true">
> > > > >
> > > > > Of course, my web app is sitting in the 'webapps' directory in
> Tomcat.
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > Stefan
> > > > >
> > > > > www.killersites.com
> > > > >
> > > > >
> > > > > - Original Message - 
> > > > > From: "Ben Souther" <[EMAIL PROTECTED]>
> > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > > Sent: Monday, November 22, 2004 10:19 AM
> > > > > Subject: Re: Servlet mapping problem.
> > > > >
> > > > >
> > > > > > Why don't you just use a relative link?:
> > > > > > 
> > > > > >
> > > > > > On Mon, 2004-11-22 at 10:13, Stefan wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > Just out of curiousity I changed the forms' action attribute to
> > > include
> > > > > the
> > > > > > > full path:
> > > > > > >
> > > > > > > http://127.0.0.1/the_context/loginResponse.do";
> > > > > method="post">
> > > > > > >
> > > > > > > >From a page with this URL:
> http://127.0.0.1/the_context/logIn.jsp
> > > > > > >
> > > > > > > And when I submit the form I am taken to Tomcats' web server
> admin
> > > tool
> > > > > > > login page!
> > > > > > >
> > > > > > > The URL: http://127.0.0.1/admin/index.jsp
> > > > > > >
> > > > > > > And for the sake of completeness my mapping for the servlet:
> > > > > > >
> > > > > > > 
> > > > > > >   loginResponse
> > > > > > >   /loginResponse.do
> > > > > > >  
> > > > > > >
> > > > > > >
> > > > > > > Does this shed any light on what is going on?
> > > > > > >
> > > > > > >
> > > > > > > Stefan
> > > > > > >
> > > > > > > www.killersites.com
> > > > > > >
> > > > > > >
> > > > > > > - Original Message - 
> > > > > > > From: "Stefan" <[EMAIL PROTECTED]>
> > > > > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > > > > > Sent: Sunday, November 21, 2004 10:31 PM
> > > > > > > Subject: Re: Servlet mapping problem

RE: Servlet mapping problem.

2004-11-22 Thread Shapira, Yoav

Hi,
Do you get any errors in your log on startup?  Are you running Tomcat as
a Windows service, or from the command line?

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Stefan [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 12:06 PM
>To: Tomcat Users List
>Subject: Re: Servlet mapping problem.
>
>Yoav,
>
>As I stated in a previous post - I actually included the context name
in
>the
>context.xml file, I just omitted it in my email.
>
>Beyond that, I initially did not include a context.xml file - but it
did
>not
>work, so I figured I'd give it a go.
>
>But if you noticed in my last post, I just dropped in Bens war file and
it
>is not working either ... seems to be some container issue and not a
web
>app
>issue ...
>
>Yes, you're right, I am just starting out (again) with Tomcat. First
time
>I've looked at it in years ...
>
>Stefan
>
>
>
>- Original Message -
>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Monday, November 22, 2004 11:58 AM
>Subject: RE: Servlet mapping problem.
>
>
>
>Hi,
>The problem is that you've messed up your configuration.  You created
>context.xml and you created your static HTML page.  One says path=""
and
>the other asks for path="/context_name".  It's a beginner's mistake
>that's trivial to correct, and it's your mistake, not Tomcat's fault.
>
>You don't even need a context.xml file: you could have simply created a
>directory for your app under webapps, and put your files there, and
>voila: i.e. you didn't need to do ANY server configuration to get this
>running.  But since you chose to have a context.xml file, it's up to
you
>to learn how to use it.
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>>-Original Message-
>>From: Stefan [mailto:[EMAIL PROTECTED]
>>Sent: Monday, November 22, 2004 11:54 AM
>>To: Tomcat Users List
>>Subject: Re: Servlet mapping problem.
>>
>>Thanks Ben - I'll give it a go .. the client may insist still on
>Tomcat,
>>anyway it bugs me that I can't get it to work!
>>
>>Thanks.
>>
>>Stefan
>>
>>www.killersites.com
>>www.how-to-build-websites.com
>>www.secretsites.com
>>www.csstutorial.net
>>www.websitereviews.org
>>www.websitetemplates.name
>>
>>- Original Message -
>>From: "Ben Souther" <[EMAIL PROTECTED]>
>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>Sent: Monday, November 22, 2004 11:41 AM
>>Subject: Re: Servlet mapping problem.
>>
>>
>>> If you're interested, I've got some simple apps all WARed up on my
>site.
>>> http://simple.souther.us.
>>>
>>> Try dropping one of those wars in your webapps directory.  If they
>work
>>> (which they will if you have an out of the box installation of
>Tomcat),
>>> you can compare them with your app to see what's different.
>>>
>>> Good-luck.
>>>
>>>
>>>
>>>
>>> On Mon, 2004-11-22 at 11:29, Stefan wrote:
>>> > Hi,
>>> >
>>> > I actually put the context reference in the context tag ... just
>>something I
>>> > omitted in the email. But alas, it still does not work ...
>>> >
>>> > :(
>>> >
>>> > I'm actually going to see if I can get the client to use Resin
(for
>>some
>>> > reason, everything works fine is Resin ... out of the box),
frankly
>at
>>this
>>> > point I'm not too impressed the Tomcat.
>>> >
>>> > Thanks Ben.
>>> >
>>> > Stefan
>>> >
>>> >
>>> >
>>> >
>>> > - Original Message -
>>> > From: "Ben Souther" <[EMAIL PROTECTED]>
>>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> > Sent: Monday, November 22, 2004 10:40 AM
>>> > Subject: Re: Servlet mapping problem.
>>> >
>>> >
>>> > > In your context tag, your specifying: path=""
>>> > > but in your url you're using:
>>> > > http://127.0.0.1/the_context/loginResponse.do";
>>> > >  ^^^
>>> > >
>>> > >
>>> > > Either put: path="/the_context" in your context tag or
>>> > > don't specify it in your url.
>>> > > loginResponse.do
>>> > >
>>> > >
>>> > >
>>> > >
>>> > >
>>> > > On Mon, 2004-11-22 at 10:31, Stefan wrote:
>>> > > > Hi Ben,
>>> > > >
>>> > > > I've used a relative link - same problem ...
>>> > > >
>>> > > > Could this be a problem having to do with setting up the
>context?
>>What I
>>> > did
>>> > > > to do this,  was drop an xml file with my web apps name in the
>>folder:
>>> > > >
>>> > > > conf\Catalina\localhost
>>> > > >
>>> > > > In the xml file (contexName.xml) I have this entry:
>>> > > >
>>> > > > >> > > > reloadable="true">
>>> > > >
>>> > > > Of course, my web app is sitting in the 'webapps' directory in
>>Tomcat.
>>> > > >
>>> > > > Any ideas?
>>> > > >
>>> > > > Stefan
>>> > > >
>>> > > > www.killersites.com
>>> > > >
>>> > > >
>>> > > > - Original Message -
>>> > > > From: "Ben Souther" <[EMAIL PROTECTED]>
>>> > > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> > > > Sent: Monday, November 22, 2004 10:19 AM
>>> > > > Subject: Re: Servlet mapping problem.
>>> > > >
>>> > > >
>>> > > > > Why don't you just use a relative link?:
>>> > > > > 
>>> > > > >
>>> > > > > On Mon, 2004-11-22 at 10:13,

Re: high traffic Tomcat sites out there?

2004-11-22 Thread Al Gidden
We have three Tomcat systems in front of a large database.
We use JMeter to test our site, and have pushed each system
with 1000 requests per minute and not noticed any problems at all.
Our servers only have one processor and 1GB of RAM.
The only time we start to see any performance issues is due to the size of the 
database pool and the responsiveness of the DB connections under extreme load.

Your code and the Tomcat config can all effect your performance.
In our case, it took a year for us to get our code cleaned up and
have enough benchmarks to know we made solid configuration changes for the
sake of scalability.

Best of luck to you,
Al G

- Original Message -
From: LAM Kwun Wa Joseph <[EMAIL PROTECTED]>
Date: Monday, November 22, 2004 4:55 am
Subject: high traffic Tomcat sites out there?

> For my Tomcat cluster I'm looking for an upper limit on the 
> estimation of
> how much traffic it may face. Say, would thousands of HTTP req/s 
> be too
> 'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm 
> talkingabout dynamic pages such as stock quotes and news)
> 
> Does anyone know of any high traffic JSP/servlet sites(running 
> Tomcat or
> similar servlet container)? I'm mostly interested to know what's the
> typical "magnitude" of their HTTP throughput (e.g. hundreds or 
> thousandsof HTTP/s) and what kinds of apps are they running.
> 
> Joseph Lam
> 
> 
> ---
> --
> 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:Server.xml problem..

2004-11-22 Thread Shilpa Nalgonda
Hi ,
I am usinh ant deploy target to deploy my web application  on  Tomcat
4.1.30.
I have configured datasource to get the connection pooling  for my webapp
in server.xml.

But whenever i do a ant deploy, the server.xml ia being backed up and a new
server.xml is created.
This new server.xml does not have any of my datasouce configuration for my
webapp.  So my application cannot connect to the database thereby.

How can i resolve this, do i have to write xml file for my webapp, if so
what entries go in that new xml file.  Below is
my ant deploy target and server.xml





  

sErver.xml
--




   



  factory
  org.apache.commons.dbcp.BasicDataSourceFactory



  maxActive
  30




 maxIdle
 20



 

 maxWait
 1




  username
  xx


  password
  xx




  driverClassName
  oracle.jdbc.driver.OracleDriver




url
jdbc:oracle:thin:@ipaddress:1521:DB





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



RE: Server.xml problem..

2004-11-22 Thread Shapira, Yoav

Hi,
Are you sure the information for your context isn't written to
conf/[engine]/[host]/rpcoemapi.xml instead of server.xml?

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 12:11 PM
>To: Tomcat Users List
>Subject: RE:Server.xml problem..
>
>Hi ,
>I am usinh ant deploy target to deploy my web application  on  Tomcat
>4.1.30.
>I have configured datasource to get the connection pooling  for my
webapp
>in server.xml.
>
>But whenever i do a ant deploy, the server.xml ia being backed up and a
new
>server.xml is created.
>This new server.xml does not have any of my datasouce configuration for
my
>webapp.  So my application cannot connect to the database thereby.
>
>How can i resolve this, do i have to write xml file for my webapp, if
so
>what entries go in that new xml file.  Below is
>my ant deploy target and server.xml
>
>   description="Deploying application to servlet container">
>
>username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"
> war="file:/${dist.home}/rpcoemapi.war"/>
>
>  
>
>sErver.xml
>--
>
>  debug="5" reloadable="true" crossContext="true"
>useNaming="true">
>
>prefix="localhost_rpcoemapi_log." suffix=".txt"
> timestamp="true"/>
>  auth="Container"
>   type="javax.sql.DataSource"/>
>
>   
>   
> factory
> org.apache.commons.dbcp.BasicDataSourceFactory
>   
>
>   
>  maxActive
>  30
>
>
>   
>
> maxIdle
> 20
>
>
>
>
>   
> maxWait
> 1
>
>
>   
>   
> username
> xx
>   
>   
> password
> xx
>   
>
>   
>   
> driverClassName
> oracle.jdbc.driver.OracleDriver
>   
>
>   
>   
>   url
>   jdbc:oracle:thin:@ipaddress:1521:DB
>   
>
>
>
>
>-
>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]



Tomcat 4.1.30 not restoring JDBC connections

2004-11-22 Thread Alex Korneyev
Hello All,

 has anyone ever experienced the following:

 we are using Tomcat's 4.1.30 connection pool.

 For some reason, when network connection goes down, even for 1 sec,
 connection pool is not smart enough to either get rid of a connection
 and try get another one, or reconnect;

 any ideas?

 Alex K.


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



FAIL - No context exists for path /blog

2004-11-22 Thread Dakota Jack
I thought I would do a quick little test on a roller blog.  So I just
popped the application into webapps and thought I would give it a
little whirl.  No whirl!  I got a 503 error and when I tried to start
it with manager?path=/blog, I got the error message in the Subject
line of this email.  I have no context defined in my server.xml
because I run my existing app as ROOT.

What's up and what do I need to do?

Jack


-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

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



RE: FAIL - No context exists for path /blog

2004-11-22 Thread Shapira, Yoav

Hi,
If the startup fails with a 500-class error, one thing that's pointless
is to try starting it up again ;)  Instead, look at your logs to see the
cause for the error, and fix it.  Until then there's nothing to start,
stop, or restart.

If you're unsure what to do after looking at the log, post it here and
we can try to help.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Dakota Jack [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 12:27 PM
>To: Tomcat Users List
>Subject: FAIL - No context exists for path /blog
>
>I thought I would do a quick little test on a roller blog.  So I just
>popped the application into webapps and thought I would give it a
>little whirl.  No whirl!  I got a 503 error and when I tried to start
>it with manager?path=/blog, I got the error message in the Subject
>line of this email.  I have no context defined in my server.xml
>because I run my existing app as ROOT.
>
>What's up and what do I need to do?
>
>Jack
>
>
>--
>
>
>"You can't wake a person who is pretending to be asleep."
>
>~Native Proverb~
>
>"Each man is good in His sight. It is not necessary for eagles to be
>crows."
>
>~Hunkesni (Sitting Bull), Hunkpapa Sioux~
>
>-
>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: FAIL - No context exists for path /blog

2004-11-22 Thread Dakota Jack
Thanks for the quick turnaround, Yoav.  There is no error in the logs.
 All that is in the logs is:

StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
init(): ruleChain: [org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
StandardContext[/manager]Manager: init: Associated with Deployer 'localhost'
StandardContext[/manager]Manager: init: Global resources are available
StandardContext[/manager]Manager: start: Starting web application at '/blog'
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
init(): ruleChain: [org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
StandardContext[/manager]Manager: init: Associated with Deployer 'localhost'
StandardContext[/manager]Manager: init: Global resources are available
StandardContext[/manager]Manager: start: Starting web application at '/blog'

Odd?

Jack


On Mon, 22 Nov 2004 12:30:58 -0500, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> If the startup fails with a 500-class error, one thing that's pointless
> is to try starting it up again ;)  Instead, look at your logs to see the
> cause for the error, and fix it.  Until then there's nothing to start,
> stop, or restart.
> 
> If you're unsure what to do after looking at the log, post it here and
> we can try to help.
> 
> Yoav Shapira http://www.yoavshapira.com
> 
> 
> 
> 
> >-Original Message-
> >From: Dakota Jack [mailto:[EMAIL PROTECTED]
> >Sent: Monday, November 22, 2004 12:27 PM
> >To: Tomcat Users List
> >Subject: FAIL - No context exists for path /blog
> >
> >I thought I would do a quick little test on a roller blog.  So I just
> >popped the application into webapps and thought I would give it a
> >little whirl.  No whirl!  I got a 503 error and when I tried to start
> >it with manager?path=/blog, I got the error message in the Subject
> >line of this email.  I have no context defined in my server.xml
> >because I run my existing app as ROOT.
> >
> >What's up and what do I need to do?
> >
> >Jack
> >
> >
> >--
> >
> >
> >"You can't wake a person who is pretending to be asleep."
> >
> >~Native Proverb~
> >
> >"Each man is good in His sight. It is not necessary for eagles to be
> >crows."
> >
> >~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> >
> >-
> >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.
> 
> 


-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

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



Re: high traffic Tomcat sites out there?

2004-11-22 Thread andrew
I would be very careful using tomcat for 'High-Performance' internet 
applications.
You will need to disable keepalives - or use some form of keep-alive 
proxy to stop tomcat
creating too many connections.

How many simultaneous users are you planning on having? What operating 
system are you planning
on using - With linux, make sure you use the new threading library - (NPTL).

Be careful with the ORB you choose, (should you be using an application 
server) as it to
can create way tooo many threads.

Thousands of request/ sec means that you will probably need to have your 
data in RAM -
you may find it difficult to find a database/ filesystem that can 
deliver you the data quickly
enough - would need to know more about the applications.

Do not underestimate the problems with keepalives and number of 
connections/ threads.

Regards
Andrew
Al Gidden wrote:
We have three Tomcat systems in front of a large database.
We use JMeter to test our site, and have pushed each system
with 1000 requests per minute and not noticed any problems at all.
Our servers only have one processor and 1GB of RAM.
The only time we start to see any performance issues is due to the size of the 
database pool and the responsiveness of the DB connections under extreme load.

Your code and the Tomcat config can all effect your performance.
In our case, it took a year for us to get our code cleaned up and
have enough benchmarks to know we made solid configuration changes for the
sake of scalability.
Best of luck to you,
Al G
- Original Message -
From: LAM Kwun Wa Joseph <[EMAIL PROTECTED]>
Date: Monday, November 22, 2004 4:55 am
Subject: high traffic Tomcat sites out there?
 

For my Tomcat cluster I'm looking for an upper limit on the 
estimation of
how much traffic it may face. Say, would thousands of HTTP req/s 
be too
'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm 
talkingabout dynamic pages such as stock quotes and news)

Does anyone know of any high traffic JSP/servlet sites(running 
Tomcat or
similar servlet container)? I'm mostly interested to know what's the
typical "magnitude" of their HTTP throughput (e.g. hundreds or 
thousandsof HTTP/s) and what kinds of apps are they running.

Joseph Lam
---
--
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: Server.xml problem..

2004-11-22 Thread Shilpa Nalgonda
under TOMCAT_HOME/conf i only have" server.xml, tomcat-users.xml , web.xml,
catalina.policy and jk2.properties."
i can't find rpcoemapi.xml anywhere under Tomcat_home.

Before i had all the datasource configuration for my Web apps in server.xml.
And i used tomcat manager GUI to deploy the applications.  But now we have
to use ant script to deploy apps.
With this change my server.xml is loosing all the datasource configuration.

Please suggest how to tackle this.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, November 22, 2004 12:20 PM
To: Tomcat Users List
Subject: RE: Server.xml problem..



Hi,
Are you sure the information for your context isn't written to
conf/[engine]/[host]/rpcoemapi.xml instead of server.xml?

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 12:11 PM
>To: Tomcat Users List
>Subject: RE:Server.xml problem..
>
>Hi ,
>I am usinh ant deploy target to deploy my web application  on  Tomcat
>4.1.30.
>I have configured datasource to get the connection pooling  for my
webapp
>in server.xml.
>
>But whenever i do a ant deploy, the server.xml ia being backed up and a
new
>server.xml is created.
>This new server.xml does not have any of my datasouce configuration for
my
>webapp.  So my application cannot connect to the database thereby.
>
>How can i resolve this, do i have to write xml file for my webapp, if
so
>what entries go in that new xml file.  Below is
>my ant deploy target and server.xml
>
>   description="Deploying application to servlet container">
>
>username="${manager.username}"
>password="${manager.password}"
>path="${app.path}"
> war="file:/${dist.home}/rpcoemapi.war"/>
>
>  
>
>sErver.xml
>--
>
>  debug="5" reloadable="true" crossContext="true"
>useNaming="true">
>
>prefix="localhost_rpcoemapi_log." suffix=".txt"
> timestamp="true"/>
>  auth="Container"
>   type="javax.sql.DataSource"/>
>
>   
>   
> factory
> org.apache.commons.dbcp.BasicDataSourceFactory
>   
>
>   
>  maxActive
>  30
>
>
>   
>
> maxIdle
> 20
>
>
>
>
>   
> maxWait
> 1
>
>
>   
>   
> username
> xx
>   
>   
> password
> xx
>   
>
>   
>   
> driverClassName
> oracle.jdbc.driver.OracleDriver
>   
>
>   
>   
>   url
>   jdbc:oracle:thin:@ipaddress:1521:DB
>   
>
>
>
>
>-
>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]



Re: FAIL - No context exists for path /blog

2004-11-22 Thread Dakota Jack
I am running Tomcat 5.0, by the way on a Presario 2500 PC desktop with
Windows XP.

Jack


On Mon, 22 Nov 2004 12:30:58 -0500, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> If the startup fails with a 500-class error, one thing that's pointless
> is to try starting it up again ;)  Instead, look at your logs to see the
> cause for the error, and fix it.  Until then there's nothing to start,
> stop, or restart.
> 
> If you're unsure what to do after looking at the log, post it here and
> we can try to help.
> 
> Yoav Shapira http://www.yoavshapira.com
> 
> 
> 
> 
> >-Original Message-
> >From: Dakota Jack [mailto:[EMAIL PROTECTED]
> >Sent: Monday, November 22, 2004 12:27 PM
> >To: Tomcat Users List
> >Subject: FAIL - No context exists for path /blog
> >
> >I thought I would do a quick little test on a roller blog.  So I just
> >popped the application into webapps and thought I would give it a
> >little whirl.  No whirl!  I got a 503 error and when I tried to start
> >it with manager?path=/blog, I got the error message in the Subject
> >line of this email.  I have no context defined in my server.xml
> >because I run my existing app as ROOT.
> >
> >What's up and what do I need to do?
> >
> >Jack
> >
> >
> >--
> >
> >
> >"You can't wake a person who is pretending to be asleep."
> >
> >~Native Proverb~
> >
> >"Each man is good in His sight. It is not necessary for eagles to be
> >crows."
> >
> >~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> >
> >-
> >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.
> 
> 


-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

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



JasperException thrown with no getMessage()

2004-11-22 Thread Xeth Waxman
Greetings:

Thanks to everyone for helping me solve my SSL issue last week.  That
application is now functioning properly.

I have a new question - I have an app which throws a JasperExcep[tion
whenever I try to use a  RequestDispatcher to forward the request.  I
am using Tomcat 5.0.12 - here is the code:
RequestDispatcher rd =

getServletContext().getRequestDispatcher("/goldnotes.jsp");
try {
rd.forward(request, response);
} catch (ServletException e) {
System.out.println(e.getMessage());
e.printStackTrace();
} catch (IOException e) {
System.out.println(e.getMessage());
e.printStackTrace();
}

And here is the error thrown & stack trace:
null (This should be the value of e.getMessage()!!)
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:358)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
01)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:204)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:742)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:506)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:443)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:359)
at com.gcc.goldnotes.OrderDetail.processRequest(OrderDetail.java:230)
at com.gcc.goldnotes.OrderDetail.doGet(OrderDetail.java:36)

I have checked, and the rd is not null, nor is the request or response
objects.  I don't know how to trouble shoot this error since I don't
have a message coming from it, so I don't know where to look. 
Everything seems correct to me - I've used rd.forward(request,
response) before and it's worked fine.  I verified that the page
goldnotes.jsp exists - in fact, this servlet is called by
goldnotes.jsp, and the servlet returns back to goldnotes.jsp.  Is that
legal - could that be my problem?  Is there any other way to get the
cause or location of the error?  (I've used getCause, getMessage,
getLocalizedMessage, all to no avail).  Any assistance is greatly
appreciated!
-- 
Xeth Waxman
[EMAIL PROTECTED]

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



RE: JasperException thrown with no getMessage()

2004-11-22 Thread Shapira, Yoav

Hi,

>I have a new question - I have an app which throws a JasperExcep[tion
>whenever I try to use a  RequestDispatcher to forward the request.  I
>am using Tomcat 5.0.12 - here is the code:

Use a stable and more recent Tomcat release like 5.0.28.

An exception may have a null message: that's legal and valid.  That
includes Jasper exceptions.  Usually it's a wrapper anyways, and the
root cause is the one that has the message.  Accordingly, if you're
printing out the details yourself, you need to check for the root cause
and get its message (which might still be null).

>RequestDispatcher rd =
>
>getServletContext().getRequestDispatcher("/goldnotes.jsp");

Always check that the RD is not null before using it.

>   try {
>   rd.forward(request, response);
>   } catch (ServletException e) {
>   System.out.println(e.getMessage());
>   e.printStackTrace();
>   } catch (IOException e) {
>   System.out.println(e.getMessage());
>   e.printStackTrace();
>   }

Instead of doing this, consider using a logging toolkit like log4j.  If
you use log4j or JDK 1.4 logging, you can do
Logger.error("Oops, forwarding exception:", e);
And the toolkit will walk the exception hierarchy for you, printing
messages and causes as needed.

>
>legal - could that be my problem?

You can from a JSP to a Servlet to a JSP.  Not only is that legal,
there's an example of this flow in the Tomcat examples.

>Is there any other way to get the
>cause or location of the error?  (I've used getCause, getMessage,
>getLocalizedMessage, all to no avail).  Any assistance is greatly
>appreciated!

Declare an errorPage for goldnotes.jsp, e.g. myerror.jsp, and in it
print the exception details that will be populated for you in the page
context.  If you're not sure how to do this, google the JSP "errorPage"
and "isErrorPage" tags, and you'll see numerous examples.

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]



Re: FAIL - No context exists for path /blog

2004-11-22 Thread sven morales
   Its just me, I do not fully trust the /manager app
to deploy webapps all the time.  For example its
suppose to be able to deploy a war file even if the
war file is coming from a remote site, ie it should
attempt to download it but I have no luck with it
deploying a remote war file yet. 
I would do a manual deployment, ie create the
context config file at 
tomcat5/conf//localhost/yourappname.xml and
deploy your war or expanded war at tomcat5/webapps/.
See if you get the same results.
   Another tool to use is the jmxproxy.  Query it and
see if it has deployed your webapp.

--- Dakota Jack <[EMAIL PROTECTED]> wrote:

> I am running Tomcat 5.0, by the way on a Presario
> 2500 PC desktop with
> Windows XP.
> 
> Jack
> 
> 
> On Mon, 22 Nov 2004 12:30:58 -0500, Shapira, Yoav
> <[EMAIL PROTECTED]> wrote:
> > 
> > Hi,
> > If the startup fails with a 500-class error, one
> thing that's pointless
> > is to try starting it up again ;)  Instead, look
> at your logs to see the
> > cause for the error, and fix it.  Until then
> there's nothing to start,
> > stop, or restart.
> > 
> > If you're unsure what to do after looking at the
> log, post it here and
> > we can try to help.
> > 
> > Yoav Shapira http://www.yoavshapira.com
> > 
> > 
> > 
> > 
> > >-Original Message-
> > >From: Dakota Jack [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, November 22, 2004 12:27 PM
> > >To: Tomcat Users List
> > >Subject: FAIL - No context exists for path /blog
> > >
> > >I thought I would do a quick little test on a
> roller blog.  So I just
> > >popped the application into webapps and thought I
> would give it a
> > >little whirl.  No whirl!  I got a 503 error and
> when I tried to start
> > >it with manager?path=/blog, I got the error
> message in the Subject
> > >line of this email.  I have no context defined in
> my server.xml
> > >because I run my existing app as ROOT.
> > >
> > >What's up and what do I need to do?
> > >
> > >Jack
> > >
> > >
> > >--
> > >
> > >
> > >"You can't wake a person who is pretending to be
> asleep."
> > >
> > >~Native Proverb~
> > >
> > >"Each man is good in His sight. It is not
> necessary for eagles to be
> > >crows."
> > >
> > >~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> > >
> >
>
>-
> > >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.
> > 
> > 
> 
> 
> -- 
> 
> 
> "You can't wake a person who is pretending to be
> asleep."
> 
> ~Native Proverb~
> 
> "Each man is good in His sight. It is not necessary
> for eagles to be crows."
> 
> ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



RE: Server.xml problem..

2004-11-22 Thread Shapira, Yoav

Hi,
Ahh, my mistake, I thought you were using Tomcat 5.x - sorry about that
confusion.  For 4.x, maybe someone else can help you.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 12:35 PM
>To: Tomcat Users List
>Subject: RE: Server.xml problem..
>
>under TOMCAT_HOME/conf i only have" server.xml, tomcat-users.xml ,
web.xml,
>catalina.policy and jk2.properties."
>i can't find rpcoemapi.xml anywhere under Tomcat_home.
>
>Before i had all the datasource configuration for my Web apps in
>server.xml.
>And i used tomcat manager GUI to deploy the applications.  But now we
have
>to use ant script to deploy apps.
>With this change my server.xml is loosing all the datasource
configuration.
>
>Please suggest how to tackle this.
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 12:20 PM
>To: Tomcat Users List
>Subject: RE: Server.xml problem..
>
>
>
>Hi,
>Are you sure the information for your context isn't written to
>conf/[engine]/[host]/rpcoemapi.xml instead of server.xml?
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>>-Original Message-
>>From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
>>Sent: Monday, November 22, 2004 12:11 PM
>>To: Tomcat Users List
>>Subject: RE:Server.xml problem..
>>
>>Hi ,
>>I am usinh ant deploy target to deploy my web application  on  Tomcat
>>4.1.30.
>>I have configured datasource to get the connection pooling  for my
>webapp
>>in server.xml.
>>
>>But whenever i do a ant deploy, the server.xml ia being backed up and
a
>new
>>server.xml is created.
>>This new server.xml does not have any of my datasouce configuration
for
>my
>>webapp.  So my application cannot connect to the database thereby.
>>
>>How can i resolve this, do i have to write xml file for my webapp, if
>so
>>what entries go in that new xml file.  Below is
>>my ant deploy target and server.xml
>>
>>>   description="Deploying application to servlet container">
>>
>>>username="${manager.username}"
>>password="${manager.password}"
>>path="${app.path}"
>> war="file:/${dist.home}/rpcoemapi.war"/>
>>
>>  
>>
>>sErver.xml
>>--
>>
>>  >  debug="5" reloadable="true" crossContext="true"
>>useNaming="true">
>>
>>  > prefix="localhost_rpcoemapi_log." suffix=".txt"
>> timestamp="true"/>
>>   >   auth="Container"
>>   type="javax.sql.DataSource"/>
>>
>>  
>>  
>>factory
>>
org.apache.commons.dbcp.BasicDataSourceFactory
>>  
>>
>>  
>>  maxActive
>>  30
>>
>>
>>  
>>
>> maxIdle
>> 20
>>
>>
>>
>>   
>>  
>> maxWait
>> 1
>>
>>
>>  
>>  
>>username
>>xx
>>  
>>  
>>password
>>xx
>>  
>>
>>  
>>  
>>driverClassName
>>oracle.jdbc.driver.OracleDriver
>>  
>>
>>  
>>  
>>  url
>>  jdbc:oracle:thin:@ipaddress:1521:DB
>>  
>>
>>
>>
>>
>>-
>>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]



Server redirected too many times (20)

2004-11-22 Thread Allistair Crossley
Hi All,

We upgraded to Java 5 and Tomcat 5.5.4 last week having tested it out on our 
test server without any apparent problems.

However, we are noticing an awful lots of errors of the following nature, and I 
wanted to know if it is likely that something in Tomcat 5.5.4 could be 
involved, as our 5.0.28 installation was used for some months without issue.

java.net.ProtocolException: Server redirected too many times (20) 

Although people across the web cite authentication problems, I would be happier 
if we had always had this problem rather than after a Java/Tomcat upgrade.

The issue occurs when making connections to the server for webpages containing 
images, and a couple of other connection based areas. If you access the URL the 
code is trying to through a browser, there is no problem or security prompt. 
This is an internal corporate intranet application.

Thanks in advance, Allistair.



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




Re: FAIL - No context exists for path /blog

2004-11-22 Thread Dakota Jack
I was using roller .98.  I switched to the RC 1.0 and have no trouble.
 I followed all installation instructions previously.  I'm moving on
with 1.0 and will grab the final when it comes.  Thanks for your time,
Yoav.  Still wondering about the logging.  If you happen to come up
with a theory on what happened, let me know.

Jack


On Mon, 22 Nov 2004 13:00:47 -0500, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> Yeah, I'd classify that as "odd" and beyond.  A 500-class error,
> specifically a 503, is an UnavailableException.  Tomcat always logs
> those and their root cause, precisely because they're a dead-end as
> you've noticed.
> 
> The Roller installation instructions call for Tomcat and work for me:
> http://www.rollerweblogger.org/wiki/Wiki.jsp?page=InstallationGuide.
> Try following them, starting with a clean install from scratch.
> 
> 
> 
> Yoav Shapira http://www.yoavshapira.com
> 
> >-Original Message-
> >From: Dakota Jack [mailto:[EMAIL PROTECTED]
> >Sent: Monday, November 22, 2004 12:37 PM
> >To: Shapira, Yoav
> >Cc: Tomcat Users List
> >Subject: Re: FAIL - No context exists for path /blog
> >
> >Thanks for the quick turnaround, Yoav.  There is no error in the logs.
> > All that is in the logs is:
> >
> >StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
> >init(): ruleChain: [org.apache.webapp.balancer.RuleChain:
> >[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> >News / Redirect URL: http://www.cnn.com],
> >[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> >name: paramName / Target param value: paramValue / Redirect URL:
> >http://www.yahoo.com],
> >[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> >http://jakarta.apache.org]]
> >StandardContext[/manager]Manager: init: Associated with Deployer
> >'localhost'
> >StandardContext[/manager]Manager: init: Global resources are available
> >StandardContext[/manager]Manager: start: Starting web application at
> >'/blog'
> >StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
> >init(): ruleChain: [org.apache.webapp.balancer.RuleChain:
> >[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> >News / Redirect URL: http://www.cnn.com],
> >[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> >name: paramName / Target param value: paramValue / Redirect URL:
> >http://www.yahoo.com],
> >[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> >http://jakarta.apache.org]]
> >StandardContext[/manager]Manager: init: Associated with Deployer
> >'localhost'
> >StandardContext[/manager]Manager: init: Global resources are available
> >StandardContext[/manager]Manager: start: Starting web application at
> >'/blog'
> >
> >Odd?
> >
> >Jack
> >
> >
> >On Mon, 22 Nov 2004 12:30:58 -0500, Shapira, Yoav
> <[EMAIL PROTECTED]>
> >wrote:
> >>
> >> Hi,
> >> If the startup fails with a 500-class error, one thing that's
> pointless
> >> is to try starting it up again ;)  Instead, look at your logs to see
> the
> >> cause for the error, and fix it.  Until then there's nothing to
> start,
> >> stop, or restart.
> >>
> >> If you're unsure what to do after looking at the log, post it here
> and
> >> we can try to help.
> >>
> >> Yoav Shapira http://www.yoavshapira.com
> >>
> >>
> >>
> >>
> >> >-Original Message-
> >> >From: Dakota Jack [mailto:[EMAIL PROTECTED]
> >> >Sent: Monday, November 22, 2004 12:27 PM
> >> >To: Tomcat Users List
> >> >Subject: FAIL - No context exists for path /blog
> >> >
> >> >I thought I would do a quick little test on a roller blog.  So I
> just
> >> >popped the application into webapps and thought I would give it a
> >> >little whirl.  No whirl!  I got a 503 error and when I tried to
> start
> >> >it with manager?path=/blog, I got the error message in the Subject
> >> >line of this email.  I have no context defined in my server.xml
> >> >because I run my existing app as ROOT.
> >> >
> >> >What's up and what do I need to do?
> >> >
> >> >Jack
> >> >
> >> >
> >> >--
> >> >
> >> >
> >> >"You can't wake a person who is pretending to be asleep."
> >> >
> >> >~Native Proverb~
> >> >
> >> >"Each man is good in His sight. It is not necessary for eagles to be
> >> >crows."
> >> >
> >> >~Hunkesni (Sitting Bull), Hunkpapa Sioux~
> >> >
> >>
> >-
> >> >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.
>

[OT] Re: Servlet mapping problem.

2004-11-22 Thread Stefan
Yoav and Ben,

After a fresh install of Tomcat, everything seems to be working fine.

Many thanks for your extra patience with my fumbling about!

Best regards,

Stefan


- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 12:12 PM
Subject: RE: Servlet mapping problem.



Hi,
Do you get any errors in your log on startup?  Are you running Tomcat as
a Windows service, or from the command line?

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Stefan [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 12:06 PM
>To: Tomcat Users List
>Subject: Re: Servlet mapping problem.
>
>Yoav,
>
>As I stated in a previous post - I actually included the context name
in
>the
>context.xml file, I just omitted it in my email.
>
>Beyond that, I initially did not include a context.xml file - but it
did
>not
>work, so I figured I'd give it a go.
>
>But if you noticed in my last post, I just dropped in Bens war file and
it
>is not working either ... seems to be some container issue and not a
web
>app
>issue ...
>
>Yes, you're right, I am just starting out (again) with Tomcat. First
time
>I've looked at it in years ...
>
>Stefan
>
>
>
>- Original Message -
>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Monday, November 22, 2004 11:58 AM
>Subject: RE: Servlet mapping problem.
>
>
>
>Hi,
>The problem is that you've messed up your configuration.  You created
>context.xml and you created your static HTML page.  One says path=""
and
>the other asks for path="/context_name".  It's a beginner's mistake
>that's trivial to correct, and it's your mistake, not Tomcat's fault.
>
>You don't even need a context.xml file: you could have simply created a
>directory for your app under webapps, and put your files there, and
>voila: i.e. you didn't need to do ANY server configuration to get this
>running.  But since you chose to have a context.xml file, it's up to
you
>to learn how to use it.
>
>Yoav Shapira http://www.yoavshapira.com
>
>
>>-Original Message-
>>From: Stefan [mailto:[EMAIL PROTECTED]
>>Sent: Monday, November 22, 2004 11:54 AM
>>To: Tomcat Users List
>>Subject: Re: Servlet mapping problem.
>>
>>Thanks Ben - I'll give it a go .. the client may insist still on
>Tomcat,
>>anyway it bugs me that I can't get it to work!
>>
>>Thanks.
>>
>>Stefan
>>
>>www.killersites.com
>>www.how-to-build-websites.com
>>www.secretsites.com
>>www.csstutorial.net
>>www.websitereviews.org
>>www.websitetemplates.name
>>
>>- Original Message -
>>From: "Ben Souther" <[EMAIL PROTECTED]>
>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>Sent: Monday, November 22, 2004 11:41 AM
>>Subject: Re: Servlet mapping problem.
>>
>>
>>> If you're interested, I've got some simple apps all WARed up on my
>site.
>>> http://simple.souther.us.
>>>
>>> Try dropping one of those wars in your webapps directory.  If they
>work
>>> (which they will if you have an out of the box installation of
>Tomcat),
>>> you can compare them with your app to see what's different.
>>>
>>> Good-luck.
>>>
>>>
>>>
>>>
>>> On Mon, 2004-11-22 at 11:29, Stefan wrote:
>>> > Hi,
>>> >
>>> > I actually put the context reference in the context tag ... just
>>something I
>>> > omitted in the email. But alas, it still does not work ...
>>> >
>>> > :(
>>> >
>>> > I'm actually going to see if I can get the client to use Resin
(for
>>some
>>> > reason, everything works fine is Resin ... out of the box),
frankly
>at
>>this
>>> > point I'm not too impressed the Tomcat.
>>> >
>>> > Thanks Ben.
>>> >
>>> > Stefan
>>> >
>>> >
>>> >
>>> >
>>> > - Original Message -
>>> > From: "Ben Souther" <[EMAIL PROTECTED]>
>>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> > Sent: Monday, November 22, 2004 10:40 AM
>>> > Subject: Re: Servlet mapping problem.
>>> >
>>> >
>>> > > In your context tag, your specifying: path=""
>>> > > but in your url you're using:
>>> > > http://127.0.0.1/the_context/loginResponse.do";
>>> > >  ^^^
>>> > >
>>> > >
>>> > > Either put: path="/the_context" in your context tag or
>>> > > don't specify it in your url.
>>> > > loginResponse.do
>>> > >
>>> > >
>>> > >
>>> > >
>>> > >
>>> > > On Mon, 2004-11-22 at 10:31, Stefan wrote:
>>> > > > Hi Ben,
>>> > > >
>>> > > > I've used a relative link - same problem ...
>>> > > >
>>> > > > Could this be a problem having to do with setting up the
>context?
>>What I
>>> > did
>>> > > > to do this,  was drop an xml file with my web apps name in the
>>folder:
>>> > > >
>>> > > > conf\Catalina\localhost
>>> > > >
>>> > > > In the xml file (contexName.xml) I have this entry:
>>> > > >
>>> > > > >> > > > reloadable="true">
>>> > > >
>>> > > > Of course, my web app is sitting in the 'webapps' directory in
>>Tomcat.
>>> > > >
>>> > > > Any ideas?
>>> > > >
>>> > > > Stefan
>>> > > >
>>> > > > www.killersites.com
>>> > > >
>>> > > >
>>> > > > --

RE: Server redirected too many times (20)

2004-11-22 Thread Shapira, Yoav

Hi,
Are you sure it's not a recursive symbolic link issue?  Check to make
sure that in recent days no one modified symbolic links throughout your
installation such that they redirect to each other.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 1:14 PM
>To: Tomcat Users List; Tomcat Users List; Dakota Jack
>Subject: Server redirected too many times (20)
>
>Hi All,
>
>We upgraded to Java 5 and Tomcat 5.5.4 last week having tested it out
on
>our test server without any apparent problems.
>
>However, we are noticing an awful lots of errors of the following
nature,
>and I wanted to know if it is likely that something in Tomcat 5.5.4
could
>be involved, as our 5.0.28 installation was used for some months
without
>issue.
>
>java.net.ProtocolException: Server redirected too many times (20)
>
>Although people across the web cite authentication problems, I would be
>happier if we had always had this problem rather than after a
Java/Tomcat
>upgrade.
>
>The issue occurs when making connections to the server for webpages
>containing images, and a couple of other connection based areas. If you
>access the URL the code is trying to through a browser, there is no
problem
>or security prompt. This is an internal corporate intranet application.
>
>Thanks in advance, Allistair.
>
>
>
>
>---
>QAS Ltd.
>Developers of QuickAddress Software
>http://www.qas.com";>www.qas.com
>Registered in England: No 2582055
>Registered in Australia: No 082 851 474
>---
>




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: [OT] Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
Glad to see you're up and running.


On Mon, 2004-11-22 at 13:20, Stefan wrote:
> Yoav and Ben,
> 
> After a fresh install of Tomcat, everything seems to be working fine.
> 
> Many thanks for your extra patience with my fumbling about!
> 
> Best regards,
> 
> Stefan
> 
> 
> - Original Message - 
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 12:12 PM
> Subject: RE: Servlet mapping problem.
> 
> 
> 
> Hi,
> Do you get any errors in your log on startup?  Are you running Tomcat as
> a Windows service, or from the command line?
> 
> Yoav Shapira http://www.yoavshapira.com
> 
> 
> >-Original Message-
> >From: Stefan [mailto:[EMAIL PROTECTED]
> >Sent: Monday, November 22, 2004 12:06 PM
> >To: Tomcat Users List
> >Subject: Re: Servlet mapping problem.
> >
> >Yoav,
> >
> >As I stated in a previous post - I actually included the context name
> in
> >the
> >context.xml file, I just omitted it in my email.
> >
> >Beyond that, I initially did not include a context.xml file - but it
> did
> >not
> >work, so I figured I'd give it a go.
> >
> >But if you noticed in my last post, I just dropped in Bens war file and
> it
> >is not working either ... seems to be some container issue and not a
> web
> >app
> >issue ...
> >
> >Yes, you're right, I am just starting out (again) with Tomcat. First
> time
> >I've looked at it in years ...
> >
> >Stefan
> >
> >
> >
> >- Original Message -
> >From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Monday, November 22, 2004 11:58 AM
> >Subject: RE: Servlet mapping problem.
> >
> >
> >
> >Hi,
> >The problem is that you've messed up your configuration.  You created
> >context.xml and you created your static HTML page.  One says path=""
> and
> >the other asks for path="/context_name".  It's a beginner's mistake
> >that's trivial to correct, and it's your mistake, not Tomcat's fault.
> >
> >You don't even need a context.xml file: you could have simply created a
> >directory for your app under webapps, and put your files there, and
> >voila: i.e. you didn't need to do ANY server configuration to get this
> >running.  But since you chose to have a context.xml file, it's up to
> you
> >to learn how to use it.
> >
> >Yoav Shapira http://www.yoavshapira.com
> >
> >
> >>-Original Message-
> >>From: Stefan [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, November 22, 2004 11:54 AM
> >>To: Tomcat Users List
> >>Subject: Re: Servlet mapping problem.
> >>
> >>Thanks Ben - I'll give it a go .. the client may insist still on
> >Tomcat,
> >>anyway it bugs me that I can't get it to work!
> >>
> >>Thanks.
> >>
> >>Stefan
> >>
> >>www.killersites.com
> >>www.how-to-build-websites.com
> >>www.secretsites.com
> >>www.csstutorial.net
> >>www.websitereviews.org
> >>www.websitetemplates.name
> >>
> >>- Original Message -
> >>From: "Ben Souther" <[EMAIL PROTECTED]>
> >>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>Sent: Monday, November 22, 2004 11:41 AM
> >>Subject: Re: Servlet mapping problem.
> >>
> >>
> >>> If you're interested, I've got some simple apps all WARed up on my
> >site.
> >>> http://simple.souther.us.
> >>>
> >>> Try dropping one of those wars in your webapps directory.  If they
> >work
> >>> (which they will if you have an out of the box installation of
> >Tomcat),
> >>> you can compare them with your app to see what's different.
> >>>
> >>> Good-luck.
> >>>
> >>>
> >>>
> >>>
> >>> On Mon, 2004-11-22 at 11:29, Stefan wrote:
> >>> > Hi,
> >>> >
> >>> > I actually put the context reference in the context tag ... just
> >>something I
> >>> > omitted in the email. But alas, it still does not work ...
> >>> >
> >>> > :(
> >>> >
> >>> > I'm actually going to see if I can get the client to use Resin
> (for
> >>some
> >>> > reason, everything works fine is Resin ... out of the box),
> frankly
> >at
> >>this
> >>> > point I'm not too impressed the Tomcat.
> >>> >
> >>> > Thanks Ben.
> >>> >
> >>> > Stefan
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > - Original Message -
> >>> > From: "Ben Souther" <[EMAIL PROTECTED]>
> >>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>> > Sent: Monday, November 22, 2004 10:40 AM
> >>> > Subject: Re: Servlet mapping problem.
> >>> >
> >>> >
> >>> > > In your context tag, your specifying: path=""
> >>> > > but in your url you're using:
> >>> > > http://127.0.0.1/the_context/loginResponse.do";
> >>> > >  ^^^
> >>> > >
> >>> > >
> >>> > > Either put: path="/the_context" in your context tag or
> >>> > > don't specify it in your url.
> >>> > > loginResponse.do
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > > On Mon, 2004-11-22 at 10:31, Stefan wrote:
> >>> > > > Hi Ben,
> >>> > > >
> >>> > > > I've used a relative link - same problem ...
> >>> > > >
> >>> > > > Could this be a problem having to do with setting up the
> >context?
> >>What I
> >>> > did
> >>> > > > to do this,  w

RE: Server redirected too many times (20)

2004-11-22 Thread Allistair Crossley
Hi Yoav,
 
We run on Windows 2000, the concept of sym links aren't there. It's right 
across our HTML content (which is loaded from file system via IIS for security) 
blah.. so I do not think it will be this. Further, a Tomcat restart fixes it 
for a short while.
 
Cheers, Allistair

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Mon 22/11/2004 18:20 
To: Tomcat Users List 
Cc: 
Subject: RE: Server redirected too many times (20)




Hi,
Are you sure it's not a recursive symbolic link issue?  Check to make
sure that in recent days no one modified symbolic links throughout your
installation such that they redirect to each other.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 1:14 PM
>To: Tomcat Users List; Tomcat Users List; Dakota Jack
>Subject: Server redirected too many times (20)
>
>Hi All,
>
>We upgraded to Java 5 and Tomcat 5.5.4 last week having tested it out
on
>our test server without any apparent problems.
>
>However, we are noticing an awful lots of errors of the following
nature,
>and I wanted to know if it is likely that something in Tomcat 5.5.4
could
>be involved, as our 5.0.28 installation was used for some months
without
>issue.
>
>java.net.ProtocolException: Server redirected too many times (20)
>
>Although people across the web cite authentication problems, I would be
>happier if we had always had this problem rather than after a
Java/Tomcat
>upgrade.
>
>The issue occurs when making connections to the server for webpages
>containing images, and a couple of other connection based areas. If you
>access the URL the code is trying to through a browser, there is no
problem
>or security prompt. This is an internal corporate intranet application.
>
>Thanks in advance, Allistair.
>
>
>
>
>---
>QAS Ltd.
>Developers of QuickAddress Software
>http://www.qas.com";>www.qas.com
>Registered in England: No 2582055
>Registered in Australia: No 082 851 474
>---
>




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]





 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---




RE: Server.xml problem..

2004-11-22 Thread sven morales
  I do not remember on top of my head at which version
Tomcat has separated the  element from
server.xml but assuming it applies to your situation. 
On your Ant task you need to separate out from the
server.xml the element and its contents ( ..
 to another file, call it rpcoemapi.xml. 
You can have another task to put this rpcoemapi.xml
file into tomcatXX/conf/// directory, or
 the other alternative was to have this rpcoemapi.xml
become part of your war file. Please search back in
the list for the last weeks where this same subject
"where to put context.xml file". 
  An example of my context xml file thats been pulled
out of server.xml:



 
 
 

factory
   
org.apache.commons.dbcp.BasicDataSourceFactory


maxActive
100


maxIdle
3


maxWait
100

   
usernamemysql69
   
passwordyejlaitr
driverClassName
 
org.gjt.mm.mysql.Driver
url
 
jdbc:mysql://localhost:3306/dbxforum
  


Hope this helps.


--- Shilpa Nalgonda <[EMAIL PROTECTED]> wrote:

> under TOMCAT_HOME/conf i only have" server.xml,
> tomcat-users.xml , web.xml,
> catalina.policy and jk2.properties."
> i can't find rpcoemapi.xml anywhere under
> Tomcat_home.
> 
> Before i had all the datasource configuration for my
> Web apps in server.xml.
> And i used tomcat manager GUI to deploy the
> applications.  But now we have
> to use ant script to deploy apps.
> With this change my server.xml is loosing all the
> datasource configuration.
> 
> Please suggest how to tackle this.
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 22, 2004 12:20 PM
> To: Tomcat Users List
> Subject: RE: Server.xml problem..
> 
> 
> 
> Hi,
> Are you sure the information for your context isn't
> written to
> conf/[engine]/[host]/rpcoemapi.xml instead of
> server.xml?
> 
> Yoav Shapira http://www.yoavshapira.com
> 
> 
> >-Original Message-
> >From: Shilpa Nalgonda
> [mailto:[EMAIL PROTECTED]
> >Sent: Monday, November 22, 2004 12:11 PM
> >To: Tomcat Users List
> >Subject: RE:Server.xml problem..
> >
> >Hi ,
> >I am usinh ant deploy target to deploy my web
> application  on  Tomcat
> >4.1.30.
> >I have configured datasource to get the connection
> pooling  for my
> webapp
> >in server.xml.
> >
> >But whenever i do a ant deploy, the server.xml ia
> being backed up and a
> new
> >server.xml is created.
> >This new server.xml does not have any of my
> datasouce configuration for
> my
> >webapp.  So my application cannot connect to the
> database thereby.
> >
> >How can i resolve this, do i have to write xml file
> for my webapp, if
> so
> >what entries go in that new xml file.  Below is
> >my ant deploy target and server.xml
> >
> > >   description="Deploying application to servlet
> container">
> >
> > >username="${manager.username}"
> >password="${manager.password}"
> >path="${app.path}"
> >
> war="file:/${dist.home}/rpcoemapi.war"/>
> >
> >  
> >
> >sErver.xml
> >--
> >
> >  docBase="rpcoemapi"
> > debug="5" reloadable="true"
> crossContext="true"
> >useNaming="true">
> >
> >  className="org.apache.catalina.logger.FileLogger"
> > prefix="localhost_rpcoemapi_log."
> suffix=".txt"
> > timestamp="true"/>
> >>   auth="Container"
> >   type="javax.sql.DataSource"/>
> >
> > 
> > 
> >   factory
> >  
>
org.apache.commons.dbcp.BasicDataSourceFactory
> > 
> >
> > 
> >  maxActive
> >  30
> >
> >
> > 
> >
> > maxIdle
> > 20
> >
> >
> >
> >  
> > 
> > maxWait
> > 1
> >
> >
> > 
> > 
> >   username
> >   xx
> > 
> > 
> >   password
> >   xx
> > 
> >
> > 
> > 
> >   driverClassName
> >  
> oracle.jdbc.driver.OracleDriver
> > 
> >
> > 
> > 
> > url
> >  
> jdbc:oracle:thin:@ipaddress:1521:DB
> > 
> >
> >
> >
> >
>
>-
> >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.
> 
> 
=== message truncated ===




__ 
Do you Yahoo!? 
The all-ne

Enabling servlet reloading?

2004-11-22 Thread Stefan
Hi,

What is entry (in server.xml) to allow for auto reloading of servlets in
Tomcat 5? Or can you set this in web.xml on a per application basis?



Stefan



- Original Message - 
From: "Stefan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 22, 2004 1:20 PM
Subject: [OT] Re: Servlet mapping problem.


> Yoav and Ben,
>
> After a fresh install of Tomcat, everything seems to be working fine.
>
> Many thanks for your extra patience with my fumbling about!
>
> Best regards,
>
> Stefan
>
>
> - Original Message - 
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 12:12 PM
> Subject: RE: Servlet mapping problem.
>
>
>
> Hi,
> Do you get any errors in your log on startup?  Are you running Tomcat as
> a Windows service, or from the command line?
>
> Yoav Shapira http://www.yoavshapira.com
>
>
> >-Original Message-
> >From: Stefan [mailto:[EMAIL PROTECTED]
> >Sent: Monday, November 22, 2004 12:06 PM
> >To: Tomcat Users List
> >Subject: Re: Servlet mapping problem.
> >
> >Yoav,
> >
> >As I stated in a previous post - I actually included the context name
> in
> >the
> >context.xml file, I just omitted it in my email.
> >
> >Beyond that, I initially did not include a context.xml file - but it
> did
> >not
> >work, so I figured I'd give it a go.
> >
> >But if you noticed in my last post, I just dropped in Bens war file and
> it
> >is not working either ... seems to be some container issue and not a
> web
> >app
> >issue ...
> >
> >Yes, you're right, I am just starting out (again) with Tomcat. First
> time
> >I've looked at it in years ...
> >
> >Stefan
> >
> >
> >
> >- Original Message -
> >From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Monday, November 22, 2004 11:58 AM
> >Subject: RE: Servlet mapping problem.
> >
> >
> >
> >Hi,
> >The problem is that you've messed up your configuration.  You created
> >context.xml and you created your static HTML page.  One says path=""
> and
> >the other asks for path="/context_name".  It's a beginner's mistake
> >that's trivial to correct, and it's your mistake, not Tomcat's fault.
> >
> >You don't even need a context.xml file: you could have simply created a
> >directory for your app under webapps, and put your files there, and
> >voila: i.e. you didn't need to do ANY server configuration to get this
> >running.  But since you chose to have a context.xml file, it's up to
> you
> >to learn how to use it.
> >
> >Yoav Shapira http://www.yoavshapira.com
> >
> >
> >>-Original Message-
> >>From: Stefan [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, November 22, 2004 11:54 AM
> >>To: Tomcat Users List
> >>Subject: Re: Servlet mapping problem.
> >>
> >>Thanks Ben - I'll give it a go .. the client may insist still on
> >Tomcat,
> >>anyway it bugs me that I can't get it to work!
> >>
> >>Thanks.
> >>
> >>Stefan
> >>
> >>www.killersites.com
> >>www.how-to-build-websites.com
> >>www.secretsites.com
> >>www.csstutorial.net
> >>www.websitereviews.org
> >>www.websitetemplates.name
> >>
> >>- Original Message -
> >>From: "Ben Souther" <[EMAIL PROTECTED]>
> >>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>Sent: Monday, November 22, 2004 11:41 AM
> >>Subject: Re: Servlet mapping problem.
> >>
> >>
> >>> If you're interested, I've got some simple apps all WARed up on my
> >site.
> >>> http://simple.souther.us.
> >>>
> >>> Try dropping one of those wars in your webapps directory.  If they
> >work
> >>> (which they will if you have an out of the box installation of
> >Tomcat),
> >>> you can compare them with your app to see what's different.
> >>>
> >>> Good-luck.
> >>>
> >>>
> >>>
> >>>
> >>> On Mon, 2004-11-22 at 11:29, Stefan wrote:
> >>> > Hi,
> >>> >
> >>> > I actually put the context reference in the context tag ... just
> >>something I
> >>> > omitted in the email. But alas, it still does not work ...
> >>> >
> >>> > :(
> >>> >
> >>> > I'm actually going to see if I can get the client to use Resin
> (for
> >>some
> >>> > reason, everything works fine is Resin ... out of the box),
> frankly
> >at
> >>this
> >>> > point I'm not too impressed the Tomcat.
> >>> >
> >>> > Thanks Ben.
> >>> >
> >>> > Stefan
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > - Original Message -
> >>> > From: "Ben Souther" <[EMAIL PROTECTED]>
> >>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >>> > Sent: Monday, November 22, 2004 10:40 AM
> >>> > Subject: Re: Servlet mapping problem.
> >>> >
> >>> >
> >>> > > In your context tag, your specifying: path=""
> >>> > > but in your url you're using:
> >>> > > http://127.0.0.1/the_context/loginResponse.do";
> >>> > >  ^^^
> >>> > >
> >>> > >
> >>> > > Either put: path="/the_context" in your context tag or
> >>> > > don't specify it in your url.
> >>> > > loginResponse.do
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > >
> >>> > > On Mon, 2004

RE: Server redirected too many times (20)

2004-11-22 Thread Ben Souther
And you've verified that there are no circular references caused by
response.sendRedirect calls?

On Mon, 2004-11-22 at 13:34, Allistair Crossley wrote:
> Hi Yoav,
>  
> We run on Windows 2000, the concept of sym links aren't there. It's right 
> across our HTML content (which is loaded from file system via IIS for 
> security) blah.. so I do not think it will be this. Further, a Tomcat restart 
> fixes it for a short while.
>  
> Cheers, Allistair
> 
>   -Original Message- 
>   From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
>   Sent: Mon 22/11/2004 18:20 
>   To: Tomcat Users List 
>   Cc: 
>   Subject: RE: Server redirected too many times (20)
>   
>   
> 
> 
>   Hi,
>   Are you sure it's not a recursive symbolic link issue?  Check to make
>   sure that in recent days no one modified symbolic links throughout your
>   installation such that they redirect to each other.
>   
>   Yoav Shapira http://www.yoavshapira.com
>   
>   
>   >-Original Message-
>   >From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>   >Sent: Monday, November 22, 2004 1:14 PM
>   >To: Tomcat Users List; Tomcat Users List; Dakota Jack
>   >Subject: Server redirected too many times (20)
>   >
>   >Hi All,
>   >
>   >We upgraded to Java 5 and Tomcat 5.5.4 last week having tested it out
>   on
>   >our test server without any apparent problems.
>   >
>   >However, we are noticing an awful lots of errors of the following
>   nature,
>   >and I wanted to know if it is likely that something in Tomcat 5.5.4
>   could
>   >be involved, as our 5.0.28 installation was used for some months
>   without
>   >issue.
>   >
>   >java.net.ProtocolException: Server redirected too many times (20)
>   >
>   >Although people across the web cite authentication problems, I would be
>   >happier if we had always had this problem rather than after a
>   Java/Tomcat
>   >upgrade.
>   >
>   >The issue occurs when making connections to the server for webpages
>   >containing images, and a couple of other connection based areas. If you
>   >access the URL the code is trying to through a browser, there is no
>   problem
>   >or security prompt. This is an internal corporate intranet application.
>   >
>   >Thanks in advance, Allistair.
>   >
>   >
>   >
>   >
>   >---
>   >QAS Ltd.
>   >Developers of QuickAddress Software
>   >http://www.qas.com";>www.qas.com
>   >Registered in England: No 2582055
>   >Registered in Australia: No 082 851 474
>   >---
>   >
>   
>   
>   
>   
>   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]
>   
>   
> 
> 
> 
>  
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 


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



RE: Server redirected too many times (20)

2004-11-22 Thread Allistair Crossley
We don't use server redirects as we use Struts request forwarding. One place 
the issue is happening in a JSP that uses JSTL's c:import tag to import an 
absolute URL to a HTML page perfectly accessible on the server (via iis) and 
also on browser request. Like I say, a Tomcat restart fixes these problems for 
a short while.
 
Allistair.
 
-Original Message- 
From: Ben Souther [mailto:[EMAIL PROTECTED] 
Sent: Mon 22/11/2004 18:38 
To: Tomcat Users List 
Cc: 
Subject: RE: Server redirected too many times (20)



And you've verified that there are no circular references caused by
response.sendRedirect calls?

On Mon, 2004-11-22 at 13:34, Allistair Crossley wrote:
> Hi Yoav,
> 
> We run on Windows 2000, the concept of sym links aren't there. It's 
right across our HTML content (which is loaded from file system via IIS for 
security) blah.. so I do not think it will be this. Further, a Tomcat restart 
fixes it for a short while.
> 
> Cheers, Allistair
>
>   -Original Message-
>   From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>   Sent: Mon 22/11/2004 18:20
>   To: Tomcat Users List
>   Cc:
>   Subject: RE: Server redirected too many times (20)
>  
>  
>
>
>   Hi,
>   Are you sure it's not a recursive symbolic link issue?  Check 
to make
>   sure that in recent days no one modified symbolic links 
throughout your
>   installation such that they redirect to each other.
>  
>   Yoav Shapira http://www.yoavshapira.com
>  
>  
>   >-Original Message-
>   >From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>   >Sent: Monday, November 22, 2004 1:14 PM
>   >To: Tomcat Users List; Tomcat Users List; Dakota Jack
>   >Subject: Server redirected too many times (20)
>   >
>   >Hi All,
>   >
>   >We upgraded to Java 5 and Tomcat 5.5.4 last week having tested 
it out
>   on
>   >our test server without any apparent problems.
>   >
>   >However, we are noticing an awful lots of errors of the 
following
>   nature,
>   >and I wanted to know if it is likely that something in Tomcat 
5.5.4
>   could
>   >be involved, as our 5.0.28 installation was used for some 
months
>   without
>   >issue.
>   >
>   >java.net.ProtocolException: Server redirected too many times 
(20)
>   >
>   >Although people across the web cite authentication problems, I 
would be
>   >happier if we had always had this problem rather than after a
>   Java/Tomcat
>   >upgrade.
>   >
>   >The issue occurs when making connections to the server for 
webpages
>   >containing images, and a couple of other connection based 
areas. If you
>   >access the URL the code is trying to through a browser, there 
is no
>   problem
>   >or security prompt. This is an internal corporate intranet 
application.
>   >
>   >Thanks in advance, Allistair.
>   >
>   >
>   >
>   >
>   >---
>   >QAS Ltd.
>   >Developers of QuickAddress Software
>   >http://www.qas.com";>www.qas.com
>   >Registered in England: No 2582055
>   >Registered in Australia: No 082 851 474
>   >---
>   >
>  
>  
>  
>  
>   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]
>  
>  
>
>
>
> 
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
 

Re: Enabling servlet reloading?

2004-11-22 Thread Ben Souther
reloadable="true"
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html


On Mon, 2004-11-22 at 13:34, Stefan wrote:
> Hi,
> 
> What is entry (in server.xml) to allow for auto reloading of servlets in
> Tomcat 5? Or can you set this in web.xml on a per application basis?
> 
> 
> 
> Stefan
> 
> 
> 
> - Original Message - 
> From: "Stefan" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, November 22, 2004 1:20 PM
> Subject: [OT] Re: Servlet mapping problem.
> 
> 
> > Yoav and Ben,
> >
> > After a fresh install of Tomcat, everything seems to be working fine.
> >
> > Many thanks for your extra patience with my fumbling about!
> >
> > Best regards,
> >
> > Stefan
> >
> >
> > - Original Message - 
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, November 22, 2004 12:12 PM
> > Subject: RE: Servlet mapping problem.
> >
> >
> >
> > Hi,
> > Do you get any errors in your log on startup?  Are you running Tomcat as
> > a Windows service, or from the command line?
> >
> > Yoav Shapira http://www.yoavshapira.com
> >
> >
> > >-Original Message-
> > >From: Stefan [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, November 22, 2004 12:06 PM
> > >To: Tomcat Users List
> > >Subject: Re: Servlet mapping problem.
> > >
> > >Yoav,
> > >
> > >As I stated in a previous post - I actually included the context name
> > in
> > >the
> > >context.xml file, I just omitted it in my email.
> > >
> > >Beyond that, I initially did not include a context.xml file - but it
> > did
> > >not
> > >work, so I figured I'd give it a go.
> > >
> > >But if you noticed in my last post, I just dropped in Bens war file and
> > it
> > >is not working either ... seems to be some container issue and not a
> > web
> > >app
> > >issue ...
> > >
> > >Yes, you're right, I am just starting out (again) with Tomcat. First
> > time
> > >I've looked at it in years ...
> > >
> > >Stefan
> > >
> > >
> > >
> > >- Original Message -
> > >From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >Sent: Monday, November 22, 2004 11:58 AM
> > >Subject: RE: Servlet mapping problem.
> > >
> > >
> > >
> > >Hi,
> > >The problem is that you've messed up your configuration.  You created
> > >context.xml and you created your static HTML page.  One says path=""
> > and
> > >the other asks for path="/context_name".  It's a beginner's mistake
> > >that's trivial to correct, and it's your mistake, not Tomcat's fault.
> > >
> > >You don't even need a context.xml file: you could have simply created a
> > >directory for your app under webapps, and put your files there, and
> > >voila: i.e. you didn't need to do ANY server configuration to get this
> > >running.  But since you chose to have a context.xml file, it's up to
> > you
> > >to learn how to use it.
> > >
> > >Yoav Shapira http://www.yoavshapira.com
> > >
> > >
> > >>-Original Message-
> > >>From: Stefan [mailto:[EMAIL PROTECTED]
> > >>Sent: Monday, November 22, 2004 11:54 AM
> > >>To: Tomcat Users List
> > >>Subject: Re: Servlet mapping problem.
> > >>
> > >>Thanks Ben - I'll give it a go .. the client may insist still on
> > >Tomcat,
> > >>anyway it bugs me that I can't get it to work!
> > >>
> > >>Thanks.
> > >>
> > >>Stefan
> > >>
> > >>www.killersites.com
> > >>www.how-to-build-websites.com
> > >>www.secretsites.com
> > >>www.csstutorial.net
> > >>www.websitereviews.org
> > >>www.websitetemplates.name
> > >>
> > >>- Original Message -
> > >>From: "Ben Souther" <[EMAIL PROTECTED]>
> > >>To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >>Sent: Monday, November 22, 2004 11:41 AM
> > >>Subject: Re: Servlet mapping problem.
> > >>
> > >>
> > >>> If you're interested, I've got some simple apps all WARed up on my
> > >site.
> > >>> http://simple.souther.us.
> > >>>
> > >>> Try dropping one of those wars in your webapps directory.  If they
> > >work
> > >>> (which they will if you have an out of the box installation of
> > >Tomcat),
> > >>> you can compare them with your app to see what's different.
> > >>>
> > >>> Good-luck.
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> On Mon, 2004-11-22 at 11:29, Stefan wrote:
> > >>> > Hi,
> > >>> >
> > >>> > I actually put the context reference in the context tag ... just
> > >>something I
> > >>> > omitted in the email. But alas, it still does not work ...
> > >>> >
> > >>> > :(
> > >>> >
> > >>> > I'm actually going to see if I can get the client to use Resin
> > (for
> > >>some
> > >>> > reason, everything works fine is Resin ... out of the box),
> > frankly
> > >at
> > >>this
> > >>> > point I'm not too impressed the Tomcat.
> > >>> >
> > >>> > Thanks Ben.
> > >>> >
> > >>> > Stefan
> > >>> >
> > >>> >
> > >>> >
> > >>> >
> > >>> > - Original Message -
> > >>> > From: "Ben Souther" <[EMAIL PROTECTED]>
> > >>> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >>> > Sent: Monday, November 22, 2004 10:40 AM

setting JSESSION variable

2004-11-22 Thread Alex Korneyev
what is the proper way to set jsession id if i want my own id?

basically the situation is as follows.

my user authenticates into domain.com

then depending on what his/her locale is i forward them to
http://lang.domain.com * i.e. http://us.domain.com

the problem is that once they authenticate and i redirect them to
another server, JSESSION id is lost;

is there a manual way to set it?

currently i do this:


https://us.domain.com/secure?VAR1=VAL1;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3

however, on the backend, when i do:

request.getCookies() it is returning null

any ideas?

alex


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



J2EE Policy Agent and Web Policy Agent

2004-11-22 Thread Derrick Koes

Does anyone have any experience using either of these with Tomcat?
If so, can you point me to a good resource?

Thanks,
Derrick


RE: J2EE Policy Agent and Web Policy Agent

2004-11-22 Thread Shapira, Yoav

Hi,
A google search seems to return a number of good and relevant results,
including this one which has specific examples:
http://docs.sun.com/source/816-6884-10/chapter2.html#wp37609.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Derrick Koes [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 1:59 PM
>To: [EMAIL PROTECTED]
>Subject: J2EE Policy Agent and Web Policy Agent
>
>
>Does anyone have any experience using either of these with Tomcat?
>If so, can you point me to a good resource?
>
>Thanks,
>Derrick



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: high traffic Tomcat sites out there?

2004-11-22 Thread Shapira, Yoav

Hi,
You can search the wiki (there's a "who's using Tomcat section) and
archives of this list: there are sites that serve hundreds of concurrent
requests for long periods of time, and millions of hits per day.  Of
course, your question itself is not that appropriate, because any answer
is meaningless as it does not apply to your specific apps.  Go run
stress testers and figure out your max supported load for yourselves.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Ronald Klop [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 22, 2004 8:37 AM
>To: Tomcat Users List
>Cc: LAM Kwun Wa Joseph
>Subject: Re: high traffic Tomcat sites out there?
>
>On Mon Nov 22 11:55:08 CET 2004 LAM Kwun Wa Joseph <[EMAIL PROTECTED]> wrote:
>> For my Tomcat cluster I'm looking for an upper limit on the
estimation of
>> how much traffic it may face. Say, would thousands of HTTP req/s be
too
>> 'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm
talking
>> about dynamic pages such as stock quotes and news)
>>
>> Does anyone know of any high traffic JSP/servlet sites(running Tomcat
or
>> similar servlet container)? I'm mostly interested to know what's the
>> typical "magnitude" of their HTTP throughput (e.g. hundreds or
thousands
>> of HTTP/s) and what kinds of apps are they running.
>>
>> Joseph Lam
>
>
>Hello,
>
>I am also interested in some realworld figures. Our configuration is
this.
>2-node cluster of 2-cpu P4-2.8Ghz machines.
>The  web-application is a database application (with a lot of updates
and
>non-index queries) for logged-in users.
>We have about 1500 logged in persons doing 70 req/s. Half of the
requests
>go to Tomcat, the other half to Apache for static content.
>The average (Tomcat) req takes about 250 ms in our system.
>But I have no idea if this is an high/average/low load compared to
other
>systems.
>Btw, we are using Tomcat 5.0.28, JDK 1.4.2, Debian Sarge (linux 2.6.x),
>Apache 1.3.x/mod_jk 1.2.6.
>
>Ronald.



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.30 not restoring JDBC connections

2004-11-22 Thread Sharad Ramadas
Whenever I encounter this problem I re-start the tomcat.


On Mon, 22 Nov 2004 11:11:14 -0600, Alex Korneyev
<[EMAIL PROTECTED]> wrote:
> Hello All,
> 
> has anyone ever experienced the following:
> 
> we are using Tomcat's 4.1.30 connection pool.
> 
> For some reason, when network connection goes down, even for 1 sec,
> connection pool is not smart enough to either get rid of a connection
> and try get another one, or reconnect;
> 
> any ideas?
> 
> Alex K.
> 
> -
> 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: multipart/byteranges bug in tomcat 4.1.x

2004-11-22 Thread Mark Thomas
Fixed in CVS for TC4 but I wouldn't expect a 4.1.32 release for some time (New
Year at the earliest).

Mark 

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 22, 2004 1:56 PM
> To: Tomcat Users List
> Subject: RE: multipart/byteranges bug in tomcat 4.1.x
> 
> 
> Hi,
> Don't hold your breath, upgrade if/when possible.
> 
> Yoav Shapira http://www.yoavshapira.com
>  
> 
> >-Original Message-
> >From: Vincent Gogan [mailto:[EMAIL PROTECTED]
> >Sent: Friday, November 19, 2004 9:09 PM
> >To: [EMAIL PROTECTED]
> >Subject: multipart/byteranges bug in tomcat 4.1.x
> >
> >I had to write some byte-streaming code and it took me
> >quite a while to find my problem because I had manged to
> >get my behaviour byte-for-byte identical to Tomcat 4.1.x
> >behaviour.
> >
> >My bug was that I wasn't outputting CRLF before each separator.
> >The same bug still exists in DefaultServlet.java in Tomcat 4.1.31.
> >I checked the 5.0.28 code and the bug was fixed. It might be nice
> >to fix the old version of Tomcat as it is still quite heavily used.
> >
> >Regards,
> >
> >Vincent
> >
> >
> >-
> >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]



Re: setting JSESSION variable

2004-11-22 Thread Jacob Kjome
Try...

https://us.domain.com/secure;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3?VAR1=VAL1

Yes, order is important!

Jake

Quoting Alex Korneyev <[EMAIL PROTECTED]>:

> what is the proper way to set jsession id if i want my own id?
>
> basically the situation is as follows.
>
> my user authenticates into domain.com
>
> then depending on what his/her locale is i forward them to
> http://lang.domain.com * i.e. http://us.domain.com
>
> the problem is that once they authenticate and i redirect them to
> another server, JSESSION id is lost;
>
> is there a manual way to set it?
>
> currently i do this:
>
>
>
https://us.domain.com/secure?VAR1=VAL1;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3
>
> however, on the backend, when i do:
>
> request.getCookies() it is returning null
>
> any ideas?
>
> alex
>
>
> -
> 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: JDBC transactions using MySQL / DBCP in Tomcat 5.0.28

2004-11-22 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Trond G. Ziarkowski wrote:
> Hi all!
> 
> In my webapp I do two db inserts into two different tables. If the 
> second one fails I want to rollback the first one. My code is something 
> like the following:
> 
> Connection con = gotten from jndi DataSource
> DBBean db = new DBBean(con);
> try {
> con.setAutoCommit(false);
> 
> Object o = db.getSomething();
> Object o2 = db.getSomethingElse();
> 
> db.doInsert1(params);
> db.doInsert2(params);
> 
> con.commit();
> } catch (SQLException sqle) {
> con.rollback();
> throw sqle;
> } finally {
> if (con != null) {
> con.close();
> }
> }
> 
> I thought that this should do the trick, but if the second insert fails 
> the data inserted in the first insert are still there. I am using MySQL 
> 4.0.21-7 with InnoDB and have tested that I can use transactions with 
> the MySQL client.
> 
> Anyone got any tips?

Trond,

Are your tables in InnoDB storage? (i.e. TYPE=InnoDB used when you
created them)

What does 'SHOW CREAATE TABLE [table-name]' show for both tables?

If it doesn't say 'Type=InnoDB' at the end, transactions won't work :(

-Mark



- --
Mark Matthews
MySQL AB, Software Development Manager - Client Connectivity
Office: +1 708 332 0507
www.mysql.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBokmYtvXNTca6JD8RApHwAKCh/E83lwfvqMOCEmJTAIzrUDWbogCfVQxL
04L03RNzQvpUg+wNtgLFkSo=
=9qCZ
-END PGP SIGNATURE-

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



RE: multipart/byteranges bug in tomcat 4.1.x

2004-11-22 Thread Vincent Gogan
Thanks. I'll ask for some quick advice. Is it safer (stability wise)
to upgrade to 5.0.x rather than directly to 5.5.x?

Thanks,

Vincent

> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 22, 2004 2:38 PM
> To: 'Tomcat Users List'
> Subject: RE: multipart/byteranges bug in tomcat 4.1.x
> 
> 
> Fixed in CVS for TC4 but I wouldn't expect a 4.1.32 release for 
> some time (New
> Year at the earliest).
> 
> Mark 
> 
> > -Original Message-
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, November 22, 2004 1:56 PM
> > To: Tomcat Users List
> > Subject: RE: multipart/byteranges bug in tomcat 4.1.x
> > 
> > 
> > Hi,
> > Don't hold your breath, upgrade if/when possible.
> > 
> > Yoav Shapira http://www.yoavshapira.com
> >  
> > 
> > >-Original Message-
> > >From: Vincent Gogan [mailto:[EMAIL PROTECTED]
> > >Sent: Friday, November 19, 2004 9:09 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: multipart/byteranges bug in tomcat 4.1.x
> > >
> > >I had to write some byte-streaming code and it took me
> > >quite a while to find my problem because I had manged to
> > >get my behaviour byte-for-byte identical to Tomcat 4.1.x
> > >behaviour.
> > >
> > >My bug was that I wasn't outputting CRLF before each separator.
> > >The same bug still exists in DefaultServlet.java in Tomcat 4.1.31.
> > >I checked the 5.0.28 code and the bug was fixed. It might be nice
> > >to fix the old version of Tomcat as it is still quite heavily used.
> > >
> > >Regards,
> > >
> > >Vincent
> > >
> > >
> > >-
> > >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[2]: setting JSESSION variable

2004-11-22 Thread Alex Korneyev
Hello Jacob Kjome,

  lovely :)

  however, since i have Apache as a middle man, i get this error:

You don't have permission to access

/secure;JSESSIONID=16E54F0A406582505A7A393E5307BC12&VA1=VAL1 on this server.

this is related to : http://www.jguru.com/faq/view.jsp?EID=53878

however, i am using mod_jk2

any idea how to set this up with mod_jk2 ?

alex k.

Monday, November 22, 2004, 2:12:38 PM, you wrote:

> Try...

> https://us.domain.com/secure;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3?VAR1=VAL1

> Yes, order is important!

> Jake

> Quoting Alex Korneyev <[EMAIL PROTECTED]>:

>> what is the proper way to set jsession id if i want my own id?
>>
>> basically the situation is as follows.
>>
>> my user authenticates into domain.com
>>
>> then depending on what his/her locale is i forward them to
>> http://lang.domain.com * i.e. http://us.domain.com
>>
>> the problem is that once they authenticate and i redirect them to
>> another server, JSESSION id is lost;
>>
>> is there a manual way to set it?
>>
>> currently i do this:
>>
>>
>>
> https://us.domain.com/secure?VAR1=VAL1;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3
>>
>> however, on the backend, when i do:
>>
>> request.getCookies() it is returning null
>>
>> any ideas?
>>
>> alex
>>
>>
>> -
>> 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]



-- 
Best regards,
 Alexmailto:[EMAIL PROTECTED]


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



RE: multipart/byteranges bug in tomcat 4.1.x

2004-11-22 Thread Mark Thomas
It depends on your application. The only way you will now for sure will be to
upgrade and do lots of testing. There are always bugs in any software - the
important issue is do they affect you. If you have the chance to upgrade I would
go for the latest stable release which is currently 5.5.4.

Obviously you will have to look at the cost v. benefit of any upgrade and make
the decision that is right for you.

Mark

> -Original Message-
> From: Vincent Gogan [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 22, 2004 8:33 PM
> To: Tomcat Users List
> Subject: RE: multipart/byteranges bug in tomcat 4.1.x
> 
> Thanks. I'll ask for some quick advice. Is it safer (stability wise)
> to upgrade to 5.0.x rather than directly to 5.5.x?
> 
> Thanks,
> 
> Vincent
> 
> > -Original Message-
> > From: Mark Thomas [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 22, 2004 2:38 PM
> > To: 'Tomcat Users List'
> > Subject: RE: multipart/byteranges bug in tomcat 4.1.x
> > 
> > 
> > Fixed in CVS for TC4 but I wouldn't expect a 4.1.32 release for 
> > some time (New
> > Year at the earliest).
> > 
> > Mark 
> > 
> > > -Original Message-
> > > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> > > Sent: Monday, November 22, 2004 1:56 PM
> > > To: Tomcat Users List
> > > Subject: RE: multipart/byteranges bug in tomcat 4.1.x
> > > 
> > > 
> > > Hi,
> > > Don't hold your breath, upgrade if/when possible.
> > > 
> > > Yoav Shapira http://www.yoavshapira.com
> > >  
> > > 
> > > >-Original Message-
> > > >From: Vincent Gogan [mailto:[EMAIL PROTECTED]
> > > >Sent: Friday, November 19, 2004 9:09 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: multipart/byteranges bug in tomcat 4.1.x
> > > >
> > > >I had to write some byte-streaming code and it took me
> > > >quite a while to find my problem because I had manged to
> > > >get my behaviour byte-for-byte identical to Tomcat 4.1.x
> > > >behaviour.
> > > >
> > > >My bug was that I wasn't outputting CRLF before each separator.
> > > >The same bug still exists in DefaultServlet.java in 
> Tomcat 4.1.31.
> > > >I checked the 5.0.28 code and the bug was fixed. It might be nice
> > > >to fix the old version of Tomcat as it is still quite 
> heavily used.
> > > >
> > > >Regards,
> > > >
> > > >Vincent
> > > >
> > > >
> > > 
> >-
> > > >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]
> 



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



RE: CGI Again...Servlet.service() for servlet cgi threw exception

2004-11-22 Thread Sergey Kamshilin
Hello Mark,

Servlet mapping:
-


cgi
/cgi-bin/*

-
The URL: http://zee:8080/cgi-bin/index.pl

Script index.pl:
-
#!/bin/perl

print "Content type: text/html\n\n";
print "Hello World\n";
-

Thank you!

/Sergeyk

(Lab Documentation -
"\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
Phone: 604 918-6360
Cell:  604 351-8966

> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 21, 2004 9:11 AM
> To: 'Tomcat Users List'
> Subject: RE: CGI Again...Servlet.service() for servlet cgi threw exception
>
>
> I'll look into this but I need a bit more info:
>
> 1. What servlet mapping did you specify in web.xml?
> 2. What URL are you requesting?
>
> Mark
>
> > -Original Message-
> > From: Sergey Kamshilin [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, November 20, 2004 12:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: CGI Again...Servlet.service() for servlet cgi threw exception
> >
> > Sorry guys, I gave up digging into it and haven't seen such
> > problems in
> > archives...
> >
> > Tomcat 4.1.31 on Solaris.
> >
> > I enabled cgi scripting:
> > changes in web.xml:
> > --
> > 
> > cgi
> >
> > org.apache.catalina.servlets.CGIServlet
> > 
> >   debug
> >   6
> > 
> > 
> >   cgiPathPrefix
> >   /WEB-INF/cgi-bin/
> > 
> > 5
> > 
> > --
> > renamed servlets-cgi.jar
> >
> > The script is
> > /usr/jakarta-tomcat/webapps/ROOT/WEB-INF/cgi-bin/index.pl
> > (Everything is OK, Right?)
> > 
> > when I try to access it I got the error:
> > 2004-11-19 15:53:15 cgi: findCGI: path=/index.cgi,
> > /usr/jakarta-tomcat-4.1.31/webapps/ROOT//WEB-INF/cgi-bin/
> > 2004-11-19 15:53:15 cgi: findCGI:
> > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
> > 2004-11-19 15:53:15 cgi: findCGI:
> > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
> > 2004-11-19 15:53:15 cgi: findCGI: FOUND cgi at
> > /usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin/index.cgi
> > 2004-11-19 15:53:15 StandardWrapperValve[cgi]:
> > Servlet.service() for servlet
> > cgi threw exception
> > java.lang.StringIndexOutOfBoundsException: String index out
> > of range: -2
> > at java.lang.String.substring(String.java:1444)
> > at java.lang.String.substring(String.java:1411)
> > at
> > org.apache.catalina.servlets.CGIServlet$CGIEnvironment.findCGI
> > (CGIServlet.ja
> > va:935)
> > 
> > Why the servlet makes exception What else I need to check?
> >
> > Thank you!
> >
> > /Sergeyk
> >
> > (Lab Documentation -
> > "\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
> > Phone: 604 918-6360
> > Cell:  604 351-8966
> >
> >
> > -
> > 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: CGI Again...Servlet.service() for servlet cgi threw exception

2004-11-22 Thread Phillip Qin
Remove -wT from your script.

-Original Message-
From: Sergey Kamshilin [mailto:[EMAIL PROTECTED] 
Sent: November 22, 2004 3:51 PM
To: Tomcat Users List
Subject: RE: CGI Again...Servlet.service() for servlet cgi threw exception


Hello Mark,

Servlet mapping:
-


cgi
/cgi-bin/*

-
The URL: http://zee:8080/cgi-bin/index.pl

Script index.pl:
-
#!/bin/perl

print "Content type: text/html\n\n";
print "Hello World\n";
-

Thank you!

/Sergeyk

(Lab Documentation -
"\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
Phone: 604 918-6360
Cell:  604 351-8966

> -Original Message-
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 21, 2004 9:11 AM
> To: 'Tomcat Users List'
> Subject: RE: CGI Again...Servlet.service() for servlet cgi threw 
> exception
>
>
> I'll look into this but I need a bit more info:
>
> 1. What servlet mapping did you specify in web.xml?
> 2. What URL are you requesting?
>
> Mark
>
> > -Original Message-
> > From: Sergey Kamshilin [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, November 20, 2004 12:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: CGI Again...Servlet.service() for servlet cgi threw 
> > exception
> >
> > Sorry guys, I gave up digging into it and haven't seen such problems 
> > in archives...
> >
> > Tomcat 4.1.31 on Solaris.
> >
> > I enabled cgi scripting:
> > changes in web.xml:
> > --
> > 
> > cgi
> >
> > org.apache.catalina.servlets.CGIServlet
> > 
> >   debug
> >   6
> > 
> > 
> >   cgiPathPrefix
> >   /WEB-INF/cgi-bin/
> > 
> > 5
> > 
> > --
> > renamed servlets-cgi.jar
> >
> > The script is 
> > /usr/jakarta-tomcat/webapps/ROOT/WEB-INF/cgi-bin/index.pl
> > (Everything is OK, Right?)
> > 
> > when I try to access it I got the error:
> > 2004-11-19 15:53:15 cgi: findCGI: path=/index.cgi, 
> > /usr/jakarta-tomcat-4.1.31/webapps/ROOT//WEB-INF/cgi-bin/
> > 2004-11-19 15:53:15 cgi: findCGI: 
> > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
> > 2004-11-19 15:53:15 cgi: findCGI: 
> > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
> > 2004-11-19 15:53:15 cgi: findCGI: FOUND cgi at 
> > /usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin/index.cgi
> > 2004-11-19 15:53:15 StandardWrapperValve[cgi]:
> > Servlet.service() for servlet
> > cgi threw exception
> > java.lang.StringIndexOutOfBoundsException: String index out of 
> > range: -2
> > at java.lang.String.substring(String.java:1444)
> > at java.lang.String.substring(String.java:1411)
> > at 
> > org.apache.catalina.servlets.CGIServlet$CGIEnvironment.findCGI
> > (CGIServlet.ja
> > va:935)
> > 
> > Why the servlet makes exception What else I need to check?
> >
> > Thank you!
> >
> > /Sergeyk
> >
> > (Lab Documentation -
> > "\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
> > Phone: 604 918-6360
> > Cell:  604 351-8966
> >
> >
> > 
> > -
> > 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]


!DSPAM:41a25140121671906480252!


Re: high traffic Tomcat sites out there?

2004-11-22 Thread Peter Johnson
Joseph,
Our site runs using Apache (1.3.x) and Tomcat (4.1.x) on 5 servers using 
LVS (www.linuxvirtualserver.org) for load balancing. This setup performs 
over 20M page impressions per month although we do cheat slightly by 
caching the front page every 60s and letting Apache serve it as a static 
page.

In reality you can make a small app run like a mammoth one if the coding 
is poor. On the other hand, with the right planning and coding a mammoth 
app could run like a small one (just consuming more RAM).

The only way to know for you app / environment is to perform some sort 
of testing e.g. httperf.

PJ
LAM Kwun Wa Joseph wrote:
For my Tomcat cluster I'm looking for an upper limit on the estimation of
how much traffic it may face. Say, would thousands of HTTP req/s be too
'astronomical' for a 4-node Dual P4 Xeon cluster to achieve? (I'm talking
about dynamic pages such as stock quotes and news)
Does anyone know of any high traffic JSP/servlet sites(running Tomcat or
similar servlet container)? I'm mostly interested to know what's the
typical "magnitude" of their HTTP throughput (e.g. hundreds or thousands
of HTTP/s) and what kinds of apps are they running.
Joseph Lam
-
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: CGI Again...Servlet.service() for servlet cgi threw exception

2004-11-22 Thread Sergey Kamshilin
Phillip,

Where do I have -wT???

/Sergeyk

(Lab Documentation -
"\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
Phone: 604 918-6360
Cell:  604 351-8966

> -Original Message-
> From: Phillip Qin [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 22, 2004 1:11 PM
> To: 'Tomcat Users List'
> Subject: RE: CGI Again...Servlet.service() for servlet cgi threw
> exception
>
>
> Remove -wT from your script.
>
> -Original Message-
> From: Sergey Kamshilin [mailto:[EMAIL PROTECTED]
> Sent: November 22, 2004 3:51 PM
> To: Tomcat Users List
> Subject: RE: CGI Again...Servlet.service() for servlet cgi threw exception
>
>
> Hello Mark,
>
> Servlet mapping:
> -
> 
> 
> cgi
> /cgi-bin/*
> 
> -
> The URL: http://zee:8080/cgi-bin/index.pl
>
> Script index.pl:
> -
> #!/bin/perl
>
> print "Content type: text/html\n\n";
> print "Hello World\n";
> -
>
> Thank you!
>
> /Sergeyk
>
> (Lab Documentation -
> "\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
> Phone: 604 918-6360
> Cell:  604 351-8966
>
> > -Original Message-
> > From: Mark Thomas [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, November 21, 2004 9:11 AM
> > To: 'Tomcat Users List'
> > Subject: RE: CGI Again...Servlet.service() for servlet cgi threw
> > exception
> >
> >
> > I'll look into this but I need a bit more info:
> >
> > 1. What servlet mapping did you specify in web.xml?
> > 2. What URL are you requesting?
> >
> > Mark
> >
> > > -Original Message-
> > > From: Sergey Kamshilin [mailto:[EMAIL PROTECTED]
> > > Sent: Saturday, November 20, 2004 12:00 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: CGI Again...Servlet.service() for servlet cgi threw
> > > exception
> > >
> > > Sorry guys, I gave up digging into it and haven't seen such problems
> > > in archives...
> > >
> > > Tomcat 4.1.31 on Solaris.
> > >
> > > I enabled cgi scripting:
> > >   changes in web.xml:
> > > --
> > > 
> > > cgi
> > >
> > > org.apache.catalina.servlets.CGIServlet
> > > 
> > >   debug
> > >   6
> > > 
> > > 
> > >   cgiPathPrefix
> > >   /WEB-INF/cgi-bin/
> > > 
> > > 5
> > > 
> > > --
> > >   renamed servlets-cgi.jar
> > >
> > > The script is
> > > /usr/jakarta-tomcat/webapps/ROOT/WEB-INF/cgi-bin/index.pl
> > > (Everything is OK, Right?)
> > > 
> > > when I try to access it I got the error:
> > > 2004-11-19 15:53:15 cgi: findCGI: path=/index.cgi,
> > > /usr/jakarta-tomcat-4.1.31/webapps/ROOT//WEB-INF/cgi-bin/
> > > 2004-11-19 15:53:15 cgi: findCGI:
> > > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
> > > 2004-11-19 15:53:15 cgi: findCGI:
> > > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
> > > 2004-11-19 15:53:15 cgi: findCGI: FOUND cgi at
> > > /usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin/index.cgi
> > > 2004-11-19 15:53:15 StandardWrapperValve[cgi]:
> > > Servlet.service() for servlet
> > > cgi threw exception
> > > java.lang.StringIndexOutOfBoundsException: String index out of
> > > range: -2
> > > at java.lang.String.substring(String.java:1444)
> > > at java.lang.String.substring(String.java:1411)
> > > at
> > > org.apache.catalina.servlets.CGIServlet$CGIEnvironment.findCGI
> > > (CGIServlet.ja
> > > va:935)
> > > 
> > > Why the servlet makes exception What else I need to check?
> > >
> > > Thank you!
> > >
> > > /Sergeyk
> > >
> > > (Lab Documentation -
> > > "\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
> > > Phone: 604 918-6360
> > > Cell:  604 351-8966
> > >
> > >
> > > 
> > > -
> > > 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]
>
>
> !DSPAM:41a25140121671906480252!
>


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



Re: Re[2]: setting JSESSION variable

2004-11-22 Thread Jacob Kjome

Sorry, I don't use jk2.  However, I would think they would have made it
jsessionid aware.  I think addin the rewrite rule is the way to go, but you'll
have to get verification of that from someone else.

Good luck!

Jake

Quoting Alex Korneyev <[EMAIL PROTECTED]>:

> Hello Jacob Kjome,
>
>   lovely :)
>
>   however, since i have Apache as a middle man, i get this error:
>
> You don't have permission to access
>
> /secure;JSESSIONID=16E54F0A406582505A7A393E5307BC12&VA1=VAL1 on this server.
>
> this is related to : http://www.jguru.com/faq/view.jsp?EID=53878
>
> however, i am using mod_jk2
>
> any idea how to set this up with mod_jk2 ?
>
> alex k.
>
> Monday, November 22, 2004, 2:12:38 PM, you wrote:
>
> > Try...
>
> >
>
https://us.domain.com/secure;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3?VAR1=VAL1
>
> > Yes, order is important!
>
> > Jake
>
> > Quoting Alex Korneyev <[EMAIL PROTECTED]>:
>
> >> what is the proper way to set jsession id if i want my own id?
> >>
> >> basically the situation is as follows.
> >>
> >> my user authenticates into domain.com
> >>
> >> then depending on what his/her locale is i forward them to
> >> http://lang.domain.com * i.e. http://us.domain.com
> >>
> >> the problem is that once they authenticate and i redirect them to
> >> another server, JSESSION id is lost;
> >>
> >> is there a manual way to set it?
> >>
> >> currently i do this:
> >>
> >>
> >>
> >
>
https://us.domain.com/secure?VAR1=VAL1;JSESSIONID=7D084BCFE46540FBB779486B4E003FD3
> >>
> >> however, on the backend, when i do:
> >>
> >> request.getCookies() it is returning null
> >>
> >> any ideas?
> >>
> >> alex
> >>
> >>
> >> -
> >> 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]
>
>
>
> --
> Best regards,
>  Alexmailto:[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: CGI Again...Servlet.service() for servlet cgi threw exception

2004-11-22 Thread Phillip Qin
CGIServlet does not support -wT in your perl script. Those switches are for
debugging in perl. They are after your perl command, so, for example, if you
test.pl contains

 #!/bin/perl -wT

Then remove the -wT.

Other things to check:

- in your conf/web.xml, no need to put leading /

  cgiPathPrefix
  WEB-INF/cgi-bin/


Other than that, I can't think of any reason why you are unable to execute
scripts using CGIServlet.



-Original Message-
From: Sergey Kamshilin [mailto:[EMAIL PROTECTED] 
Sent: November 22, 2004 4:40 PM
To: Tomcat Users List
Subject: RE: CGI Again...Servlet.service() for servlet cgi threw exception


Phillip,

Where do I have -wT???

/Sergeyk

(Lab Documentation -
"\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
Phone: 604 918-6360
Cell:  604 351-8966

> -Original Message-
> From: Phillip Qin [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 22, 2004 1:11 PM
> To: 'Tomcat Users List'
> Subject: RE: CGI Again...Servlet.service() for servlet cgi threw 
> exception
>
>
> Remove -wT from your script.
>
> -Original Message-
> From: Sergey Kamshilin [mailto:[EMAIL PROTECTED]
> Sent: November 22, 2004 3:51 PM
> To: Tomcat Users List
> Subject: RE: CGI Again...Servlet.service() for servlet cgi threw 
> exception
>
>
> Hello Mark,
>
> Servlet mapping:
> -
> 
> 
> cgi
> /cgi-bin/*
> 
> -
> The URL: http://zee:8080/cgi-bin/index.pl
>
> Script index.pl:
> -
> #!/bin/perl
>
> print "Content type: text/html\n\n";
> print "Hello World\n";
> -
>
> Thank you!
>
> /Sergeyk
>
> (Lab Documentation -
> "\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
> Phone: 604 918-6360
> Cell:  604 351-8966
>
> > -Original Message-
> > From: Mark Thomas [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, November 21, 2004 9:11 AM
> > To: 'Tomcat Users List'
> > Subject: RE: CGI Again...Servlet.service() for servlet cgi threw 
> > exception
> >
> >
> > I'll look into this but I need a bit more info:
> >
> > 1. What servlet mapping did you specify in web.xml?
> > 2. What URL are you requesting?
> >
> > Mark
> >
> > > -Original Message-
> > > From: Sergey Kamshilin [mailto:[EMAIL PROTECTED]
> > > Sent: Saturday, November 20, 2004 12:00 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: CGI Again...Servlet.service() for servlet cgi threw 
> > > exception
> > >
> > > Sorry guys, I gave up digging into it and haven't seen such 
> > > problems in archives...
> > >
> > > Tomcat 4.1.31 on Solaris.
> > >
> > > I enabled cgi scripting:
> > >   changes in web.xml:
> > > --
> > > 
> > > cgi
> > >
> > > org.apache.catalina.servlets.CGIServlet
> > > 
> > >   debug
> > >   6
> > > 
> > > 
> > >   cgiPathPrefix
> > >   /WEB-INF/cgi-bin/
> > > 
> > > 5
> > > 
> > > --
> > >   renamed servlets-cgi.jar
> > >
> > > The script is 
> > > /usr/jakarta-tomcat/webapps/ROOT/WEB-INF/cgi-bin/index.pl
> > > (Everything is OK, Right?)
> > > 
> > > when I try to access it I got the error:
> > > 2004-11-19 15:53:15 cgi: findCGI: path=/index.cgi, 
> > > /usr/jakarta-tomcat-4.1.31/webapps/ROOT//WEB-INF/cgi-bin/
> > > 2004-11-19 15:53:15 cgi: findCGI: 
> > > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
> > > 2004-11-19 15:53:15 cgi: findCGI: 
> > > currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
> > > 2004-11-19 15:53:15 cgi: findCGI: FOUND cgi at 
> > > /usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin/index.cgi
> > > 2004-11-19 15:53:15 StandardWrapperValve[cgi]:
> > > Servlet.service() for servlet
> > > cgi threw exception
> > > java.lang.StringIndexOutOfBoundsException: String index out of
> > > range: -2
> > > at java.lang.String.substring(String.java:1444)
> > > at java.lang.String.substring(String.java:1411)
> > > at 
> > > org.apache.catalina.servlets.CGIServlet$CGIEnvironment.findCGI
> > > (CGIServlet.ja
> > > va:935)
> > > 
> > > Why the servlet makes exception What else I need to check?
> > >
> > > Thank you!
> > >
> > > /Sergeyk
> > >
> > > (Lab Documentation -
> > > "\\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network description")
> > > Phone: 604 918-6360
> > > Cell:  604 351-8966
> > >
> > >
> > > --
> > > --
> > > -
> > > 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]
>
>
> 
>


---

  1   2   >