RE: META-INF/context.xml question

2005-04-12 Thread Pawson, David
 

-Original Message-
From: [EMAIL PROTECTED] 



 
 Following is a version of a context.xml file that goes in 
the META-INF directory of a webapp.
 
 
 
   
 
 
 hth,

Thanks Luke.

  Trying to move up to 5.5.7 (or .9 now :-)
  Confused over this file. Previously (5.0.28) I placed it in 
{}/conf/Catalina/localhost,
now in /META-INF

Is this the preferred location for this file please?
Doco mentions this processing as of 5.5

regards DaveP

regards DaveP

-- 
DISCLAIMER:

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

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

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

RNIB Registered Charity Number: 226227

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




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



RE: Getting Env Vars from Apache 2

2005-04-12 Thread Raghupathy,Gurumoorthy
Are you using modk jk ?
If yes then file is worth printing 


http://jakarta.apache.org/tomcat/connectors-doc/config/printer/apache.html



-Original Message-
From: Hoda Nadeem [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2005 22:18
To: tomcat-user@jakarta.apache.org
Subject: Getting Env Vars from Apache 2


I'm having trouble getting Apache environment variables through Tomcat
4.1, for example, I would like to get the mod_ssl additional environment
variable SSL_CLIENT_CERT. 
 
How do I get that value on the requesting server from Apache?
 
Thanks.

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



RE: RequestDispatcher.forward() to doc located on HTTP Server

2005-04-12 Thread Raghupathy,Gurumoorthy
Forward only works within a context 

-Original Message-
From: Ron Crayton [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2005 19:36
To: tomcat-user@jakarta.apache.org
Subject: RequestDispatcher.forward() to doc located on HTTP Server


Is it possible to use Request.forward() to forward a request to an html
document located on an HTTP Server?
 
I'm using Tomcat 5.5.7 and Apache 2.0.
 
I have a document setting in the htdocs folder of Apache 2.0 that I'm trying
to forward to from an application deployed in Tomcat 5.5.7.
 
I have this context in my server.xml file:
 



 
I have this code in my app:
 
ServletContext context = getServletConfig().getServletContext();
String uri = request.getQueryString();

ServletContext foreignContext = context.getContext("/");
RequestDispatcher requestDispatcher =
foreignContext.getRequestDispatcher(uri);
requestDispatcher.forward(request, response);
 
The uri comes from the query string of the original request.
When the code runs it says that the requested resource is not available -
Error 404.
 
Am I trying to do something that's impossible?
 
Please help.
 
 


-
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 

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



RE: HELP Tomcat CGI

2005-04-12 Thread zhicheng wang
hi,

first you need to test if the script will be happy to
execute: leave it where you want it to be called from
the browser and in shell to type
/path/to/script/test.pl

if it execute, then you know it is your tomcat config
problem. you may need to restart tomcat after change
the .xml file(?)

there is security concern about using cgi, does not
matter with tomcat or apache. but as you know tomcat
can run perl.

good luck

cheng

--- "Raghupathy,Gurumoorthy"
<[EMAIL PROTECTED]> wrote:
> Why don't you run perl in apache and integrate it
> with tomcat ?
> Tomcat should not be used with CGI ( security issues
> ) 
> 
> Guru
> 
> -Original Message-
> From: Scholtyssek Siegfried
> [mailto:[EMAIL PROTECTED] 
> Sent: 11 April 2005 09:29
> To: tomcat-user@jakarta.apache.org
> Subject: HELP Tomcat CGI
> Importance: High
> 
> 
> > Hello,
> > 
> > I use the Apache Tomcat.5.0.16 on the SUNOS 5.8  
> UNIX
> > 
> > With Tomcat we want execute cgi-scripts. So I
> modified all in web.xml
> > and removed the file servlets-cgi.renametojar to
> servlets-cgi.jar
> > If I start with Netscape the follow URL:
> > http://localhost:8080/cgi-bin/test.pl   so I get
> the follow ERROR:
> > 
> > Can't open perl Script ./test.pl No such
> file or direktory
> > Use -S to search $PATH for it.   
> > 
> > If I delete and make a follow link:
> > 
> > rm /usr/bin/perl
> > 
> > ln -s /usr/bin/ksh  /usr/bin/perlthen it is
> running.
> > 
> > Whats wrong ??? What I have to do, that it is
> running with ln -s
> > /usr/local/bin/perl  /usr/bin/perl 
> > 
> > In the first line of the test.pl I have still
> #!/usr/local/bin/perl
> > and I made chmod a+x test.pl and with command from
> xterm I can execute
> > it with the full path from the errormessage Can't
> open perl Script
> > .  !
> > 
> > Please help me because I will be else crazy
> :-)
> > 
> > Thanks and regards
> > 
> > Siggi
> > 
> > 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

Best wishes
Z C Wang

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Check deployment dir programatically

2005-04-12 Thread Michal Kwiatek
Hello all,

How can I programatically check the absolute path to the deployment
direcotory (webapps/myApp directory) on the server?

request.getSession().getServletContext().getResourceAsStream(fileName)
works fine to read a file from the direcory, but I see no equivalent to
check the root deployment directory.

Thanks in advance,
Michal.

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



RE: Check deployment dir programatically

2005-04-12 Thread Raghupathy,Gurumoorthy
Why  dont you setup a JNDI variable for your context which will set the
value of base directory ... And then use it in your app... 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

We use JNDI ... :o) 


-Original Message-
From: Michal Kwiatek [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 10:16
To: Tomcat Users List
Subject: Check deployment dir programatically


Hello all,

How can I programatically check the absolute path to the deployment
direcotory (webapps/myApp directory) on the server?

request.getSession().getServletContext().getResourceAsStream(fileName)
works fine to read a file from the direcory, but I see no equivalent to
check the root deployment directory.

Thanks in advance,
Michal.

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

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



RE: Check deployment dir programatically

2005-04-12 Thread Michal Kwiatek
This is a solution. I'll do it if there's not a better one. Any other
ideas?

Michal. 

> -Original Message-
> From: Raghupathy,Gurumoorthy 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 12, 2005 11:27 AM
> To: 'Tomcat Users List'
> Subject: RE: Check deployment dir programatically
> 
> Why  dont you setup a JNDI variable for your context which 
> will set the value of base directory ... And then use it in 
> your app... 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources
> -howto.html
> 
> We use JNDI ... :o) 
> 
> 
> -Original Message-
> From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> Sent: 12 April 2005 10:16
> To: Tomcat Users List
> Subject: Check deployment dir programatically
> 
> 
> Hello all,
> 
> How can I programatically check the absolute path to the deployment
> direcotory (webapps/myApp directory) on the server?
> 
> request.getSession().getServletContext().getResourceAsStream(fileName)
> works fine to read a file from the direcory, but I see no 
> equivalent to
> check the root deployment directory.
> 
> Thanks in advance,
> Michal.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: Check deployment dir programatically

2005-04-12 Thread Raghupathy,Gurumoorthy
Using JNDI variables is considered a good option as it is part of J2EE specs
... 
And that it is supported by all j2ee app servers and web containers. 

I cant think of anything else  because your context can come from not only
base webapps but from any where else 
Example : manager / admin application in tomcat  

So better use JNDI variable to the fullpath of the configuration file and
then open it :o)

This is because if you deploy the app as a .war then you wont be able to do
getResourceAsStream(fileName) withing that context.

Need more help ?
Email me 


Regards
Guru 


-Original Message-
From: Michal Kwiatek [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 10:35
To: Tomcat Users List
Subject: RE: Check deployment dir programatically


This is a solution. I'll do it if there's not a better one. Any other
ideas?

Michal. 

> -Original Message-
> From: Raghupathy,Gurumoorthy 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 12, 2005 11:27 AM
> To: 'Tomcat Users List'
> Subject: RE: Check deployment dir programatically
> 
> Why  dont you setup a JNDI variable for your context which 
> will set the value of base directory ... And then use it in 
> your app... 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources
> -howto.html
> 
> We use JNDI ... :o) 
> 
> 
> -Original Message-
> From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> Sent: 12 April 2005 10:16
> To: Tomcat Users List
> Subject: Check deployment dir programatically
> 
> 
> Hello all,
> 
> How can I programatically check the absolute path to the deployment
> direcotory (webapps/myApp directory) on the server?
> 
> request.getSession().getServletContext().getResourceAsStream(fileName)
> works fine to read a file from the direcory, but I see no 
> equivalent to
> check the root deployment directory.
> 
> Thanks in advance,
> Michal.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

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



RE: Check deployment dir programatically

2005-04-12 Thread Michal Kwiatek
Thanks again for your help. JNDI solution is tempting. The only problem
is that I have many instances of tomcat and I prefer not to hardcode the
path into server.xml. That's why I'm still looking for a more flexible
(even if less elegant and less portable ) solution.

> This is because if you deploy the app as a .war then you wont 
> be able to do
> getResourceAsStream(fileName) withing that context.

Not true - it works even if you deploy from a war (at least in tomcat
5.0) . It simply looks for the file in the directory where tomcat
unzipped the war.

Michal.
 
> Need more help ?
> Email me 
> 
> 
> Regards
> Guru 
> 
> 
> -Original Message-
> From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> Sent: 12 April 2005 10:35
> To: Tomcat Users List
> Subject: RE: Check deployment dir programatically
> 
> 
> This is a solution. I'll do it if there's not a better one. Any other
> ideas?
> 
> Michal. 
> 
> > -Original Message-
> > From: Raghupathy,Gurumoorthy 
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, April 12, 2005 11:27 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Check deployment dir programatically
> > 
> > Why  dont you setup a JNDI variable for your context which 
> > will set the value of base directory ... And then use it in 
> > your app... 
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources
> > -howto.html
> > 
> > We use JNDI ... :o) 
> > 
> > 
> > -Original Message-
> > From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> > Sent: 12 April 2005 10:16
> > To: Tomcat Users List
> > Subject: Check deployment dir programatically
> > 
> > 
> > Hello all,
> > 
> > How can I programatically check the absolute path to the deployment
> > direcotory (webapps/myApp directory) on the server?
> > 
> > 
> request.getSession().getServletContext().getResourceAsStream(fileName)
> > works fine to read a file from the direcory, but I see no 
> > equivalent to
> > check the root deployment directory.
> > 
> > Thanks in advance,
> > Michal.
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: Check deployment dir programatically

2005-04-12 Thread Michal Kwiatek
Finally, the answer in my case (although probably not universal) is:
request.getSession().getServletContext().getRealPath("/").

Michal

> -Original Message-
> From: Michal Kwiatek [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 12, 2005 12:24 PM
> To: Tomcat Users List
> Subject: RE: Check deployment dir programatically
> 
> Thanks again for your help. JNDI solution is tempting. The 
> only problem is that I have many instances of tomcat and I 
> prefer not to hardcode the path into server.xml. That's why 
> I'm still looking for a more flexible (even if less elegant 
> and less portable ) solution.
> 
> > This is because if you deploy the app as a .war then you 
> wont be able 
> > to do
> > getResourceAsStream(fileName) withing that context.
> 
> Not true - it works even if you deploy from a war (at least in tomcat
> 5.0) . It simply looks for the file in the directory where 
> tomcat unzipped the war.
> 
> Michal.
>  
> > Need more help ?
> > Email me
> > 
> > 
> > Regards
> > Guru
> > 
> > 
> > -Original Message-
> > From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> > Sent: 12 April 2005 10:35
> > To: Tomcat Users List
> > Subject: RE: Check deployment dir programatically
> > 
> > 
> > This is a solution. I'll do it if there's not a better one. 
> Any other 
> > ideas?
> > 
> > Michal. 
> > 
> > > -Original Message-
> > > From: Raghupathy,Gurumoorthy
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, April 12, 2005 11:27 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Check deployment dir programatically
> > > 
> > > Why  dont you setup a JNDI variable for your context 
> which will set 
> > > the value of base directory ... And then use it in your app...
> > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources
> > > -howto.html
> > > 
> > > We use JNDI ... :o)
> > > 
> > > 
> > > -Original Message-
> > > From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> > > Sent: 12 April 2005 10:16
> > > To: Tomcat Users List
> > > Subject: Check deployment dir programatically
> > > 
> > > 
> > > Hello all,
> > > 
> > > How can I programatically check the absolute path to the 
> deployment 
> > > direcotory (webapps/myApp directory) on the server?
> > > 
> > > 
> > 
> request.getSession().getServletContext().getResourceAsStream(fileName)
> > > works fine to read a file from the direcory, but I see no 
> equivalent 
> > > to check the root deployment directory.
> > > 
> > > Thanks in advance,
> > > Michal.
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: Check deployment dir programatically

