RE: AJP12 to AJP13

2002-03-08 Thread Ion Larranaga

You will also have to change your JDK, as the Ajp13Connector
class uses socket.setKeepAlive(...), which was first included in JDK 1.3.

With the correct version of the JDK the only thing that must
be done is changing tomcat and mod_jk configurations.

Hope it helps,

   Ion


-Mensaje original-
De: Lance Dyas [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 08 de marzo de 2002 4:55
Para: [EMAIL PROTECTED]
Asunto: AJP12 to AJP13


I have a web app that is configured on ajp12, Is there anything I 
need to change in the app itself to get it to run on ajp13...
or is it just a question of changing tomcat configurations

I was specifically wondering I could get it to work with SSL hence the 
interest in ajp13

A few details
I am using Win2K pro, Apache 1.323 ,Mod_gzip1.319,  Mod jk 1.10, with
Tomcat 4.0 with Jdk1.22



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



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




RE: Apache Tomcat as Service on Win2k

2002-03-08 Thread Chris Pheby

Thanks Andrzej, but I tried setting up a dependency as you suggested.

Rather than edit the registry I used Service+ from
http://www.activeplus.com/.

This proved unsuccessful. Does anyone have experience of sucess with
JavaService in Tomcat 4.0.4 beta 1 - I think the problem may be that the old
jk_nt_service wrapper reports completion before Tomcat is fully loaded...?

Chris.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Andrzej Jan Taramina
Sent: 07 March 2002 13:58
To: Chris Pheby
Cc: tomcat Users List
Subject: Re: Apache  Tomcat as Service on Win2k


 I am having severe difficulties getting Apache (1.3) + Tomcat 4.0.3 to run
 as services together on either Win2k or WinXP.

 How can I ensure Apache starts running later?

You will have to go into the Win Registry and find the key
HKLM/System/CurrentControlSet/Services.  Then locate the Apache service
entry.and change it so that it has a dependency on the Tomcat service.

To figure out how to format a dependency entry, just mimic another service
that has a dependency.  Basically you add a key DependOnService (check out
the RasMan service if you have RAS installed).

I believe this will take care of the order in which the services are started
for
you at boot time.

Caveat:  Edit the Windows Registry at your OWN RISK.  I will not be
responsible for any damage you might do to your windows system by mucking
about incorrectly.
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




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




RealmJDBC question

2002-03-08 Thread RAYMOND Romain

Hello,

I would like to implement RealmJDBC to get userrole from my DB,
but I have to find the role (and so the associated table's row) from
foreign keys
depending on others parameters than user login row ...

is it clear, and anybody has links or docs about this ?

thanks

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




RE: Apache Tomcat as Service on Win2k

2002-03-08 Thread Chris Pheby

In answer to my own question, javaservice.exe/tomcat.exe seems to work with
the new beta and JDK 1.4 - I wonder why the 4.03 version didn't...

Also, setting the dependencies works as expected now as well...

Thanks everyone,


Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Chris Pheby
Sent: 08 March 2002 09:01
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Apache  Tomcat as Service on Win2k


Thanks Andrzej, but I tried setting up a dependency as you suggested.

Rather than edit the registry I used Service+ from
http://www.activeplus.com/.

This proved unsuccessful. Does anyone have experience of sucess with
JavaService in Tomcat 4.0.4 beta 1 - I think the problem may be that the old
jk_nt_service wrapper reports completion before Tomcat is fully loaded...?

Chris.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Andrzej Jan Taramina
Sent: 07 March 2002 13:58
To: Chris Pheby
Cc: tomcat Users List
Subject: Re: Apache  Tomcat as Service on Win2k


 I am having severe difficulties getting Apache (1.3) + Tomcat 4.0.3 to run
 as services together on either Win2k or WinXP.

 How can I ensure Apache starts running later?

You will have to go into the Win Registry and find the key
HKLM/System/CurrentControlSet/Services.  Then locate the Apache service
entry.and change it so that it has a dependency on the Tomcat service.

To figure out how to format a dependency entry, just mimic another service
that has a dependency.  Basically you add a key DependOnService (check out
the RasMan service if you have RAS installed).

I believe this will take care of the order in which the services are started
for
you at boot time.

Caveat:  Edit the Windows Registry at your OWN RISK.  I will not be
responsible for any damage you might do to your windows system by mucking
about incorrectly.
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




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




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




Tomcat Memory usage(Urgent!)

2002-03-08 Thread Galbayar

Hello all

Here is part of top output. Is it usual that java processes eat all of memory? ? At 
now there are 50 java processes started that running tomcat and each of them uses 59M 
memory. There is running apache server with tomcat 4 and mysql. OS is Redhat7.2 x86 . 
JDK 1.4 is installed. 

Thx

106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
Swap: 1020116K av, 0K used, 1020116K free 762320K cached

3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
.
.
.



RE: RealmJDBC question

2002-03-08 Thread Barney Hamish

The queries tomcat uses are hardcoded. Given the way JDBC Realms are
implemented on Tomcat you've only got two choices:

1. Modify the existing org.apache.tomcat.request.JDBCRealm to use the query
you want it to use.

2. Write your own request interceptor from scratch.

Have a look at the source for org.apache.tomcat.request.JDBCRealm it
shouldn't be hard to get it do what you want.
Good luck
Hamish

-Original Message-
From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:57 AM
To: [EMAIL PROTECTED]
Subject: RealmJDBC question


Hello,

I would like to implement RealmJDBC to get userrole from my DB,
but I have to find the role (and so the associated table's row) from
foreign keys
depending on others parameters than user login row ...

is it clear, and anybody has links or docs about this ?

thanks

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

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




RE: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Chris Pheby

Each of these processes correlates to a /thread/. The processes are sharing
memory for the most part - something that ps or top don't make clear.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Galbayar
Sent: 08 March 2002 09:24
To: Tomcat Users List
Subject: Tomcat Memory usage(Urgent!)


Hello all

Here is part of top output. Is it usual that java processes eat all of
memory? ? At now there are 50 java processes started that running tomcat and
each of them uses 59M memory. There is running apache server with tomcat 4
and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.

Thx

106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
Swap: 1020116K av, 0K used, 1020116K free 762320K cached

3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
.
.
.



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




Re: RealmJDBC question

2002-03-08 Thread RAYMOND Romain

Thanks and have a good day

Barney Hamish a écrit :
 
 The queries tomcat uses are hardcoded. Given the way JDBC Realms are
 implemented on Tomcat you've only got two choices:
 
 1. Modify the existing org.apache.tomcat.request.JDBCRealm to use the query
 you want it to use.
 
 2. Write your own request interceptor from scratch.
 
 Have a look at the source for org.apache.tomcat.request.JDBCRealm it
 shouldn't be hard to get it do what you want.
 Good luck
 Hamish
 
 -Original Message-
 From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 08, 2002 9:57 AM
 To: [EMAIL PROTECTED]
 Subject: RealmJDBC question
 
 Hello,
 
 I would like to implement RealmJDBC to get userrole from my DB,
 but I have to find the role (and so the associated table's row) from
 foreign keys
 depending on others parameters than user login row ...
 
 is it clear, and anybody has links or docs about this ?
 
 thanks
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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




Problems with resources

2002-03-08 Thread Lenhart Stefan

--- NOTE: Sorry if you recieved this mail earlier today, but I'm not sure
whether it has been sent at all... ---

 Hi everybody!
 
 I linked Tomcat 4.0.3 with Apache 1.3.23 using the webapp module. My
 webapp is running perfectly using Tomcat, i.e. using the url
 http://myserver:8080/app. When using Apache (http://myserver/app),
 I get to view the intro page and can follow links there. But I do not get
 to see images located in the app/images directory, even though the browser
 seems to be searching in the correct directory. 
 
 Do I have to do any special setup, e.g. in server.xml?
 
 Many thanks!
 
 Stefan

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




Newbies Question

2002-03-08 Thread Neo Gigs

Hi there,

Is Tomcat 3.3a for Sun is compatible with JDK 1.3.1_02? What are the undocumented 
steps to setup the Tomcat server? Can that being done together with JDBC driver from 
Oracle on 7.3.4?

Thanks

Neo



Re: RealmJDBC question

2002-03-08 Thread Christian Froehler

RAYMOND Romain wrote:
 Hello,
 
 I would like to implement RealmJDBC to get userrole from my DB,
 but I have to find the role (and so the associated table's row) from
 foreign keys
 depending on others parameters than user login row ...
 
 is it clear, and anybody has links or docs about this ?
 
 thanks

Just another suggestion:

If your RDBMS supports it, you could use a view. For example, in 
postgresql this should work:

CREATE VIEW jdbcrealm_user_role
AS SELECT user_login, role_name
FROM t_user, t_role, t_user_role
WHERE t_user.user_id = t_user_role.user_id
AND t_role_role_id = t_role.role_id;

This view delivers a simplified view of a more complex user/role 
database structure to jdbcrealm.

You have to grant the select right to the rdbms-user tomcat uses.



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




Re: Error Using 4.0.1 Manager

2002-03-08 Thread Jean-Luc BEAUDET

[EMAIL PROTECTED] a Ýcrit :

 Check if there is a corresponding Context/ element defined for
 manager in server.xml.

 There should be a manager under webapps:
 Context path=/manager docBase=manager debug=0 privileged
 =true/

 Thanks.
 RS

 Mike Millson [EMAIL PROTECTED] on 03/06/2002 03:52:07 PM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:   Tomcat Users List [EMAIL PROTECTED]
 cc:

 Subject:  Error Using 4.0.1 Manager

 OS: RH7.1
 Apache: 1.3.22
 Tomcat: 4.0.1

 I added the following to /conf/tomcat-users.xml in the tomcat-users
 block:
 user name=somename password=somepass roles=manager /

 I added the following to httpd.conf:
 WebAppDeploy manager conn /manager/

 I enter this URL:
 http://myserver/manager/reload?path=/examples

 The authentication box comes up and I enter my username and password, then
 I
 get the following error:

 javax.servlet.ServletException: Error allocating a servlet instance
 ManagerServlet is privileged and cannot be loaded by this web application

 There is nothing in Catalina.out.

 I saw searching JGuru that someone else posted this question on 1/10/2002,
 but there was no followup answer. Does anyone have any ideas what I need to
 do to get this working or any steps I can take to narrow down where the
 problem may be?

 Thank you,
 Mike Millson
 Web Systems Engineer
 Sun Certified Programmer for Java2 Platform
 
 AableTech Solutions, Inc.
 770.414.8834
 404.219.3177 cell
 770.414.8206 fax
 http://www.atsga.com
 

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

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

I used to have this kind of pb.

The best way to avoid it, according yu're using Apache/Tomcat/Warp, is to
declare a Host in the Apache/Tomcat part when setting up yur conf.

Without it, yu'll get this type of error message.

Hope this help.

nb: i had so mab=ny triubles to get it work in such way, that yu can contact
me if yu need more informations.

Jean-Luc B :O)



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




IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Anders Rundgren

Hi,
I have a Tomcat app using sessions based on cookies (i.e. std way) that
works with a huge set of browsers and OSes.

But on Mac using IE 5 it does not.  The culprit seems to be that session
cookies are not compatible in some way as they are not visible in
TC.

Is this a known problem?

BTW, the configuration is Apache on Linux, using ajp1.3 and TC 4.0.2

cheers,
Anders R


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




Re: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Boily Sylvain

hi all ,

Well how is possible to give back memory ? Because after 2 days the 
memory is full.
thx

Chris Pheby wrote:

Each of these processes correlates to a /thread/. The processes are sharing
memory for the most part - something that ps or top don't make clear.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Galbayar
Sent: 08 March 2002 09:24
To: Tomcat Users List
Subject: Tomcat Memory usage(Urgent!)


Hello all

Here is part of top output. Is it usual that java processes eat all of
memory? ? At now there are 50 java processes started that running tomcat and
each of them uses 59M memory. There is running apache server with tomcat 4
and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.

Thx

106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
Swap: 1020116K av, 0K used, 1020116K free 762320K cached

3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
.
.
.



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



-- 
 
*/Sylvain Boily/*
/Administrateur Linux/

cid:[EMAIL PROTECTED]

/*Adresse :* 39, bd Anatole France -  93200 St-Denis -  France/
/*tel :*0148131814/
/*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]   
*web:*http://www.linkbynet.fr/





Re: Tomcat Memory usage(Urgent!)

2002-03-08 Thread David Cassidy

within your program you might want to check out

Runtime runtime = Runtime.getRuntime;
runtime.freeMemory() vs
runtime.totalMemory()

This will let you know what it's really using..
But as top says it's only 59M then I'd be looking at
other processes in your ps list

Hope this helps

D



Boily Sylvain wrote:

 hi all ,

 Well how is possible to give back memory ? Because after 2 days the
 memory is full.
 thx

 Chris Pheby wrote:

 Each of these processes correlates to a /thread/. The processes are
 sharing
 memory for the most part - something that ps or top don't make clear.
 
 Chris
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 ]
 On Behalf Of Galbayar
 Sent: 08 March 2002 09:24
 To: Tomcat Users List
 Subject: Tomcat Memory usage(Urgent!)
 
 
 Hello all
 
 Here is part of top output. Is it usual that java processes eat all of
 memory? ? At now there are 50 java processes started that running
 tomcat and
 each of them uses 59M memory. There is running apache server with
 tomcat 4
 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.
 
 Thx
 
 106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
 CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
 Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
 Swap: 1020116K av, 0K used, 1020116K free 762320K cached
 
 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 .
 .
 .
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --

 */Sylvain Boily/*
 /Administrateur Linux/

 cid:[EMAIL PROTECTED]

 /*Adresse :* 39, bd Anatole France -  93200 St-Denis -  France/
 /*tel :*0148131814/
 /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 *web:*http://www.linkbynet.fr/


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




RE: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Arnaud Heritier

Are you sure that there's not old processes.
I saw on AIX with TC4.0.1 that when i shutdowned TC, the java process wasn't killed.
So I needed to kill it manually.

Isn't there the same problem.

Do all these processes disappeare when you stop TC ??

Arno

 -Message d'origine-
 De:   David Cassidy [SMTP:[EMAIL PROTECTED]]
 Date: vendredi 8 mars 2002 12:05
 A:Tomcat Users List
 Objet:Re: Tomcat Memory usage(Urgent!)
 
 within your program you might want to check out
 
 Runtime runtime = Runtime.getRuntime;
 runtime.freeMemory() vs
 runtime.totalMemory()
 
 This will let you know what it's really using..
 But as top says it's only 59M then I'd be looking at
 other processes in your ps list
 
 Hope this helps
 
 D
 
 
 
 Boily Sylvain wrote:
 
  hi all ,
 
  Well how is possible to give back memory ? Because after 2 days the
  memory is full.
  thx
 
  Chris Pheby wrote:
 
  Each of these processes correlates to a /thread/. The processes are
  sharing
  memory for the most part - something that ps or top don't make clear.
  
  Chris
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  ]
  On Behalf Of Galbayar
  Sent: 08 March 2002 09:24
  To: Tomcat Users List
  Subject: Tomcat Memory usage(Urgent!)
  
  
  Hello all
  
  Here is part of top output. Is it usual that java processes eat all of
  memory? ? At now there are 50 java processes started that running
  tomcat and
  each of them uses 59M memory. There is running apache server with
  tomcat 4
  and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.
  
  Thx
  
  106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped
  CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
  Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff
  Swap: 1020116K av, 0K used, 1020116K free 762320K cached
  
  3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
  3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
  3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
  3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
  3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
  3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
  3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
  3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
  3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
  .
  .
  .
  
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
  --
 
  */Sylvain Boily/*
  /Administrateur Linux/
 
  cid:[EMAIL PROTECTED]
 
  /*Adresse :* 39, bd Anatole France -  93200 St-Denis -  France/
  /*tel :*0148131814/
  /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  *web:*http://www.linkbynet.fr/
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


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




RE: Tomcat Memory usage(Urgent!)

2002-03-08 Thread Manish Bhatnagar

We faced this problem some time back. The memory usage
seemed to increase to the point where no other application
could be started. Many times we had to restart the NT
machine itself. We did a thorough code-review and fixed the
leaks. But even after that the Tomcat memory usage kept on
increasing, although it came down, all of a sudden, to a
very low value (600K). So garbage collection is being done
more frequently, I would say. When there are more users
connected to the Web server and accessing the Servlets/JSPs,
the memory usage keeps on increasing... just to give
numbers... we accessed our Web application using 50+
instances of browsers (IE, Netscape) and the memory shot to
200M. After some time (not immediately) when we stopped
accessing the Web server it came down to 24M. You can find
more pointers on JDC at http://java.sun.com. I remember
discussing this topic there.
Thanks
-mb-

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf
Of David Cassidy
Sent: Friday, March 08, 2002 4:35 PM
To: Tomcat Users List
Subject: Re: Tomcat Memory usage(Urgent!)


within your program you might want to check out

Runtime runtime = Runtime.getRuntime;
runtime.freeMemory() vs
runtime.totalMemory()

This will let you know what it's really using..
But as top says it's only 59M then I'd be looking at
other processes in your ps list

Hope this helps

D



Boily Sylvain wrote:

 hi all ,

 Well how is possible to give back memory ? Because after 2
days the
 memory is full.
 thx

 Chris Pheby wrote:

 Each of these processes correlates to a /thread/. The
processes are
 sharing
 memory for the most part - something that ps or top don't
make clear.
 
 Chris
 
 -Original Message-
 From:
[EMAIL PROTECTED]
org

[mailto:tomcat-user-return-13170-chris=tfe-group.com@jakart
a.apache.org
 ]
 On Behalf Of Galbayar
 Sent: 08 March 2002 09:24
 To: Tomcat Users List
 Subject: Tomcat Memory usage(Urgent!)
 
 
 Hello all
 
 Here is part of top output. Is it usual that java
processes eat all of
 memory? ? At now there are 50 java processes started that
running
 tomcat and
 each of them uses 59M memory. There is running apache
server with
 tomcat 4
 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed.
 
 Thx
 
 106 processes: 105 sleeping, 1 running, 0 zombie, 0
stopped
 CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle
 Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd,
129004K buff
 Swap: 1020116K av, 0K used, 1020116K free 762320K cached
 
 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java
 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java
 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java
 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java
 .
 .
 .
 
 
 
 --
 To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]
 

 --

 */Sylvain Boily/*
 /Administrateur Linux/

 cid:[EMAIL PROTECTED]

 /*Adresse :* 39, bd Anatole France -  93200 St-Denis -
France/
 /*tel :*0148131814/
 /*mail :*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 *web:*http://www.linkbynet.fr/


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



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




SSL: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Anders Rundgren

Now i have digged a little bit further in this.
The IE 5 Mac missing session cookie problem only occurs when using SSL.
Too bad our app needs SSL.

Anders

- Original Message - 
From: Anders Rundgren [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 11:27
Subject: IE 5 on Mac is incompatible with TC 4?


Hi,
I have a Tomcat app using sessions based on cookies (i.e. std way) that
works with a huge set of browsers and OSes.

But on Mac using IE 5 it does not.  The culprit seems to be that session
cookies are not compatible in some way as they are not visible in
TC.

Is this a known problem?

BTW, the configuration is Apache on Linux, using ajp1.3 and TC 4.0.2

cheers,
Anders R


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



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




Re: RealmJDBC question

2002-03-08 Thread RAYMOND Romain

yeah thanks it is a good idea which is an ideal solution for my
application

Christian Froehler a écrit :
 
 RAYMOND Romain wrote:
  Hello,
 
  I would like to implement RealmJDBC to get userrole from my DB,
  but I have to find the role (and so the associated table's row) from
  foreign keys
  depending on others parameters than user login row ...
 
  is it clear, and anybody has links or docs about this ?
 
  thanks
 
 Just another suggestion:
 
 If your RDBMS supports it, you could use a view. For example, in
 postgresql this should work:
 
 CREATE VIEW jdbcrealm_user_role
 AS SELECT user_login, role_name
 FROM t_user, t_role, t_user_role
 WHERE t_user.user_id = t_user_role.user_id
 AND t_role_role_id = t_role.role_id;
 
 This view delivers a simplified view of a more complex user/role
 database structure to jdbcrealm.
 
 You have to grant the select right to the rdbms-user tomcat uses.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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




AW: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Ralph Einfeldt

I think they best way you can solve this problem, is to 
use response.encodeUrl() on all links to enable the session 
tracking by url.

 -Ursprüngliche Nachricht-
 Von: Anders Rundgren [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 8. März 2002 13:04
 An: Tomcat Users List
 Betreff: SSL: IE 5 on Mac is incompatible with TC 4?
 
 
 Now i have digged a little bit further in this.
 The IE 5 Mac missing session cookie problem only occurs when 
 using SSL.
 Too bad our app needs SSL.
 
 Anders
 

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




Re: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Anders Rundgren

Ralph,
Thanx for your advice but this is likely to be a bug in TC 4.0.2 that cannot be
too hard to fix.  I just found-out that it only affects SSL, which I guess is the
reason no one has seen it before.

URL rewriting is a possibility but our app will get ugly, so I prefer to
launch without Mac.

Anders

- Original Message -
From: Ralph Einfeldt 
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 13:11
Subject: AW: IE 5 on Mac is incompatible with TC 4?


I think they best way you can solve this problem, is to
use response.encodeUrl() on all links to enable the session
tracking by url.

 -Ursprüngliche Nachricht-
 Von: Anders Rundgren [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 8. März 2002 13:04
 An: Tomcat Users List
 Betreff: SSL: IE 5 on Mac is incompatible with TC 4?


 Now i have digged a little bit further in this.
 The IE 5 Mac missing session cookie problem only occurs when
 using SSL.
 Too bad our app needs SSL.

 Anders


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



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




AW: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Ralph Einfeldt

I got the impression from your previous posts, that
the browser is the source not tomcat.

 -Ursprüngliche Nachricht-
 Von: Anders Rundgren [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 8. März 2002 13:19
 An: Tomcat Users List
 Betreff: Re: IE 5 on Mac is incompatible with TC 4?
 
 
 Ralph,
 Thanx for your advice but this is likely to be a bug in TC 
 4.0.2 that cannot be too hard to fix.  I just found-out that 
 it only affects SSL, which I guess is the reason no one has 
 seen it before.
 
 URL rewriting is a possibility but our app will get ugly, 
 so I prefer to
 launch without Mac.
 
 Anders
 

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




Re: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Anders Rundgren

Ralph,

I got the impression from your previous posts, that
the browser is the source not tomcat.

Well  This is matter of taste.  As IE 5 is the current Mac release and
IE is relatively popular even by Mac-user's, I believe that TC should
adopt to IE 5 rather than the revse.  A *really* strange thing is that
persistant cookies work.  But the problem is only related to SSL.

/anders




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




jar's include ...

2002-03-08 Thread Julien OIX


 
 hi everyone,
 
 I'm using these RPM's on a Linux RedHat 7.1
 
 apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2
 mod_bandwidth-2.0.3-2)
 
 tomcat4-4.0.2-3
 servletapi4-4.0.2-1
 xerces-j-1.4.4-2
 regexp-1.2-5
 
 Before, I used a tomcat4-4.0.1.x RPM's, which included mail.jar and
 activation.jar
 in /var/tomcat4/common/lib ;
 but with tomcat4-4.0.2.x, they are not included anymore.
 
 which RPM gives them now ? neither servletapi4-4.0.2-1,
xerces-j-1.4.4-2 nor regexp-1.2-5, which are required to install
tomcat4-4.à.2.x ...

So, I didn't find any RPm which coud provide me mail.jar,
activation.jar, ...

any ideas ?
 
 thanks in advance.
 --
 Julien OIX
 Service Informatique de Gestion
 Tél: 02 40 99 83 65
 mail: [EMAIL PROTECTED]

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




How can I resolve this IllegalStateException: Response has alrea dy been committed problem?

2002-03-08 Thread lindsay . hamoudi

[TOMCAT-3.3
JDK 1.3.1
WIN 2000]

Hi everyone,

I have a webapp that consists of various servlets - each of which is
associated with one or more JSPs.  The way it works is that someone logs in
(by calling a servlet which forwards them to the JSP form).  This servlet
then processes the input and then (upon successful authorisation) forwards
control to another servlet (which then displays another JSP and handles user
requests from this JSP).  This servlet then processes the user requests and
forwards control to the relevant servlet, which then forwards them to a JSP
page.

My application is working just fine, apart from the fact that I keep getting
these annoying IllegalStateExceptions.  Here is the full exception:

2002-03-08 11:20:55 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /servlet/Create + null) - java.lang.IllegalStateException:
Response has already been committed
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendError(Unknown Source)
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendRedirect(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:163)
at zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

2002-03-08 11:20:55 - ErrorHandler: Error loop for R( /AgentGenerator +
/servlet/Create + null) error java.lang.IllegalS
tateException: Response has already been committed


I have tried (and tried, and tried, ...)  to find some information on the
web, but have yet to find a solution.  It seems I can't forward more than
once from the same servlet, but I'm not even sure if I'm right about that.

If anyone can shed any light on this issue it would be most appreciated.

Thanks,

Lindsay

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




RE: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Randy Layman


I haven't been following this thread but it seems like you are
saying that Tomcat should be modified to work correctly with IE 5.  The
problem with that is that Tomcat is an reference implementation of a
particular spec (JSP/Servlet) which dictates how things have to work - it is
the reference by which all others are implemented.  It can't change to
accommodate bugs or special features of client software.

Randy

 -Original Message-
 From: Anders Rundgren [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 08, 2002 7:51 AM
 To: Tomcat Users List
 Subject: Re: IE 5 on Mac is incompatible with TC 4?
 
 
 Ralph,
 
 I got the impression from your previous posts, that
 the browser is the source not tomcat.
 
 Well  This is matter of taste.  As IE 5 is the current 
 Mac release and
 IE is relatively popular even by Mac-user's, I believe that TC should
 adopt to IE 5 rather than the revse.  A *really* strange thing is that
 persistant cookies work.  But the problem is only related to SSL.
 
 /anders
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: How can I resolve this IllegalStateException: Response has alrea dy been committed problem?

2002-03-08 Thread Ryan Daigle

So at what point in this process are you getting this error?  I'm not sure I
understand the flow of the application, but it seems to be the pretty
standard jsp to servlet to jsp flow?

In my experiences, I usually get this error when I try to perform a redirect
within a jsp that has already started writing out to the response.  I don't
believe this is your scenario (based on your explanation).  Perhaps you are
redirecting or forwarding your response to another servlet/jsp and are then
trying to manipulate that response?  If so, you would need to do all
manipulation first, then forward your request on.


-Ryan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:01 AM
To: [EMAIL PROTECTED]
Subject: How can I resolve this IllegalStateException: Response has
alrea dy been committed problem?


[TOMCAT-3.3
JDK 1.3.1
WIN 2000]

Hi everyone,

I have a webapp that consists of various servlets - each of which is
associated with one or more JSPs.  The way it works is that someone logs in
(by calling a servlet which forwards them to the JSP form).  This servlet
then processes the input and then (upon successful authorisation) forwards
control to another servlet (which then displays another JSP and handles user
requests from this JSP).  This servlet then processes the user requests and
forwards control to the relevant servlet, which then forwards them to a JSP
page.

My application is working just fine, apart from the fact that I keep getting
these annoying IllegalStateExceptions.  Here is the full exception:

2002-03-08 11:20:55 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /servlet/Create + null) - java.lang.IllegalStateException:
Response has already been committed
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendError(Unknown Source)
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendRedirect(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:163)
at zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

2002-03-08 11:20:55 - ErrorHandler: Error loop for R( /AgentGenerator +
/servlet/Create + null) error java.lang.IllegalS
tateException: Response has already been committed


I have tried (and tried, and tried, ...)  to find some information on the
web, but have yet to find a solution.  It seems I can't forward more than
once from the same servlet, but I'm not even sure if I'm right about that.

If anyone can shed any light on this issue it would be most appreciated.

Thanks,

Lindsay

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

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




Forte user with Tomcat 3.2 installation problem under Linux

2002-03-08 Thread Burt Gildenhuys

Dear Tomcat Community,

I am using Tomcat 3.2 which is bundled in with Forte 3.0 for Java. This
works fine in the development environment under Mandrake Linux 8.1. Now
I want to deploy a web application, for this purpose I have Apache 1.3
running to handle the static pages. For the *.war files I need Tomcat.
Presumably I need to download Tomcat and run it without running up the
Forte IDE??

I downloaded the file 'jakarta-tomcat-3.2.4.tar.gz', used winzip to
decompress the data and ftp'ed this onto my linux machine. I set up the
environment variables as shown below. Then I needed to edit
$TOMCAT_HOME/bin/startup.sh as follows:

· uncomment the 2'nd line 'java -cp runner .'
·  chmod to make it executable.

When I run it I get :

bash: ./startup.sh: bad interpreter: no such file or directory

executing '$java' from the command line with no arguments shows that the
jre is being found in the path. The only other problem I can think of is
that the CLASSPATH is incorrect. Can any body please help me to solve
this problem??

---
echo Welcome Tomcat!
PATH=$PATH:/home/java/forte4j/bin/:/home/java/j2sdk1.4.0/bin ; export
PATH
echo PATH = $PATH
JAVA_PATH=/home/java/j2sdk1.4.0/ ; export JAVA_PATH
JDK_HOME=/home/java/j2sdk1.4.0/ ; export JDK_HOME
echo JAVA_PATH = $JAVA_PATH
TOMCAT_HOME=/home/tomcat/jakarta-tomcat-3.2.4 ; export TOMCAT_HOME
echo TOMCAT_HOME = $TOMCAT_HOME
NPX_PLUGIN_PATH=/home/java/j2sdk1.4.0/jre/plugin/i386/ns4/ ; export
NPX_PLUGIN_PATH
echo JDK_HOME = $JDK_HOME
echo NPX_PLUGIN_PATH = $NPX_PLUGIN_PATH
CLASSPATH=.:/usr/share/pgsql/jdbc7.0-1.2.jar ; export CLASSPATH
echo CLASSPATH = $CLASSPATH
JAVA_HOME=/home/java/j2sdk1.4.0/ ; export JAVA_HOME
echo JAVA_HOME = $JAVA_HOME
---

Regards,  

Burt Gildenhuys
E-Mail:  [EMAIL PROTECTED]
Tel: +2711-899-6079
Fax: +2711-899-6378
Mobile:  +2782-895-5796



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




Re: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Anders Rundgren

Randy,
I don't know if Mac IE 5 is doing something *outside* of the cookie-specification
(which governs this rather than the servlet specification), but I'm pretty sure that
the original Apache-server handles this differently than Tomcat.  Do you know
any Apache SSL-site using session-cookies that I could test?

/anders

- Original Message - 
From: Randy Layman 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 13:19
Subject: RE: IE 5 on Mac is incompatible with TC 4?



I haven't been following this thread but it seems like you are
saying that Tomcat should be modified to work correctly with IE 5.  The
problem with that is that Tomcat is an reference implementation of a
particular spec (JSP/Servlet) which dictates how things have to work - it is
the reference by which all others are implemented.  It can't change to
accommodate bugs or special features of client software.

Randy

 -Original Message-
 From: Anders Rundgren [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 08, 2002 7:51 AM
 To: Tomcat Users List
 Subject: Re: IE 5 on Mac is incompatible with TC 4?
 
 
 Ralph,
 
 I got the impression from your previous posts, that
 the browser is the source not tomcat.
 
 Well  This is matter of taste.  As IE 5 is the current 
 Mac release and
 IE is relatively popular even by Mac-user's, I believe that TC should
 adopt to IE 5 rather than the revse.  A *really* strange thing is that
 persistant cookies work.  But the problem is only related to SSL.
 
 /anders
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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



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




RE: Forte user with Tomcat 3.2 installation problem under Linux

2002-03-08 Thread Martin van den Bemt

You have to untar it on your linux box, because of line conversions in text
files.

Mvgr,
Martin


 -Original Message-
 From: Burt Gildenhuys [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 08, 2002 14:31
 To: [EMAIL PROTECTED]
 Subject: Forte user with Tomcat 3.2 installation problem under Linux


 Dear Tomcat Community,

 I am using Tomcat 3.2 which is bundled in with Forte 3.0 for Java. This
 works fine in the development environment under Mandrake Linux 8.1. Now
 I want to deploy a web application, for this purpose I have Apache 1.3
 running to handle the static pages. For the *.war files I need Tomcat.
 Presumably I need to download Tomcat and run it without running up the
 Forte IDE??

 I downloaded the file 'jakarta-tomcat-3.2.4.tar.gz', used winzip to
 decompress the data and ftp'ed this onto my linux machine. I set up the
 environment variables as shown below. Then I needed to edit
 $TOMCAT_HOME/bin/startup.sh as follows:

 · uncomment the 2'nd line 'java -cp runner .'
 ·  chmod to make it executable.

 When I run it I get :

 bash: ./startup.sh: bad interpreter: no such file or directory

 executing '$java' from the command line with no arguments shows that the
 jre is being found in the path. The only other problem I can think of is
 that the CLASSPATH is incorrect. Can any body please help me to solve
 this problem??

 ---
 echo Welcome Tomcat!
 PATH=$PATH:/home/java/forte4j/bin/:/home/java/j2sdk1.4.0/bin ; export
 PATH
 echo PATH = $PATH
 JAVA_PATH=/home/java/j2sdk1.4.0/ ; export JAVA_PATH
 JDK_HOME=/home/java/j2sdk1.4.0/ ; export JDK_HOME
 echo JAVA_PATH = $JAVA_PATH
 TOMCAT_HOME=/home/tomcat/jakarta-tomcat-3.2.4 ; export TOMCAT_HOME
 echo TOMCAT_HOME = $TOMCAT_HOME
 NPX_PLUGIN_PATH=/home/java/j2sdk1.4.0/jre/plugin/i386/ns4/ ; export
 NPX_PLUGIN_PATH
 echo JDK_HOME = $JDK_HOME
 echo NPX_PLUGIN_PATH = $NPX_PLUGIN_PATH
 CLASSPATH=.:/usr/share/pgsql/jdbc7.0-1.2.jar ; export CLASSPATH
 echo CLASSPATH = $CLASSPATH
 JAVA_HOME=/home/java/j2sdk1.4.0/ ; export JAVA_HOME
 echo JAVA_HOME = $JAVA_HOME
 ---

 Regards,

 Burt Gildenhuys
 E-Mail:  [EMAIL PROTECTED]
 Tel: +2711-899-6079
 Fax: +2711-899-6378
 Mobile:  +2782-895-5796



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




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




RE: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Joe Laffey

On Fri, 8 Mar 2002, Randy Layman wrote:


   I haven't been following this thread but it seems like you are
 saying that Tomcat should be modified to work correctly with IE 5.  The
 problem with that is that Tomcat is an reference implementation of a
 particular spec (JSP/Servlet) which dictates how things have to work - it is
 the reference by which all others are implemented.  It can't change to
 accommodate bugs or special features of client software.


Who cares if it's a reference implementation? If it doesn't work with
current mainstream browsers then it is useless. No company running a
ecommerce site wants to alienate all Mac IE5 users. It would be idiotic,
not mention bad business.

Tomcat must work with all current mainstream browsers (at least NS and IE)
on all all major platforms for it to be useful. Typical sers do not
upgrade their browsers. So everything else must be upgraded to work with
them, bugs and all.

My $0.02

--
Joe Laffey  |  Want to convert subnet masks between different
LAFFEY Computer Imaging |  notations, or figure the number of IPs in a block?
St. Louis, MO   |  Whatmask-It's FREE - www.laffeycomputer.com/wm.html
--


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




RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread lindsay . hamoudi

OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has already
been committed
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

But the page is being displayed OK, and the application continues to
function properly.  I'd just like to get rid of this exception somehow.
Maybe the way I am forwarding so much is not the best way to do things, but
it is working.  What alternatives are there?  Oh, I get the same sort of
messages when I substitute requestDispatcher.forward() with
response.sendRedirect().

Many thanks if anyone can assist,

Cheers

Lindsay



 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 12:58
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

So at what point in this process are you getting this error?  I'm not sure I
understand the flow of the application, but it seems to be the pretty
standard jsp to servlet to jsp flow?

In my experiences, I usually get this error when I try to perform a redirect
within a jsp that has already started writing out to the response.  I don't
believe this is your scenario (based on your explanation).  Perhaps you are
redirecting or forwarding your response to another servlet/jsp and are then
trying to manipulate that response?  If so, you would need to do all
manipulation first, then forward your request on.


-Ryan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:01 AM
To: [EMAIL PROTECTED]
Subject: How can I resolve this IllegalStateException: Response has
alrea dy been committed problem?


[TOMCAT-3.3
JDK 1.3.1
WIN 2000]

Hi everyone,

I have a webapp that consists of various servlets - each of which is
associated with one or more JSPs.  The way it works is that someone logs in
(by calling a servlet which forwards them to the JSP form).  This servlet
then processes the input and then (upon successful authorisation) forwards
control to another servlet (which then displays another JSP and handles user
requests from this JSP).  This servlet then processes the user requests and
forwards control to the relevant servlet, which then forwards them to a JSP
page.

My application is working just fine, apart from the fact that I keep getting
these annoying IllegalStateExceptions.  Here is the full exception:

2002-03-08 11:20:55 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /servlet/Create + null) - java.lang.IllegalStateException:
Response has already been committed
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendError(Unknown Source)
at

RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread Ryan Daigle

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
jsp:include... after manipulating the session can cause this exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has already
been committed
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

But the page is being displayed OK, and the application continues to
function properly.  I'd just like to get rid of this exception somehow.
Maybe the way I am forwarding so much is not the best way to do things, but
it is working.  What alternatives are there?  Oh, I get the same sort of
messages when I substitute requestDispatcher.forward() with
response.sendRedirect().

Many thanks if anyone can assist,

Cheers

Lindsay

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




RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread lindsay . hamoudi

The exception seems to be occurring because the Home servlet forwards more
than once (to different locations) - first to home.jsp, then later to the
Create servlet.
It is definitely the fact that it is forwarding to more than one place, that
is causing the problem.  I know this because if I call the Login servlet and
fail the login authorization - this servlet consequently forwards to
login.jsp more than once (first - to display the fresh login page, and
second - to prompt user to try again).  This however does not give me an
exception.
Given that my Home servlet is like the central servlet, it needs to be
capable of forwarding to a variety of places, depending on the activity
selected by the user. 
Ryan - I have looked at create.jsp and, as far as my little mind can see, it
does not play with the response object at all.  All it does is get a few
session attributes and fit them into the page using %= blablabla %.  Could
that be a problem?
This problem is not isolated to the Create example.  There are other
activities the user can choose which all follow exactly the same forwarding
mechanism (except to different servlets), and these give exactly the same
exception.


Lindsay

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:25
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
jsp:include... after manipulating the session can cause this exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has already
been committed
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

But the page is being displayed OK, and the application continues to
function properly.  I'd just like to get rid of this exception somehow.
Maybe the way I am forwarding so much is not the best way to do things, but
it is working.  What alternatives are there?  Oh, I get the same sort of
messages when I substitute requestDispatcher.forward() with
response.sendRedirect().

Many thanks if anyone can assist,

Cheers

Lindsay

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

RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread Wagoner, Mark

Is it possible to change the Create servlet to a simple class that accepts
the request as a parameter?  Since it does not manipulate the response
object, there is no need to pass it.  Also, you can then call Create using a
regular method invocation, rather than using forward.

It may require some work, but you could eliminate the double forward
issue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


The exception seems to be occurring because the Home servlet forwards more
than once (to different locations) - first to home.jsp, then later to the
Create servlet.
It is definitely the fact that it is forwarding to more than one place, that
is causing the problem.  I know this because if I call the Login servlet and
fail the login authorization - this servlet consequently forwards to
login.jsp more than once (first - to display the fresh login page, and
second - to prompt user to try again).  This however does not give me an
exception.
Given that my Home servlet is like the central servlet, it needs to be
capable of forwarding to a variety of places, depending on the activity
selected by the user. 
Ryan - I have looked at create.jsp and, as far as my little mind can see, it
does not play with the response object at all.  All it does is get a few
session attributes and fit them into the page using %= blablabla %.  Could
that be a problem?
This problem is not isolated to the Create example.  There are other
activities the user can choose which all follow exactly the same forwarding
mechanism (except to different servlets), and these give exactly the same
exception.


Lindsay

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:25
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
jsp:include... after manipulating the session can cause this exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has already
been committed
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at 

RE: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Justin Rowles

From: Anders Rundgren [mailto:[EMAIL PROTECTED]]
 
 Well  This is matter of taste.  As IE 5 is the current 
 Mac release and
 IE is relatively popular even by Mac-user's, I believe that TC should
 adopt to IE 5 rather than the revse.  A *really* strange thing is that
 persistant cookies work.  But the problem is only related to SSL.

Sounds like you want the TomCat developers to write code so they can receive a cookie 
that the Mac IE isn't sending.

If you have example code I'd love to see it ;-)

J.
-- 
You're only jealous cos the little penguins are talking to me. 



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




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




RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread Ryan Daigle

My impression of this situation was that at runtime there was only one
request forward happening.  The Home servlet may have more than one forward
call, but at runtime only one gets executed (per request), right?  So within
each servlet only one forward happens, but a string of servlets has more
than one forward total.

Is this correct?

Ryan Daigle
Java Developer 
Health Decisions, Inc. 
1512 E. Franklin St, Suite 200 
Chapel Hill, NC 27514 
(919) 967-2399 ext: 251 
[EMAIL PROTECTED] 
http://www.healthdec.com 



-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:58 AM
To: 'Tomcat Users List'
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


Is it possible to change the Create servlet to a simple class that accepts
the request as a parameter?  Since it does not manipulate the response
object, there is no need to pass it.  Also, you can then call Create using a
regular method invocation, rather than using forward.

It may require some work, but you could eliminate the double forward
issue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


The exception seems to be occurring because the Home servlet forwards more
than once (to different locations) - first to home.jsp, then later to the
Create servlet.
It is definitely the fact that it is forwarding to more than one place, that
is causing the problem.  I know this because if I call the Login servlet and
fail the login authorization - this servlet consequently forwards to
login.jsp more than once (first - to display the fresh login page, and
second - to prompt user to try again).  This however does not give me an
exception.
Given that my Home servlet is like the central servlet, it needs to be
capable of forwarding to a variety of places, depending on the activity
selected by the user. 
Ryan - I have looked at create.jsp and, as far as my little mind can see, it
does not play with the response object at all.  All it does is get a few
session attributes and fit them into the page using %= blablabla %.  Could
that be a problem?
This problem is not isolated to the Create example.  There are other
activities the user can choose which all follow exactly the same forwarding
mechanism (except to different servlets), and these give exactly the same
exception.


Lindsay

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:25
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
jsp:include... after manipulating the session can cause this exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has already
been committed
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 

AW: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Ralph Einfeldt

I don't copletly agree with that.

As long as you don't break specs it is possible to do
something in tomcat to deal with errors in browsers.
(Like missbehavior in the headers of a http request)

If a browser has a bug that you can't deal with, without 
breaking the spec there isn't much you can do.

There might also be browser bugs that you can't avoid at 
all. E.G. if a browser doesn't send a cookie under certain 
conditions, what would you suggest to change on the server
side to change that. (I don't know if this happens here)

P.S: 
In this case you don't have to alienate all Mac IE5 
users because there is workaround: using encodeUrl().
Which should be used anyway, because otherwise you will
alienate all users that disable cookies. (Which will be
more than Mac OS 9 users with IE 5)

 -Ursprüngliche Nachricht-
 Von: Joe Laffey [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 8. März 2002 14:27
 An: Tomcat Users List
 Betreff: RE: IE 5 on Mac is incompatible with TC 4?
snip/ 
 Who cares if it's a reference implementation? If it doesn't 
 work with
 current mainstream browsers then it is useless. No company running a
 ecommerce site wants to alienate all Mac IE5 users. It would 
 be idiotic, not mention bad business.
 
 Tomcat must work with all current mainstream browsers (at 
 least NS and IE)
 on all all major platforms for it to be useful. Typical sers do not
 upgrade their browsers. So everything else must be upgraded 
 to work with
 them, bugs and all.
snip/ 

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




RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread lindsay . hamoudi

OK I am interested in all such solutions.  But if the Create servlet is not
a servlet, then how can it get/set session attributes, forward to the JSP
and also process requests from the JSP.  Surely there must be a way for me
to have multiple servlets?  But how can I fit them all together so as to
avoid this exception.


 -Original Message-
From:   Wagoner, Mark [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:58
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Is it possible to change the Create servlet to a simple class that accepts
the request as a parameter?  Since it does not manipulate the response
object, there is no need to pass it.  Also, you can then call Create using a
regular method invocation, rather than using forward.

It may require some work, but you could eliminate the double forward
issue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


The exception seems to be occurring because the Home servlet forwards more
than once (to different locations) - first to home.jsp, then later to the
Create servlet.
It is definitely the fact that it is forwarding to more than one place, that
is causing the problem.  I know this because if I call the Login servlet and
fail the login authorization - this servlet consequently forwards to
login.jsp more than once (first - to display the fresh login page, and
second - to prompt user to try again).  This however does not give me an
exception.
Given that my Home servlet is like the central servlet, it needs to be
capable of forwarding to a variety of places, depending on the activity
selected by the user. 
Ryan - I have looked at create.jsp and, as far as my little mind can see, it
does not play with the response object at all.  All it does is get a few
session attributes and fit them into the page using %= blablabla %.  Could
that be a problem?
This problem is not isolated to the Create example.  There are other
activities the user can choose which all follow exactly the same forwarding
mechanism (except to different servlets), and these give exactly the same
exception.


Lindsay

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:25
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
jsp:include... after manipulating the session can cause this exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has already
been committed
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)

RE: How can I resolve this IllegalStateException: Response has a lrea dybeen committed problem?

2002-03-08 Thread rsequeira


Are you sending back any response or setting any session info in Create
servlet before forwarding to create.jsp?
Thanks.
RS




[EMAIL PROTECTED] on 03/08/2002 07:25:48 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  RE: How can I resolve this IllegalStateException:
  Response has a lrea dy been committed problem?

OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + /create.jsp + null) - java.la
ng.IllegalStateException: Cannot forward because the response has already
been committed
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown
Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown
Source)
at zeus.generator.web.controllers.Home.goToAddress(Home.java:157)
at
zeus.generator.web.controllers.Home.processRequest(Home.java:120)
at zeus.generator.web.controllers.Home.doGet(Home.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown

Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

But the page is being displayed OK, and the application continues to
function properly.  I'd just like to get rid of this exception somehow.
Maybe the way I am forwarding so much is not the best way to do things, but
it is working.  What alternatives are there?  Oh, I get the same sort of
messages when I substitute requestDispatcher.forward() with
response.sendRedirect().

Many thanks if anyone can assist,

Cheers

Lindsay



 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]]
Sent:   08 March 2002 12:58
To:'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

So at what point in this process are you getting this error?  I'm not sure
I
understand the flow of the application, but it seems to be the pretty
standard jsp to servlet to jsp flow?

In my experiences, I usually get this error when I try to perform a
redirect
within a jsp that has already started writing out to the response.  I don't
believe this is your scenario (based on your explanation).  Perhaps you are
redirecting or forwarding your response to another servlet/jsp and are then
trying to manipulate that response?  If so, you would need to do all
manipulation first, then forward your request on.


-Ryan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:01 AM
To: [EMAIL PROTECTED]
Subject: How can I resolve this IllegalStateException: Response has
alrea dy been committed problem?


[TOMCAT-3.3
JDK 1.3.1
WIN 2000]

Hi everyone,

I have a webapp that consists of various servlets - each of which is
associated with one or more JSPs.  The way it works is that someone logs in
(by calling a servlet which forwards them to the JSP form).  This servlet
then processes the input and then (upon successful authorisation) forwards
control to another servlet (which then displays another JSP and handles
user
requests from this JSP).  This servlet then processes the user requests and
forwards control to the relevant servlet, which then forwards them to a JSP
page.

My application is working just fine, apart from the 

Re: How can I resolve thisIllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread Attila Szegedi

I guess you JSP is failing with an uncaught exception. At that point, Tomcat
would try to send a 500 Internal Server Error response code, but it can't
since a 200 OK status code has already been sent (that is, the output
committed) to the client.

--
Attila Szegedi
home: http://www.szegedi.org


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2002. március 8. 14:45
Subject: RE: How can I resolve this IllegalStateException: Response has a
lrea dy been committed problem?


 The exception seems to be occurring because the Home servlet forwards more
 than once (to different locations) - first to home.jsp, then later to the
 Create servlet.
 It is definitely the fact that it is forwarding to more than one place,
that
 is causing the problem.  I know this because if I call the Login servlet
and
 fail the login authorization - this servlet consequently forwards to
 login.jsp more than once (first - to display the fresh login page, and
 second - to prompt user to try again).  This however does not give me an
 exception.
 Given that my Home servlet is like the central servlet, it needs to be
 capable of forwarding to a variety of places, depending on the activity
 selected by the user.
 Ryan - I have looked at create.jsp and, as far as my little mind can see,
it
 does not play with the response object at all.  All it does is get a few
 session attributes and fit them into the page using %= blablabla %.
Could
 that be a problem?
 This problem is not isolated to the Create example.  There are other
 activities the user can choose which all follow exactly the same
forwarding
 mechanism (except to different servlets), and these give exactly the same
 exception.


 Lindsay



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




RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread lindsay . hamoudi

Yep that's right.

Only one forward getting done per request.  The main controller servlet
(e.g. Home) forwards to another more specific controller servlet (e.g.
Create), which then forwards to a JSP.  Then later, that servlet forwards
back (?? Maybe this isn't wise?) to the main controller servlet.  

A whole lot of forwarding going on.

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:56
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

My impression of this situation was that at runtime there was only one
request forward happening.  The Home servlet may have more than one forward
call, but at runtime only one gets executed (per request), right?  So within
each servlet only one forward happens, but a string of servlets has more
than one forward total.

Is this correct?

Ryan Daigle
Java Developer 
Health Decisions, Inc. 
1512 E. Franklin St, Suite 200 
Chapel Hill, NC 27514 
(919) 967-2399 ext: 251 
[EMAIL PROTECTED] 
http://www.healthdec.com 



-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:58 AM
To: 'Tomcat Users List'
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


Is it possible to change the Create servlet to a simple class that accepts
the request as a parameter?  Since it does not manipulate the response
object, there is no need to pass it.  Also, you can then call Create using a
regular method invocation, rather than using forward.

It may require some work, but you could eliminate the double forward
issue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


The exception seems to be occurring because the Home servlet forwards more
than once (to different locations) - first to home.jsp, then later to the
Create servlet.
It is definitely the fact that it is forwarding to more than one place, that
is causing the problem.  I know this because if I call the Login servlet and
fail the login authorization - this servlet consequently forwards to
login.jsp more than once (first - to display the fresh login page, and
second - to prompt user to try again).  This however does not give me an
exception.
Given that my Home servlet is like the central servlet, it needs to be
capable of forwarding to a variety of places, depending on the activity
selected by the user. 
Ryan - I have looked at create.jsp and, as far as my little mind can see, it
does not play with the response object at all.  All it does is get a few
session attributes and fit them into the page using %= blablabla %.  Could
that be a problem?
This problem is not isolated to the Create example.  There are other
activities the user can choose which all follow exactly the same forwarding
mechanism (except to different servlets), and these give exactly the same
exception.


Lindsay

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:25
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
jsp:include... after manipulating the session can cause this exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create in my example)
8. Create servlet does some stuff and forwards to create.jsp
BANG!  I GET THIS EXCEPTION (I have included some buildup to this
exception):

Now in Home servlet - processing request...
2002-03-08 13:19:08 - DecodeInterceptor: Charset from session ISO-8859-1
Now in Create servlet - processing request...
Getting list of available types seems to have went OK
2002-03-08 13:19:09 - Ctx(/AgentGenerator) : IllegalStateException in R(
/AgentGenerator + 

RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread Wagoner, Mark

You don't need to forward back to the original servlet.  Each call is done
as a stack, so when the JSP returns, control comes back to the Create
servlet.  When the Create servlet returns, control comes back to the Home
servlet.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:27 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


Yep that's right.

Only one forward getting done per request.  The main controller servlet
(e.g. Home) forwards to another more specific controller servlet (e.g.
Create), which then forwards to a JSP.  Then later, that servlet forwards
back (?? Maybe this isn't wise?) to the main controller servlet.  

A whole lot of forwarding going on.

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:56
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

My impression of this situation was that at runtime there was only one
request forward happening.  The Home servlet may have more than one forward
call, but at runtime only one gets executed (per request), right?  So within
each servlet only one forward happens, but a string of servlets has more
than one forward total.

Is this correct?

Ryan Daigle
Java Developer 
Health Decisions, Inc. 
1512 E. Franklin St, Suite 200 
Chapel Hill, NC 27514 
(919) 967-2399 ext: 251 
[EMAIL PROTECTED] 
http://www.healthdec.com 



-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:58 AM
To: 'Tomcat Users List'
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


Is it possible to change the Create servlet to a simple class that accepts
the request as a parameter?  Since it does not manipulate the response
object, there is no need to pass it.  Also, you can then call Create using a
regular method invocation, rather than using forward.

It may require some work, but you could eliminate the double forward
issue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


The exception seems to be occurring because the Home servlet forwards more
than once (to different locations) - first to home.jsp, then later to the
Create servlet.
It is definitely the fact that it is forwarding to more than one place, that
is causing the problem.  I know this because if I call the Login servlet and
fail the login authorization - this servlet consequently forwards to
login.jsp more than once (first - to display the fresh login page, and
second - to prompt user to try again).  This however does not give me an
exception.
Given that my Home servlet is like the central servlet, it needs to be
capable of forwarding to a variety of places, depending on the activity
selected by the user. 
Ryan - I have looked at create.jsp and, as far as my little mind can see, it
does not play with the response object at all.  All it does is get a few
session attributes and fit them into the page using %= blablabla %.  Could
that be a problem?
This problem is not isolated to the Create example.  There are other
activities the user can choose which all follow exactly the same forwarding
mechanism (except to different servlets), and these give exactly the same
exception.


Lindsay

 -Original Message-
From:   Ryan Daigle [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:25
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Are you sure there isn't something in create.jsp that is trying to
manipulate the response?  I have found that trying to do a
jsp:include... after manipulating the session can cause this exception.
Is this a possibility?  Perhaps you could send the relevant source of
create.jsp and the Create servlet?

-Ryan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK here's the sequence of events:

[ Note: all forwarding done using RequestDispatcher.forward(req,res) ]

1. User begins by clicking link to Login servlet
2. Login servlet forwards to login.jsp
3. Login.jsp submits request to Login servlet
4. Servlet authorizes user and forwards to Home servlet
5. Home servlet forwards to home.jsp
NO EXCEPTIONS YET - EVERYTHING IS OK!
6. User then chooses an action (e.g. create new agent, in my example) from
home.jsp and submits request to Home servlet
7. Home servlet processes request and forwards to appropriate servlet
(called Create 

RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread lindsay . hamoudi

Don't think JSP is failing.  It's quite a simple JSP and has been looked at
exhaustively!

Yes, I am setting session attributes in Create servlet, for use by
create.jsp.

I am only using the session object and the request throughout my
application.  The only time I ever knew I was using the response object was
when I used response.sendRedirect(), but I don't use this anymore.  I use
the RequestDispatcher.

There are no jsp:include or jsp:forward tags being used anywhere, and my
servlets do not contribute anything to the response (apart from forwarding
it around).

Mark - your words of wisdom interest me.  I thought that... when I invoke
requestDispatcher.forward(), then control never returns (to the line
following this invocation).  So how do I go about returning to the Home
servlet from the Create servlet.  Surely I need to forward, because the
session has changed?

I have a lot to learn here I think, but I feel I'm getting closer to the
holy grail - getting rid of this exception!


 -Original Message-
From:   Attila Szegedi [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:56
To: Tomcat Users List
Subject:Re: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

I guess you JSP is failing with an uncaught exception. At that point, Tomcat
would try to send a 500 Internal Server Error response code, but it can't
since a 200 OK status code has already been sent (that is, the output
committed) to the client.

--
Attila Szegedi
home: http://www.szegedi.org


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2002. március 8. 14:45
Subject: RE: How can I resolve this IllegalStateException: Response has a
lrea dy been committed problem?


 The exception seems to be occurring because the Home servlet forwards more
 than once (to different locations) - first to home.jsp, then later to the
 Create servlet.
 It is definitely the fact that it is forwarding to more than one place,
that
 is causing the problem.  I know this because if I call the Login servlet
and
 fail the login authorization - this servlet consequently forwards to
 login.jsp more than once (first - to display the fresh login page, and
 second - to prompt user to try again).  This however does not give me an
 exception.
 Given that my Home servlet is like the central servlet, it needs to be
 capable of forwarding to a variety of places, depending on the activity
 selected by the user.
 Ryan - I have looked at create.jsp and, as far as my little mind can see,
it
 does not play with the response object at all.  All it does is get a few
 session attributes and fit them into the page using %= blablabla %.
Could
 that be a problem?
 This problem is not isolated to the Create example.  There are other
 activities the user can choose which all follow exactly the same
forwarding
 mechanism (except to different servlets), and these give exactly the same
 exception.


 Lindsay



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

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




server.xml - Multiple Contexts for a Single WebApp

2002-03-08 Thread annie . frost

I am trying to duplicate an issue that I am having when I have Apache
connected to Tomcat, on Tomcat alone.

My Web Application is crashing when I have two entry points into the
Application, for example:
http://hostname
http://hostname/webappname

Is there a way to set up two Contexts that point to a Single Web Application
(basically mocking the Apache Alias)?

According to the Documentation, each Context must have a unique Context
Path.  I am hoping there is a way to fake the system out and allow for two
entries into the Application with only Tomcat running.

For example (server.xml):
Context path= 
 docBase=../../../../abewebapp 
 crossContext=true
 debug=0 
 reloadable=false 
 trusted=false/
Context path=/abewebapp 
 docBase=../../../../abewebapp 
 crossContext=true
 debug=0 
 reloadable=false 
 trusted=false/

This crashes the system... because the two docbases are not unique.

Is there another way to configure this??

Thanks,
Annie

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




RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread Wagoner, Mark

Actually, the way forward works came as a surprise to me as well.  And I
only figured it out after a few days of testing and head-scratching.  :)

Since the session is held in the request object, changes made to it should
be available to the original Home servlet by calling request.getSession
after the forward call returns.  Obviously I'm not real familiar with what
you are trying to do, but there may be a way you can eliminate the last
forward back to the home servlet.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


Don't think JSP is failing.  It's quite a simple JSP and has been looked at
exhaustively!

Yes, I am setting session attributes in Create servlet, for use by
create.jsp.

I am only using the session object and the request throughout my
application.  The only time I ever knew I was using the response object was
when I used response.sendRedirect(), but I don't use this anymore.  I use
the RequestDispatcher.

There are no jsp:include or jsp:forward tags being used anywhere, and my
servlets do not contribute anything to the response (apart from forwarding
it around).

Mark - your words of wisdom interest me.  I thought that... when I invoke
requestDispatcher.forward(), then control never returns (to the line
following this invocation).  So how do I go about returning to the Home
servlet from the Create servlet.  Surely I need to forward, because the
session has changed?

I have a lot to learn here I think, but I feel I'm getting closer to the
holy grail - getting rid of this exception!


 -Original Message-
From:   Attila Szegedi [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:56
To: Tomcat Users List
Subject:Re: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

I guess you JSP is failing with an uncaught exception. At that point, Tomcat
would try to send a 500 Internal Server Error response code, but it can't
since a 200 OK status code has already been sent (that is, the output
committed) to the client.

--
Attila Szegedi
home: http://www.szegedi.org


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2002. március 8. 14:45
Subject: RE: How can I resolve this IllegalStateException: Response has a
lrea dy been committed problem?


 The exception seems to be occurring because the Home servlet forwards more
 than once (to different locations) - first to home.jsp, then later to the
 Create servlet.
 It is definitely the fact that it is forwarding to more than one place,
that
 is causing the problem.  I know this because if I call the Login servlet
and
 fail the login authorization - this servlet consequently forwards to
 login.jsp more than once (first - to display the fresh login page, and
 second - to prompt user to try again).  This however does not give me an
 exception.
 Given that my Home servlet is like the central servlet, it needs to be
 capable of forwarding to a variety of places, depending on the activity
 selected by the user.
 Ryan - I have looked at create.jsp and, as far as my little mind can see,
it
 does not play with the response object at all.  All it does is get a few
 session attributes and fit them into the page using %= blablabla %.
Could
 that be a problem?
 This problem is not isolated to the Create example.  There are other
 activities the user can choose which all follow exactly the same
forwarding
 mechanism (except to different servlets), and these give exactly the same
 exception.


 Lindsay



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

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

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




Error Starting Tomcat 4.0.1 in AIX

2002-03-08 Thread Andy Soedibjo

Hi All,

I've been installed tomcat 4.0.1 for windows successfully. But, now when i 
try to install tomcat 4.0.1 in AIX, i can start the Tomcat ... but with 
some error message. I've tried to debug it, but still i can't find why it 
happens.

It's seemed from the error message, the Tomcat can't find the 
getResourcePaths method in javax.servlet.ServletContext.
But, i've checked that the servlet.jar has this class and method.

Does anyone has ever faced this problem before?
Any suggestion is welcomed, and thanks in advance.

Best Regards,
Andy S.

NB: This is my error message:
2002-03-08 15:50:23 StandardContext[/manager]: Starting
2002-03-08 15:50:23 StandardContext[/manager]: Processing start(), current 
available=false
2002-03-08 15:50:23 StandardContext[/manager]: Configuring default Resources
2002-03-08 15:50:23 StandardContext[/manager]: Configuring default Loader
2002-03-08 15:50:23 StandardContext[/manager]: Configuring default Manager
2002-03-08 15:50:23 StandardContext[/manager]: Processing standard 
container startup
2002-03-08 15:50:23 WebappLoader[/manager]: Deploying class repositories to 
work directory /home/logserv/jakarta-tomcat-4.0.1/work/localhost/manager
2002-03-08 15:50:23 StandardManager[/manager]: Seeding random number 
generator class java.security.SecureRandom
2002-03-08 15:50:23 StandardManager[/manager]: Seeding of random number 
generator has been completed
2002-03-08 15:50:23 ContextConfig[/manager]: ContextConfig: Processing START
2002-03-08 15:50:24 StandardContext[/manager]: Setting deployment 
descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN'
2002-03-08 15:50:24 StandardContext[/manager]: Setting deployment 
descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN'
2002-03-08 15:50:24 ContextConfig[/manager]: Scanning web.xml tag libraries
2002-03-08 15:50:24 ContextConfig[/manager]: Scanning library JAR files
2002-03-08 15:50:24 ContextConfig[/manager]: Added certificates - request 
attribute Valve
2002-03-08 15:50:24 Authenticator[/manager]: No SingleSignOn Valve is present
2002-03-08 15:50:24 ContextConfig[/manager]: Configured an authenticator 
for method BASIC
2002-03-08 15:50:24 ContextConfig[/manager]: Pipline Configuration:
2002-03-08 15:50:24 
ContextConfig[/manager]:   org.apache.catalina.valves.CertificatesValve/1.0
2002-03-08 15:50:24 
ContextConfig[/manager]: 
org.apache.catalina.authenticator.BasicAuthenticator/1.0
2002-03-08 15:50:24 
ContextConfig[/manager]:   org.apache.catalina.core.StandardContextValve/1.0
2002-03-08 15:50:24 ContextConfig[/manager]: ==
2002-03-08 15:50:24 StandardContext[/manager]: Configuring application 
event listeners
2002-03-08 15:50:24 StandardContext[/manager]: Sending application start events
2002-03-08 15:50:24 StandardContext[/manager]: Starting filters
2002-03-08 15:50:24 StandardContext[/manager]: Posting standard context 
attributes
2002-03-08 15:50:24 StandardWrapper[/manager:default]: Loading container 
servlet default
2002-03-08 15:50:24 org.apache.catalina.servlets.DefaultServlet: init
2002-03-08 15:50:24 StandardWrapper[/manager:invoker]: Loading container 
servlet invoker
2002-03-08 15:50:24 org.apache.catalina.servlets.InvokerServlet: init
2002-03-08 15:50:24 org.apache.jasper.servlet.JspServlet: init
2002-03-08 15:50:25 StandardContext[/manager]: Servlet /manager threw 
load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
 at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java(Compiled 
Code))
 at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java(Compiled 
Code))
 at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java(Compiled Code))
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
 at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoSuchMethodError: javax.servlet.ServletContext: method 
getResourcePaths(Ljava/lang/String;)Ljava/util/Set; not found
 at 
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
 at 
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:139)
  

RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread lindsay . hamoudi

OK.  I never knew the forward call actually returned - ever.  I will
experiment with this.  I'm nearly ready to go away and stop pestering you
all, but one more question...


Say the Home servlet gets the session object from the request.
It later forwards the request to the Create servlet, which essentially
modifies the session.
Then, when the forward call returns, will the Home servlet's session object
be the old one or the updated one?  Or will it have to do
request.getSession() all over again in order to get latest session.

Cheers,

Lindsay

 -Original Message-
From:   Wagoner, Mark [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 14:52
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Actually, the way forward works came as a surprise to me as well.  And I
only figured it out after a few days of testing and head-scratching.  :)

Since the session is held in the request object, changes made to it should
be available to the original Home servlet by calling request.getSession
after the forward call returns.  Obviously I'm not real familiar with what
you are trying to do, but there may be a way you can eliminate the last
forward back to the home servlet.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


Don't think JSP is failing.  It's quite a simple JSP and has been looked at
exhaustively!

Yes, I am setting session attributes in Create servlet, for use by
create.jsp.

I am only using the session object and the request throughout my
application.  The only time I ever knew I was using the response object was
when I used response.sendRedirect(), but I don't use this anymore.  I use
the RequestDispatcher.

There are no jsp:include or jsp:forward tags being used anywhere, and my
servlets do not contribute anything to the response (apart from forwarding
it around).

Mark - your words of wisdom interest me.  I thought that... when I invoke
requestDispatcher.forward(), then control never returns (to the line
following this invocation).  So how do I go about returning to the Home
servlet from the Create servlet.  Surely I need to forward, because the
session has changed?

I have a lot to learn here I think, but I feel I'm getting closer to the
holy grail - getting rid of this exception!


 -Original Message-
From:   Attila Szegedi [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:56
To: Tomcat Users List
Subject:Re: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

I guess you JSP is failing with an uncaught exception. At that point, Tomcat
would try to send a 500 Internal Server Error response code, but it can't
since a 200 OK status code has already been sent (that is, the output
committed) to the client.

--
Attila Szegedi
home: http://www.szegedi.org


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2002. március 8. 14:45
Subject: RE: How can I resolve this IllegalStateException: Response has a
lrea dy been committed problem?


 The exception seems to be occurring because the Home servlet forwards more
 than once (to different locations) - first to home.jsp, then later to the
 Create servlet.
 It is definitely the fact that it is forwarding to more than one place,
that
 is causing the problem.  I know this because if I call the Login servlet
and
 fail the login authorization - this servlet consequently forwards to
 login.jsp more than once (first - to display the fresh login page, and
 second - to prompt user to try again).  This however does not give me an
 exception.
 Given that my Home servlet is like the central servlet, it needs to be
 capable of forwarding to a variety of places, depending on the activity
 selected by the user.
 Ryan - I have looked at create.jsp and, as far as my little mind can see,
it
 does not play with the response object at all.  All it does is get a few
 session attributes and fit them into the page using %= blablabla %.
Could
 that be a problem?
 This problem is not isolated to the Create example.  There are other
 activities the user can choose which all follow exactly the same
forwarding
 mechanism (except to different servlets), and these give exactly the same
 exception.


 Lindsay



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

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

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

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional 

RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread Ryan Daigle

It should be the same session object.

Ryan Daigle
Java Developer 
Health Decisions, Inc. 
1512 E. Franklin St, Suite 200 
Chapel Hill, NC 27514 
(919) 967-2399 ext: 251 
[EMAIL PROTECTED] 
http://www.healthdec.com 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK.  I never knew the forward call actually returned - ever.  I will
experiment with this.  I'm nearly ready to go away and stop pestering you
all, but one more question...


Say the Home servlet gets the session object from the request.
It later forwards the request to the Create servlet, which essentially
modifies the session.
Then, when the forward call returns, will the Home servlet's session object
be the old one or the updated one?  Or will it have to do
request.getSession() all over again in order to get latest session.

Cheers,

Lindsay

 -Original Message-
From:   Wagoner, Mark [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 14:52
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Actually, the way forward works came as a surprise to me as well.  And I
only figured it out after a few days of testing and head-scratching.  :)

Since the session is held in the request object, changes made to it should
be available to the original Home servlet by calling request.getSession
after the forward call returns.  Obviously I'm not real familiar with what
you are trying to do, but there may be a way you can eliminate the last
forward back to the home servlet.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


Don't think JSP is failing.  It's quite a simple JSP and has been looked at
exhaustively!

Yes, I am setting session attributes in Create servlet, for use by
create.jsp.

I am only using the session object and the request throughout my
application.  The only time I ever knew I was using the response object was
when I used response.sendRedirect(), but I don't use this anymore.  I use
the RequestDispatcher.

There are no jsp:include or jsp:forward tags being used anywhere, and my
servlets do not contribute anything to the response (apart from forwarding
it around).

Mark - your words of wisdom interest me.  I thought that... when I invoke
requestDispatcher.forward(), then control never returns (to the line
following this invocation).  So how do I go about returning to the Home
servlet from the Create servlet.  Surely I need to forward, because the
session has changed?

I have a lot to learn here I think, but I feel I'm getting closer to the
holy grail - getting rid of this exception!


 -Original Message-
From:   Attila Szegedi [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:56
To: Tomcat Users List
Subject:Re: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

I guess you JSP is failing with an uncaught exception. At that point, Tomcat
would try to send a 500 Internal Server Error response code, but it can't
since a 200 OK status code has already been sent (that is, the output
committed) to the client.

--
Attila Szegedi
home: http://www.szegedi.org


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2002. március 8. 14:45
Subject: RE: How can I resolve this IllegalStateException: Response has a
lrea dy been committed problem?


 The exception seems to be occurring because the Home servlet forwards more
 than once (to different locations) - first to home.jsp, then later to the
 Create servlet.
 It is definitely the fact that it is forwarding to more than one place,
that
 is causing the problem.  I know this because if I call the Login servlet
and
 fail the login authorization - this servlet consequently forwards to
 login.jsp more than once (first - to display the fresh login page, and
 second - to prompt user to try again).  This however does not give me an
 exception.
 Given that my Home servlet is like the central servlet, it needs to be
 capable of forwarding to a variety of places, depending on the activity
 selected by the user.
 Ryan - I have looked at create.jsp and, as far as my little mind can see,
it
 does not play with the response object at all.  All it does is get a few
 session attributes and fit them into the page using %= blablabla %.
Could
 that be a problem?
 This problem is not isolated to the Create example.  There are other
 activities the user can choose which all follow exactly the same
forwarding
 mechanism (except to different servlets), and these give exactly the same
 exception.


 Lindsay



--
To unsubscribe:   mailto:[EMAIL 

RE: How can I resolve this IllegalStateException: Response has a lrea dy been committed problem?

2002-03-08 Thread Wagoner, Mark

Because the Home servlet holds an object reference to the session, it acts
as a pointer to the actual object data.  If another servlet obtains a
pointer to the same object and modifies the data, the changes will be
reflected in the first servlet without having to re-get the reference.

However, as a precaution I don't like to hold object references between
calls like this.  Maybe I'm just anal...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


OK.  I never knew the forward call actually returned - ever.  I will
experiment with this.  I'm nearly ready to go away and stop pestering you
all, but one more question...


Say the Home servlet gets the session object from the request.
It later forwards the request to the Create servlet, which essentially
modifies the session.
Then, when the forward call returns, will the Home servlet's session object
be the old one or the updated one?  Or will it have to do
request.getSession() all over again in order to get latest session.

Cheers,

Lindsay

 -Original Message-
From:   Wagoner, Mark [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 14:52
To: 'Tomcat Users List'
Subject:RE: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

Actually, the way forward works came as a surprise to me as well.  And I
only figured it out after a few days of testing and head-scratching.  :)

Since the session is held in the request object, changes made to it should
be available to the original Home servlet by calling request.getSession
after the forward call returns.  Obviously I'm not real familiar with what
you are trying to do, but there may be a way you can eliminate the last
forward back to the home servlet.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: RE: How can I resolve this IllegalStateException: Response has
a lrea dy been committed problem?


Don't think JSP is failing.  It's quite a simple JSP and has been looked at
exhaustively!

Yes, I am setting session attributes in Create servlet, for use by
create.jsp.

I am only using the session object and the request throughout my
application.  The only time I ever knew I was using the response object was
when I used response.sendRedirect(), but I don't use this anymore.  I use
the RequestDispatcher.

There are no jsp:include or jsp:forward tags being used anywhere, and my
servlets do not contribute anything to the response (apart from forwarding
it around).

Mark - your words of wisdom interest me.  I thought that... when I invoke
requestDispatcher.forward(), then control never returns (to the line
following this invocation).  So how do I go about returning to the Home
servlet from the Create servlet.  Surely I need to forward, because the
session has changed?

I have a lot to learn here I think, but I feel I'm getting closer to the
holy grail - getting rid of this exception!


 -Original Message-
From:   Attila Szegedi [mailto:[EMAIL PROTECTED]] 
Sent:   08 March 2002 13:56
To: Tomcat Users List
Subject:Re: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

I guess you JSP is failing with an uncaught exception. At that point, Tomcat
would try to send a 500 Internal Server Error response code, but it can't
since a 200 OK status code has already been sent (that is, the output
committed) to the client.

--
Attila Szegedi
home: http://www.szegedi.org


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2002. március 8. 14:45
Subject: RE: How can I resolve this IllegalStateException: Response has a
lrea dy been committed problem?


 The exception seems to be occurring because the Home servlet forwards more
 than once (to different locations) - first to home.jsp, then later to the
 Create servlet.
 It is definitely the fact that it is forwarding to more than one place,
that
 is causing the problem.  I know this because if I call the Login servlet
and
 fail the login authorization - this servlet consequently forwards to
 login.jsp more than once (first - to display the fresh login page, and
 second - to prompt user to try again).  This however does not give me an
 exception.
 Given that my Home servlet is like the central servlet, it needs to be
 capable of forwarding to a variety of places, depending on the activity
 selected by the user.
 Ryan - I have looked at create.jsp and, as far as my little mind can see,
it
 does not play with the response object at all.  All it does is get a few
 session attributes and fit them into the page using %= blablabla %.
Could
 that be a problem?
 This problem is not isolated to the Create example.  There are other
 activities the user can choose which 

RE: How can I resolve this IllegalStateException: Response has a lrea dybeen committed problem?

2002-03-08 Thread jeff . guttadauro


If you are getting any pages back from the server, then you are using the
response object!  You may not be manipulating it with an explicit reference to
it, but, when you have HTML or do an % out.println(STUFF) % or output a
JSP expression like %= something % in your JSP pages, you are using the
response object.  And the deal is you can't forward if you've already started
putting stuff in the response.

What you should probably look into, and what some people are hinting at here,
is using some sort of controller servlet that gets the request and then CALLS
(not forwards to) the appropriate handler or action class.  You can pass
the request object along to your handler class so that you can get stuff
from it or its session.  Then, when your handler method is finished, you
controller picks up immediately following its call to your handler.  This
allows you to have one very general controller servlet which can route the
requests to more specialized handlers or actions depending on some parameter
(command, action name) and can then handle forwarding to the appropriate new
page.

You might want to take a look at the Struts framework, which does this for
you.

Hope this helps.
-Jeff



   

lindsay.hamou  

[EMAIL PROTECTED]To: [EMAIL PROTECTED]

 cc:   

03/08/02 Subject: RE: How can I resolve this 
IllegalStateException: Response  
08:43 AM has a lrea dy been committed problem?

Please 

respond to 

Tomcat Users  

List  

   

   





Don't think JSP is failing.  It's quite a simple JSP and has been looked at
exhaustively!

Yes, I am setting session attributes in Create servlet, for use by
create.jsp.

I am only using the session object and the request throughout my
application.  The only time I ever knew I was using the response object was
when I used response.sendRedirect(), but I don't use this anymore.  I use
the RequestDispatcher.

There are no jsp:include or jsp:forward tags being used anywhere, and my
servlets do not contribute anything to the response (apart from forwarding
it around).

Mark - your words of wisdom interest me.  I thought that... when I invoke
requestDispatcher.forward(), then control never returns (to the line
following this invocation).  So how do I go about returning to the Home
servlet from the Create servlet.  Surely I need to forward, because the
session has changed?

I have a lot to learn here I think, but I feel I'm getting closer to the
holy grail - getting rid of this exception!


 -Original Message-
From:   Attila Szegedi [mailto:[EMAIL PROTECTED]]
Sent:   08 March 2002 13:56
To:Tomcat Users List
Subject:Re: How can I resolve this IllegalStateException: Response
has a lrea dy been committed problem?

I guess you JSP is failing with an uncaught exception. At that point, Tomcat
would try to send a 500 Internal Server Error response code, but it can't
since a 200 OK status code has already been sent (that is, the output
committed) to the client.

--
Attila Szegedi
home: http://www.szegedi.org


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2002. március 8. 14:45
Subject: RE: How can I resolve this IllegalStateException: Response has a
lrea dy been committed problem?


 The exception seems to be occurring because the Home servlet forwards more
 than once (to different locations) - first to home.jsp, then later to the
 Create servlet.
 It is definitely the fact that it is forwarding to more than one place,
that
 is causing the problem.  I know this because if I call the Login servlet
and
 fail the login authorization - this servlet consequently forwards to
 login.jsp more than once (first - to display the fresh login page, and
 second - to prompt user to try again).  This however does not give me an
 exception.
 Given that my Home servlet is like the central servlet, it needs to be
 

Re: AW: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Joe Laffey

On Fri, 8 Mar 2002, Ralph Einfeldt wrote:

 I don't copletly agree with that.

 As long as you don't break specs it is possible to do
 something in tomcat to deal with errors in browsers.
 (Like missbehavior in the headers of a http request)

 If a browser has a bug that you can't deal with, without
 breaking the spec there isn't much you can do.

I understand your concern over the specs. But users don't care about
specs, neither do manager, CEOs, or the bean counters. They care about
profits.  And alienating users with your website is NOT a way to increase
profits ;-)

 There might also be browser bugs that you can't avoid at
 all. E.G. if a browser doesn't send a cookie under certain
 conditions, what would you suggest to change on the server
 side to change that. (I don't know if this happens here)


I too know nothing about the issue, and have not tested it to see if it
even exists. (Perhaps I should have kept my mouth shut in the first
place.) I simply wanted to point out that hold spec up as Holy Grail
doesn't do any users any good at all. There will always be
incompatibilities. The industry has tried forever to have specs,
guidelines, and requirements. There have always been exceptions.
Unless you control ALL the software involved, or have the full cooperation
of those who do (MS, cooperate? yeah, sure...) things will have to be
adjusted to fit.

If this is indeed a bug in IE5 Mac then it should be documented as an
incompatibility prominently on the Tomcat website. This way developers
won't look like idiots when their clients call screaming that their
daughter can't even order products from their website from her iMac! The
prudent developer will find a workaround or choose something other than
Tomcat.


 In this case you don't have to alienate all Mac IE5
 users because there is workaround: using encodeUrl().
 Which should be used anyway, because otherwise you will
 alienate all users that disable cookies. (Which will be
 more than Mac OS 9 users with IE 5)

If this works then yes, it is a good solution. (Not requiring cookies is
always a good solution, but it costs more time/money.) However, IMHO, the
Tomcat docs ought to reflect this incompatibility prominently so the
developer know that they will have to waste hours working around it.

Again, I have no idea if a bug really exists. I am simply making noise
because I think that money is more important than specs to most developers
and definitely to most suits.

I will now be quiet. I hope I haven't offended you or anyone on the Tomcat
team. I think Tomcat is a good project.

--
Joe Laffey  |  Want to convert subnet masks between different
LAFFEY Computer Imaging |  notations, or figure the number of IPs in a block?
St. Louis, MO   |  Whatmask-It's FREE - www.laffeycomputer.com/wm.html
--


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




Re: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Anders Rundgren

Ralph, at this stage we can just guess as it does not *have* to be a browser bug.
Particularly as other web-servers most likely handles this differently.
I have verified that IIS does this OK but that was hardly a surprise :-).

I will now perform some deeper investigation by writing a small servlet
that just spews out header contents to see what differs.

Just done!  No cookies are sent from IE which means that TC is likely
to send something IE 5 Mac does not understand.  Secure is an addition that
TC offer but not IIS.  Secure is though RFC-compliant so maybe IE 5/mac
*is* broken.

TOMCAT
---
Date: Fri, 08 Mar 2002 15:00:42 GMT
Server: Apache/1.3.23 (Unix) mod_ssl/2.8.6 OpenSSL/0.9.6 mod_jk/1.2.0
EXPIRES: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=7C1F8E3DD950780CA775B3EB3AE74D16;Path=/BuyerASP;Secure
Connection: close
Content-Type: text/html

IIS
---
Server: Microsoft-IIS/5.0
Date: Fri, 08 Mar 2002 15:13:12 GMT
Connection: Keep-Alive
Content-Length: 1443
Content-Type: text/html
Expires: Fri, 08 Mar 2002 15:12:12 GMT
Set-Cookie: ASPSESSIONIDGQQGGWNY=INDLBBEAKPOBKEMFDDDHAFCM; path=/shop
Cache-control: private

Anders

- Original Message -
From: Ralph Einfeldt 
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 15:10
Subject: AW: IE 5 on Mac is incompatible with TC 4?


I don't copletly agree with that.

As long as you don't break specs it is possible to do
something in tomcat to deal with errors in browsers.
(Like missbehavior in the headers of a http request)

If a browser has a bug that you can't deal with, without
breaking the spec there isn't much you can do.

There might also be browser bugs that you can't avoid at
all. E.G. if a browser doesn't send a cookie under certain
conditions, what would you suggest to change on the server
side to change that. (I don't know if this happens here)

P.S:
In this case you don't have to alienate all Mac IE5
users because there is workaround: using encodeUrl().
Which should be used anyway, because otherwise you will
alienate all users that disable cookies. (Which will be
more than Mac OS 9 users with IE 5)

 -Ursprüngliche Nachricht-
 Von: Joe Laffey [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 8. März 2002 14:27
 An: Tomcat Users List
 Betreff: RE: IE 5 on Mac is incompatible with TC 4?
snip/
 Who cares if it's a reference implementation? If it doesn't
 work with
 current mainstream browsers then it is useless. No company running a
 ecommerce site wants to alienate all Mac IE5 users. It would
 be idiotic, not mention bad business.

 Tomcat must work with all current mainstream browsers (at
 least NS and IE)
 on all all major platforms for it to be useful. Typical sers do not
 upgrade their browsers. So everything else must be upgraded
 to work with
 them, bugs and all.
snip/

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



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




Re: AW: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread David Cassidy

sounds to me that this whole line of conversation could be
summed up as

If you want users without cookies to use your site then use
encodeURL
if not tough.

This isn't a tomcat issue, it's a lazy ( web site) programmer issue ;-^)

(honest not flame bait :

D



Joe Laffey wrote:

 On Fri, 8 Mar 2002, Ralph Einfeldt wrote:

  I don't copletly agree with that.
 
  As long as you don't break specs it is possible to do
  something in tomcat to deal with errors in browsers.
  (Like missbehavior in the headers of a http request)
 
  If a browser has a bug that you can't deal with, without
  breaking the spec there isn't much you can do.

 I understand your concern over the specs. But users don't care about
 specs, neither do manager, CEOs, or the bean counters. They care about
 profits.  And alienating users with your website is NOT a way to increase
 profits ;-)

  There might also be browser bugs that you can't avoid at
  all. E.G. if a browser doesn't send a cookie under certain
  conditions, what would you suggest to change on the server
  side to change that. (I don't know if this happens here)
 

 I too know nothing about the issue, and have not tested it to see if it
 even exists. (Perhaps I should have kept my mouth shut in the first
 place.) I simply wanted to point out that hold spec up as Holy Grail
 doesn't do any users any good at all. There will always be
 incompatibilities. The industry has tried forever to have specs,
 guidelines, and requirements. There have always been exceptions.
 Unless you control ALL the software involved, or have the full cooperation
 of those who do (MS, cooperate? yeah, sure...) things will have to be
 adjusted to fit.

 If this is indeed a bug in IE5 Mac then it should be documented as an
 incompatibility prominently on the Tomcat website. This way developers
 won't look like idiots when their clients call screaming that their
 daughter can't even order products from their website from her iMac! The
 prudent developer will find a workaround or choose something other than
 Tomcat.

  In this case you don't have to alienate all Mac IE5
  users because there is workaround: using encodeUrl().
  Which should be used anyway, because otherwise you will
  alienate all users that disable cookies. (Which will be
  more than Mac OS 9 users with IE 5)

 If this works then yes, it is a good solution. (Not requiring cookies is
 always a good solution, but it costs more time/money.) However, IMHO, the
 Tomcat docs ought to reflect this incompatibility prominently so the
 developer know that they will have to waste hours working around it.

 Again, I have no idea if a bug really exists. I am simply making noise
 because I think that money is more important than specs to most developers
 and definitely to most suits.

 I will now be quiet. I hope I haven't offended you or anyone on the Tomcat
 team. I think Tomcat is a good project.

 --
 Joe Laffey  |  Want to convert subnet masks between different
 LAFFEY Computer Imaging |  notations, or figure the number of IPs in a block?
 St. Louis, MO   |  Whatmask-It's FREE - www.laffeycomputer.com/wm.html
 --

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


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




Re: server.xml - Multiple Contexts for a Single WebApp

2002-03-08 Thread rsequeira


see intermixed.




[EMAIL PROTECTED] on 03/08/2002 08:50:14 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  server.xml - Multiple Contexts for a Single WebApp

I am trying to duplicate an issue that I am having when I have Apache
connected to Tomcat, on Tomcat alone.

My Web Application is crashing when I have two entry points into the
Application, for example:
http://hostname
http://hostname/webappname

Is there a way to set up two Contexts that point to a Single Web
Application
(basically mocking the Apache Alias)?

According to the Documentation, each Context must have a unique Context
Path.  I am hoping there is a way to fake the system out and allow for two
entries into the Application with only Tomcat running.

Each Context must have a *unique* context path which is defined by the
path attribute. The path attribute is what the user types in the URL to
access the appropriate web application. The docBase attribute *need not*
be unique. It points to the directory where the application resides on your
filesystem.

For example (server.xml):
Context path=
 docBase=../../../../abewebapp
 crossContext=true
 debug=0
 reloadable=false
 trusted=false/
Context path=/abewebapp
 docBase=../../../../abewebapp
 crossContext=true
 debug=0
 reloadable=false
 trusted=false/

This crashes the system... because the two docbases are not unique.
I don't think this is the problem. What system are you running Tomcat on?

Is there another way to configure this??

Thanks,
Annie

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









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




RE: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Ed Abrams

I believe that Joe is right: the JSP/Servlet spec is a server-side spec, and
the servers serve (forgive the pun) the browser community.  A spec that
actually excludes even 1% of the browsers is suspect, IMHO.  (And I'm not
sure I believe that the JSP/Servlet spec could possibly be the culprit --
surely the culprit here is some optional behavior of Tomcat, since other
implementations of the same spec work dandy on other web/Servlet servers.)

-Original Message-
From: Joe Laffey [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 8:27 AM
To: Tomcat Users List
Subject: RE: IE 5 on Mac is incompatible with TC 4?


On Fri, 8 Mar 2002, Randy Layman wrote:


   I haven't been following this thread but it seems like you are
 saying that Tomcat should be modified to work correctly with IE 5.  The
 problem with that is that Tomcat is an reference implementation of a
 particular spec (JSP/Servlet) which dictates how things have to work - it
is
 the reference by which all others are implemented.  It can't change to
 accommodate bugs or special features of client software.


Who cares if it's a reference implementation? If it doesn't work with
current mainstream browsers then it is useless. No company running a
ecommerce site wants to alienate all Mac IE5 users. It would be idiotic,
not mention bad business.

Tomcat must work with all current mainstream browsers (at least NS and IE)
on all all major platforms for it to be useful. Typical sers do not
upgrade their browsers. So everything else must be upgraded to work with
them, bugs and all.

My $0.02

--
Joe Laffey  |  Want to convert subnet masks between different
LAFFEY Computer Imaging |  notations, or figure the number of IPs in a
block?
St. Louis, MO   |  Whatmask-It's FREE -
www.laffeycomputer.com/wm.html

--


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



Repost:Urgent: Trouble starting Tomcat - Unix - omvs

2002-03-08 Thread Brown Bay

Tomcat 4.0.1, JDK 1.3.1, OMVS Unix Os390.

When I start Tomcat I get this error.

 Exception during startup processing
 java.lang.reflect.InvocationTargetException:
 javax.xml.parsers.FactoryConfigurationError
 at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:157)
 at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

 Can you please point me to the right direction.

 Thanks.

 Brown.


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




RE: AW: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Rich Sneiderman

Sorry to jump in on this but I'm not sure that encodeURL will solve the
problem.  

If I understand it correctly, encodeURL will 'ONLY' add session
information if it determines that it must be added because cookies are
disabled.  To quote the JavaDoc for encodeURL:

quote
The implementation of this method includes the logic to determine
whether the session ID needs to be encoded in the URL. For example, if
the browser supports cookies, or session tracking is turned off, URL
encoding is unnecessary. 
/quote

Have you guys determined that Tomcat recognizes that Mac IE does not
support cookies in this case?

- Rich

-Original Message-
From: David Cassidy [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 08, 2002 7:36 AM
To: Tomcat Users List
Subject: Re: AW: IE 5 on Mac is incompatible with TC 4?


sounds to me that this whole line of conversation could be summed up as

If you want users without cookies to use your site then use encodeURL if
not tough.

This isn't a tomcat issue, it's a lazy ( web site) programmer issue ;-^)

(honest not flame bait :

D



Joe Laffey wrote:

 On Fri, 8 Mar 2002, Ralph Einfeldt wrote:

  I don't copletly agree with that.
 
  As long as you don't break specs it is possible to do something in 
  tomcat to deal with errors in browsers. (Like missbehavior in the 
  headers of a http request)
 
  If a browser has a bug that you can't deal with, without breaking 
  the spec there isn't much you can do.

 I understand your concern over the specs. But users don't care about 
 specs, neither do manager, CEOs, or the bean counters. They care about

 profits.  And alienating users with your website is NOT a way to 
 increase profits ;-)

  There might also be browser bugs that you can't avoid at all. E.G. 
  if a browser doesn't send a cookie under certain conditions, what 
  would you suggest to change on the server side to change that. (I 
  don't know if this happens here)
 

 I too know nothing about the issue, and have not tested it to see if 
 it even exists. (Perhaps I should have kept my mouth shut in the first
 place.) I simply wanted to point out that hold spec up as Holy Grail 
 doesn't do any users any good at all. There will always be 
 incompatibilities. The industry has tried forever to have specs, 
 guidelines, and requirements. There have always been exceptions. 
 Unless you control ALL the software involved, or have the full 
 cooperation of those who do (MS, cooperate? yeah, sure...) things will

 have to be adjusted to fit.

 If this is indeed a bug in IE5 Mac then it should be documented as an 
 incompatibility prominently on the Tomcat website. This way developers

 won't look like idiots when their clients call screaming that their 
 daughter can't even order products from their website from her iMac! 
 The prudent developer will find a workaround or choose something other

 than Tomcat.

  In this case you don't have to alienate all Mac IE5
  users because there is workaround: using encodeUrl().
  Which should be used anyway, because otherwise you will alienate all

  users that disable cookies. (Which will be more than Mac OS 9 users 
  with IE 5)

 If this works then yes, it is a good solution. (Not requiring cookies 
 is always a good solution, but it costs more time/money.) However, 
 IMHO, the Tomcat docs ought to reflect this incompatibility 
 prominently so the developer know that they will have to waste hours 
 working around it.

 Again, I have no idea if a bug really exists. I am simply making noise

 because I think that money is more important than specs to most 
 developers and definitely to most suits.

 I will now be quiet. I hope I haven't offended you or anyone on the 
 Tomcat team. I think Tomcat is a good project.

 --
 Joe Laffey  |  Want to convert subnet masks between
different
 LAFFEY Computer Imaging |  notations, or figure the number of IPs in a
block?
 St. Louis, MO   |  Whatmask-It's FREE -
www.laffeycomputer.com/wm.html
 --
 

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


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


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




Is there a forum for Jboss/Tomcat?

2002-03-08 Thread Xue-Feng Yang

I am looking for a forum for Jboss/Tomcat. If anyone
knows a link, please let me know.

__ 
Find, Connect, Date! http://personals.yahoo.ca

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




Re: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Dave Makower

I've been watching this thread with some interest, because I have had no
difficulty using cookie-based sessions on Tomcat 4.0.1 with Mac OS X and IE.

Judging from the headers you reproduced in your email, it would appear the
Tomcat has been configured in such a way as to treat the session cookie as
secure, which means that it should ONLY be sent over an encrypted
connection.  As a result, the browser will NOT send the cookie over a
regular HTTP session, so if you switch back and forth between regular HTTP
and HTTP/SSL (i.e., https), the requests will not use the same session.

In order to maintain sessions across HTTP and HTTPS, we use a non-secure
cookie as the session ID (I think this is the default, anyway).  Once
someone logs in, which we only allow to occur over SSL, we and set a secure
cookie with a randomly-generated value in the response.  After that, we
redirect all traffic that requires a logged-in user to HTTPS, and only treat
them as really logged in if the secure cookie is present, and matches the
value generated by us when they logged in.  This allows us to switch the
browser back and forth between HTTP and HTTPS at will, and only require the
user to log in once per session.

The system described above relies on correct behavior of cookies on the Mac
in IE, and it works for us.  I don't know if any behavior on the Tomcat side
has changed since 4.0.1, but I would tend to doubt it.

Why are you using a secure cookie for the session cookie?  Do you need to?
If so, you can't expect the session to remain intact across HTTP and HTTPS
requests.  Any browser that DOES send a secure cookie over a straight HTTP
request is dangerously out of spec.

On 3/8/02 10:32 AM, Anders Rundgren [EMAIL PROTECTED] wrote:
 Just done!  No cookies are sent from IE which means that TC is likely
 to send something IE 5 Mac does not understand.  Secure is an addition that
 TC offer but not IIS.  Secure is though RFC-compliant so maybe IE 5/mac
 *is* broken.
 
 TOMCAT
 ---
 Date: Fri, 08 Mar 2002 15:00:42 GMT
 Server: Apache/1.3.23 (Unix) mod_ssl/2.8.6 OpenSSL/0.9.6 mod_jk/1.2.0
 EXPIRES: Thu, 01 Jan 1970 00:00:00 GMT
 Set-Cookie: JSESSIONID=7C1F8E3DD950780CA775B3EB3AE74D16;Path=/BuyerASP;Secure
 Connection: close
 Content-Type: text/html
 
 IIS
 ---
 Server: Microsoft-IIS/5.0
 Date: Fri, 08 Mar 2002 15:13:12 GMT
 Connection: Keep-Alive
 Content-Length: 1443
 Content-Type: text/html
 Expires: Fri, 08 Mar 2002 15:12:12 GMT
 Set-Cookie: ASPSESSIONIDGQQGGWNY=INDLBBEAKPOBKEMFDDDHAFCM; path=/shop
 Cache-control: private


-- 
+---+
| Dave Makower[EMAIL PROTECTED] |
| http://www.davemak.com/   |
+---+



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




HP-UX 10.20 Building mod_jk

2002-03-08 Thread emmanuel . delrue


Hi !

I need to build mod_jk on a HP-UX 10.20 server.

When I execute the script build-hpux-cc.sh, this error is returned :

Building mod_jk
cc -DHPUX10 -Aa -Ae -D_HPUX_SOURCE -DNO_DBM_REWRITEMAP -DUSE_HSREGEX
-DUSE_EXPAT -I../lib/expat-lite +z -DSHARED_MODULE
-I/usr/local/apache/include -I../common -I/opt/java/include
-I/opt/java/include/hp-ux  -c ../common/jk_ajp12_worker.c
cpp: jk_global.h, line 94: error 4036: Can't open include file
'sys/select.h'.
apxs:Break: Command failed with rc=1
Error with apxs


Environnement :

HP-UX 10.20,
Apache 1.3.23 built from sources,
Tomcat 3.3a,
Perl 5.6


Any Idea ?
Thank a lot,

Emmanuel Delrue



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




Re: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Anders Rundgren

Dave,

snip
The system described above relies on correct behavior of cookies on the Mac
in IE, and it works for us.  I don't know if any behavior on the Tomcat side
has changed since 4.0.1, but I would tend to doubt it.

That's nice to hear :-|

Why are you using a secure cookie for the session cookie?  Do you need to?

1. We tested this exclusively over HTTPS.  For HTTP things work OK:

2. Actually, we do absolutely nothing but request.getSession() which
triggers the session-mechanism according to my fellow developer.  I.e.
we don't handle cookies ourselves, we rely on Tomcat's handling which
has worked fine until we started to mess with Mac and IE 5.

If so, you can't expect the session to remain intact across HTTP and HTTPS
requests.  Any browser that DOES send a secure cookie over a straight HTTP
request is dangerously out of spec.

Note, we don't switch between HTTP and HTTPS, but you are right in your
comment.

cheers,
Anders



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




Trouble with Jsp

2002-03-08 Thread Sergio I. Lima

Hello:
I have a Red Hat Linux 7.2 box installed with: IBMJAVA 2-13 and TOMCAT
4.0.2, I Installed the binary rpm versions of this packages .  When I try to
access any Jsp page (tomcat jsp examples included) show me the following
error:
Exeption:
javax.servlet.ServletExecption: /sun/tools/javac/Main
root cause:
java.lang.NoClassDefFoundError: /sun/tools/javac/Main

Please help me.

Ivan


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




Tomcat 402 Hanging after a few days

2002-03-08 Thread Jarecsni Jnos

Hi,

this week there were some postings regarding $subj. I filed a bug report
this afternoon, after our tomcat hung again (it was last restarted on
Monday). One of the Catalina processes dies so completely, that it cannot be
killed with kill -9. Well so far I thought this can only happen on a
windows... :)

so check out this bug and vote for it:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6990

ciao,
Jnos


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




RE: HP-UX 10.20 Building mod_jk

2002-03-08 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

Is sys/select.h in your PATH?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:04 AM
To: Tomcat Users List
Subject: HP-UX 10.20 Building mod_jk



Hi !

I need to build mod_jk on a HP-UX 10.20 server.

When I execute the script build-hpux-cc.sh, this error is returned :

Building mod_jk
cc -DHPUX10 -Aa -Ae -D_HPUX_SOURCE -DNO_DBM_REWRITEMAP -DUSE_HSREGEX
-DUSE_EXPAT -I../lib/expat-lite +z -DSHARED_MODULE
-I/usr/local/apache/include -I../common -I/opt/java/include
-I/opt/java/include/hp-ux  -c ../common/jk_ajp12_worker.c
cpp: jk_global.h, line 94: error 4036: Can't open include file
'sys/select.h'.
apxs:Break: Command failed with rc=1
Error with apxs


Environnement :

HP-UX 10.20,
Apache 1.3.23 built from sources,
Tomcat 3.3a,
Perl 5.6


Any Idea ?
Thank a lot,

Emmanuel Delrue



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

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




Re: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Dave Makower

On 3/8/02 11:36 AM, Anders Rundgren [EMAIL PROTECTED] wrote:
 2. Actually, we do absolutely nothing but request.getSession() which
 triggers the session-mechanism according to my fellow developer.  I.e.
 we don't handle cookies ourselves, we rely on Tomcat's handling which
 has worked fine until we started to mess with Mac and IE 5.

Perhaps there is something in the configuration of your server (server.xml),
or its default webapp settings (conf/web.xml), or the configuration of your
webapp (WEB-INF/web.xml) that is causing the session cookie to be set as a
secure cookie.

 Note, we don't switch between HTTP and HTTPS, but you are right in your
 comment.

If you're only responding to HTTPS, then you probably don't need to set the
Secure flag on the cookie anyway.  I would bet that if you can find a way to
get tomcat not to set that flag, your problem may go away.

-- 
+---+
| Dave Makower[EMAIL PROTECTED] |
| http://www.davemak.com/   |
+---+



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




AW: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Ralph Einfeldt

Just to list the possible sources:

- Tomcat doesn't send the cookie
  Unlikely, as it works with other browsers
- Tomcat send it in a format that this version of ie doesn't recognize
  Two variants for this
  - The header contains/misses something that makes this version of IE
fail.
  - Something tomcat creates garbage on some headers when encrypting it 
- This version of IE doesn't send the cookie
  Nobody but MS can do anything about it.
- This version of IE sends the cookies in format that tomcat doesn't
recognise
  - The header contains somthings that hinders tomcat to decrypt the
cookie correctly
  - The decrypted header contains somthings that hinders tomcat to read
the cookie
  This doesn't mean that it must be a fault of the IE. It's possible
that
  tomcat has a bug that just has an effect if certain (legal) bytes are
present in 
  the header.

As this happens with SSL, it's hard to debug. (Watching the network
to see who sends which cookies doesn't work)

The only point where you can debug is the tomcat sources to look at the
tomcat 
generated header just before it is encryped and to look at the IE
generated header 
directly after it is encryted.
To do that you would have to look at the raw data that was sent. To look
at the header 
with the servlet API can be to late. If tomcat somehow didn't recognize
a header you 
won't know if it wasn't sent or if tomcat just didn't recognizee it.


 -Ursprüngliche Nachricht-
 Von: Anders Rundgren [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 8. März 2002 17:37
 An: Tomcat Users List
 Betreff: Re: IE 5 on Mac is incompatible with TC 4?
 
 
 Dave,
 
 snip
 The system described above relies on correct behavior of 
 cookies on the Mac
 in IE, and it works for us.  I don't know if any behavior on 
 the Tomcat side
 has changed since 4.0.1, but I would tend to doubt it.
 
 That's nice to hear :-|
 
 Why are you using a secure cookie for the session cookie?  
 Do you need to?
 
 1. We tested this exclusively over HTTPS.  For HTTP things work OK:
 
 2. Actually, we do absolutely nothing but request.getSession() which
 triggers the session-mechanism according to my fellow developer.  I.e.
 we don't handle cookies ourselves, we rely on Tomcat's handling which
 has worked fine until we started to mess with Mac and IE 5.
 
 If so, you can't expect the session to remain intact across 
 HTTP and HTTPS
 requests.  Any browser that DOES send a secure cookie over a 
 straight HTTP
 request is dangerously out of spec.
 
 Note, we don't switch between HTTP and HTTPS, but you are 
 right in your
 comment.
 
 cheers,
 Anders
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

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




Re: Trouble with Jsp

2002-03-08 Thread rsequeira


This exception arises because tools.jar isn't visible. You need to set
JAVA_HOME to point to your jdk installation (if you haven't already done
that). If you have set JAVA_HOME and your servlets run, but jsps don't then
you could either:
1) Create a symbolic link between JAVA_HOME/lib/tools.jar and
CATALINA_HOME/lib directory
2)  Or you could copy tools.jar to your CATALINA_HOME/lib directory.

Thanks
RS





Sergio I. Lima [EMAIL PROTECTED] on 03/08/2002 10:50:30 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   'Tomcat Users List' [EMAIL PROTECTED]
cc:

Subject:  Trouble with Jsp

Hello:
I have a Red Hat Linux 7.2 box installed with: IBMJAVA 2-13 and TOMCAT
4.0.2, I Installed the binary rpm versions of this packages .  When I try
to
access any Jsp page (tomcat jsp examples included) show me the following
error:
Exeption:
   javax.servlet.ServletExecption: /sun/tools/javac/Main
root cause:
   java.lang.NoClassDefFoundError: /sun/tools/javac/Main

Please help me.

Ivan


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









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




Réf. : RE: HP-UX 10.20 Building mod_jk

2002-03-08 Thread emmanuel . delrue


It seems that there is no select.h on this server ...
Do you know how to get it ?




   
  
PELOQUIN,JEFFREY  
  
(Non-HP-Boise,ex1)Pour :  'Tomcat Users List' 
[EMAIL PROTECTED]  
jeffrey_peloquin@ncc :
  
on.hp.com Objet :  RE: HP-UX 10.20 Building 
mod_jk  
   
  
08/03/2002 17:59   
  
Veuillez répondre à
  
Tomcat Users List
  
   
  
   
  




Is sys/select.h in your PATH?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:04 AM
To: Tomcat Users List
Subject: HP-UX 10.20 Building mod_jk



Hi !

I need to build mod_jk on a HP-UX 10.20 server.

When I execute the script build-hpux-cc.sh, this error is returned :

Building mod_jk
cc -DHPUX10 -Aa -Ae -D_HPUX_SOURCE -DNO_DBM_REWRITEMAP -DUSE_HSREGEX
-DUSE_EXPAT -I../lib/expat-lite +z -DSHARED_MODULE
-I/usr/local/apache/include -I../common -I/opt/java/include
-I/opt/java/include/hp-ux  -c ../common/jk_ajp12_worker.c
cpp: jk_global.h, line 94: error 4036: Can't open include file
'sys/select.h'.
apxs:Break: Command failed with rc=1
Error with apxs


Environnement :

HP-UX 10.20,
Apache 1.3.23 built from sources,
Tomcat 3.3a,
Perl 5.6


Any Idea ?
Thank a lot,

Emmanuel Delrue



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

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






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




Re: Tomcat 402 Hanging after a few days

2002-03-08 Thread Craig R. McClanahan



On Fri, 8 Mar 2002, [iso-8859-2] Jarecsni János wrote:

 Date: Fri, 8 Mar 2002 17:55:01 +0100
 From: [iso-8859-2] Jarecsni János [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat-User [EMAIL PROTECTED]
 Subject: Tomcat 402 Hanging after a few days

 Hi,

 this week there were some postings regarding $subj. I filed a bug report
 this afternoon, after our tomcat hung again (it was last restarted on
 Monday). One of the Catalina processes dies so completely, that it cannot be
 killed with kill -9. Well so far I thought this can only happen on a
 windows... :)

 so check out this bug and vote for it:
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6990


Voting for it won't do any good, if that is all that happens.

What will do some good is investigating far enough to create a
reproducible test case so that the cause can be understood, and therefore
dealt with.  Just to give you a feel for the range of possibilities, the
real problem could be in:
- The OS you are using
- The JVM you are using
- Native libraries you are using
- Tomcat
- Your webapp

Without some help in narrowing it down, there's not much any of the Tomcat
developers can do except mark such a bug as WORKSFORME (and it does - I've
seen and heard about Tomcat running many webapps for much longer periods
of time).

Note:  If kill -9 doesn't work, then there's guaranteed to be an OS
problem -- it should not be possible to create an unkillable process.  But
that is undoubtedly not the whole story.

Note:  On a Linux box, Tomcat looks like a lot of processes, but it's not
-- those are really threads.  So doing a kill on one of the threads is not
going to bring the whole JVM down.  Do a ps --forest command to see
which is the parent PID.

 ciao,
 János


Craig


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




RE: Is there a forum for Jboss/Tomcat?

2002-03-08 Thread Kemp Randy-W18971

Go to the forums at www.jboss.org

-Original Message-
From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 10:00 AM
To: Tomcat Users List
Subject: Is there a forum for Jboss/Tomcat?


I am looking for a forum for Jboss/Tomcat. If anyone
knows a link, please let me know.

__ 
Find, Connect, Date! http://personals.yahoo.ca

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




RE: Réf. : RE: HP-UX 10.20 Building mod_jk

2002-03-08 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

On our linux machine I found this:
./usr/i386-glibc20-linux/include/sys/select.h
  

also, this was in a copy of jk_global.h that I got when I downloaded
mod_webapp
#ifndef NETWARE
#include netinet/tcp.h
#include arpa/inet.h
#include sys/un.h
#ifndef _OSD_POSIX
#include sys/socketvar.h
#endif
#ifndef HPUX11
#include sys/select.h
#endif
#endif
I would guess you need the glib libraries for a 10.20 install
try www.gnu.org,


You might try looking at whats available at:
http://www.hp.com/products1/unix/webservers/apache/downloads/index.html

although it appears that the 10.20 link is broken.


You could also posting something to the forums on
www.itrc.hp.com

Jeff

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 10:20 AM
To: Tomcat Users List
Subject: Réf. : RE: HP-UX 10.20 Building mod_jk



It seems that there is no select.h on this server ...
Do you know how to get it ?




 

PELOQUIN,JEFFREY

(Non-HP-Boise,ex1)Pour :  'Tomcat Users List'
[EMAIL PROTECTED]  
jeffrey_peloquin@ncc :

on.hp.com Objet :  RE: HP-UX 10.20
Building mod_jk  
 

08/03/2002 17:59

Veuillez répondre à

Tomcat Users List

 

 





Is sys/select.h in your PATH?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:04 AM
To: Tomcat Users List
Subject: HP-UX 10.20 Building mod_jk



Hi !

I need to build mod_jk on a HP-UX 10.20 server.

When I execute the script build-hpux-cc.sh, this error is returned :

Building mod_jk
cc -DHPUX10 -Aa -Ae -D_HPUX_SOURCE -DNO_DBM_REWRITEMAP -DUSE_HSREGEX
-DUSE_EXPAT -I../lib/expat-lite +z -DSHARED_MODULE
-I/usr/local/apache/include -I../common -I/opt/java/include
-I/opt/java/include/hp-ux  -c ../common/jk_ajp12_worker.c
cpp: jk_global.h, line 94: error 4036: Can't open include file
'sys/select.h'.
apxs:Break: Command failed with rc=1
Error with apxs


Environnement :

HP-UX 10.20,
Apache 1.3.23 built from sources,
Tomcat 3.3a,
Perl 5.6


Any Idea ?
Thank a lot,

Emmanuel Delrue



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

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






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

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




Is Tomcat 3.3rc1 unstable?

2002-03-08 Thread Robert Keddie

It shuts down by itself!
What is going on?


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




how not to run servlet as root

2002-03-08 Thread Yako Sanborn

I am trying out Tomcat with apache on linux.
I would like the servlets NOT to run as root.  Where can I find the
instruction how to run servlets without privilege?  I suppose this means,
how to run tomcat on an ordinary user account or as nobody?

Thank you very much,

yako sanborn
[EMAIL PROTECTED]


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




Re: sent request to servlet from VB

2002-03-08 Thread rsequeira


see intermixed




Xie, David (IPCG-NJ) [EMAIL PROTECTED] on 03/08/2002 01:49:34 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   '[EMAIL PROTECTED]' [EMAIL PROTECTED],
  [EMAIL PROTECTED], [EMAIL PROTECTED]
cc:

Subject:  sent request to servlet from VB

Hi all,

Does anyone know how to call a servlet from VB code?  I want to sent the
request from IIS to Tomcat without using isapi_redirect.dll.  Is possible
to do this?  I look forward to your suggestions.

Check out M$ WinHTTP API (WinHttpRequest object). Also I think it would be
a good idea if you asked this question on a VB list rather than here :-)

thanks,

David

Thanks.
RS


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









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




Re: jar's include ...

2002-03-08 Thread Peter Johnson

I just downloaded the .tar.gz binary and copied them across  works fine 
although I understand that SendMailServlet must be downloaded and compiled 
separately due to some problem with the build scripts.

Peter

On 00:01 09-03-2002 Julien OIX wrote:
 
 
  hi everyone,
 
  I'm using these RPM's on a Linux RedHat 7.1
 
  apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2
  mod_bandwidth-2.0.3-2)
 
  tomcat4-4.0.2-3
  servletapi4-4.0.2-1
  xerces-j-1.4.4-2
  regexp-1.2-5
 
  Before, I used a tomcat4-4.0.1.x RPM's, which included mail.jar and
  activation.jar
  in /var/tomcat4/common/lib ;
  but with tomcat4-4.0.2.x, they are not included anymore.
 
  which RPM gives them now ? neither servletapi4-4.0.2-1,
 xerces-j-1.4.4-2 nor regexp-1.2-5, which are required to install
 tomcat4-4.à.2.x ...
 
 So, I didn't find any RPm which coud provide me mail.jar,
 activation.jar, ...
 
 any ideas ?
 
  thanks in advance.
  --
  Julien OIX
  Service Informatique de Gestion
  Tél: 02 40 99 83 65
  mail: [EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




RE: Is Tomcat 3.3rc1 unstable?

2002-03-08 Thread Larry Isaacs

Without more details, it is hard to assess whether this is a
problem in Tomcat or a problem with your system, JVM, etc.
Most often, this type of problem turned out not to be Tomcat.

Cheers,
Larry

 -Original Message-
 From: Robert Keddie [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, March 08, 2002 2:43 PM
 To: Tomcat Users List' [EMAIL PROTECTED]
 Subject: Is Tomcat 3.3rc1 unstable?
 
 
 It shuts down by itself!
 What is going on?
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: directory issues using Tomcat 4.0.2 and Apache 1.3.23 with mod_webapp

2002-03-08 Thread Peter Johnson

Below is what I did, I hope that it helps. I am new to Tomcat and Java in 
general although I have had to deploy and configure ServletExec.

Peter

httpd.conf
---
# Make sure that you have provided a ServerName and ServerPort

WebAppConnection conn warp localhost:8008
WebAppDeploy ROOT conn /tomcat/
WebAppDeploy examples conn /examples/
WebAppDeploy tomcat-docs conn /tomcat-docs/
WebAppDeploy webdav conn /webdav/
WebAppInfo /webapp-info



server.xml
---
Service name=Tomcat-Apache

   Connector className=org.apache.catalina.connector.warp.WarpConnector
port=8008 minProcessors=5 maxProcessors=75
enableLookups=false appBase=webapps acceptCount=10 debug=0/

Engine className=org.apache.catalina.connector.warp.WarpEngine 
name=intranet debug=0

change to your appropriate value  ^^^

   Logger className=org.apache.catalina.logger.FileLogger 
prefix=apache_log. suffix=.txt timestamp=true/

   Realm className=org.apache.catalina.realm.MemoryRealm /

   Host name=intranet debug=0 appBase=webapps unpackWARs=true
 change value  ^^^

 Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs  prefix=apache_access. suffix=.log pattern=common/

 Logger className=org.apache.catalina.logger.FileLogger 
directory=logs  prefix=apache. suffix=.log timestamp=true/

 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --

 !-- Tomcat Manager Context --
 Context path=/manager docBase=manager debug=0 
privileged=true/

 !-- Tomcat Examples Context --
 Context path=/examples docBase=examples debug=0 
reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=apache_examples. suffix=.log timestamp=true/
   Ejb name=ejb/EmplRecord type=Entity 
home=com.wombat.empl.EmployeeRecordHome 
remote=com.wombat.empl.EmployeeRecord/
   Environment name=maxExemptions type=java.lang.Integer 
value=15/
   Parameter name=context.param.name value=context.param.value 
override=false/
   Resource name=jdbc/EmployeeAppDb auth=SERVLET 
type=javax.sql.DataSource/
   ResourceParams name=jdbc/EmployeeAppDb
 parameternameuser/namevaluesa/value/parameter
 parameternamepassword/namevalue/value/parameter
 parameternamedriverClassName/name
   valueorg.hsql.jdbcDriver/value/parameter
 parameternamedriverName/name
   valuejdbc:HypersonicSQL:database/value/parameter
   /ResourceParams

   Resource name=mail/Session auth=Container 
type=javax.mail.Session/
   ResourceParams name=mail/Session
 parameter
   namemail.smtp.host/name
   valuelocalhost/value
 /parameter
   /ResourceParams
 /Context

   /Host

 /Engine

   /Service



On 13:03 07-03-2002 Buck Woodson wrote:
 Thanks, Peter.  I too tried this Sun article route without success on 
 WIN2K.  Win2K doesn't like the virtual host business at all.  The other 
 article I quoted works in Win2K except for the serving gifs etc. problem.  
 Its not strictly a directory problem either, having the gif in the same path 
 as the jsp you have the same problem.  With Tomcat by itself, no problem.
 
 You can't even hang the gif directory off of Apache's DocumentRoot and see 
 it work like you'd want it to.
 
 Here is the Apache access log to the typical failed service:
 ipAddress - - [06/Mar/2002:16:27:14 -0600] GET /examples/images/code.gif 
 HTTP/1.1 500 305
 
 Here is the access log to the kluge direct navigate and back-navigate:
 ipAddress - - [06/Mar/2002:16:27:14 -0600] GET 
 /examples/images/execute.gif HTTP/1.1 304 0
 
 Sorry I failed to mention the Windows 2000.
 
 
 From: Peter Johnson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: directory issues using Tomcat 4.0.2 and Apache 1.3.23 with 
 mod_webapp
 Date: Thu, 7 Mar 2002 09:24:01 +1100 (EST)
 
 I followed the site below and all works ok. Basically it describes some 
 simple changes to
 be made in server.xml
 
 http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
 
 Peter
 
  Set up these as per this URL, JSP will be functional but no gifs in  
 examples:
  http://www.webmasterbase.com/article.php?pid=44aid=305
 
  Then go to
 
  http://yourApacheServerName/examples/jsp/index.html
 
  Images don't serve from Apache nor from Tomcat.
 
  Apache thinks it should serve them from DocumentRoot/examples.
 
  Using Apache Alias and Redirect also fails.
 
  Oddly enough, you can successfully browse
  http://yourApacheServerName/examples/images, manually select each 
 image  file, it
  displays properly, then go back to 

RE: sent request to servlet from VB

2002-03-08 Thread Xie, David (IPCG-NJ)

Where do I look for intermixed?  Is it possible to call servlet from COM?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 2:59 PM
To: Tomcat Users List
Subject: Re: sent request to servlet from VB



see intermixed




Xie, David (IPCG-NJ) [EMAIL PROTECTED] on 03/08/2002 01:49:34 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   '[EMAIL PROTECTED]' [EMAIL PROTECTED],
  [EMAIL PROTECTED], [EMAIL PROTECTED]
cc:

Subject:  sent request to servlet from VB

Hi all,

Does anyone know how to call a servlet from VB code?  I want to sent the
request from IIS to Tomcat without using isapi_redirect.dll.  Is possible
to do this?  I look forward to your suggestions.

Check out M$ WinHTTP API (WinHttpRequest object). Also I think it would be
a good idea if you asked this question on a VB list rather than here :-)

thanks,

David

Thanks.
RS


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









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



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




Re: Load-on-startup

2002-03-08 Thread Christopher K . St . John

PELOQUIN,JEFFREY (Non-HP-Boise,ex1) wrote:
 
 However, I have noticed that if I restart the context using the manager, the
 servlet are initialized according to their physical order in web.xml, thus
 ignoring the load-on-startup tag.
 

 You might want to just go ahead and report it as a bug.
The worst that could happen is that your bug report gets
marked not a bug (and then you'd know). 


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




Tomcat 4.0.3 ClassLoader Problem

2002-03-08 Thread Dave Makower

My app used to work on Tomcat 4.0.1, but now I get a
java.lang.NoClassDefFoundError whenever the application tries to use one of
our custom tags: in particular, it's a tag that uses XSLT transformations.
The class that is not found is
javax.xml.transform.TransformerConfigurationException, which is located in
the xml-apis.jar file, located in our webapp's WEB-INF/lib directory.  This
file came with Xalan.

I've attached a stack trace below.  Notice that the error happens in
introspecting on the Tag bean.  From this I infer that whatever class is
introspecting on the bean was loaded by a ClassLoader that does not have
visibility to classes loaded from the webapp's WEB-INF/lib directory.  (Can
someone confirm this?)

Is this a bug or a feature?  Can anyone confirm that my analysis above is
correct, or else explain where I've failed to analyze the situation
properly?  Does anyone have any suggestions as to how I can fix this
problem?

Now, it's possible that I could work around this problem by moving
xerces.jar out of catalina's common/lib directory, as described by the
release notes (as a way of preventing Tomcat from providing an XML parser to
all webapps).  But this would require everyone installing the app to modify
their tomcat installation, and I want our webapp to work with a vanilla
tomcat installation, out of the box.

---

Stack trace:

java.lang.NoClassDefFoundError:
javax/xml/transform/TransformerConfigurationException
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getDeclaredMethods(Class.java:1039)
at java.beans.Introspector$1.run(Introspector.java:852)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
at java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
at java.beans.Introspector.getBeanInfo(Introspector.java:294)
at java.beans.Introspector.getBeanInfo(Introspector.java:81)
at 
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
at 
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146
)
at 
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
rseEventListener.java:822)
at 
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
istener.java:151)
at 
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
tListener.java:1032)
at 
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:217)
at 
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:212)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


-- 
+---+
| Dave Makower[EMAIL PROTECTED] |
| http://www.davemak.com/   |
+---+



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




jsp parameters. Urgent!

2002-03-08 Thread Nancy Crisostomo Martinez

Please I need help,...
This is not a Tomcat question, but I know here I can find some JSP
experts:

Could you tell me all the ways I could send (safe) parameters from a jsp
to a jsp file?
Please discard the url parameters...

I have a jsp (Valida.jsp) which opens a new navigator window
(javascript), and that new navigator window contents another jsp
(Portal.jsp).  I need to send some parameters from Valida.jsp to
Portal.jsp. In fact the second Jsp is formed by frames and one of the
frames has a jsp (Left.jsp) that needs those parameters...

Could you please help me? Give some hints or examples...  I really need
your help..
Or if you couldn't, please tell me where I can find that information

Thank you very much..
Nancy.


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




Re: Tomcat 4.0.3 ClassLoader Problem

2002-03-08 Thread Remy Maucherat

 My app used to work on Tomcat 4.0.1, but now I get a
 java.lang.NoClassDefFoundError whenever the application tries to use one
of
 our custom tags: in particular, it's a tag that uses XSLT transformations.
 The class that is not found is
 javax.xml.transform.TransformerConfigurationException, which is located in
 the xml-apis.jar file, located in our webapp's WEB-INF/lib directory.
This
 file came with Xalan.

Yes, it's a well known issue.

 I've attached a stack trace below.  Notice that the error happens in
 introspecting on the Tag bean.  From this I infer that whatever class is
 introspecting on the bean was loaded by a ClassLoader that does not have
 visibility to classes loaded from the webapp's WEB-INF/lib directory.
(Can
 someone confirm this?)

 Is this a bug or a feature?  Can anyone confirm that my analysis above is
 correct, or else explain where I've failed to analyze the situation
 properly?  Does anyone have any suggestions as to how I can fix this
 problem?

That's a feature gone wrong. Sorry for the trouble ...
Move Xalan to common/lib, or upgrade to 4.0.4-b1.

Remy


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




Re: jsp parameters. Urgent!

2002-03-08 Thread Micael Padraig Og mac Grene

 From your question, I assume you know nothing about the session 
object?  Take a look at it.

At 04:45 PM 3/8/02 -0600, you wrote:
Please I need help,...
This is not a Tomcat question, but I know here I can find some JSP
experts:

Could you tell me all the ways I could send (safe) parameters from a jsp
to a jsp file?
Please discard the url parameters...

I have a jsp (Valida.jsp) which opens a new navigator window
(javascript), and that new navigator window contents another jsp
(Portal.jsp).  I need to send some parameters from Valida.jsp to
Portal.jsp. In fact the second Jsp is formed by frames and one of the
frames has a jsp (Left.jsp) that needs those parameters...

Could you please help me? Give some hints or examples...  I really need
your help..
Or if you couldn't, please tell me where I can find that information

Thank you very much..
Nancy.


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



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




Re: jsp parameters. Urgent!

2002-03-08 Thread Micael Padraig Og mac Grene

Essentially, the answer is to have whatever page calls a page send the page 
the parameters, unless you want to store the data in a larger scope.  The 
page that calls the page can be the page itself, of course.  Nothing 
metaphysical about that.  Just can be itself.  If you mean can a page which 
is not calling a page send the page the parameters, then you have to start 
thinking about putting the data in a larger scope, i.e. session, 
application, world.

Micael

At 04:45 PM 3/8/02 -0600, you wrote:
Please I need help,...
This is not a Tomcat question, but I know here I can find some JSP
experts:

Could you tell me all the ways I could send (safe) parameters from a jsp
to a jsp file?
Please discard the url parameters...

I have a jsp (Valida.jsp) which opens a new navigator window
(javascript), and that new navigator window contents another jsp
(Portal.jsp).  I need to send some parameters from Valida.jsp to
Portal.jsp. In fact the second Jsp is formed by frames and one of the
frames has a jsp (Left.jsp) that needs those parameters...

Could you please help me? Give some hints or examples...  I really need
your help..
Or if you couldn't, please tell me where I can find that information

Thank you very much..
Nancy.


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



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




RE: Processing BodyContent in doAfterTag() has no effect

2002-03-08 Thread K Br

Thanks for your help. But I don't think that is
causing the problem:
  (a) for one thing, the other text written to
 body content show up in the output. Only the
 stuff inserted into the enclosing writer in
 doAfterBody() is mysteriously missing.

  (b) I am writing to the enclosing JspWriter -
  not to the body content.

Consider the following:

  body
  kobe:Filter 
I am a Laker Fan. I am Kobe.
  /kobe:Filter
  body

What appears on output is:
 I AM A LAKER FAN I AM KOBE

The periods are missing. What (I think) my doAfterBody()
is doing is to replace . tokens with .br tokens.
Can you tell me where the br tokens that I inserted
vanished?

 /K

On Fri, 8 Mar 2002 01:52:33 -0500  Ryan Daigle [EMAIL PROTECTED] wrote:
I believe you have to flush the writer out to the body content of the tag at
the end tag event:

doEndTag() throws JspException {
   bodyContent.writeOut(YourWriter);
}

That work?

-Original Message-
From: K Br [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 6:29 PM
To: [EMAIL PROTECTED]
Subject: Processing BodyContent in doAfterTag() has no effect


This is no JSP forum and I understand that.
I would appreciate any pointers on this.

Using Tomcat4.0.2 I have written a custom tag with body.
The intention is to process the body and
replace any periods with line breaks (in HTML)
before writing the BodyContent to the
enclosing JspWriter.

It seems that replacing . with .br does not
take any effect. The output HTML does not contain
the br tags (when viewed from the browser).

From the doAfterBody() I call the filter
to replace the periods with br as follows.

Pl let me know if my understanding of the
TAG lifecycle is wrong:

public int doAfterBody() throws JspException {
try {
String txt = getBodyContent().getString();
replaceDots(txt.toLowerCase()
getPreviousOut()
);
}
catch (java.io.IOException ioxc) {
throw new JspException(ioxc.toString());
}

return SKIP_BODY;
}

private void replaceDots(final String x, JspWriter w)
throws java.io.IOException
{
if (x == null) return ;
StringTokenizer st = new StringTokenizer(x, .);
while (st.hasMoreTokens()) {
String f = (String)st.nextToken();
w.println( f.equals(.) ? .br:f);
}
}



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

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





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




RE: Processing BodyContent in doAfterTag() has no effect

2002-03-08 Thread rks

The problem is in your doAfterBody().
StringTokenizer never returns the delimiter
and hence the block that inserts BR in the
enclosing JspWriter never gets executed.

Replace

  StringTokenizer st = new StringTokenizer(x, .);

with

  StringTokenizer st = new StringTokenizer(x, .,true);


   private void replaceDots(final String x, JspWriter w)
  throws java.io.IOException
   {
  if (x == null) return ;
  StringTokenizer st = new StringTokenizer(x, .);
  while (st.hasMoreTokens()) {
 String f = (String)st.nextToken();
 w.println( f.equals(.) ? .br:f);
  }
   }

Rk
x77309

On 8 Mar 2002, K Br wrote:

 Thanks for your help. But I don't think that is
 causing the problem:
   (a) for one thing, the other text written to
  body content show up in the output. Only the
  stuff inserted into the enclosing writer in
  doAfterBody() is mysteriously missing.

   (b) I am writing to the enclosing JspWriter -
   not to the body content.

 Consider the following:

   body
   kobe:Filter
 I am a Laker Fan. I am Kobe.
   /kobe:Filter
   body

 What appears on output is:
  I AM A LAKER FAN I AM KOBE

 The periods are missing. What (I think) my doAfterBody()
 is doing is to replace . tokens with .br tokens.
 Can you tell me where the br tokens that I inserted
 vanished?

  /K

 On Fri, 8 Mar 2002 01:52:33 -0500  Ryan Daigle [EMAIL PROTECTED] wrote:
 I believe you have to flush the writer out to the body content of the tag at
 the end tag event:
 
 doEndTag() throws JspException {
  bodyContent.writeOut(YourWriter);
 }
 
 That work?
 
 -Original Message-
 From: K Br [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 07, 2002 6:29 PM
 To: [EMAIL PROTECTED]
 Subject: Processing BodyContent in doAfterTag() has no effect
 
 
 This is no JSP forum and I understand that.
 I would appreciate any pointers on this.
 
 Using Tomcat4.0.2 I have written a custom tag with body.
 The intention is to process the body and
 replace any periods with line breaks (in HTML)
 before writing the BodyContent to the
 enclosing JspWriter.
 
 It seems that replacing . with .br does not
 take any effect. The output HTML does not contain
 the br tags (when viewed from the browser).
 
 From the doAfterBody() I call the filter
 to replace the periods with br as follows.
 
 Pl let me know if my understanding of the
 TAG lifecycle is wrong:
 
 public int doAfterBody() throws JspException {
 try {
 String txt = getBodyContent().getString();
 replaceDots(txt.toLowerCase()
 getPreviousOut()
 );
 }
 catch (java.io.IOException ioxc) {
 throw new JspException(ioxc.toString());
 }
 
 return SKIP_BODY;
 }
 
 private void replaceDots(final String x, JspWriter w)
 throws java.io.IOException
 {
 if (x == null) return ;
 StringTokenizer st = new StringTokenizer(x, .);
 while (st.hasMoreTokens()) {
 String f = (String)st.nextToken();
 w.println( f.equals(.) ? .br:f);
 }
 }


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




RE: Processing BodyContent in doAfterTag() has no effect

2002-03-08 Thread Micael Padraig Og mac Grene

Looks to me like you took all the .s out, so you can hardly expect them 
to be replaced with anything.  If that is not wrong, then you need to put a 
br in wherever there is a new token.

Micael

At 10:57 PM 3/8/02 +, you wrote:
Thanks for your help. But I don't think that is
causing the problem:
   (a) for one thing, the other text written to
  body content show up in the output. Only the
  stuff inserted into the enclosing writer in
  doAfterBody() is mysteriously missing.

   (b) I am writing to the enclosing JspWriter -
   not to the body content.

Consider the following:

   body
   kobe:Filter
 I am a Laker Fan. I am Kobe.
   /kobe:Filter
   body

What appears on output is:
  I AM A LAKER FAN I AM KOBE

The periods are missing. What (I think) my doAfterBody()
is doing is to replace . tokens with .br tokens.
Can you tell me where the br tokens that I inserted
vanished?

  /K

On Fri, 8 Mar 2002 01:52:33 -0500  Ryan Daigle [EMAIL PROTECTED] wrote:
 I believe you have to flush the writer out to the body content of the tag at
 the end tag event:
 
 doEndTag() throws JspException {
bodyContent.writeOut(YourWriter);
 }
 
 That work?
 
 -Original Message-
 From: K Br [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 07, 2002 6:29 PM
 To: [EMAIL PROTECTED]
 Subject: Processing BodyContent in doAfterTag() has no effect
 
 
 This is no JSP forum and I understand that.
 I would appreciate any pointers on this.
 
 Using Tomcat4.0.2 I have written a custom tag with body.
 The intention is to process the body and
 replace any periods with line breaks (in HTML)
 before writing the BodyContent to the
 enclosing JspWriter.
 
 It seems that replacing . with .br does not
 take any effect. The output HTML does not contain
 the br tags (when viewed from the browser).
 
 From the doAfterBody() I call the filter
 to replace the periods with br as follows.
 
 Pl let me know if my understanding of the
 TAG lifecycle is wrong:
 
 public int doAfterBody() throws JspException {
 try {
 String txt = getBodyContent().getString();
 replaceDots(txt.toLowerCase()
 getPreviousOut()
 );
 }
 catch (java.io.IOException ioxc) {
 throw new JspException(ioxc.toString());
 }
 
 return SKIP_BODY;
 }
 
 private void replaceDots(final String x, JspWriter w)
 throws java.io.IOException
 {
 if (x == null) return ;
 StringTokenizer st = new StringTokenizer(x, .);
 while (st.hasMoreTokens()) {
 String f = (String)st.nextToken();
 w.println( f.equals(.) ? .br:f);
 }
 }
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



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



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




RE: Processing BodyContent in doAfterTag() has no effect

2002-03-08 Thread Micael Padraig Og mac Grene

Why don't you use a replace function instead of all this rigamorole?

At 10:57 PM 3/8/02 +, you wrote:
Thanks for your help. But I don't think that is
causing the problem:
   (a) for one thing, the other text written to
  body content show up in the output. Only the
  stuff inserted into the enclosing writer in
  doAfterBody() is mysteriously missing.

   (b) I am writing to the enclosing JspWriter -
   not to the body content.

Consider the following:

   body
   kobe:Filter
 I am a Laker Fan. I am Kobe.
   /kobe:Filter
   body

What appears on output is:
  I AM A LAKER FAN I AM KOBE

The periods are missing. What (I think) my doAfterBody()
is doing is to replace . tokens with .br tokens.
Can you tell me where the br tokens that I inserted
vanished?

  /K

On Fri, 8 Mar 2002 01:52:33 -0500  Ryan Daigle [EMAIL PROTECTED] wrote:
 I believe you have to flush the writer out to the body content of the tag at
 the end tag event:
 
 doEndTag() throws JspException {
bodyContent.writeOut(YourWriter);
 }
 
 That work?
 
 -Original Message-
 From: K Br [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 07, 2002 6:29 PM
 To: [EMAIL PROTECTED]
 Subject: Processing BodyContent in doAfterTag() has no effect
 
 
 This is no JSP forum and I understand that.
 I would appreciate any pointers on this.
 
 Using Tomcat4.0.2 I have written a custom tag with body.
 The intention is to process the body and
 replace any periods with line breaks (in HTML)
 before writing the BodyContent to the
 enclosing JspWriter.
 
 It seems that replacing . with .br does not
 take any effect. The output HTML does not contain
 the br tags (when viewed from the browser).
 
 From the doAfterBody() I call the filter
 to replace the periods with br as follows.
 
 Pl let me know if my understanding of the
 TAG lifecycle is wrong:
 
 public int doAfterBody() throws JspException {
 try {
 String txt = getBodyContent().getString();
 replaceDots(txt.toLowerCase()
 getPreviousOut()
 );
 }
 catch (java.io.IOException ioxc) {
 throw new JspException(ioxc.toString());
 }
 
 return SKIP_BODY;
 }
 
 private void replaceDots(final String x, JspWriter w)
 throws java.io.IOException
 {
 if (x == null) return ;
 StringTokenizer st = new StringTokenizer(x, .);
 while (st.hasMoreTokens()) {
 String f = (String)st.nextToken();
 w.println( f.equals(.) ? .br:f);
 }
 }
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



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



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




RE: Processing BodyContent in doAfterTag() has no effect

2002-03-08 Thread Micael Padraig Og mac Grene

Here is a suggested replace method (sorry for saying 
function).  Cross-language pollution:

 private String replace(String content, String before, String after) {
 int cursor = content.indexOf(before);
 while (cursor  -1) {
 content= content.substring(0, cursor) + after + 
content.substring(cursor + before.length());
 cursor = content.indexOf(before, cursor + after.length());
 }
 return content;
 }

Hope this helps.  I am pretty sure your problem is a misunderstanding of 
the StringTokenizer class.  The token used to tokenize is removed from the 
tokens.  Your code seems to assume otherwise.  This replace will be a lot 
faster, anyway.

Micael

At 10:57 PM 3/8/02 +, you wrote:
Thanks for your help. But I don't think that is
causing the problem:
   (a) for one thing, the other text written to
  body content show up in the output. Only the
  stuff inserted into the enclosing writer in
  doAfterBody() is mysteriously missing.

   (b) I am writing to the enclosing JspWriter -
   not to the body content.

Consider the following:

   body
   kobe:Filter
 I am a Laker Fan. I am Kobe.
   /kobe:Filter
   body

What appears on output is:
  I AM A LAKER FAN I AM KOBE

The periods are missing. What (I think) my doAfterBody()
is doing is to replace . tokens with .br tokens.
Can you tell me where the br tokens that I inserted
vanished?

  /K

On Fri, 8 Mar 2002 01:52:33 -0500  Ryan Daigle [EMAIL PROTECTED] wrote:
 I believe you have to flush the writer out to the body content of the tag at
 the end tag event:
 
 doEndTag() throws JspException {
bodyContent.writeOut(YourWriter);
 }
 
 That work?
 
 -Original Message-
 From: K Br [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 07, 2002 6:29 PM
 To: [EMAIL PROTECTED]
 Subject: Processing BodyContent in doAfterTag() has no effect
 
 
 This is no JSP forum and I understand that.
 I would appreciate any pointers on this.
 
 Using Tomcat4.0.2 I have written a custom tag with body.
 The intention is to process the body and
 replace any periods with line breaks (in HTML)
 before writing the BodyContent to the
 enclosing JspWriter.
 
 It seems that replacing . with .br does not
 take any effect. The output HTML does not contain
 the br tags (when viewed from the browser).
 
 From the doAfterBody() I call the filter
 to replace the periods with br as follows.
 
 Pl let me know if my understanding of the
 TAG lifecycle is wrong:
 
 public int doAfterBody() throws JspException {
 try {
 String txt = getBodyContent().getString();
 replaceDots(txt.toLowerCase()
 getPreviousOut()
 );
 }
 catch (java.io.IOException ioxc) {
 throw new JspException(ioxc.toString());
 }
 
 return SKIP_BODY;
 }
 
 private void replaceDots(final String x, JspWriter w)
 throws java.io.IOException
 {
 if (x == null) return ;
 StringTokenizer st = new StringTokenizer(x, .);
 while (st.hasMoreTokens()) {
 String f = (String)st.nextToken();
 w.println( f.equals(.) ? .br:f);
 }
 }
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



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



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




sent request to servlet from VB

2002-03-08 Thread Xie, David (IPCG-NJ)

Hi all,

Does anyone know how to call a servlet from VB code?  I want to sent the request from 
IIS to Tomcat without using isapi_redirect.dll.  Is possible to do this?  I look 
forward to your suggestions.

thanks,

David


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




Re: jsp parameters. Urgent!

2002-03-08 Thread Christopher K . St . John

Nancy Crisostomo Martinez wrote:
 
 I have a jsp ... please tell me where I can find 
 information.
 

 Sun runs a JSP mailing list:

   http://archives.java.sun.com/archives/jsp-interest.html

 The list has lots of well informed and helpful 
subscribers.


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




HTTPSessions: sessionDestroyed(), attributeRemoved(), etc

2002-03-08 Thread Dion Almaer


Hi guys -

I am trying to write some code that listens to HTTPSessions, and when the server is 
going to destroy
it, I want to do something with it first.  sessionDestroyed() seems to be called AFTER 
the session is destroyed,
and as soon as one attribute is removed due to invalidation, the session can't be 
accessed (IllegalStateException is thrown saying
that the session is already invalidated).

What is the best way to do this?  Would it be better to have a Map where I add 
objects, and add that Map to the session,
and then have the Map implement HttpSessionBindingListener.valueUnbound() and get the 
attributes that way?

Cheers,

Dion

--
 \\|//
 (o o)
+oOOo-(_)-oOOo--+
|   [EMAIL PROTECTED]   | Dew knot trussed yore spell chequer two|
| www.almaer.com/dion |  fined awl yore mistakes   |
+---+


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




[FAQ] jGuru FAQ Update

2002-03-08 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Is possible to subdir webapps directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=779619

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Tomcat 4.0.x with AOLserver 3.4.2br
Does anyone have any information on how to integrate Tomcat 4.0.x with AOLserver 3.4.2?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=780567

Is possible to subdir webapps directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=779619


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



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




Writing my own valve to do extra logging

2002-03-08 Thread Dr. Evil


Hi, I have found that I need to write my own access logging mechanism
to work with Tomcat.  I need the ability to log to a database and do
other things that the built-in mechanism simply can't do.  Extremely
good database-searchable real-time logging is critical to this project.

One way to do this is to write a logging filter.  Unfortunately this
doesn't give me all the info I need.  I need to be able to capture all
response codes, content length, etc.  Even if I write a class that
extends HttpServletResponseWrapper and use a filter to use that
response object, it doesn't catch all the info I need (trust me, I've
tried this).

So my solution is to write a valve which will replace the built-in
org.apache.catalina.valves.AccessLogValve valve.  It's very easy to
write a valve, but in this case, I simply copied the catalina valve,
adjusted import directives so it would compile, compiled it, and put
it in CATALINA/server/lib/mylogger.jar.

Then I edited bin/catalina.sh so that mylogger.jar was on the java
classpath, and edited server.xml so that instead of Valve
className=org.apache.catalina.AccessLogValve it was Valve
className=kz.sidereal.valves.AccessLogValve

At that point I restarted the server and in catalina.out, I got an
exception:

Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: 
org/apache/catalina/valves/ValveBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source)
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source)
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source)
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source)

I have no idea what I'm doing wrong here.  Does anyone have any ideas
on how to replace this particular valve so that I can write my own
logger?

Thanks for any tips.

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




Re: Writing my own valve to do extra logging

2002-03-08 Thread Christopher K . St . John

Dr. Evil wrote:
 
 So my solution is to write a valve ... Then I edited
 bin/catalina.sh so that mylogger.jar was on the java
 classpath


 Don't edit bin/catalina.sh to change the classpath
on the command line. Just put the jar in the right
place (as defined by the classloader howto, it looks
like you've done that), put catalina.sh back the way
it was before, and it should all work.

 You don't strictly have to know this, but here's the
deal: Catalina defines a bunch of classloaders. They
form a tree. The root of the tree is the built in
Java classloaders. The leaf classloaders can see the
classes loaded by the root, but the root can't see
the classes loaded by the leaves. One of the
built-in classloaders loads the stuff on the
classpath. Since you your Valve's jar is on the
classpath, a built-in classloader is loading your
Valve. So far so good. But your valve depends on a
Catalina class. And the Catalina class _isn't_
loaded by the built-in classloader, it's loaded by a
Catalina classloader. The built-in classloader can't
see the Catalina classes (they're not on the
classpath), so you get the error message. The
solution is to let a Catalina classloader load your
Valve's jar. Instead of having a classpath, the
classloader that loads the stuff in server/lib just
loads every jar in the directory. So just copy your
jar into the right directory and Catalina will see
it.


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




help: logging failed login attempts

2002-03-08 Thread Rob Cartier

I have been searching high and low trying
to find a way to catch failed login attempts after
form authentication fails. Currently in my web.xml
file it just gets re-directed to the errorpage
but I want to record it

All I want to capture is the username (j_username) that was attempted
so I can log it and keep track of the failures to lock
the account.

everything else is available from the cgi variable
getRequest..etc... methods.

Posted this a few times but nobody as responded
is this even available 

Rob Cartier

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




Help in JSP

2002-03-08 Thread Neo Gigs

Hi there all,

I had a JSP page that talks to a JBeans, but the problem is my Bean is actually doing 
DB connectivity to a Oracle db, as no result returned from the Bean.

As I had tested with the application of the same codes.

Could anyone help me to scan thru, whats wrong with this?

package com.mbf.beans;

import java.sql.*;
import java.math.*;
import java.io.*;
import oracle.jdbc.driver.*;

public class SpTest
{
private int interString;
private String output;

public String getInput()
{
// First detect class existance
try{
Class.forName(oracle.jdbc.driver.OracleDriver);
} catch (java.lang.ClassNotFoundException e){
System.err.print(Class Not Found error! + e.getMessage());
}

// Now try to open db connection and do the fetching
try{
// DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url = jdbc:oracle:thin:10.97.2.50:1521:REL4;
String scall = begin sp_GetClatTypeIE(?, ?); end;;
Connection conn = DriverManager.getConnection(url, tux, tux);
CallableStatement cs = conn.prepareCall(scall);
cs.registerOutParameter(2, Types.VARCHAR);
cs.setInt(1, interString);
cs.execute();
cs.close();
conn.close();
output = cs.getString(2);
} catch (SQLException e) {
System.err.println(Error:  + e.getMessage());
}
return output;
}

public void setInput(String s)
{
// Here to assign input parameters
interString = Integer.parseInt(s);
}
}

Thanks 

Regards, 

Neo Gigs 
 
VB?
http://communities.msn.com.my/VisualBasicwithNeo
http://www.vbcity.com/forum
http://www.vbweb.co.uk
Get paid cash receive email?
http://www.MintMail.com/?m=1414418 
Reading SMS got paid?
http://www.dynamicsms.com.au/intro.asp?ref=0123502385refc=348 
Malaysianshop.com http://www.malaysianshop.com
More Traffic? http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924c=xbad1
 
Note:This is intended to addressees only, if you wanna be removed, let me know. 




RE: Help in JSP

2002-03-08 Thread Karthikeyan .K.V

Think  use  the output= statement before u use  the close function
statement.

Karthik

-Original Message-
From: Neo Gigs [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:53 PM
To: Tomcat Users List
Subject: Help in JSP


Hi there all,

I had a JSP page that talks to a JBeans, but the problem is my Bean is
actually doing DB connectivity to a Oracle db, as no result returned from
the Bean.

As I had tested with the application of the same codes.

Could anyone help me to scan thru, whats wrong with this?

package com.mbf.beans;

import java.sql.*;
import java.math.*;
import java.io.*;
import oracle.jdbc.driver.*;

public class SpTest
{
private int interString;
private String output;

public String getInput()
{
// First detect class existance
try{
Class.forName(oracle.jdbc.driver.OracleDriver);
} catch (java.lang.ClassNotFoundException e){
System.err.print(Class Not Found error! + e.getMessage());
}

// Now try to open db connection and do the fetching
try{
// DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
String url = jdbc:oracle:thin:@10.97.2.50:1521:REL4;
String scall = begin sp_GetClatTypeIE(?, ?); end;;
Connection conn = DriverManager.getConnection(url, tux,
tux);
CallableStatement cs = conn.prepareCall(scall);
cs.registerOutParameter(2, Types.VARCHAR);
cs.setInt(1, interString);
cs.execute();
cs.close();
conn.close();
output = cs.getString(2);
} catch (SQLException e) {
System.err.println(Error:  + e.getMessage());
}
return output;
}

public void setInput(String s)
{
// Here to assign input parameters
interString = Integer.parseInt(s);
}
}

Thanks

Regards,

Neo Gigs

VB?
http://communities.msn.com.my/VisualBasicwithNeo
http://www.vbcity.com/forum
http://www.vbweb.co.uk
Get paid cash receive email?
http://www.MintMail.com/?m=1414418
Reading SMS got paid?
http://www.dynamicsms.com.au/intro.asp?ref=0123502385refc=348
Malaysianshop.com http://www.malaysianshop.com
More Traffic?
http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924c=xbad1

Note:This is intended to addressees only, if you wanna be removed, let me
know.



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




Re: Help in JSP

2002-03-08 Thread Neo Gigs

hi there,

thanks for the reminder, yet there is no results return as output. I tried
to replace the line:

return output;

with

return  + interString;

and it return my input value...

- Original Message -
From: Karthikeyan .K.V [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, March 09, 2002 12:34 PM
Subject: RE: Help in JSP


 Think  use  the output= statement before u use  the close function
 statement.

 Karthik

 -Original Message-
 From: Neo Gigs [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 08, 2002 9:53 PM
 To: Tomcat Users List
 Subject: Help in JSP


 Hi there all,

 I had a JSP page that talks to a JBeans, but the problem is my Bean is
 actually doing DB connectivity to a Oracle db, as no result returned from
 the Bean.

 As I had tested with the application of the same codes.

 Could anyone help me to scan thru, whats wrong with this?

 package com.mbf.beans;

 import java.sql.*;
 import java.math.*;
 import java.io.*;
 import oracle.jdbc.driver.*;

 public class SpTest
 {
 private int interString;
 private String output;

 public String getInput()
 {
 // First detect class existance
 try{
 Class.forName(oracle.jdbc.driver.OracleDriver);
 } catch (java.lang.ClassNotFoundException e){
 System.err.print(Class Not Found error! + e.getMessage());
 }

 // Now try to open db connection and do the fetching
 try{
 // DriverManager.registerDriver(new
 oracle.jdbc.driver.OracleDriver());
 String url = jdbc:oracle:thin:@10.97.2.50:1521:REL4;
 String scall = begin sp_GetClatTypeIE(?, ?); end;;
 Connection conn = DriverManager.getConnection(url, tux,
 tux);
 CallableStatement cs = conn.prepareCall(scall);
 cs.registerOutParameter(2, Types.VARCHAR);
 cs.setInt(1, interString);
 cs.execute();
 cs.close();
 conn.close();
 output = cs.getString(2);
 } catch (SQLException e) {
 System.err.println(Error:  + e.getMessage());
 }
 return output;
 }

 public void setInput(String s)
 {
 // Here to assign input parameters
 interString = Integer.parseInt(s);
 }
 }

 Thanks

 Regards,

 Neo Gigs
 
 VB?
 http://communities.msn.com.my/VisualBasicwithNeo
 http://www.vbcity.com/forum
 http://www.vbweb.co.uk
 Get paid cash receive email?
 http://www.MintMail.com/?m=1414418
 Reading SMS got paid?
 http://www.dynamicsms.com.au/intro.asp?ref=0123502385refc=348
 Malaysianshop.com http://www.malaysianshop.com
 More Traffic?
 http://www.exitblaze.com/cgi-bin/intro_track.pl?b=25924c=xbad1
 
 Note:This is intended to addressees only, if you wanna be removed, let me
 know.



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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




  1   2   >