2005-04-12 Thread Raghupathy,Gurumoorthy
This will map to the "ROOT" context directory not the webapps 

I mean "WEBAPPS/ROOT"



-Original Message-
From: Michal Kwiatek [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 11:38
To: Tomcat Users List
Subject: RE: Check deployment dir programatically


Finally, the answer in my case (although probably not universal) is:
request.getSession().getServletContext().getRealPath("/").

Michal

> -Original Message-
> From: Michal Kwiatek [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, April 12, 2005 12:24 PM
> To: Tomcat Users List
> Subject: RE: Check deployment dir programatically
> 
> Thanks again for your help. JNDI solution is tempting. The 
> only problem is that I have many instances of tomcat and I 
> prefer not to hardcode the path into server.xml. That's why 
> I'm still looking for a more flexible (even if less elegant 
> and less portable ) solution.
> 
> > This is because if you deploy the app as a .war then you 
> wont be able 
> > to do
> > getResourceAsStream(fileName) withing that context.
> 
> Not true - it works even if you deploy from a war (at least in tomcat
> 5.0) . It simply looks for the file in the directory where 
> tomcat unzipped the war.
> 
> Michal.
>  
> > Need more help ?
> > Email me
> > 
> > 
> > Regards
> > Guru
> > 
> > 
> > -Original Message-
> > From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> > Sent: 12 April 2005 10:35
> > To: Tomcat Users List
> > Subject: RE: Check deployment dir programatically
> > 
> > 
> > This is a solution. I'll do it if there's not a better one. 
> Any other 
> > ideas?
> > 
> > Michal. 
> > 
> > > -Original Message-
> > > From: Raghupathy,Gurumoorthy
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, April 12, 2005 11:27 AM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Check deployment dir programatically
> > > 
> > > Why  dont you setup a JNDI variable for your context 
> which will set 
> > > the value of base directory ... And then use it in your app...
> > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources
> > > -howto.html
> > > 
> > > We use JNDI ... :o)
> > > 
> > > 
> > > -Original Message-
> > > From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
> > > Sent: 12 April 2005 10:16
> > > To: Tomcat Users List
> > > Subject: Check deployment dir programatically
> > > 
> > > 
> > > Hello all,
> > > 
> > > How can I programatically check the absolute path to the 
> deployment 
> > > direcotory (webapps/myApp directory) on the server?
> > > 
> > > 
> > 
> request.getSession().getServletContext().getResourceAsStream(fileName)
> > > works fine to read a file from the direcory, but I see no 
> equivalent 
> > > to check the root deployment directory.
> > > 
> > > Thanks in advance,
> > > Michal.
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

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



Custom errors and banners problem

2005-04-12 Thread Metal Gear
 Hi all,
- i m trying to change the banner string in tomcat (i.e. whenever someone 
telnets to the http port the fake banner comes up), how to do that as i 
tried to search in the source code of apache tomcat (5.0.28) but was unable 
to find that.

- Secondly i was trying to generate customized error pages i read lot of 
info from the web was also unable to do so. Following is the web.xml of the 
directory of webapps.




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



index.jsp


*
404
/index.html
*




JAAS: LoginConfig file in webapp

2005-04-12 Thread Jeroen Kransen
The tomcat documentation about JAASRealm suggests to pass the location 
of the JAAS config file as a parameter to the JVM (with JAVA_OPTS=...). 
It also mentions that there are alternatives. Can anyone tell me how to 
place the config file under /WEB-INF of a specific webapp and how to 
reference it? I don't want to tweak webapp specific things in Tomcat.

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


Null printed in jsp getProperty fields

2005-04-12 Thread Michael Molloy
Hello everyone. I can't imagine that this isn't a question that has been
asked a great many times, but I can't find the answer anywhere.
 
We're using multiple tomcat 4.1.30 servers in a production environment
for a commercial website, and we would like to move up to the latest
stable version. However, when testing our application in tomcat 5.0+, we
have noticed that jsp pages that use the  method to
display session data print the word "null" in every field that has a
null value.
 
Although I haven't read about this, I'm guessing it is part of the Sun's
application server standard. I've been told that WebLogic does the same
thing, but that there is a configuration setting to repress displaying
the word null.
 
Is there such a setting for tomcat? If not, what is the best way to keep
from printing "null" in every field that has a null value? I know we
could do it through javascript, but it just seems like a change this
big, after years of not having this behaviour, there must be some way to
prevent it from happening at the application server level.
 
Can someone point me in the right direction? I've googled for the
answer, but any search with "null" and "tomcat" in it returns a lot of
pages about unrelated problems.
 
Thanks,
--Michael Molloy
 
=
Michael Molloy
Senior Software Engineer
Ncycles Software Solutions
901.756.2705


Re: Null printed in jsp getProperty fields

2005-04-12 Thread Tim Funk
There is no setting to turn this off.
[But if you use JSTL - null get supressed for you.]
-Tim
Michael Molloy wrote:
Hello everyone. I can't imagine that this isn't a question that has been
asked a great many times, but I can't find the answer anywhere.
 
We're using multiple tomcat 4.1.30 servers in a production environment
for a commercial website, and we would like to move up to the latest
stable version. However, when testing our application in tomcat 5.0+, we
have noticed that jsp pages that use the  method to
display session data print the word "null" in every field that has a
null value.
 
Although I haven't read about this, I'm guessing it is part of the Sun's
application server standard. I've been told that WebLogic does the same
thing, but that there is a configuration setting to repress displaying
the word null.
 
Is there such a setting for tomcat? If not, what is the best way to keep
from printing "null" in every field that has a null value? I know we
could do it through javascript, but it just seems like a change this
big, after years of not having this behaviour, there must be some way to
prevent it from happening at the application server level.
 
Can someone point me in the right direction? I've googled for the
answer, but any search with "null" and "tomcat" in it returns a lot of
pages about unrelated problems.

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


RE: Null printed in jsp getProperty fields

2005-04-12 Thread Michael Molloy
Thanks for the pointer. I have not investigated JSTL, and I will look
into it further.

Can anyone give me a link that explains the reasons behind this
behaviour? Now that I'm aware that it can't be turned off, I'm very
curious as to why it was coded this way.

Thanks,
--Michael 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 7:55 AM
To: Tomcat Users List
Subject: Re: Null printed in jsp getProperty fields

There is no setting to turn this off.

[But if you use JSTL - null get supressed for you.]

-Tim

Michael Molloy wrote:

> Hello everyone. I can't imagine that this isn't a question that has 
> been asked a great many times, but I can't find the answer anywhere.
>  
> We're using multiple tomcat 4.1.30 servers in a production environment

> for a commercial website, and we would like to move up to the latest 
> stable version. However, when testing our application in tomcat 5.0+, 
> we have noticed that jsp pages that use the  method

> to display session data print the word "null" in every field that has 
> a null value.
>  
> Although I haven't read about this, I'm guessing it is part of the 
> Sun's application server standard. I've been told that WebLogic does 
> the same thing, but that there is a configuration setting to repress 
> displaying the word null.
>  
> Is there such a setting for tomcat? If not, what is the best way to 
> keep from printing "null" in every field that has a null value? I know

> we could do it through javascript, but it just seems like a change 
> this big, after years of not having this behaviour, there must be some

> way to prevent it from happening at the application server level.
>  
> Can someone point me in the right direction? I've googled for the 
> answer, but any search with "null" and "tomcat" in it returns a lot of

> pages about unrelated problems.


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

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



DBCP/JDBC Problems with DelegatingResultSet

2005-04-12 Thread Sebastian . Wiemer




Hello,

I need some help accessing low level routines using JDNI based connection
pooling provided by tomcat.

Environment:  J2SE 1.4.2
Tomcat: 5.5
JDBC-Driver:  Sybase JConnect 5.5 (TDS)

The Tomcat is configured to provide a small connection pool.

Within my servlet i need access to the low-level implementation of the
ResultSet from Sybase.
The problem is, that the following code:

Connection conn = dataSource.getConnection();
Statement stmt = conn.getConnection();
ResultSet result = stmt.executeQuery( "..." );

System.out.println( result.getClass().getName() );

prints org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.

I couldn't find a api documentation for this class nor could i find the jar
file providing this class
at all in the tomcat installation directory.

Can anyone give a hint in which JAR archive this class can be found ?



Mit freundlichen Grüßen / Kind regards
Sebastian Wiemer


Sebastian Wiemer
GfK Group
Data Services GmbH
Nordwestring 101
D-90319 Nürnberg
Fon: +49 (0) 911 395 3876
Fax: +49 (0) 911 333 796
[EMAIL PROTECTED]
www.gfk.de / www.gfk.com




_

Diese E-Mail (ggf. nebst Anhang) enthält vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail (and any attachment/s) contains confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail in error) please notify the sender immediately and destroy this
e-mail. Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
_


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



Re: Null printed in jsp getProperty fields

2005-04-12 Thread Tim Funk
Per the spec:
"The conversion to String is done as in the println methods, i.e. the 
toString method of the object is used for Object instances, and the primitive 
types are converted directly."

And in the javadocs for print(String):
Print a string. *If the argument is null then the string "null" is printed.*
-Tim
Michael Molloy wrote:
Thanks for the pointer. I have not investigated JSTL, and I will look
into it further.
Can anyone give me a link that explains the reasons behind this
behaviour? Now that I'm aware that it can't be turned off, I'm very
curious as to why it was coded this way.
Thanks,
--Michael 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 7:55 AM
To: Tomcat Users List
Subject: Re: Null printed in jsp getProperty fields

There is no setting to turn this off.
[But if you use JSTL - null get supressed for you.]
-Tim
Michael Molloy wrote:

Hello everyone. I can't imagine that this isn't a question that has 
been asked a great many times, but I can't find the answer anywhere.

We're using multiple tomcat 4.1.30 servers in a production environment

for a commercial website, and we would like to move up to the latest 
stable version. However, when testing our application in tomcat 5.0+, 
we have noticed that jsp pages that use the  method

to display session data print the word "null" in every field that has 
a null value.

Although I haven't read about this, I'm guessing it is part of the 
Sun's application server standard. I've been told that WebLogic does 
the same thing, but that there is a configuration setting to repress 
displaying the word null.

Is there such a setting for tomcat? If not, what is the best way to 
keep from printing "null" in every field that has a null value? I know

we could do it through javascript, but it just seems like a change 
this big, after years of not having this behaviour, there must be some

way to prevent it from happening at the application server level.
Can someone point me in the right direction? I've googled for the 
answer, but any search with "null" and "tomcat" in it returns a lot of

pages about unrelated problems.

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

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


AW: DBCP/JDBC Problems with DelegatingResultSet

2005-04-12 Thread Marco Pöhler
Hello Sebastian Wiemer,

The jar file containing the class is common/lib/naming-factory-dbcp.jar

Hth

Marco Pöhler

---
http://www.tuxoo.de
http://www.kontaktlinsen-preisvergleich.de

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 12. April 2005 15:56
An: tomcat-user@jakarta.apache.org
Betreff: DBCP/JDBC Problems with DelegatingResultSet






Hello,

I need some help accessing low level routines using JDNI based
connection pooling provided by tomcat.

Environment:  J2SE 1.4.2
Tomcat: 5.5
JDBC-Driver:  Sybase JConnect 5.5 (TDS)

The Tomcat is configured to provide a small connection pool.

Within my servlet i need access to the low-level implementation of the
ResultSet from Sybase. The problem is, that the following code:

Connection conn = dataSource.getConnection();
Statement stmt = conn.getConnection();
ResultSet result = stmt.executeQuery( "..." );

System.out.println( result.getClass().getName() );

prints org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.

I couldn't find a api documentation for this class nor could i find the
jar file providing this class at all in the tomcat installation
directory.

Can anyone give a hint in which JAR archive this class can be found ?



Mit freundlichen Grüßen / Kind regards
Sebastian Wiemer


Sebastian Wiemer
GfK Group
Data Services GmbH
Nordwestring 101
D-90319 Nürnberg
Fon: +49 (0) 911 395 3876
Fax: +49 (0) 911 333 796
[EMAIL PROTECTED]
www.gfk.de / www.gfk.com




_

Diese E-Mail (ggf. nebst Anhang) enthält vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind,
oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail. Das unerlaubte
Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail (and any attachment/s) contains confidential and/or
privileged information. If you are not the intended recipient (or have
received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
_


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



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



webapps/MYAPP/* removed

2005-04-12 Thread Pawson, David
tc 5.5.7, 
each time I try and access localhost/MYAPP
a) I get a 404
b) Every now and then the entire structure under webapps/MYAPP
is deleted.

Is there some control I'm missing please?

Perplexed. 


Regards DaveP.

 snip here *

-- 
DISCLAIMER:

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

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

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

RNIB Registered Charity Number: 226227

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




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



RE: Null printed in jsp getProperty fields

2005-04-12 Thread Michael Molloy
Thanks for the information. So it seems that for years, Tomcat was
simply hiding the null string, but they no longer do so. Is that
correct?

Thanks,
--Michael
 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 9:01 AM
To: Tomcat Users List
Subject: Re: Null printed in jsp getProperty fields

Per the spec:

"The conversion to String is done as in the println methods, i.e. the
toString method of the object is used for Object instances, and the
primitive types are converted directly."

And in the javadocs for print(String):
Print a string. *If the argument is null then the string "null" is
printed.*


-Tim

Michael Molloy wrote:

> Thanks for the pointer. I have not investigated JSTL, and I will look 
> into it further.
> 
> Can anyone give me a link that explains the reasons behind this 
> behaviour? Now that I'm aware that it can't be turned off, I'm very 
> curious as to why it was coded this way.
> 
> Thanks,
> --Michael
> 
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 12, 2005 7:55 AM
> To: Tomcat Users List
> Subject: Re: Null printed in jsp getProperty fields
> 
> There is no setting to turn this off.
> 
> [But if you use JSTL - null get supressed for you.]
> 
> -Tim
> 
> Michael Molloy wrote:
> 
> 
>>Hello everyone. I can't imagine that this isn't a question that has 
>>been asked a great many times, but I can't find the answer anywhere.
>> 
>>We're using multiple tomcat 4.1.30 servers in a production environment
> 
> 
>>for a commercial website, and we would like to move up to the latest 
>>stable version. However, when testing our application in tomcat 5.0+, 
>>we have noticed that jsp pages that use the  method
> 
> 
>>to display session data print the word "null" in every field that has 
>>a null value.
>> 
>>Although I haven't read about this, I'm guessing it is part of the 
>>Sun's application server standard. I've been told that WebLogic does 
>>the same thing, but that there is a configuration setting to repress 
>>displaying the word null.
>> 
>>Is there such a setting for tomcat? If not, what is the best way to 
>>keep from printing "null" in every field that has a null value? I know
> 
> 
>>we could do it through javascript, but it just seems like a change 
>>this big, after years of not having this behaviour, there must be some
> 
> 
>>way to prevent it from happening at the application server level.
>> 
>>Can someone point me in the right direction? I've googled for the 
>>answer, but any search with "null" and "tomcat" in it returns a lot of
> 
> 
>>pages about unrelated problems.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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

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



Re: Null printed in jsp getProperty fields

2005-04-12 Thread Tim Funk
IIRC - it was doing it correct in 4.0.4 - then in 4.1 - it was changed and 
but too many release cycles went by before discover and it was decided to 
keep the bug since a minor upgrade would cause major bugs for many deployments.

Since 5.X is a major upgrade - it was an easy decision to revert back to the 
correct behavior.

-Tim
Michael Molloy wrote:
Thanks for the information. So it seems that for years, Tomcat was
simply hiding the null string, but they no longer do so. Is that
correct?
Thanks,
--Michael
 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 9:01 AM
To: Tomcat Users List
Subject: Re: Null printed in jsp getProperty fields

Per the spec:
"The conversion to String is done as in the println methods, i.e. the
toString method of the object is used for Object instances, and the
primitive types are converted directly."
And in the javadocs for print(String):
Print a string. *If the argument is null then the string "null" is
printed.*
-Tim
Michael Molloy wrote:

Thanks for the pointer. I have not investigated JSTL, and I will look 
into it further.

Can anyone give me a link that explains the reasons behind this 
behaviour? Now that I'm aware that it can't be turned off, I'm very 
curious as to why it was coded this way.

Thanks,
--Michael
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 7:55 AM
To: Tomcat Users List
Subject: Re: Null printed in jsp getProperty fields
There is no setting to turn this off.
[But if you use JSTL - null get supressed for you.]
-Tim
Michael Molloy wrote:

Hello everyone. I can't imagine that this isn't a question that has 
been asked a great many times, but I can't find the answer anywhere.

We're using multiple tomcat 4.1.30 servers in a production environment

for a commercial website, and we would like to move up to the latest 
stable version. However, when testing our application in tomcat 5.0+, 
we have noticed that jsp pages that use the  method

to display session data print the word "null" in every field that has 
a null value.

Although I haven't read about this, I'm guessing it is part of the 
Sun's application server standard. I've been told that WebLogic does 
the same thing, but that there is a configuration setting to repress 
displaying the word null.

Is there such a setting for tomcat? If not, what is the best way to 
keep from printing "null" in every field that has a null value? I know

we could do it through javascript, but it just seems like a change 
this big, after years of not having this behaviour, there must be some

way to prevent it from happening at the application server level.
Can someone point me in the right direction? I've googled for the 
answer, but any search with "null" and "tomcat" in it returns a lot of

pages about unrelated problems.

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


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

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


Change standart error page?

2005-04-12 Thread rassylkaformazaj
Hello All.

I have installed Apache 2.0.40 and Tomcat 5.0.30. They are connected
using mod_jk2.

I have setuped in the httpd.conf the following

> ErrorDocument 500 /500.htm

so when somebody tries to access a web site (to the root of the site,
eg http://somesite.com/ ) while tomcat is down, he will see beautiful
page saying "Please try again later". 

But if he tries to go to direct link like
http://somesite.com/somecontext/19955/5d94/
he will see an 503 error page.

But if I try to include in the httpd.conf the following

> ErrorDocument 503 /500.htm

it doesn't help (user still see the standart error page).

Why it doesn't work? What can I do in this situation?
I searched google - no answer.
I tried to write full inks in the ErrorDocument statement.
I wonder why 500 error is handled in the correct way while 503 - not.

The error page looks like this

The servlet container is temporary unavailable or being upgraded

 Internal Server Error
 
 The server encountered an internal error or misconfiguration and was
 unable to complete your request. 
  
 Please contact the server administrator, [EMAIL PROTECTED] and
 inform them of the time the error occurred, and anything you might
 have done that may have caused the error.  
  
 More information about this error may be available in the server
 error log. 
  
 Additionally, a 500 Internal Server Error error was encountered while
 trying to use an ErrorDocument to handle the request. 
  


I cheked the headers that i receive:
if I try to access root directory I receive

 (Response Status) HTTP/1.1 500 Internal Server Error
 Accept-Ranges bytes 
 Connection close 
 Content-Length 1321 
 Content-Type text/html; charset=WINDOWS-1251 
 Date Wed, 06 Apr 2005 11:47:15 GMT
 ETag "378ab-529-721995c0"
 Last-Modified Wed, 06 Apr 2005 10:56:31 GMT
 Server Apache/2.0.40 (Red Hat Linux)

if I try to somecontext  directory I receive

 (Response Status) HTTP/1.1 503
 Connection close 
 Content-Type text/html; charset=WINDOWS-1251
 Date Wed, 06 Apr 2005 11:41:43 GMT
 Server Apache/2.0.40 (Red Hat Linux)
 Transfer-Encoding chunked

This somecontext directory is configurated and started by tomcat.
There is following lines in workers2.properties

 
 [uri:/somecontext/*]

 [uri:/report/*]
 

 
Thnx in advance.


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



RE: Null printed in jsp getProperty fields

2005-04-12 Thread Michael Molloy
Thanks very much.

--Michael 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 9:42 AM
To: Tomcat Users List
Subject: Re: Null printed in jsp getProperty fields

IIRC - it was doing it correct in 4.0.4 - then in 4.1 - it was changed
and but too many release cycles went by before discover and it was
decided to keep the bug since a minor upgrade would cause major bugs for
many deployments.

Since 5.X is a major upgrade - it was an easy decision to revert back to
the correct behavior.

-Tim

Michael Molloy wrote:

> Thanks for the information. So it seems that for years, Tomcat was 
> simply hiding the null string, but they no longer do so. Is that 
> correct?
> 
> Thanks,
> --Michael
>  
> 
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 12, 2005 9:01 AM
> To: Tomcat Users List
> Subject: Re: Null printed in jsp getProperty fields
> 
> Per the spec:
> 
> "The conversion to String is done as in the println methods, i.e. the 
> toString method of the object is used for Object instances, and the 
> primitive types are converted directly."
> 
> And in the javadocs for print(String):
> Print a string. *If the argument is null then the string "null" is
> printed.*
> 
> 
> -Tim
> 
> Michael Molloy wrote:
> 
> 
>>Thanks for the pointer. I have not investigated JSTL, and I will look 
>>into it further.
>>
>>Can anyone give me a link that explains the reasons behind this 
>>behaviour? Now that I'm aware that it can't be turned off, I'm very 
>>curious as to why it was coded this way.
>>
>>Thanks,
>>--Michael
>>
>>-Original Message-
>>From: Tim Funk [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, April 12, 2005 7:55 AM
>>To: Tomcat Users List
>>Subject: Re: Null printed in jsp getProperty fields
>>
>>There is no setting to turn this off.
>>
>>[But if you use JSTL - null get supressed for you.]
>>
>>-Tim
>>
>>Michael Molloy wrote:
>>
>>
>>
>>>Hello everyone. I can't imagine that this isn't a question that has 
>>>been asked a great many times, but I can't find the answer anywhere.
>>>
>>>We're using multiple tomcat 4.1.30 servers in a production 
>>>environment
>>
>>
>>>for a commercial website, and we would like to move up to the latest 
>>>stable version. However, when testing our application in tomcat 5.0+,

>>>we have noticed that jsp pages that use the  
>>>method
>>
>>
>>>to display session data print the word "null" in every field that has

>>>a null value.
>>>
>>>Although I haven't read about this, I'm guessing it is part of the 
>>>Sun's application server standard. I've been told that WebLogic does 
>>>the same thing, but that there is a configuration setting to repress 
>>>displaying the word null.
>>>
>>>Is there such a setting for tomcat? If not, what is the best way to 
>>>keep from printing "null" in every field that has a null value? I 
>>>know
>>
>>
>>>we could do it through javascript, but it just seems like a change 
>>>this big, after years of not having this behaviour, there must be 
>>>some
>>
>>
>>>way to prevent it from happening at the application server level.
>>>
>>>Can someone point me in the right direction? I've googled for the 
>>>answer, but any search with "null" and "tomcat" in it returns a lot 
>>>of
>>
>>
>>>pages about unrelated problems.
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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

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



Java Beans and servlets not working in user directories with UserConfig, jsp is

2005-04-12 Thread Steve Ochani
Hello all,

I'm using jakarta-tomcat-5.5.7 with jdk 1.5 on solaris 8.

I have configured in web.xml the UserConfig class as such



any jsps in home directories are working but servlets and beans that are being 
used
from jsps are not.

For example I have a directory

/jakarta-tomcat-5.5.7/webapps/steve

in it i have Test.jsp and a subdir WEB-INF in that I have a subdir classes and 
in that I
have a sub directory called blah and in that subdir I have Product.class
Test.jsp uses blah.Product and this all works in the main webapps directory.

However if I move the contents of the steve directory to 
~steve/public_html/webapps
and I try to load Test.jsp (actually I renamed Test.jsp to TestProduct.jsp) I 
get the error

org.apache.jasper.JasperException: /webapps/TestProduct.jsp(3,0) The value for 
the
useBean class attribute blah.Product is invalid.

I however can use a jsp that does not use any beans in the 
~steve/public_html/webapps
directory.

I also have a regular servlet that works in

/jakarta-tomcat-5.5.7/webapps/steve
(with the appropriate web.xml which has the servlet-mapping)

but it won't in
~steve/public_html/webapps

Any help is appreciated.
Thanks


«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein

Steve O.
http://www.steveo.us

New pics: B17G and B24
http://www.steveo.us/B17-B24/

B17G WWII Bomber "Yankee Lady" Flight I took
http://www.steveo.us/b17ride

SUNY NCC MATH/COMPUTER
http://www.matcmp.ncc.edu

SUNY NCC Physical Sciences Dept.

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



include generated_web.xml into web.xml

2005-04-12 Thread Faine, Mark
I'd like to include my generated_web.xml file that was created by JSPC into
my applications web.xml file.  How can this be accomplished?
 
Thanks,
-Mark
 
 

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



Retrieving driver-specific implementation of ResultSet

2005-04-12 Thread Sebastian . Wiemer




Hi,

as Marco helped me to solve my previous problem, i'm now facing the next
one.

It seems the org.apache.tomcat.dbcp.dbcp.DelegatingResultSet does not
provide any facility to
retrieve the wrapped ResultSet.

What i need is access to the driver specific implementation of the
ResultSet for the used connection pool.

DelegatingResultSet.getInnermostDelegate() only returns the innermost
DelegatingResultSet instance.

Is there any hack out there which provides something like
DelegatingResultSet.getWrappedResultSet() ?

Or does anyone have another/better idea to get access to the low-level
implementation ?

Thanx, so far
Sebastian

_

Diese E-Mail (ggf. nebst Anhang) enthält vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail (and any attachment/s) contains confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail in error) please notify the sender immediately and destroy this
e-mail. Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
_


_

Diese E-Mail (ggf. nebst Anhang) enthält vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, oder
diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail (and any attachment/s) contains confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail in error) please notify the sender immediately and destroy this
e-mail. Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
_


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



Re: Retrieving driver-specific implementation of ResultSet

2005-04-12 Thread Larry Meadors
Why do you need that?

On Apr 12, 2005 9:05 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
> 
> 
> 
> Hi,
> 
> as Marco helped me to solve my previous problem, i'm now facing the next
> one.
> 
> It seems the org.apache.tomcat.dbcp.dbcp.DelegatingResultSet does not
> provide any facility to
> retrieve the wrapped ResultSet.
> 
> What i need is access to the driver specific implementation of the
> ResultSet for the used connection pool.
> 
> DelegatingResultSet.getInnermostDelegate() only returns the innermost
> DelegatingResultSet instance.
> 
> Is there any hack out there which provides something like
> DelegatingResultSet.getWrappedResultSet() ?
> 
> Or does anyone have another/better idea to get access to the low-level
> implementation ?
> 
> Thanx, so far
> Sebastian
> 
> _
> 
> Diese E-Mail (ggf. nebst Anhang) enthält vertrauliche und/oder rechtlich
> geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, oder
> diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
> unbefugte Weitergabe dieser Mail ist nicht gestattet.
> 
> This e-mail (and any attachment/s) contains confidential and/or privileged
> information. If you are not the intended recipient (or have received this
> e-mail in error) please notify the sender immediately and destroy this
> e-mail. Any unauthorised copying, disclosure or distribution of the
> material in this e-mail is strictly forbidden.
> _
> 
> _
> 
> Diese E-Mail (ggf. nebst Anhang) enthält vertrauliche und/oder rechtlich
> geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, oder
> diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
> unbefugte Weitergabe dieser Mail ist nicht gestattet.
> 
> This e-mail (and any attachment/s) contains confidential and/or privileged
> information. If you are not the intended recipient (or have received this
> e-mail in error) please notify the sender immediately and destroy this
> e-mail. Any unauthorised copying, disclosure or distribution of the
> material in this e-mail is strictly forbidden.
> _
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: include generated_web.xml into web.xml

2005-04-12 Thread Tim Funk
In tomcat5
add addWebXmlMappings='true' to your jasper2 task.

In tomcat4 - you need a placeholder comment in the web.xml file. Then use ant 
to replace the contents.

For example:




  

-Tim
Faine, Mark wrote:
I'd like to include my generated_web.xml file that was created by JSPC into
my applications web.xml file.  How can this be accomplished?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DBCP/JDBC Problems with DelegatingResultSet

2005-04-12 Thread Jimmy Ray
Do you mean that perhaps you are trying to access
SYBASE specific JDBC extensions?  If so, then you need
the "inner most delegate" connection.  I did this with
Oracle:

I also had this parameter in my JNDI declaration in
the server.xml...


   
accessToUnderlyingConnectionAllowed
true
  

Then I used this static method that I wrote.  Just
pass in the JNDI data source name.  BUT...be careful,
DO NOT close this underlying connection, or your next
call will have the overhead of recreating the
underlying connection object for DBCP:

public static synchronized Connection
getDelegatingConnection(
String dataSource) throws
SQLException,NamingException,Exception {

final String JNDI_LOOKUP = "java:comp/env";

Connection conn = null;
OracleConnection oc = null;

Context initCtx = new InitialContext();
Context envCtx = (Context)
initCtx.lookup(JNDI_LOOKUP);

if (envCtx == null) {
throw new Exception("No
EnvironmentContextException");
}

DataSource ds = (DataSource)
envCtx.lookup(dataSource);
if (ds == null) {
throw new Exception("No
DatasourceException");
}

((BasicDataSource)
ds).setAccessToUnderlyingConnectionAllowed(true);

conn = ds.getConnection();
if (conn == null) {
throw new Exception("No
ConnectionException");
} 

Connection dconn = ((DelegatingConnection)
conn).getInnermostDelegate();

if (dconn == null) {
throw new Exception("No
DelegatingConnectionException");
}

conn.close();
conn=null;

return dconn;
}

Regards,

Jimmy Ray
--- [EMAIL PROTECTED] wrote:
> 
> 
> 
> 
> Hello,
> 
> I need some help accessing low level routines using
> JDNI based connection
> pooling provided by tomcat.
> 
> Environment:  J2SE 1.4.2
> Tomcat: 5.5
> JDBC-Driver:  Sybase JConnect 5.5 (TDS)
> 
> The Tomcat is configured to provide a small
> connection pool.
> 
> Within my servlet i need access to the low-level
> implementation of the
> ResultSet from Sybase.
> The problem is, that the following code:
> 
> Connection conn = dataSource.getConnection();
> Statement stmt = conn.getConnection();
> ResultSet result = stmt.executeQuery( "..." );
> 
> System.out.println( result.getClass().getName() );
> 
> prints
> org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.
> 
> I couldn't find a api documentation for this class
> nor could i find the jar
> file providing this class
> at all in the tomcat installation directory.
> 
> Can anyone give a hint in which JAR archive this
> class can be found ?
> 
> 
> 
> Mit freundlichen Grüßen / Kind regards
> Sebastian Wiemer
> 
> 
> Sebastian Wiemer
> GfK Group
> Data Services GmbH
> Nordwestring 101
> D-90319 Nürnberg
> Fon: +49 (0) 911 395 3876
> Fax: +49 (0) 911 333 796
> [EMAIL PROTECTED]
> www.gfk.de / www.gfk.com
> 
> 
> 
> 
> _
> 
> Diese E-Mail (ggf. nebst Anhang) enthält
> vertrauliche und/oder rechtlich
> geschützte Informationen. Wenn Sie nicht der
> richtige Adressat sind, oder
> diese E-Mail irrtümlich erhalten haben, informieren
> Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das
> unerlaubte Kopieren sowie die
> unbefugte Weitergabe dieser Mail ist nicht
> gestattet.
> 
> This e-mail (and any attachment/s) contains
> confidential and/or privileged
> information. If you are not the intended recipient
> (or have received this
> e-mail in error) please notify the sender
> immediately and destroy this
> e-mail. Any unauthorised copying, disclosure or
> distribution of the
> material in this e-mail is strictly forbidden.
> _
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Custom JNDI resource and Tomcat BeanFactory seem to always return the same object instance

2005-04-12 Thread Michael Echerer


Hi,

I was testing the JNDI Resource configuration using a custom resource factory
and/or the Tomcat BeanFactory following the tutorial here with Tomcat 5.0.28:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

For Generic Java Bean resources the documentation says:

"The resource factory will create a new instance of the appropriate bean class
every time a lookup() for this entry is made."

Same is said for a custom resource factory. But actually this is not true... :-(

When I tried the demo classes with the MyBean and MyBeanFactory i found out that
"always" the same MyBean instance is returned when calling lookup(). It doesn't
matter whether I use the Tomcat BeanFactory or the mentioned custom
MyBeanFactory.

I would say this is because the method getObjectInstance(Object obj,Name name,
Context nameCtx, Hashtable environment) is not called multiple times (each
lookup() ), but really only once! I can say this because I added a log
statement into this method of MyBeanFactory. Only appears once, so it doesn't
help to issue "new MyBean()" as the first bean ever created seems to be
remembered somehow.

When I configured the MyBeanFactory in server.xml as GlobalResource instead of
the context I could see that the getObjectInstance method is already called
upon Tomcat startup when no web application ever called InitialContext.lookup()
and wasn't even deployed.


My question: Is it simply documented wrongly that each lookup() would return a
new object, is there any chance for a config problem or is this a bug?

I'd like to implement a custom resource factory that has a "pool" behind. Hence
it makes a huge difference whether I "always" get the same object (that would
mean that the object returned needs to be the pool itself and the app can grab
the pooled objects) or if there's a chance to have any pooled object from the
pool returned each time lookup() is called.

Any ideas upon this?

Cheers,
Michael

P.S. BTW the documentation examples should be reviewed as there are a few typos
and some configuration statements that didn't work at all...




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



RE: Getting Env Vars from Apache 2

2005-04-12 Thread Hoda Nadeem

Thanks. 

I'm using mod_jk2, and added the following line to my apache 2.0.52
config file: 

 JkEnvVar SSL_CLIENT_CERT

After the line: 

LoadModule jk2_module modules.local/mod_jk2.so

But I get the following error: 

Starting httpd: Syntax error.:
Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a module
not included in the server configuration

Is mod_jk2 different from mod_jk in setup? I can't seem to find what I
am doing wrong, or what I need to do different. 

Thanks. 

Nadeem



-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 3:28 AM
To: 'Tomcat Users List'
Subject: RE: Getting Env Vars from Apache 2

Are you using modk jk ?
If yes then file is worth printing 


http://jakarta.apache.org/tomcat/connectors-doc/config/printer/apache.ht
ml



-Original Message-
From: Hoda Nadeem [mailto:[EMAIL PROTECTED]
Sent: 11 April 2005 22:18
To: tomcat-user@jakarta.apache.org
Subject: Getting Env Vars from Apache 2


I'm having trouble getting Apache environment variables through Tomcat
4.1, for example, I would like to get the mod_ssl additional environment
variable SSL_CLIENT_CERT. 
 
How do I get that value on the requesting server from Apache?
 
Thanks.

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


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



Re: logging to seperate log file per war file

2005-04-12 Thread Jonathan Eric Miller
My guess (but, I'm not a Tomcat developer so what do I know! ;-)) is that 
you can't do it for System.out.println(). However, I did notice that 
System.setOut() allows you to redirect where standard out goes. However, I'm 
guessing that that would be for the entire JVM? As of Tomcat 5.5.9 they 
fixed up java.util.logging so that it can have different log files if that's 
any consolation. I guess the best solution is to simply using the logging 
APIs throughout and not use System.out for anything.

Jon
- Original Message - 
From: "quentin.compson" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 11, 2005 10:12 PM
Subject: logging to seperate log file per war file


is this possible using context.xml or some other way?  im using log4j but 
some
output still goes to stdout (e.g System.out.println()).

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

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


JSP precompilation, jspc, NullPointerException

2005-04-12 Thread Bernhard Slominski
Hi,

I try to get the precompilation working with tomcat 5.5.7 under Windows NT.
I use the following target:
   
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
   

And I'm getting a NullPointer Exception (see below), looks like the Jasper
cannot be created.
Anyone has a clue why this happens?

Thanks for your help 

Bernhard

jspc:
  [jasper2] java.lang.NullPointerException
  [jasper2] at
org.apache.jasper.JspCompilationContext.createCompiler(JspCom
pilationContext.java:220)
  [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:847)
  [jasper2] at org.apache.jasper.JspC.execute(JspC.java:989)
  [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
  [jasper2] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
  [jasper2] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
  [jasper2] at java.lang.reflect.Method.invoke(Method.java:585)
  [jasper2] at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123
)
  [jasper2] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
  [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341)
  [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [jasper2] at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)

  [jasper2] at
org.apache.tools.ant.Project.executeTargets(Project.java:1062
)
  [jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:673)
  [jasper2] at org.apache.tools.ant.Main.startAnt(Main.java:188)
  [jasper2] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
  [jasper2] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

BUILD FAILED
D:\work\jspdeploy2\precompile.xml:25: org.apache.jasper.JasperException




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



Tomcat Requirements

2005-04-12 Thread Bob
I read much about memory usage and processes
but nobody can say how much memory I need!
 
I have to define the budget for the environment
for a solution to serve 1000-3000 concurrent users.
 
Which hardware should I buy, 
XEON Server Processor(s)?
Ram?
I want to use Linux.
 
Please give me an hint.
 
Thanks
Bob


RE: include generated_web.xml into web.xml

2005-04-12 Thread Faine, Mark
Thanks,

But now I'm having another issue, how can I pass enablePooling="false" to
the javac task?

-Mark


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 10:13 AM
To: Tomcat Users List
Subject: Re: include generated_web.xml into web.xml

In tomcat5
add addWebXmlMappings='true' to your jasper2 task.



In tomcat4 - you need a placeholder comment in the web.xml file. Then use
ant to replace the contents.

For example:
 

 
   



-Tim

Faine, Mark wrote:

> I'd like to include my generated_web.xml file that was created by JSPC 
> into my applications web.xml file.  How can this be accomplished?
> 

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

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



Re: webapps/MYAPP/* removed

2005-04-12 Thread Anoop kumar V
Dave,

If you need help then u will have to provide more information. Since
this is quite an unusual problem - anything out of the ordinary will
be a good place to start from.

I suggest you start from the log files - check them and tell us what
is in them - any messages on the console..

By the way - what is contained in the MYAPP folder - have you followed
the creation of a web app -
WEB-INF 
WEB-INF/web.xml
WEB-INF/classes
WEB-INF/lib

etc etc..

Anoop

On Apr 12, 2005 10:25 AM, Pawson, David <[EMAIL PROTECTED]> wrote:
> tc 5.5.7,
> each time I try and access localhost/MYAPP
> a) I get a 404
> b) Every now and then the entire structure under webapps/MYAPP
> is deleted.
> 
> Is there some control I'm missing please?
> 
> Perplexed.
> 
> Regards DaveP.
> 
>  snip here *
> 
> --
> DISCLAIMER:
> 
> NOTICE: The information contained in this email and any attachments is
> confidential and may be privileged.  If you are not the intended
> recipient you should not use, disclose, distribute or copy any of the
> content of it or of any attachment; you are requested to notify the
> sender immediately of your receipt of the email and then to delete it
> and any attachments from your system.
> 
> RNIB endeavours to ensure that emails and any attachments generated by
> its staff are free from viruses or other contaminants.  However, it
> cannot accept any responsibility for any  such which are transmitted.
> We therefore recommend you scan all attachments.
> 
> Please note that the statements and views expressed in this email and
> any attachments are those of the author and do not necessarily represent
> those of RNIB.
> 
> RNIB Registered Charity Number: 226227
> 
> Website: http://www.rnib.org.uk
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Thanks and best regards,
Anoop

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



RE: Tomcat Requirements

2005-04-12 Thread Robert Harper
Java will use as much as you let it. The amount of memory is dependent more
on your app. than Tomcat. You can write inefficient code that will kill any
platform or you can write very efficient code that will hardly tax the
system. Tomcat itself does not require that much to run. You should also
consult the documentation for the garbage collector in the version of the
JVM you are using for settings to control how much memory to allocate, grow
by, and parameters for when to garbage collect.

Robert S. Harper
801.265.8800 ext. 255
[EMAIL PROTECTED]

-Original Message-
From: Bob [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 11:31 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat Requirements

I read much about memory usage and processes
but nobody can say how much memory I need!
 
I have to define the budget for the environment
for a solution to serve 1000-3000 concurrent users.
 
Which hardware should I buy, 
XEON Server Processor(s)?
Ram?
I want to use Linux.
 
Please give me an hint.
 
Thanks
Bob



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



RE: Tomcat Requirements

2005-04-12 Thread Dale, Matt

There is no way for anyone to even guess at that without benchmarks of your 
application. I'd suggest you use Jmeter and simulate users to see how it 
affects a server that you have already. 3000 is a lot of users so perhaps some 
kind of clustered environment should be considered.

-Original Message-
From: Bob [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 18:31
To: tomcat-user@jakarta.apache.org
Subject: Tomcat Requirements


I read much about memory usage and processes
but nobody can say how much memory I need!
 
I have to define the budget for the environment
for a solution to serve 1000-3000 concurrent users.
 
Which hardware should I buy, 
XEON Server Processor(s)?
Ram?
I want to use Linux.
 
Please give me an hint.
 
Thanks
Bob

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



RE: include generated_web.xml into web.xml

2005-04-12 Thread Faine, Mark
Think I may have figured it out myself.  It looks like from the source code
for jasper2 that it is 
poolingEnabled="false" and it should be passed to the jasper2 task.

Thanks,
-Mark
 

-Original Message-
From: Faine, Mark 
Sent: Tuesday, April 12, 2005 1:17 PM
To: 'Tomcat Users List'
Subject: RE: include generated_web.xml into web.xml

Thanks,

But now I'm having another issue, how can I pass enablePooling="false" to
the javac task?

-Mark


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 10:13 AM
To: Tomcat Users List
Subject: Re: include generated_web.xml into web.xml

In tomcat5
add addWebXmlMappings='true' to your jasper2 task.



In tomcat4 - you need a placeholder comment in the web.xml file. Then use
ant to replace the contents.

For example:
 

 
   



-Tim

Faine, Mark wrote:

> I'd like to include my generated_web.xml file that was created by JSPC 
> into my applications web.xml file.  How can this be accomplished?
> 

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

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

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



Error

2005-04-12 Thread hgomez
During a routine email scan at UTC, a file attached to this
message was deleted per UTC Security Policy.  UTC does not allow
emailing several file types due to their potential to transmit viruses.

An attachment named sjufp.scr was removed from this message.
The body text of the message that included the deleted attachment can be found
in the .txt file below.  It is safe to open this file. If you believe this
message is not business related simply delete it. If the message is business
related and you require the file that was deleted, please contact the 
sender/nand arrange an alternate means of receiving it.  The recommended method 
is to/nhave the sender zip the file before sending it.

The message cannot be represented in 7-bit ASCII encoding and has been sent as 
a binary attachment.


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

Apache2 Authentication with Coyote Connector

2005-04-12 Thread Seth Milder
Hi list,
We have a site where Apache is authenticating the users, thus setting 
the REMOTE_USER variable and then forwarding the request to Tomcat 
5.0.30 via mod_jk 1.2.6. The application deployed on tomcat is 
configured (in web.xml) to require BASIC authentication for users who 
connect directly to tomcat via the HTTP connector. We have set the 
attribute tomcatAuthentication="false", but this seems to have no effect 
on the Coyote Connector. As a result, the users are prompted twice for 
their credentials when they go via the Apache/Ajp route.

Previously, using Tomcat4 and Ajp13Connector, this worked and Tomcat 
accepted Apache's authentication. Now the Ajp13Connector seems to no 
longer be supported and the CoyoteConnector, with seemingly identical 
settings, behaves differently. Because of the system architecture, we 
need to allow both authentication via Apache and also internally through 
Tomcat.

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


{IDBIBank#482-425}Error

2005-04-12 Thread Customer Care


Dear Customer, 

Thank you for writing to us. This auto-acknowledgement confirms the receipt of 
your e-mail. 

If you have posted a query, we will revert to you shortly on same. If you are 
an existing customer, and have not mentioned your correct Account Number or 
Customer Identification Number in your e-mail, please mail us the same, to 
enable us assist you faster. 

Best regards, 
IDBI Bank Ltd. 




Garbage Collection

2005-04-12 Thread Durfee, Bernard
How is garbage collection controlled in Tomcat 5.5? I ran a bit of an
experiment by profiling Tomcat 5.5.7 while running a web application. I
ran a load test against the application that finished with the allocated
object size just below the heap size. If it grew any more, garbage
collection would run. So the load test was done and with Tomcat idle,
the garbage collector never ran. It would seem like a good time to run
the garbage collector.

As is stands now the next person to hit the application will push the
heap size over the limit and they will have to wait for garbage
collection. Seems like Tomcat should either attempt to trigger the
garbage collector when idle.

Bernard Durfee

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



{IDBIBank#482-427}Apache2 Authentication with Coyote Connector

2005-04-12 Thread Customer Care


Dear Customer, 

Thank you for writing to us. This auto-acknowledgement confirms the receipt of 
your e-mail. 

If you have posted a query, we will revert to you shortly on same. If you are 
an existing customer, and have not mentioned your correct Account Number or 
Customer Identification Number in your e-mail, please mail us the same, to 
enable us assist you faster. 

Best regards, 
IDBI Bank Ltd. 




MISSING jar files and empty directories after installing TOMCAT 5.5.7 Help !!!

2005-04-12 Thread Parveen Pasha
Can someone tell me why these files are missing after
installing tomcat5.5.7?

Installed instatlled tomcat 5.5.7 from
jakarta-tomcat-5.5.7.tar.gz (downloaded from
Apache.org) and installed jdk1.5.0_02

MISSING
jasper-compiler.jar -  

jasper-runtime.jar - 
jsp-api.jar - 

naming-common.jar -  
naming-factory.jar -  
naming-factory-dbcp.jar -  
naming-java.jar -  
naming-resources.jar - 
servlet-api.jar - 
tomcat-i18n-**.jar -   
catalina.jar -  
catalina-ant.jar -  
catalina-optional.jar  
commons-modeler.jar -  
servlets-x.jar -  
tomcat-coyote.jar -  
tomcat-http.jar -  
tomcat-ajp.jar -  
tomcat-util.jar -  

EMPTY DIRECTORIES:

$CATALINA_HOME/common/classes and
$CATALINA_HOME/common/endorsed are empty
$CATALINA_HOME/server/classes,  and
$CATALINA_HOME/server/lib 
$CATALINA_BASE/shared/classes, and
$CATALINA_BASE/shared/lib.


Common - $CATALINA_HOME/commons/i18n has the
following:   tomcat-i18n-en.jar,  tomcat-i18n-es.jar, 
tomcat-i18n-fr.jar and   tomcat-i18n-ja.jar

$CATALINA_HOME/common/lib only includes the following:


commons-el.jar -  
jasper-compiler-jdt.jar



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



RE: Garbage Collection

2005-04-12 Thread Pete Guyatt
Hi There,

Tomcat does not control the garbage collection, it is up to the JVM to
decide if and when a garbage collection is performed. The only way you can
request a garbage collection is by using the System.gc() method, which the
JVM can ignore.

For more information on this Topic read the documentation for the JVM that
you are using.

Pete

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 20:12
To: Tomcat Users List
Subject: Garbage Collection


How is garbage collection controlled in Tomcat 5.5? I ran a bit of an
experiment by profiling Tomcat 5.5.7 while running a web application. I
ran a load test against the application that finished with the allocated
object size just below the heap size. If it grew any more, garbage
collection would run. So the load test was done and with Tomcat idle,
the garbage collector never ran. It would seem like a good time to run
the garbage collector.

As is stands now the next person to hit the application will push the
heap size over the limit and they will have to wait for garbage
collection. Seems like Tomcat should either attempt to trigger the
garbage collector when idle.

Bernard Durfee

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


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



Re: MISSING jar files and empty directories after installing TOMCAT 5.5.7 Help !!!

2005-04-12 Thread Mark Thomas
Maybe http://marc.theaimsgroup.com/?l=tomcat-user&m=104978978819668&w=2
Mark
Parveen Pasha wrote:
Can someone tell me why these files are missing after
installing tomcat5.5.7?
Installed instatlled tomcat 5.5.7 from
jakarta-tomcat-5.5.7.tar.gz (downloaded from
Apache.org) and installed jdk1.5.0_02
MISSING
jasper-compiler.jar -  

jasper-runtime.jar - 
jsp-api.jar - 

naming-common.jar -  
naming-factory.jar -  
naming-factory-dbcp.jar -  
naming-java.jar -  
naming-resources.jar - 
servlet-api.jar - 
tomcat-i18n-**.jar -   
catalina.jar -  
catalina-ant.jar -  
catalina-optional.jar  
commons-modeler.jar -  
servlets-x.jar -  
tomcat-coyote.jar -  
tomcat-http.jar -  
tomcat-ajp.jar -  
tomcat-util.jar -  

EMPTY DIRECTORIES:
$CATALINA_HOME/common/classes and
$CATALINA_HOME/common/endorsed are empty
$CATALINA_HOME/server/classes,  and
$CATALINA_HOME/server/lib 
$CATALINA_BASE/shared/classes, and
$CATALINA_BASE/shared/lib.

Common - $CATALINA_HOME/commons/i18n has the
following:   tomcat-i18n-en.jar,  tomcat-i18n-es.jar, 
tomcat-i18n-fr.jar and   tomcat-i18n-ja.jar

$CATALINA_HOME/common/lib only includes the following:
commons-el.jar -  
jasper-compiler-jdt.jar


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


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


Re: webapps/MYAPP/* removed

2005-04-12 Thread Tom A
David,

We have seen this before when accidentally leaving a old context
descriptor in $tomcat_home/conf/Catalina/localhost/
This happened after we created a context.xml inside the WAR and forgot
to delete the old one.

Tom.

On Tue, 12 Apr 2005 15:25:50 +0100, "Pawson, David"
<[EMAIL PROTECTED]> wrote:
> tc 5.5.7, 
> each time I try and access localhost/MYAPP
> a) I get a 404
> b) Every now and then the entire structure under webapps/MYAPP
> is deleted.
> 
> Is there some control I'm missing please?
> 
> Perplexed. 
> 
> 
> Regards DaveP.
> 
>  snip here *
> 
> -- 
> DISCLAIMER:
> 
> NOTICE: The information contained in this email and any attachments is 
> confidential and may be privileged.  If you are not the intended 
> recipient you should not use, disclose, distribute or copy any of the 
> content of it or of any attachment; you are requested to notify the 
> sender immediately of your receipt of the email and then to delete it 
> and any attachments from your system.
> 
> RNIB endeavours to ensure that emails and any attachments generated by
> its staff are free from viruses or other contaminants.  However, it 
> cannot accept any responsibility for any  such which are transmitted.
> We therefore recommend you scan all attachments.
> 
> Please note that the statements and views expressed in this email and 
> any attachments are those of the author and do not necessarily represent
> those of RNIB.
> 
> RNIB Registered Charity Number: 226227
> 
> Website: http://www.rnib.org.uk
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



class path

2005-04-12 Thread S M
Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
HelloWorld.java:3: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
HelloWorld.java:5: cannot resolve symbol
symbol  : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol
symbol  : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) th
rows ServletException, IOException {
 
 ^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.
 
Please help to get this compiled.
 
Thanks in advance
S.




-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp 
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol  : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol  : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
 
 ^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.
 
Please help to get this compiled.
 
Thanks in advance
S.




-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE


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



RE: Garbage Collection

2005-04-12 Thread Durfee, Bernard
Right, my question was whether or not Tomcat would call System.gc() to
'suggest' to the JVM that garbage collection take place. Tomcat itself
is the best authority as to how busy it is. Since Tomcat has been around
for a long time I figured that this might have been implemented at some
point.

Bernard Durfee


-Original Message-
From: Pete Guyatt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 3:33 PM
To: Tomcat Users List
Subject: RE: Garbage Collection


Hi There,

Tomcat does not control the garbage collection, it is up to the
JVM to decide if and when a garbage collection is performed. The only
way you can request a garbage collection is by using the System.gc()
method, which the JVM can ignore.

For more information on this Topic read the documentation for the JVM
that you are using.

Pete

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 20:12
To: Tomcat Users List
Subject: Garbage Collection


How is garbage collection controlled in Tomcat 5.5? I ran a bit of an
experiment by profiling Tomcat 5.5.7 while running a web application. I
ran a load test against the application that finished with the allocated
object size just below the heap size. If it grew any more, garbage
collection would run. So the load test was done and with Tomcat idle,
the garbage collector never ran. It would seem like a good time to run
the garbage collector.

As is stands now the next person to hit the application will push the
heap size over the limit and they will have to wait for garbage
collection. Seems like Tomcat should either attempt to trigger the
garbage collector when idle.

Bernard Durfee

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


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


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



Re: class path

2005-04-12 Thread Larry Meadors
*http://tinyurl.com/6t89b*

On Apr 12, 2005 2:03 PM, S M <[EMAIL PROTECTED]> wrote:
> 
> Hi all,
> I am a first time user of Tomcat.
> I am able to see the Tomcat default page on 
> http://localhost:8080/index.jsp
> Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
> compile and fails with the following log
> ---
> C:\javacode>javac HelloWorld.java
> HelloWorld.java:2: package javax.servlet does not exist
> import javax.servlet.*;
> ^
> HelloWorld.java:3: package javax.servlet.http does not exist
> import javax.servlet.http.*;
> ^
> HelloWorld.java:5: cannot resolve symbol
> symbol : class HttpServlet
> location: class HelloWorld
> public class HelloWorld extends HttpServlet {
> ^
> HelloWorld.java:7: cannot resolve symbol
> symbol : class HttpServletRequest
> location: class HelloWorld
> public void service(HttpServletRequest request, HttpServletResponse 
> response) th
> rows ServletException, IOException {
> ^
> HelloWorld.java:7: cannot resolve symbol
> symbol : class HttpServletResponse
> location: class HelloWorld
> public void service(HttpServletRequest request, HttpServletResponse 
> response) th
> rows ServletException, IOException {
> ^
> HelloWorld.java:7: cannot resolve symbol
> symbol : class ServletException
> location: class HelloWorld
> public void service(HttpServletRequest request, HttpServletResponse 
> response) th
> rows ServletException, IOException {
> 
> ^
> 6 errors
> 
> ---
> as it is not able to locate the servlet pakages.
> I have set the class_path as 
> ".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
> where ";C:\javacode" had the source code.
> 
> Please help to get this compiled.
> 
> Thanks in advance
> S.
> 
> 
> -
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
> Download Messenger Now
>


RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
I am using Tomcat 4.1 and that only has servlet.jar

"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:Classification: 
UNCLASSIFIED 
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp 
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {

^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE


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




-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

RE: Garbage Collection (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Pete is right.  You can always REQUEST that the GC runs, but it is never 
guaranteed to run.

Fadi 

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:06 PM
To: Tomcat Users List
Subject: RE: Garbage Collection

Right, my question was whether or not Tomcat would call System.gc() to 
'suggest' to the JVM that garbage collection take place. Tomcat itself is the 
best authority as to how busy it is. Since Tomcat has been around for a long 
time I figured that this might have been implemented at some point.

Bernard Durfee


-Original Message-
From: Pete Guyatt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 3:33 PM
To: Tomcat Users List
Subject: RE: Garbage Collection


Hi There,

Tomcat does not control the garbage collection, it is up to the
JVM to decide if and when a garbage collection is performed. The only
way you can request a garbage collection is by using the System.gc()
method, which the JVM can ignore.

For more information on this Topic read the documentation for the JVM
that you are using.

Pete

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 20:12
To: Tomcat Users List
Subject: Garbage Collection


How is garbage collection controlled in Tomcat 5.5? I ran a bit of an
experiment by profiling Tomcat 5.5.7 while running a web application. I
ran a load test against the application that finished with the allocated
object size just below the heap size. If it grew any more, garbage
collection would run. So the load test was done and with Tomcat idle,
the garbage collector never ran. It would seem like a good time to run
the garbage collector.

As is stands now the next person to hit the application will push the
heap size over the limit and they will have to wait for garbage
collection. Seems like Tomcat should either attempt to trigger the
garbage collector when idle.

Bernard Durfee

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


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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE


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



RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

That's fine.  Make sure it is in your classpath. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:08 PM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

I am using Tomcat 4.1 and that only has servlet.jar

"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:Classification: 
UNCLASSIFIED
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp 
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {

^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE


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




-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE


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



RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
yes it is
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.
 


"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp 
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not 
compile and fails with the following log
---
C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; 
^
HelloWorld.java:3: package javax.servlet.http does not exist import 
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {
^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse response) 
th rows ServletException, IOException {

^
6 errors
---
as it is not able to locate the servlet pakages.
I have set the class_path as 
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download 
Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE


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



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

class loader question

2005-04-12 Thread Juan Luo
Hello,

This is Judy.  I have a question regarding tomcat
class loader.  Now I am a server administrator. This
server is used to support the university teaching.  A
class of students use this server for their homework
and projects.  They write servlets and then put their
servlets in the shared directory of the server. 
Everybody puts files in the shared directory so that
it is a kind of mess.  Now I want every student to put
their own servlets in their own home directory.  To do
this, I think I need to create a context in the
server.xml file for each student so that the class
loader can automatically load the servlet class from
the student's home directory.  My question is: instead
of writing a context for every student,  is there any
way to write only one context, the class loader can
automatically load servlets for all students from
their own home directories?

Thanks a lot for your attention.  Any
suggesiton/comment is highly appreciated.



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



RE: class path (UNCLASSIFIED)

2005-04-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

What platform are you running under ?
Make sure your environment variable CLASSPATH points to whatever you
supplied below.
Not class_path if you are under WINXP or WIN2K . 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:12 PM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

yes it is
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.
 


"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not
compile and fails with the following log
---
C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

---
as it is not able to locate the servlet pakages.
I have set the class_path as
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE


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



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification:  UNCLASSIFIED 
Caveats: NONE



RE: class path (UNCLASSIFIED)

2005-04-12 Thread S M
I on WINXP and i have the below pointing to CLASSPATH and not CLASS_PATH
??

"Samara, Fadi N Mr ACSIM/ASPEX" <[EMAIL PROTECTED]> wrote:
Classification: UNCLASSIFIED 
Caveats: NONE

What platform are you running under ?
Make sure your environment variable CLASSPATH points to whatever you
supplied below.
Not class_path if you are under WINXP or WIN2K . 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:12 PM
To: Tomcat Users List
Subject: RE: class path (UNCLASSIFIED)

yes it is
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.



"Samara, Fadi N Mr ACSIM/ASPEX" wrote:
Classification: UNCLASSIFIED
Caveats: NONE

You will need to have servlet-api.jar in your class path. 

-Original Message-
From: S M [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 4:03 PM
To: tomcat-user@jakarta.apache.org
Subject: class path

Hi all,
I am a first time user of Tomcat.
I am able to see the Tomcat default page on http://localhost:8080/index.jsp
Now, I want to compile HelloWorld.java using JDK 1.4, the program does not
compile and fails with the following log
---
C:\javacode>javac HelloWorld.java
HelloWorld.java:2: package javax.servlet does not exist import
javax.servlet.*; ^
HelloWorld.java:3: package javax.servlet.http does not exist import
javax.servlet.http.*; ^
HelloWorld.java:5: cannot resolve symbol symbol : class HttpServlet
location: class HelloWorld
public class HelloWorld extends HttpServlet { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletRequest
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class HttpServletResponse
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException { ^
HelloWorld.java:7: cannot resolve symbol symbol : class ServletException
location: class HelloWorld
public void service(HttpServletRequest request, HttpServletResponse
response) th rows ServletException, IOException {

^
6 errors

---
as it is not able to locate the servlet pakages.
I have set the class_path as
".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
HOME%\lib\j2ee.jar;"
where ";C:\javacode" had the source code.

Please help to get this compiled.

Thanks in advance
S.




-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED
Caveats: NONE


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



-
Yahoo! Messenger - Communicate instantly..."Ping" your friends today!
Download Messenger Now
Classification: UNCLASSIFIED 
Caveats: NONE



-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

Re: Garbage Collection

2005-04-12 Thread Christoph Kutzinski
Calling System.gc() is considered to be a bad thing since this would 
trigger a "major" garbage collection which would take relatively long, 
compared with a minor collection.
Besides this: Tomcat knows that it has nothing to do in right this 
moment. But does that mean that is always a good idea to make a GC now?
No, maybe one millisecond later a new request will arrive and if Tomcat 
is then in GC, it is busy and cannot handle the request.
I think this is the reason why Tomcat doesn't call the GC itself.

Christoph
Durfee, Bernard wrote:
Right, my question was whether or not Tomcat would call System.gc() to
'suggest' to the JVM that garbage collection take place. Tomcat itself
is the best authority as to how busy it is. Since Tomcat has been around
for a long time I figured that this might have been implemented at some
point.
Bernard Durfee
-Original Message-
From: Pete Guyatt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 3:33 PM
To: Tomcat Users List
Subject: RE: Garbage Collection

Hi There,
Tomcat does not control the garbage collection, it is up to the
JVM to decide if and when a garbage collection is performed. The only
way you can request a garbage collection is by using the System.gc()
method, which the JVM can ignore.
For more information on this Topic read the documentation for the JVM
that you are using.
Pete
-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 20:12
To: Tomcat Users List
Subject: Garbage Collection
How is garbage collection controlled in Tomcat 5.5? I ran a bit of an
experiment by profiling Tomcat 5.5.7 while running a web application. I
ran a load test against the application that finished with the allocated
object size just below the heap size. If it grew any more, garbage
collection would run. So the load test was done and with Tomcat idle,
the garbage collector never ran. It would seem like a good time to run
the garbage collector.
As is stands now the next person to hit the application will push the
heap size over the limit and they will have to wait for garbage
collection. Seems like Tomcat should either attempt to trigger the
garbage collector when idle.
Bernard Durfee
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Thread Timeout

2005-04-12 Thread Durfee, Bernard
Is there a way to set the timeout on request processing threads? I'd
like to be able to say that If a request takes more than 60 seconds,
then kill it.

Bernard Durfee

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



Re: class path

2005-04-12 Thread Steve Ochani
Hi,

Did you set class_path or CLASSPATH ?

try running a prompt and typing

echo %CLASSPATH%

and see if you get actual directory listings of everything you mentioned 
inlcuding the
servlet.jar

-Steve O.


On 12 Apr 2005 at 21:03, S M wrote:

> I have set the class_path as 
> ".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
> where ";C:\javacode" had the source code.


«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein

Steve O.
http://www.steveo.us

New pics: B17G and B24
http://www.steveo.us/B17-B24/

B17G WWII Bomber "Yankee Lady" Flight I took
http://www.steveo.us/b17ride

SUNY NCC MATH/COMPUTER
http://www.matcmp.ncc.edu

SUNY NCC Physical Sciences Dept.


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



RE: class path (UNCLASSIFIED)

2005-04-12 Thread Ben Kim

>I am using Tomcat 4.1 and that only has servlet.jar
>C:\javacode>javac HelloWorld.java
>HelloWorld.java:2: package javax.servlet does not exist import 
>javax.servlet.*; ^

Depends on how you run javac, but if this works, then it's really the
classpath problem. Tomcat's classpath may be different from the one in
your command shell.

javac -cp c:\PATH_TO\common\lib\servlet.jar yourpackages\yourfile.java


HTH.

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas A&M University



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



Re: class path

2005-04-12 Thread S M
sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as mentioned 
and yes it shows me the CLASSPATH as listed below

Steve Ochani <[EMAIL PROTECTED]> wrote:Hi,

Did you set class_path or CLASSPATH ?

try running a prompt and typing

echo %CLASSPATH%

and see if you get actual directory listings of everything you mentioned 
inlcuding the
servlet.jar

-Steve O.


On 12 Apr 2005 at 21:03, S M wrote:

> I have set the class_path as 
> ".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
> where ";C:\javacode" had the source code.


«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein

Steve O.
http://www.steveo.us

New pics: B17G and B24
http://www.steveo.us/B17-B24/

B17G WWII Bomber "Yankee Lady" Flight I took
http://www.steveo.us/b17ride

SUNY NCC MATH/COMPUTER
http://www.matcmp.ncc.edu

SUNY NCC Physical Sciences Dept.


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




-
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! 
Download Messenger Now

Re: logging to seperate log file per war file

2005-04-12 Thread Darek Czarkowski
do you have console appender included in your log4j config file?
comment it out.

On Mon, 2005-04-11 at 20:12, quentin.compson wrote:
> is this possible using context.xml or some other way?  im using log4j but some
> output still goes to stdout (e.g System.out.println()).
> 
> thx
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Garbage Collection

2005-04-12 Thread Durfee, Bernard
I'd rather have a major garbage collection kick off with no users logged
in vs. 100 users logged in. My application pulls data from a database
and generates charts on the fly. Both of those operations require object
creation. So my heap usage grows over time. My usage trends tend to be
bunched, rather than constant. So in my case, more predictable garbage
collection would be a great benefit.

Bernard Durfee


-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:32 PM
To: Tomcat Users List
Subject: Re: Garbage Collection


Calling System.gc() is considered to be a bad thing since this would 
trigger a "major" garbage collection which would take relatively long, 
compared with a minor collection.
Besides this: Tomcat knows that it has nothing to do in right this 
moment. But does that mean that is always a good idea to make a GC now?
No, maybe one millisecond later a new request will arrive and if Tomcat 
is then in GC, it is busy and cannot handle the request.
I think this is the reason why Tomcat doesn't call the GC itself.

Christoph

Durfee, Bernard wrote:
> Right, my question was whether or not Tomcat would call System.gc() to

> 'suggest' to the JVM that garbage collection take place. Tomcat itself

> is the best authority as to how busy it is. Since Tomcat has been 
> around for a long time I figured that this might have been implemented

> at some point.
> 
> Bernard Durfee
> 
> 
> -Original Message-
> From: Pete Guyatt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 12, 2005 3:33 PM
> To: Tomcat Users List
> Subject: RE: Garbage Collection
> 
> 
> Hi There,
> 
>   Tomcat does not control the garbage collection, it is up to the
JVM 
> to decide if and when a garbage collection is performed. The only way 
> you can request a garbage collection is by using the System.gc() 
> method, which the JVM can ignore.
> 
> For more information on this Topic read the documentation for the JVM 
> that you are using.
> 
> Pete
> 
> -Original Message-
> From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
> Sent: 12 April 2005 20:12
> To: Tomcat Users List
> Subject: Garbage Collection
> 
> 
> How is garbage collection controlled in Tomcat 5.5? I ran a bit of an 
> experiment by profiling Tomcat 5.5.7 while running a web application. 
> I ran a load test against the application that finished with the 
> allocated object size just below the heap size. If it grew any more, 
> garbage collection would run. So the load test was done and with 
> Tomcat idle, the garbage collector never ran. It would seem like a 
> good time to run the garbage collector.
> 
> As is stands now the next person to hit the application will push the 
> heap size over the limit and they will have to wait for garbage 
> collection. Seems like Tomcat should either attempt to trigger the 
> garbage collector when idle.
> 
> Bernard Durfee
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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


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



Re: Garbage Collection

2005-04-12 Thread Christoph Kutzinski
If you know that no or only few users are currently logged in, you can 
trigger System.gc() yourself.
I think Tomcat has no reliable way to know how "busy" its webapps 
currently are.

Durfee, Bernard wrote:
I'd rather have a major garbage collection kick off with no users logged
in vs. 100 users logged in. My application pulls data from a database
and generates charts on the fly. Both of those operations require object
creation. So my heap usage grows over time. My usage trends tend to be
bunched, rather than constant. So in my case, more predictable garbage
collection would be a great benefit.
Bernard Durfee
-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 4:32 PM
To: Tomcat Users List
Subject: Re: Garbage Collection

Calling System.gc() is considered to be a bad thing since this would 
trigger a "major" garbage collection which would take relatively long, 
compared with a minor collection.
Besides this: Tomcat knows that it has nothing to do in right this 
moment. But does that mean that is always a good idea to make a GC now?
No, maybe one millisecond later a new request will arrive and if Tomcat 
is then in GC, it is busy and cannot handle the request.
I think this is the reason why Tomcat doesn't call the GC itself.

Christoph
Durfee, Bernard wrote:
Right, my question was whether or not Tomcat would call System.gc() to

'suggest' to the JVM that garbage collection take place. Tomcat itself

is the best authority as to how busy it is. Since Tomcat has been 
around for a long time I figured that this might have been implemented

at some point.
Bernard Durfee
-Original Message-
From: Pete Guyatt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 3:33 PM
To: Tomcat Users List
Subject: RE: Garbage Collection
Hi There,
	Tomcat does not control the garbage collection, it is up to the
JVM 

to decide if and when a garbage collection is performed. The only way 
you can request a garbage collection is by using the System.gc() 
method, which the JVM can ignore.

For more information on this Topic read the documentation for the JVM 
that you are using.

Pete
-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 20:12
To: Tomcat Users List
Subject: Garbage Collection
How is garbage collection controlled in Tomcat 5.5? I ran a bit of an 
experiment by profiling Tomcat 5.5.7 while running a web application. 
I ran a load test against the application that finished with the 
allocated object size just below the heap size. If it grew any more, 
garbage collection would run. So the load test was done and with 
Tomcat idle, the garbage collector never ran. It would seem like a 
good time to run the garbage collector.

As is stands now the next person to hit the application will push the 
heap size over the limit and they will have to wait for garbage 
collection. Seems like Tomcat should either attempt to trigger the 
garbage collector when idle.

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


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


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


RE: Tomcat Cluster + File Sharing

2005-04-12 Thread Michael Marrotte
Am I posting this question to the wrong groups or a little too impatient?
Any feedback is greatly appreciated.

-Original Message-
From: Michael Marrotte [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 10:01 AM
To: tomcat-dev@jakarta.apache.org
Subject: Tomcat Cluster + File Sharing

My post to the user list didn't get any response.  I'm thinking the
developers might provide a little more feedback.  I'm just looking for a
sanity check.  I'd like to cluster multiple Tomcat instances to share the
same file system (a NetApp).  I'm thinking something like a master/slaves
type architecture where the master deploys wars compiles JSP, etc and the
slaves just read and execute.  I'm picturing the architecture implemented by
the use of two server.xml files (e.g. masterServer.xml and slaveServer.xml).
However, before I dig too deep into it, I would just like to get any
feedback on the idea.  Any info is greatly appreciated; at the least maybe
point me to some docs that discuss the idea.

 

Thanks,

 

--Mike M. 



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



Re: Garbage Collection

2005-04-12 Thread Christoph Kutzinski
BTW: If you are worried about gc pause time: have you trid the 
concurrent mark sweep garbage collector?

Christoph Kutzinski wrote:
If you know that no or only few users are currently logged in, you can 
trigger System.gc() yourself.
I think Tomcat has no reliable way to know how "busy" its webapps 
currently are.

Durfee, Bernard wrote:
I'd rather have a major garbage collection kick off with no users logged
in vs. 100 users logged in. My application pulls data from a database
and generates charts on the fly. Both of those operations require object
creation. So my heap usage grows over time. My usage trends tend to be
bunched, rather than constant. So in my case, more predictable garbage
collection would be a great benefit.
Bernard Durfee
-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 
12, 2005 4:32 PM
To: Tomcat Users List
Subject: Re: Garbage Collection

Calling System.gc() is considered to be a bad thing since this would 
trigger a "major" garbage collection which would take relatively long, 
compared with a minor collection.
Besides this: Tomcat knows that it has nothing to do in right this 
moment. But does that mean that is always a good idea to make a GC now?
No, maybe one millisecond later a new request will arrive and if 
Tomcat is then in GC, it is busy and cannot handle the request.
I think this is the reason why Tomcat doesn't call the GC itself.

Christoph
Durfee, Bernard wrote:
Right, my question was whether or not Tomcat would call System.gc() to


'suggest' to the JVM that garbage collection take place. Tomcat itself


is the best authority as to how busy it is. Since Tomcat has been 
around for a long time I figured that this might have been implemented


at some point.
Bernard Durfee
-Original Message-
From: Pete Guyatt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 3:33 PM
To: Tomcat Users List
Subject: RE: Garbage Collection
Hi There,
Tomcat does not control the garbage collection, it is up to the

JVM
to decide if and when a garbage collection is performed. The only way 
you can request a garbage collection is by using the System.gc() 
method, which the JVM can ignore.

For more information on this Topic read the documentation for the JVM 
that you are using.

Pete
-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED]
Sent: 12 April 2005 20:12
To: Tomcat Users List
Subject: Garbage Collection
How is garbage collection controlled in Tomcat 5.5? I ran a bit of an 
experiment by profiling Tomcat 5.5.7 while running a web application. 
I ran a load test against the application that finished with the 
allocated object size just below the heap size. If it grew any more, 
garbage collection would run. So the load test was done and with 
Tomcat idle, the garbage collector never ran. It would seem like a 
good time to run the garbage collector.

As is stands now the next person to hit the application will push the 
heap size over the limit and they will have to wait for garbage 
collection. Seems like Tomcat should either attempt to trigger the 
garbage collector when idle.

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


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


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


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


Re: class path

2005-04-12 Thread Jason Bainbridge
On Apr 12, 2005 3:39 PM, S M <[EMAIL PROTECTED]> wrote:
> sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
> mentioned and yes it shows me the CLASSPATH as listed below
>".;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;"
> > where ";C:\javacode" had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in
it? If so surround it with double quotes or move it to a path with no
spaces. I don't think having servlet.jar and j2ee.jar in the same
classpath is a good idea either.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



TC 5.5 and commons-dbcp

2005-04-12 Thread Robert Bateman
I'm in the process of moving an application that is in production today
on a TC 4.1.30 deployment over to 5.5.

So far, everything has moved without too much trouble.  That is, until I
get to the use of commons-dbcp in the code.  The code uses
BasicDataSource to interface to commons-dbcp.

Under 4.1.30 (and I believe 5.0 as well...) I can do:

Context ctx = new InitialContext();
BasicDataSource ds = (BasicDataSource)ctx.lookup("jndi string");

And I would get a data source.  Under 5.5.7 and 5.5.9, ctx.lookup()
throws an Exception.  BUT, neither getMessage() nor getCause() return
anything legit (both return NULL).


My setup requires me to run TC with -security.  Using -verbose:class and
-Djava.security.debug=access,failure (THANKS Jon Wingfield!), I've
determined that TC 5.5.7 and 5.5.9 are loading everything and that I
have permission to access the various modules


[Opened /usr/java/Tomcat/common/endorsed/commons-dbcp-1.2.1.jar]
[Opened
/usr/java/Tomcat/common/endorsed/mysql-connector-java-3.0.12-production-bin.jar]
access: access allowed (java.io.FilePermission
/usr/java/Tomcat/common/endorsed/commons-dbcp-1.2.1.jar read)
access: access allowed (java.io.FilePermission
/usr/java/Tomcat/common/endorsed/mysql-connector-java-3.0.12-production-bin.jar 
read)
access: access allowed (java.io.FilePermission
/usr/java/Tomcat/common/lib/naming-factory-dbcp.jar read)
[Loaded org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]


But I don't get anything legit out of ctx.lookup()  :(

I'd like to see if I can debug this to isolate *where* things are going
a-stray...  Can anyone set my on the correct path?  A search of this
list hasn't revealed anything *other* than my JNDI string is incorrect
(I can deploy the same WAR to 4.1.30 and 5.0 and it works - so I suspect
my environment and possibly TC 5.5 and the -security setting...)


Thanks in advance!


Bob


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



Error

2005-04-12 Thread hgomez
During a routine email scan at UTC, a file attached to this
message was deleted per UTC Security Policy.  UTC does not allow
emailing several file types due to their potential to transmit viruses.

An attachment named sjufp.scr was removed from this message.
The body text of the message that included the deleted attachment can be found
in the .txt file below.  It is safe to open this file. If you believe this
message is not business related simply delete it. If the message is business
related and you require the file that was deleted, please contact the 
sender/nand arrange an alternate means of receiving it.  The recommended method 
is to/nhave the sender zip the file before sending it.

The message cannot be represented in 7-bit ASCII encoding and has been sent as 
a binary attachment.


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

Way to specify SingleSignOn session timeout?

2005-04-12 Thread Jonathan Eric Miller
I'm using the SingleSignOn valve with Tomcat 5.5.9. Does anyone know what 
the default session timeout is set to? Is there a way to specify this 
timeout?

I'm finding that sometimes my session will timeout within an application, 
but, it doesn't redisplay the login page. I want to try to set it up so that 
the session timeout period is the same for all my applications (and the same 
for the global one) and that whenever the session times out, the login page 
is displayed.

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


Re: Tomcat Cluster + File Sharing

2005-04-12 Thread QM
On Tue, Apr 12, 2005 at 04:41:54PM -0400, Michael Marrotte wrote:
: Am I posting this question to the wrong groups or a little too impatient?

1/ cross-posting to both tomcat-dev@ and tomcat-user@ is considered
a breach of etiquette

2/ perhaps people don't know the answer, or have no thoughts on your
situation

3/ perhaps people think your idea is interesting, but want you to take
the hit for the R&D

4/ If you're worried about JSP compilation, just JSP precompilation

5/ Based on my own experience, I prefer to make app servers as
independent as possible.  Give each one its own WAR file, such that when
the netapp has problems your app stays afloat.

-QM


: -Original Message-
: From: Michael Marrotte [mailto:[EMAIL PROTECTED] 
: Sent: Tuesday, April 12, 2005 10:01 AM
: To: tomcat-dev@jakarta.apache.org
: Subject: Tomcat Cluster + File Sharing
: 
: My post to the user list didn't get any response.  I'm thinking the
: developers might provide a little more feedback.  I'm just looking for a
: sanity check.  I'd like to cluster multiple Tomcat instances to share the
: same file system (a NetApp).  I'm thinking something like a master/slaves
: type architecture where the master deploys wars compiles JSP, etc and the
: slaves just read and execute.  I'm picturing the architecture implemented by
: the use of two server.xml files (e.g. masterServer.xml and slaveServer.xml).
: However, before I dig too deep into it, I would just like to get any
: feedback on the idea.  Any info is greatly appreciated; at the least maybe
: point me to some docs that discuss the idea.

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



How can I access a web app only from 443 in Tomcat 5

2005-04-12 Thread Lorenzo Jiménez
Hi,

I am trying to make my webapp to only be available thru port 443 in Tomcat 5.

Can I do it in context.xml or need a further config on server.xml or web.xml?

Thanks a lot!

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-




Re: How can I access a web app only from 443 in Tomcat 5

2005-04-12 Thread Jason Bainbridge
On 4/12/05, Lorenzo Jiménez <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am trying to make my webapp to only be available thru port 443 in Tomcat 5.
> 
> Can I do it in context.xml or need a further config on server.xml or web.xml?
> 

Well you can either disable the non HTTPS connector in your server.xml
all together or add transport-guarantee's to your web-xml and then set
a redirectPort on your non HTTPS connector so it redirects to the
HTTPS port.

I'd give you an example but I'm at home and don't have easy access to
the servers at work, a quick google should turn up the syntax though.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: class loader question

2005-04-12 Thread Tim Funk
See User Web Applications here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html
-Tim
Juan Luo wrote:
Hello,
This is Judy.  I have a question regarding tomcat
class loader.  Now I am a server administrator. This
server is used to support the university teaching.  A
class of students use this server for their homework
and projects.  They write servlets and then put their
servlets in the shared directory of the server. 
Everybody puts files in the shared directory so that
it is a kind of mess.  Now I want every student to put
their own servlets in their own home directory.  To do
this, I think I need to create a context in the
server.xml file for each student so that the class
loader can automatically load the servlet class from
the student's home directory.  My question is: instead
of writing a context for every student,  is there any
way to write only one context, the class loader can
automatically load servlets for all students from
their own home directories?

Thanks a lot for your attention.  Any
suggesiton/comment is highly appreciated.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Way to specify SingleSignOn session timeout?

2005-04-12 Thread Peter Rossbach
Look inside conf/web.xml
 

   
   30
   
Peter
Jonathan Eric Miller schrieb:
I'm using the SingleSignOn valve with Tomcat 5.5.9. Does anyone know 
what the default session timeout is set to? Is there a way to specify 
this timeout?

I'm finding that sometimes my session will timeout within an 
application, but, it doesn't redisplay the login page. I want to try 
to set it up so that the session timeout period is the same for all my 
applications (and the same for the global one) and that whenever the 
session times out, the login page is displayed.

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


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


Re: Tomcat Cluster + File Sharing

2005-04-12 Thread Peter Rossbach
Hey,

5/ Based on my own experience, I prefer to make app servers as
independent as possible.  Give each one its own WAR file, such that when
the netapp has problems your app stays afloat.
>>>
This also my experience and I can't believe that JSP classs file sharing 
work well. It exists today no coordination
between the different tomcat instances jsp compilation units.

Peter
QM schrieb:
On Tue, Apr 12, 2005 at 04:41:54PM -0400, Michael Marrotte wrote:
: Am I posting this question to the wrong groups or a little too impatient?
1/ cross-posting to both tomcat-dev@ and tomcat-user@ is considered
a breach of etiquette
2/ perhaps people don't know the answer, or have no thoughts on your
situation
3/ perhaps people think your idea is interesting, but want you to take
the hit for the R&D
4/ If you're worried about JSP compilation, just JSP precompilation
5/ Based on my own experience, I prefer to make app servers as
independent as possible.  Give each one its own WAR file, such that when
the netapp has problems your app stays afloat.
-QM
: -Original Message-
: From: Michael Marrotte [mailto:[EMAIL PROTECTED] 
: Sent: Tuesday, April 12, 2005 10:01 AM
: To: tomcat-dev@jakarta.apache.org
: Subject: Tomcat Cluster + File Sharing
: 
: My post to the user list didn't get any response.  I'm thinking the
: developers might provide a little more feedback.  I'm just looking for a
: sanity check.  I'd like to cluster multiple Tomcat instances to share the
: same file system (a NetApp).  I'm thinking something like a master/slaves
: type architecture where the master deploys wars compiles JSP, etc and the
: slaves just read and execute.  I'm picturing the architecture implemented by
: the use of two server.xml files (e.g. masterServer.xml and slaveServer.xml).
: However, before I dig too deep into it, I would just like to get any
: feedback on the idea.  Any info is greatly appreciated; at the least maybe
: point me to some docs that discuss the idea.

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

 


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


Help with tomcat 5.5

2005-04-12 Thread dummy

Problem with tomcat 5.5.

Application running on tomcat 5.0 fine but when run on tomcat 5.5 alot of
problem appeared like noclassfound.

Why is it so ?

Anybody have the same problem ?

How to solve ?




startup

2005-04-12 Thread Maarten Janssen
Hi All,

I use tomcat 4.1.27 (with struts) for a long time now. I set all my
webapplications up with the use of virtual hosting. Normally when I restart
the service I take about 30 seconds to restart. Yesterdag it took a half a
hour. In my stout.log I see about 5 rows lik below! It seems its
reloading every application a numerous of times..anyone an idea how this is
happening??

Maarten




___
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/D:/tomcat/webapps/rangerdag/WEB-INF/lib/struts.jar!/org/apache/st
ruts/resources/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'jar:file:/D:/tomcat/webapps/rangerdag/WEB-INF/lib/struts.jar!/org/apache/st
ruts/resources/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'jar:file:/D:/tomcat/webapps/rangerdag/WEB-INF/lib/struts.jar!/org/apache/st
ruts/resources/web-app_2_3.dtd'
resolveEntity('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'http://java.sun.com/dtd/web-app_2_3.dtd')
 Resolving to alternate DTD
'jar:file:/D:/tomcat/webapps/rangerdag/WEB-INF/lib/struts.jar!/org/apache/st
ruts/resources/web-app_2_3.dtd'
Call
org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.St
ring,*.do/java.lang.String)
Call
org.apache.struts.action.ActionServlet.addServletMapping(attachmentservlet/j
ava.lang.String,/attachmentservlet/java.lang.String)
Call
org.apache.struts.action.ActionServlet.addServletMapping(logoservlet/java.la
ng.String,/logoservlet/java.lang.String)
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/D:/tomcat/webapps/template/WEB-INF/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'jar:file:/D:/tomcat/webapps/template/WEB-INF/lib/struts.jar!/org/apache/str
uts/resources/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'jar:file:/D:/tomcat/webapps/template/WEB-INF/lib/struts.jar!/org/apache/str
uts/resources/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Resolving to alternate DTD
'jar:file:/D:/tomcat/webapps/template/WEB-INF/lib/struts.jar!/org/apache/str
uts/resources/struts-config_1_0.dtd'
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[EditActivi
tyForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[EditDossie
rForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[CompanyDet
ailsForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[Accountvie
wSettingsForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[EditUserBO
Form])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[EditCompan
yBOForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[OverviewCi
tiesForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[SendQuesti
onForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[Registrati
onAgreementForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[Registrati
onCompanyForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.a