SAXParseException for matching end tags

2006-01-18 Thread Neha Narkhede
Hi..
I am getting the following error while using Apache Tomcat. I am
using JTidy to convert HTML file to XML.

[Fatal Error] :15:184: The element type HR must be terminated by the
matching end-tag /HR.
From XMLParser
org.xml.sax.SAXParseException: The element type HR must be
terminated by the matching end-tag /HR.

Please could anyone suggest a solution?

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



Re: Does tomcat 5.0 officially support JDK1.5?

2006-01-18 Thread Hans Sowa
Hi

I can't give you a offical announcement ;O) but I develop a webapplication
for my company and we use Tomcat 5.0.* with JDK 1.5 without any problems. So
from my point of you I can say you should not run in any problems if you use
JDK 1.5.

2006/1/18, HuangHao [EMAIL PROTECTED]:


  --- HuangHao [EMAIL PROTECTED] wrote:
  i folks,
 
  I am going to run Tomcat 5.0.* with JDK 1.5, I wonder whether Tomcat 5
 officially support JDK1.5 yet. I found in Apache site 
 http://tomcat.apache.org/tomcat-5.0-doc/appdev/installation.html that
 Tomcat 5 has been extensively tested with JDK 1.3.1 as well as JDK1.4.2,
 and the latter is recommended., but can't find anything about jdk1.5.
 could you please give me some guide or references,thanks in advance. Hewitt
 
  For 1.5 specific things you'll need to be using Tomcat
  5.5.x
 
  Wade
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 Thanks. As a requirement, my application need to support both Tomcat 5.0
 and 5.5. But my application requires JDK1.5 for some reason. I
 understand it is OK with JDK1.5+Tomcat5.5, but I want to make sure
 JDK1.5+Tomcat 5.0 can work too.  I can start  Tomcat 5.0 with  JDK1.5
 but that can't be regarded as a fully support certificate.

 Does apache has official announcement about this issue?

 Thanks

 Hao


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




--
mfg Hans Sowa
mailto:[EMAIL PROTECTED]


wrong System encoding

2006-01-18 Thread jacky
hi,
RedHat7.3(System encoding is iso8859-15), tomcat 4.1.30
When i use System.getProperty(file.encoding) in a jsp, it print utf-8. 
I think the utf-8 must be the encode of tomcat,but how can i get the system 
encode: iso8859-15?  In fact, i need the right encode to write/read file.
BTW, i wander why the encode of tomcat container changes to utf-8. Is the 
reason because i used reponse.setContentType(text/html; charset=utf-8)?
Any suggestion is helpful!

 Best Regards.
   jacky  
   

Re:2nd Request: How do you programmatically determine Tomcat Version

2006-01-18 Thread Rodrigo Ruiz
Hi Andy, I agree with you. The application version seems to be a 
relevant information piece.

I guess Catalina/Server MBean would be a good place.

Regards,
Rodrigo Ruiz

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



Re: 2nd Request: How do you programmatically determine Tomcat Version

2006-01-18 Thread Peter Rossbach

OK, this is a very useful information and I add this
to this information to the Server mbean. The fix included at 5.5.16.

Thanks
peter


Am 18.01.2006 um 09:53 schrieb Rodrigo Ruiz:

Hi Andy, I agree with you. The application version seems to be a  
relevant information piece.

I guess Catalina/Server MBean would be a good place.

Regards,
Rodrigo Ruiz

-
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: Is the JK Connector the definite one to use as a web connecto r?

2006-01-18 Thread Chris Mooring
Hi Georg,

Thanks for your reply. Sorry if I appear a little naïve with regards to my
terminology. I have mainly only had to mess around with IIS's GUI and its
terminology :) 

However, you are right. All I need to be able to do is to map a specific URL
path to a local directory. I think your example will work fine. 

Armed with this new info, I think I should be able to achieve what I want
without using a front end web server and connector. I will go and play and
see what I can discover :)

Thanks again.

Chris 

-Original Message-
From: Georg Sauer-Limbach [mailto:[EMAIL PROTECTED] 
Sent: 18 January 2006 00:09
To: Tomcat Users List
Subject: Re: Is the JK Connector the definite one to use as a web connecto
r?

Chris Mooring wrote:
 Thanks for the info. I think unless I can set up virtual directories on
the
 Tomcat HTTP server, I might be forced into using another webserver and
 connector (jk - soon to be jk3 ;)).

What do you mean exactly by virtual directories?

If it is something like mapping URL paths to file 
system paths, then you can achieve something with 
Tomcat's

Context path=/urlPath docBase=C:/web/files/a 
... 

element in server.xml, which maps the virtual 
(URL) 'path' to the physical docBase directory.
Note that 'path' is not limited to one directory
part, ie /urlPath/plus/more is also possible.

Furthermore, inside the web.xml deployment
descriptors you can specify which servlet/JSP is 
invoked for a certain URL pattern. See
servlet-mapping element.

Regards,
Georg

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


Connaught honoured AIM 'Decade of Excellence' Award 

Connaught awarded Partnering Contractor of the Year 2005 

Connaught wins AIM 'Company of the Year' award 2004 

West of England Business of the Year Award Winner 2003 

Why not visit our website http://www.connaught.plc.uk 

Disclaimer: 
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.  If you received
this in error, please contact the sender and delete this message. 

Connaught plc, Head Office 01392 444546 

The presence of this footer indicates that this message has been scanned for
viruses by Network Associates Group Shield

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



Authenticating LDAP users without their input - doable?

2006-01-18 Thread g m
  I have a critical 'challenge'
   
  
  It is possible to authenicate on Tomcat using LDAP (Active Directory) 
  (using MS IE browser), but, 'without' the user inputing their username 
  and password - that is, use the cached credentials from user when they 
  logged into the system.
   
  
  I have seen some applications that do this but no idea how.
   
  
  - Is this at all doable ?
  - Do I need a plugin module (or something)?
  - Does IE need to be configured to do this?
   
  
  I am using Tomcat 5.5.9 , Java 1.5, IE 6, Windows XP
   
  Really appreciate a Guru's (or two) opinion/pointer on this one.
  Thanks!



-
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!

Re: wrong System encoding

2006-01-18 Thread Anto Paul
On 1/18/06, jacky [EMAIL PROTECTED] wrote:
 hi,
 RedHat7.3(System encoding is iso8859-15), tomcat 4.1.30
 When i use System.getProperty(file.encoding) in a jsp, it print 
 utf-8. I think the utf-8 must be the encode of tomcat,but how can i get 
 the system encode: iso8859-15?  In fact, i need the right encode to 
 write/read file.
 BTW, i wander why the encode of tomcat container changes to utf-8. Is 
 the reason because i used reponse.setContentType(text/html; charset=utf-8)?
 Any suggestion is helpful!


I dont know the solution but just to know did you tried running a java
application at the command prompt to test the value of
System.getProperty(file.encoding) ?


--
rgds
Anto Paul

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



Re: Authenticating LDAP users without their input - doable?

2006-01-18 Thread Tim Funk

See the faq ...
http://tomcat.apache.org/faq/windows.html#ntlm

-Tim

g m wrote:


  I have a critical 'challenge'
   
  
  It is possible to authenicate on Tomcat using LDAP (Active Directory) 
  (using MS IE browser), but, 'without' the user inputing their username 
  and password - that is, use the cached credentials from user when they 
  logged into the system.
   
  
  I have seen some applications that do this but no idea how.
   
  
  - Is this at all doable ?

  - Do I need a plugin module (or something)?
  - Does IE need to be configured to do this?
   
   


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



Re: Authenticating LDAP users without their input - doable?

2006-01-18 Thread Jess Holle

This is better termed NTLM authentication without a user challenge.

I don't know of means of doing this with Tomcat, but I certainly don't 
know everything...


g m wrote:

  I have a critical 'challenge'
   
  
  It is possible to authenicate on Tomcat using LDAP (Active Directory) 
  (using MS IE browser), but, 'without' the user inputing their username 
  and password - that is, use the cached credentials from user when they 
  logged into the system.
   
  
  I have seen some applications that do this but no idea how.
   
  
  - Is this at all doable ?

  - Do I need a plugin module (or something)?
  - Does IE need to be configured to do this?
   
  
  I am using Tomcat 5.5.9 , Java 1.5, IE 6, Windows XP
   
  Really appreciate a Guru's (or two) opinion/pointer on this one.

  Thanks!



-
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!
  


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



Re: malformed HTTP?

2006-01-18 Thread Tim Funk
There is a bugzilla report similar to this - but also check 5.1.15 since it 
has some fixes too.


-Tim

Patricio Keilty wrote:


Hi guys,
i recently tried to migrate my webapps from version 5.5.4 to a brand new 5.5.12
installation, so i just copied original $CATALINA_HOME/conf/server.xml  all
$CATALINA_HOME/webapps to ver 5.5.12 corresponding folders. When i entered the
manager webapp, i started seeing broken html, kind of source code view in my
browser window, and also some Response HTTP Header data appended. I first blame
on my FireFox browser, but Mozilla and IE will also show not well formed html,
this made me think tomcat was responding with malformed HTTP.
Comparing my old server.xml fine with the one in v5.5.4 binaries, i could see a
difference in Connector/ attributes: maxHttpHeaderSize=8192 was not set in
my old config. After adding this attribute value to every Connector boila!, my
browser started showing usual apps list html screen. I cannot conclude this is a
problem with Tomcat Connectors, since i´m no Tomcat expert, just wanted to alert
the list just in case.

Apologises for not providing more detailed info right now, i´m in a hurrybut
i can provide some in case it is needed.

This is my Server Information

Tomcat Version  JVM Version JVM Vendor  OS Name OS Version  
OS Architecture
Apache Tomcat/5.5.121.5.0_04-b05Sun Microsystems Inc.   Windows 2003
5.2 x86



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



Re: Authenticating LDAP users without their input - doable?

2006-01-18 Thread Jess Holle

Jess Holle wrote:

This is better termed NTLM authentication without a user challenge.

I don't know of means of doing this with Tomcat, but I certainly don't 
know everything...
I should have added that by using IIS in front of Tomcat and the 
IIS/Tomcat connector you *can* accomplish this, however.


I just don't know of any way to do this with only Tomcat in the picture 
(which I think would be a good thing as getting IIS out of the picture 
would be a good thing!)


--
Jess Holle

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



tomcat log analyser

2006-01-18 Thread Stas Ostapenko
Hello !

I'm searching for tomcat log analyser. Under Apache (not Tomcat) i
have used AWStats.
Is there something similar for standalone Tomcat ?

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



catalina.out logging

2006-01-18 Thread sunil goyal
Hello all,

Catalina.out on my server keeps getting on bigger. Is
there any way to split catalina.out on date basis so
that I have catalina.out being split on a daily basis.

catalina_out_11_01_2006.out
catalina_out_12_01_2006.out


It will be great if someone can let me know a simple
procedure to do that.

Thanks

Regards
Sunil


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

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



Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread gupta vidhi
i've JDBC installed in other path than Tomcat.you asked me to put the JDBC 
driver library into WEB-INF\lib. there's WEB-INF directory,but it do not have 
lib as its sub directory.what can be done for this?
  kindly tell me how to do the path setting of JDBC with JSP.
  i'd made a page in JSP,but when executing its generating error as:
   
  javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data source 
name not found and no default driver specified
and so on.
  kindly tell how to connect my JSP page with JDBC.
   
  Regards,
  Vidhi

Anto Paul [EMAIL PROTECTED] wrote:
  On 1/18/06, gupta vidhi wrote:
 hello,

 i'm using jakarta-tomcat-4.1.31and jdk-1_5_0_02-windows-i586-p-iftw in WIN 
 2000 Professional.
 I wish to connect Oracle 8.0(plus) with JSP pages.
 i request you to kindly tell me how to do this?

If you are learning JSP you can connect to a database using JDBC. It
is same as using JDBC in any other java application. What you should
take care is to put the JDBC driver library in the WEB-INF\lib
directory of the application so that Tomcat sees it.

--
rgds
Anto Paul

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

  



-
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, 
whatever.

Re: tomcat log analyser

2006-01-18 Thread Anto Paul
On 1/18/06, Stas Ostapenko [EMAIL PROTECTED] wrote:
 Hello !

 I'm searching for tomcat log analyser. Under Apache (not Tomcat) i
 have used AWStats.
 Is there something similar for standalone Tomcat ?

Tomcat can use AWStats if you configure Tomcat to run CGI script. Or
are you asking for an access log analyzer written in Java ?


--
rgds
Anto Paul

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



Re: tomcat log analyser

2006-01-18 Thread Stas Ostapenko
I'm asking about pure java tomcat log analyser similar to AWStats (or
maybe another tool)
Thanks for help !


On 1/18/06, Anto Paul [EMAIL PROTECTED] wrote:
 On 1/18/06, Stas Ostapenko [EMAIL PROTECTED] wrote:
  Hello !
 
  I'm searching for tomcat log analyser. Under Apache (not Tomcat) i
  have used AWStats.
  Is there something similar for standalone Tomcat ?

 Tomcat can use AWStats if you configure Tomcat to run CGI script. Or
 are you asking for an access log analyzer written in Java ?


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



Re: Encrypting/Protecting JSP/Struts source code

2006-01-18 Thread Tom Burke
Thanks to all who responded to this request yesterday. I'm now a lot 
clearer about what we are distributing, and what measures it's sensible 
for us to take. We have decided to obfuscate the .classes files as they 
are produced, and not worry about the jsp files: it's the java code (the 
.classes files) that's the key to the application. That should increase 
the degree of comfort we feel, while still allowing us to enjoy speedy 
WAR construction and smaller WAR sizes. We reached the view that 
pre-compiling the .jsp files would be time-consuming  would result in 
much bigger file sizes.


Tom Burke


- Original Message - 
From: Tom Burke

To: Tomcat Users List
Sent: Tuesday, January 17, 2006 3:18 PM
Subject: Encrypting/Protecting JSP/Struts source code


My company is has developed and is now marketing/selling a 
line-of-business TSP/Tomcat application which we sell to corporate 
customers to runs on their servers in their intranets.


It's suddenly become clear to my company that when we deploy a WAR on a 
customers' site, the source code is completely visible to anyone who has 
access to the server's drives, and this is belatedly causing some 
concern. Obviously there are clauses in our license that formally 
protect our intellectual property and at a corporate level we are 
relaxed, but my boss is quite concerned about the delinquent 
administrator who simply downloads  walks away with the code.


Is there any way in which the deployed WAR file, and all the files that 
explode out of it, can be hidden/encrypted/protected on the server, 
while still allowing them to be executed by Tomcat? The app is almost 
completely JSP/Struts, there is hardly any HTML at all (if any in fact).


Tom Burke 



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



Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread Anto Paul
On 1/18/06, gupta vidhi [EMAIL PROTECTED] wrote:
 i've JDBC installed in other path than Tomcat.you asked me to put the JDBC 
 driver library into WEB-INF\lib. there's WEB-INF directory,but it do not have 
 lib as its sub directory.what can be done for this?
   kindly tell me how to do the path setting of JDBC with JSP.
   i'd made a page in JSP,but when executing its generating error as:

   javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data 
 source name not found and no default driver specified
 and so on.
   kindly tell how to connect my JSP page with JDBC.


A JDBC tutorial is here
http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html

Don't use JDBC-ODBC bridge. From the error message it seems that
it is using JDBC-ODBC bridge.
You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the
file will be classes12.zip. Create a lib directory in WEB-INF
directory. Tomcat is case sensitive and lib must be in small letters.
Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now
to connect to database use the JDBC URL like
jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl.

Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib.

The Oracle installation provides some sample Java code. Look in
jdbc folder for it.

--
rgds
Anto Paul

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



Re: catalina.out logging

2006-01-18 Thread Markus Schönhaber
sunil goyal wrote:
 Catalina.out on my server keeps getting on bigger. Is
 there any way to split catalina.out on date basis so
 that I have catalina.out being split on a daily basis.

http://tomcat.apache.org/faq/logging.html#catalina.out

Regards
  mks

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



Re: wrong System encoding

2006-01-18 Thread chen jacky

hi,
 Yes, i have run a java application at commant prompt, it prints 
ISO-8859-15.




From: Anto Paul [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: wrong System encoding
Date: Wed, 18 Jan 2006 16:32:14 +0530

On 1/18/06, jacky [EMAIL PROTECTED] wrote:
 hi,
 RedHat7.3(System encoding is iso8859-15), tomcat 4.1.30
 When i use System.getProperty(file.encoding) in a jsp, it print 
utf-8. I think the utf-8 must be the encode of tomcat,but how can i get 
the system encode: iso8859-15?  In fact, i need the right encode to 
write/read file.
 BTW, i wander why the encode of tomcat container changes to 
utf-8. Is the reason because i used reponse.setContentType(text/html; 
charset=utf-8)?

 Any suggestion is helpful!


I dont know the solution but just to know did you tried running a java
application at the command prompt to test the value of
System.getProperty(file.encoding) ?


--
rgds
Anto Paul

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





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



Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread gupta vidhi
  i'd copied the classes12.zip from C:\jdbc\lib. there's no folder of ORACLE_HOME.  now,what else to be done?  i'm sending you my JSP page. kindly tell me what code should be written/added to execute it successfully.  i'd created the table named as user1 in oracle 8.0 and inserted some values in it.  the name of the database in which this table is been created is prime.Regards,  VidhiAnto Paul [EMAIL PROTECTED] wrote:  On 1/18/06, gupta vidhi <[EMAIL PROTECTED]>wrote: i've JDBC installed in other path than Tomcat.you asked me to put the JDBC driver library into WEB-INF\lib. there's WEB-INF directory,but it do not have lib as its sub directory.what can be done for this? kindly tell me how to do the path setti
 ng of
 JDBC with JSP. i'd made a page in JSP,but when executing its generating error as: javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified and so on. kindly tell how to connect my JSP page with JDBC.A JDBC tutorial is herehttp://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.htmlDon't use JDBC-ODBC bridge. From the error message it seems thatit is using JDBC-ODBC bridge.You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i thefile will be classes12.zip. Create a lib directory in WEB-INFdirectory. Tomcat is case sensitive and lib must be in small letters.Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Nowto connect to database use the JDBC URL likejdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl.Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib.The Oracle
 installation provides some sample Java code. Look injdbc folder for it.--rgdsAnto Paul-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]  
	
		Yahoo! Photos 
Got holiday prints? See all the ways to get quality prints in your hands ASAP.-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread Anto Paul
On 1/18/06, gupta vidhi [EMAIL PROTECTED] wrote:

 i'd copied the classes12.zip from C:\jdbc\lib. there's no folder of
 ORACLE_HOME.
 now,what else to be done?

By ORACLE_HOME I meant where oracle is installed. You cannot attach
files while sending mail to this list.

The code should look like this

%@ page import=java.sql.*%
%@ page import=oracle.jdbc.driver.*%
%
String url = jdbc:oracle:thin:@192.168.4.220:1521:ora9i;
String user = scott;
String password = tiger;
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
Connection conn = DriverManager.getConnection (url,user, password);
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery (select empno from emp);
while (rs.next()) {
out.print(rs.getString (1) + br);
}

rs.close();
stmt.close();
conn.close();

%

 i'm sending you my JSP page. kindly tell me what code should be
 written/added to execute it successfully.
 i'd created the table named as user1 in oracle 8.0 and inserted some values
 in it.
 the name of the database in which this table is been created is prime.

 Regards,
 Vidhi

 Anto Paul [EMAIL PROTECTED] wrote:
 On 1/18/06, gupta vidhi wrote:
  i've JDBC installed in other path than Tomcat.you asked me to put the JDBC
 driver library into WEB-INF\lib. there's WEB-INF directory,but it do not
 have lib as its sub directory.what can be done for this?
  kindly tell me how to do the path setti ng of JDBC with JSP.
  i'd made a page in JSP,but when executing its generating error as:
 
  javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data
 source name not found and no default driver specified
  and so on.
  kindly tell how to connect my JSP page with JDBC.
 

 A JDBC tutorial is here
 http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html

 Don't use JDBC-ODBC bridge. From the error message it seems that
 it is using JDBC-ODBC bridge.
 You will get the JDBC driver from ORACLE_HOME\jdbc\lib. For 8i the
 file will be classes12.zip. Create a lib directory in WEB-INF
 directory. Tomcat is case sensitive and lib must be in small letters.
 Copy classes12.zip to WEB-INF\lib and rename it to classes12.jar. Now
 to connect to database use the JDBC URL like
 jdbc:oracle:thin:hr/[EMAIL PROTECTED]:1521:orcl.

 Don't for to restart Tomcat after putting the JAR file in WEB-INF\lib.

 The Oracle installation provides some sample Java code. Look in
 jdbc folder for it.

 --
 rgds
 Anto Paul

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





  
 Yahoo! Photos
  Got holiday prints? See all the ways to get quality prints in your hands
 ASAP.


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




--
rgds
Anto Paul

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



RE: Authenticating LDAP users without their input - doable?

2006-01-18 Thread Klotz Jr, Dennis
Keep in mind that it is using base64 encoding which realistically, is
the same as clear text passwords...

I wouldn't use this in a corporate environment for that reason. Anyone
who has access to your Ethernet traffic and ethereal can easily figure
out the passwords.

-Dennis

-Original Message-
From: g m [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 7:42 AM
To: Tomcat Users List
Subject: Re: Authenticating LDAP users without their input - doable?

Tim,
   
  Wow!..unless I am mistaken this is 'sort of' (exactly)  what I was
looking for
   
  I have had a quick read of it and it would seem that as I am using
MSIE (that fine example of robust software it is...), then 'perhaps' it
should all just plug in...more or less...
   
  Interested in hearing from anyone who has done this...
   
  Thanks for you help!

Tim Funk [EMAIL PROTECTED] wrote:
  See the faq ...
http://tomcat.apache.org/faq/windows.html#ntlm

-Tim

g m wrote:

 I have a critical 'challenge'
 
 
 It is possible to authenicate on Tomcat using LDAP (Active Directory) 
 (using MS IE browser), but, 'without' the user inputing their username

 and password - that is, use the cached credentials from user when they

 logged into the system.
 
 
 I have seen some applications that do this but no idea how.
 
 
 - Is this at all doable ?
 - Do I need a plugin module (or something)?
 - Does IE need to be configured to do this?
 
 

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

  



-
Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your
hands ASAP.

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



RE: Authenticating LDAP users without their input - doable?

2006-01-18 Thread g m
Good point. 
   
  The issue where I am is most of the internal traffic is 'almost' in the clear 
so this would not change anything - not that I am saying it is a good thing. 
Once working (..I hope..) I may look at converting over to https but It will 
need investigating...;-)

  Thank!
Klotz Jr, Dennis [EMAIL PROTECTED] wrote:
  Keep in mind that it is using base64 encoding which realistically, is
the same as clear text passwords...

I wouldn't use this in a corporate environment for that reason. Anyone
who has access to your Ethernet traffic and ethereal can easily figure
out the passwords.

-Dennis

-Original Message-
From: g m [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 7:42 AM
To: Tomcat Users List
Subject: Re: Authenticating LDAP users without their input - doable?

Tim,

Wow!..unless I am mistaken this is 'sort of' (exactly) what I was
looking for

I have had a quick read of it and it would seem that as I am using
MSIE (that fine example of robust software it is...), then 'perhaps' it
should all just plug in...more or less...

Interested in hearing from anyone who has done this...

Thanks for you help!

Tim Funk wrote:
See the faq ...
http://tomcat.apache.org/faq/windows.html#ntlm

-Tim

g m wrote:

 I have a critical 'challenge'
 
 
 It is possible to authenicate on Tomcat using LDAP (Active Directory) 
 (using MS IE browser), but, 'without' the user inputing their username

 and password - that is, use the cached credentials from user when they

 logged into the system.
 
 
 I have seen some applications that do this but no idea how.
 
 
 - Is this at all doable ?
 - Do I need a plugin module (or something)?
 - Does IE need to be configured to do this?
 
 

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





-
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your
hands ASAP.

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

  



-
Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.

Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread Zorro3692
 
Vidhi wrote:
i'd copied the classes12.zip from C:\jdbc\lib. there's no folder of  
ORACLE_HOME.
now,what else to be done?
i'm sending you my JSP pagae. kindly tell me what code should be  
written/added to execute it successfully.
i'd created the table named as user1 in oracle 8.0 and inserted some values  
in it.
the name of the database in which this table is been created is  prime.
 
Regards,
Vidhi
 
I do not use Oracle. I use MS Access driver. From Data Sources (ODBC) in  
WinXP, after selecting MS Access  as your database driver, create a blank  
database (anything.mdb) and populate it by running MadeDB, which should be run  
(compiled) from the same folder where you have your database files. Then create 
 a 
properties file listing the database created and that should go in the class  
folder of your web application.
 
Maybe for Oracle, you need to copy jdbc classes to lib. But above is for my  
webapp!
 
Hope it helps.



Problem with JK connector

2006-01-18 Thread Michael Li
Hi there,

Currently we use apache 1.3 and tomcat 4.1.31. We tried to connect them
through JK. Everything works fine, except some special http headers are
gone.=20 Because we user entrust direct, which will set some special
http header in the http request. The servlets will check those headers
to check the user identity. =20 If you have any tips, please let me
know.

 

Thanks! 

michael



Re: Does tomcat 5.0 officially support JDK1.5?

2006-01-18 Thread Wade Chandler
--- HuangHao [EMAIL PROTECTED] wrote:
 Thanks. As a requirement, my application need to
 support both Tomcat 5.0 
 and 5.5. But my application requires JDK1.5 for some
 reason. 
Should be fine if it's only that you are using methods
and classes from JDK1.5 which were not available in
previous JDK/JRE.

I 
 understand it is OK with JDK1.5+Tomcat5.5, but I
 want to make sure 
 JDK1.5+Tomcat 5.0 can work too.  I can start  Tomcat
 5.0 with  JDK1.5 
 but that can't be regarded as a fully support
 certificate.
I really don't understand the question.  Maybe you
could re-form your question better and help me or
someone else better understand what it is you are
asking exactlyclients can't connect because of
some type of an SSL certificate...your web-app is
connecting to some external resource using a
certificateyou are using some key store..could
be any type of a certificate.
 
 Does apache has official announcement about this
 issue?
 
 Thanks
 
 Hao

Wade

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



RE: Problem with JK connector

2006-01-18 Thread Chris Mooring
Hi Michael,

Could it be that your request headers are  8K ? I was having some funny
issues with JK2 this week where my page would suddenly show some sort of c
stack trace about a BufferOverFlow Exception (we are no longer using JK2),
but someone sent me this information;

It looks like requests can only be 8k long:
http://tomcat.apache.org/tomcat-4.1-doc/jk2/common/ajpv13a.html

What happens if the request headers  max packet size? There is no provision
to send a second packet of request headers in case there are more than 8K (I
think this is correctly handled for response headers, though I'm not
certain). I don't know if there is a way to get more than 8K worth of data
into that initial set of request headers, but I'll bet there is (combine
long cookies with long ssl information and a lot of environment variables,
and you should hit 8K easily). I think the connector would just fail before
trying to send any headers in this case, but I'm not certain.

http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/constant-values.ht
ml#org.apache.ajp.Ajp13.MAX_READ_SIZE


Hopefully this is of some use.

Chris

-Original Message-
From: Michael Li [mailto:[EMAIL PROTECTED] 
Sent: 18 January 2006 15:08
To: users@tomcat.apache.org
Subject: Problem with JK connector

Hi there,

Currently we use apache 1.3 and tomcat 4.1.31. We tried to connect them
through JK. Everything works fine, except some special http headers are
gone.=20 Because we user entrust direct, which will set some special
http header in the http request. The servlets will check those headers
to check the user identity. =20 If you have any tips, please let me
know.

 

Thanks! 

michael



Connaught honoured AIM 'Decade of Excellence' Award 

Connaught awarded Partnering Contractor of the Year 2005 

Connaught wins AIM 'Company of the Year' award 2004 

West of England Business of the Year Award Winner 2003 

Why not visit our website http://www.connaught.plc.uk 

Disclaimer: 
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.  If you received
this in error, please contact the sender and delete this message. 

Connaught plc, Head Office 01392 444546 

The presence of this footer indicates that this message has been scanned for
viruses by Network Associates Group Shield

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



Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread Ritchie Gillam
Which version of JVM are you using?

Ritchie 




 [EMAIL PROTECTED] 18/01/2006 11:02:31 am 
 
Vidhi wrote:
i'd copied the classes12.zip from C:\jdbc\lib. there's no folder of  
ORACLE_HOME.
now,what else to be done?
i'm sending you my JSP pagae. kindly tell me what code should be  
written/added to execute it successfully.
i'd created the table named as user1 in oracle 8.0 and inserted some values  
in it.
the name of the database in which this table is been created is  prime.
 
Regards,
Vidhi
 
I do not use Oracle. I use MS Access driver. From Data Sources (ODBC) in  
WinXP, after selecting MS Access  as your database driver, create a blank  
database (anything.mdb) and populate it by running MadeDB, which should be run  
(compiled) from the same folder where you have your database files. Then create 
 a 
properties file listing the database created and that should go in the class  
folder of your web application.
 
Maybe for Oracle, you need to copy jdbc classes to lib. But above is for my  
webapp!
 
Hope it helps.



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



Re: Problem with JK connector

2006-01-18 Thread Mladen Turk

Michael Li wrote:

Hi there,

Currently we use apache 1.3 and tomcat 4.1.31. We tried to connect them
through JK. Everything works fine, except some special http headers are
gone.=20 Because we user entrust direct, which will set some special
http header in the http request. The servlets will check those headers
to check the user identity. =20 If you have any tips, please let me
know.



http://tomcat.apache.org/connectors-doc/config/apache.html
JkEnvVar is probably what you are pursuing.
OTHOH you might get into trouble if the headers are set by
another module.

Regards,
Mladen.

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



RE: Problem with JK connector

2006-01-18 Thread Michael Li
Hi Chris,
Thanks for reply first.
It may be the reason and may not. I compare the headers that tomcat
actually received and the header that is supposed to be. the headers
that tomcat actually received eliminated all the non-standard header
attributes and added one more content-length=0. It looked like apache
server did it intentionally.


-Original Message-
From: Chris Mooring [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 10:11 AM
To: Tomcat Users List
Subject: RE: Problem with JK connector


Hi Michael,

Could it be that your request headers are  8K ? I was having some funny
issues with JK2 this week where my page would suddenly show some sort of
c stack trace about a BufferOverFlow Exception (we are no longer using
JK2), but someone sent me this information;

It looks like requests can only be 8k long:
http://tomcat.apache.org/tomcat-4.1-doc/jk2/common/ajpv13a.html

What happens if the request headers  max packet size? There is no
provision to send a second packet of request headers in case there are
more than 8K (I think this is correctly handled for response headers,
though I'm not certain). I don't know if there is a way to get more than
8K worth of data into that initial set of request headers, but I'll bet
there is (combine long cookies with long ssl information and a lot of
environment variables, and you should hit 8K easily). I think the
connector would just fail before trying to send any headers in this
case, but I'm not certain.

http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/constant-value
s.ht
ml#org.apache.ajp.Ajp13.MAX_READ_SIZE


Hopefully this is of some use.

Chris

-Original Message-
From: Michael Li [mailto:[EMAIL PROTECTED] 
Sent: 18 January 2006 15:08
To: users@tomcat.apache.org
Subject: Problem with JK connector

Hi there,

Currently we use apache 1.3 and tomcat 4.1.31. We tried to connect them
through JK. Everything works fine, except some special http headers are
gone.=20 Because we user entrust direct, which will set some special
http header in the http request. The servlets will check those headers
to check the user identity. =20 If you have any tips, please let me
know.

 

Thanks! 

michael



Connaught honoured AIM 'Decade of Excellence' Award 

Connaught awarded Partnering Contractor of the Year 2005 

Connaught wins AIM 'Company of the Year' award 2004 

West of England Business of the Year Award Winner 2003 

Why not visit our website http://www.connaught.plc.uk 

Disclaimer: 
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.  If you
received this in error, please contact the sender and delete this
message. 

Connaught plc, Head Office 01392 444546 

The presence of this footer indicates that this message has been scanned
for viruses by Network Associates Group Shield

-
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: I can't install TomCat in my computer

2006-01-18 Thread Patricio Silva
yes man I don´t know use mail lists. I´m going to try solve my problem by
myself. I´ll unsubscribe me for userstomcat. Thanks.

2006/1/17, Glen Mazza [EMAIL PROTECTED]:

 Patricio wrote:

  In logs folder of Tomcat 5.5 I have this messages:
 
  This release of Apache Tomcat was packaged to run on J2SE 5.0
  or later. It can be run on earlier JVMs by downloading and
  installing a compatibility package from the Apache Tomcat
  binary download page.
 

 It appears you're not using J2SE 5.0 on your machine.  Best to download
 it from the Sun site.

 Next time, also best to ask questions the smart way:  Let us know the
 machine you're running (Win/Linux, etc.), the version of Tomcat, the
 version of J2SE, and what you're precisely doing to start up Tomcat.
 Much of this information you provided after being asked, but your
 original I can't get Tomcat to work is just too vague for
 troubleshooting, and results in fewer people able to help you out.

 Regards,
 Glen

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




--
Obrigado.
  Patricio.


Re: Does tomcat 5.0 officially support JDK1.5?

2006-01-18 Thread David Smith

Wade Chandler wrote:


--- HuangHao [EMAIL PROTECTED] wrote:
 


Thanks. As a requirement, my application need to
support both Tomcat 5.0 
and 5.5. But my application requires JDK1.5 for some
reason. 
   


Should be fine if it's only that you are using methods
and classes from JDK1.5 which were not available in
previous JDK/JRE.

 

I 
understand it is OK with JDK1.5+Tomcat5.5, but I
want to make sure 
JDK1.5+Tomcat 5.0 can work too.  I can start  Tomcat
5.0 with  JDK1.5 
but that can't be regarded as a fully support

certificate.
   


I really don't understand the question.  Maybe you
could re-form your question better and help me or
someone else better understand what it is you are
asking exactlyclients can't connect because of
some type of an SSL certificate...your web-app is
connecting to some external resource using a
certificateyou are using some key store..could
be any type of a certificate.
 


Does apache has official announcement about this
issue?

Thanks

Hao
   



Wade

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

 

I think the OP is looking for some sort of official endorsement from the 
tomcat 5.0.x developers that tomcat 5.0.x runs in a JDK 1.5 
environment.  While I can't speak for the dev folks, I have not seen a 
single issue either personally or on the user list running that 
combination.  It should work fine.



--David

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



Sorry, Suresh is OUT of the office...

2006-01-18 Thread Suresh Nair

I will be out of the office starting  19/01/2006 and will not return until 25/01/2006.

If you need to reach me urgently, please e-mail: [EMAIL PROTECTED]

I will be out of Singapore but will be available over the (above) e-mail address.

Have a nice day, my dear friend:):)

SURESH NAIR

I'll not be available in the office for a few days. 

If urgent e-mails, please reach me at: [EMAIL PROTECTED]

Have a nice day:):)

You can try my home e-mail at: [EMAIL PROTECTED] or [EMAIL PROTECTED] since I will be out of town  most of the time...

I will respond to your message when I return.

Have a nice day. Take care.  

SURESH NAIR


NOTE: Privileged/Confidential Information may be contained in this message. 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 deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. All opinions, conclusions and other information expressed in this message not of an official nature shall not be deemed as given or endorsed by Singapore Press Holdings Ltd or any of its subsidiaries unless otherwise indicated by an authorised representative independent of this message.
Singapore Press Holdings Ltd Co
Regn No. 198402868E


RE: Problem with JK connector

2006-01-18 Thread Michael Li
I added the following lines to apache httpd.conf

JkEnvVar entrust-client 

JkEnvVar entrust-client-info 

JkEnvVar entrust-client-ip 

JkEnvVar entrust-server 

JkEnvVar entrust-server-ip 

JkEnvVar via 



And got the following from apache log:



[Wed Jan 18 11:19:54 2006] [warn] module mod_jk.c is already added,
skipping

Syntax error on line 252 of /home/fundserv/app/apache/conf/httpd.conf:

JkEnvVar takes two arguments, Adds a name of environment variable that
should be sent to servlet-engine

/fsrv/home/fundserv/app/apache/bin/apachectl startssl: httpd could not
be started



-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 10:19 AM
To: Tomcat Users List
Subject: Re: Problem with JK connector


Michael Li wrote:
 Hi there,
 
 Currently we use apache 1.3 and tomcat 4.1.31. We tried to connect 
 them through JK. Everything works fine, except some special http 
 headers are gone.=20 Because we user entrust direct, which will set 
 some special http header in the http request. The servlets will check 
 those headers to check the user identity. =20 If you have any tips, 
 please let me know.


http://tomcat.apache.org/connectors-doc/config/apache.html
JkEnvVar is probably what you are pursuing.
OTHOH you might get into trouble if the headers are set by another
module.

Regards,
Mladen.

-
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: Latest stable version of Tomcat

2006-01-18 Thread Zorro3692
5.5.12
 
Hi,

Could  anyone tell me what is the latest stable version of  tomcat on 
JDK1.5



Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread Zorro3692
the one that comes with the latest rel of jre, jre5.0
 
Which version of JVM are you using?

Ritchie  




 [EMAIL PROTECTED] 18/01/2006 11:02:31 am  

Vidhi wrote:
i'd copied the classes12.zip from  C:\jdbc\lib. there's no folder of  
ORACLE_HOME.
now,what else to be  done?
i'm sending you my JSP pagae. kindly tell me what code should be   
written/added to execute it successfully.
i'd created the table named as  user1 in oracle 8.0 and inserted some values  
in it.
the name of the  database in which this table is been created is   prime.

Regards,
Vidhi

I do not use Oracle. I use MS Access  driver. From Data Sources (ODBC) in  
WinXP, after selecting MS  Access  as your database driver, create a blank  
database  (anything.mdb) and populate it by running MadeDB, which should be 
run   
(compiled) from the same folder where you have your database files. Then  
create  a 
properties file listing the database created and that should  go in the class 
 
folder of your web application.

Maybe for  Oracle, you need to copy jdbc classes to lib. But above is for my  
 
webapp!

Hope it  helps.



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



Re: Problem with JK connector

2006-01-18 Thread Chris Lear
* Chris Mooring wrote (18/01/06 15:11):
 Hi Michael,
 
 Could it be that your request headers are  8K ? I was having some funny
 issues with JK2 this week where my page would suddenly show some sort of c
 stack trace about a BufferOverFlow Exception (we are no longer using JK2),
 but someone sent me this information;
 
 It looks like requests can only be 8k long:
 http://tomcat.apache.org/tomcat-4.1-doc/jk2/common/ajpv13a.html
 
 What happens if the request headers  max packet size? There is no provision
 to send a second packet of request headers in case there are more than 8K (I
 think this is correctly handled for response headers, though I'm not
 certain). I don't know if there is a way to get more than 8K worth of data
 into that initial set of request headers, but I'll bet there is (combine
 long cookies with long ssl information and a lot of environment variables,
 and you should hit 8K easily). I think the connector would just fail before
 trying to send any headers in this case, but I'm not certain.
 
 http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/constant-values.ht
 ml#org.apache.ajp.Ajp13.MAX_READ_SIZE
 

I would like to know whether a) request headers really are limited like
this, and b) there's anything I can do about it.

We have a web application running under tomcat, and we're using quite a
lot of Ajax code, which sends user data to the server via xmlhttp. I've
noticed that when using ajp the POST data is corrupted if there is a lot
of data (it's rare in practice, but quite recreatable). Without ajp,
this doesn't happen. However, it's perfectly possible to upload a large
file via a web form using ajp.

If I switch to accessing tomcat directly (and this is easy, because I
have tomcat on port 8080, and apache on port 80 forwarding to exactly
the same tomcat instance) the large POSTs work fine, so I don't think
there's anything wrong with the application.

Does anyone know any more about this? I'm prepared to dump ajp, but I
quite want to keep it if possible, because running apache is convenient
for a variety of reasons.

Chris

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



Re: Problem with JK connector

2006-01-18 Thread Peter Rossbach

You must used

JkEnvVar apache env var default value

You envVar can be accessed with request.getAttribute(apache env var)

Peter

Am 18.01.2006 um 17:30 schrieb Michael Li:


I added the following lines to apache httpd.conf

JkEnvVar entrust-client

JkEnvVar entrust-client-info

JkEnvVar entrust-client-ip

JkEnvVar entrust-server

JkEnvVar entrust-server-ip

JkEnvVar via



And got the following from apache log:



[Wed Jan 18 11:19:54 2006] [warn] module mod_jk.c is already added,
skipping

Syntax error on line 252 of /home/fundserv/app/apache/conf/httpd.conf:

JkEnvVar takes two arguments, Adds a name of environment variable that
should be sent to servlet-engine

/fsrv/home/fundserv/app/apache/bin/apachectl startssl: httpd could not
be started



-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 18, 2006 10:19 AM
To: Tomcat Users List
Subject: Re: Problem with JK connector


Michael Li wrote:

Hi there,

Currently we use apache 1.3 and tomcat 4.1.31. We tried to connect
them through JK. Everything works fine, except some special http
headers are gone.=20 Because we user entrust direct, which will set
some special http header in the http request. The servlets will check
those headers to check the user identity. =20 If you have any tips,
please let me know.



http://tomcat.apache.org/connectors-doc/config/apache.html
JkEnvVar is probably what you are pursuing.
OTHOH you might get into trouble if the headers are set by another
module.

Regards,
Mladen.

-
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: Problem with JK connector

2006-01-18 Thread Michael Li
Unfortunately it doesn't work. 
JkEnvVar is used for request.getAttribute(), instead of
request.getHeader()

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 10:19 AM
To: Tomcat Users List
Subject: Re: Problem with JK connector


Michael Li wrote:
 Hi there,
 
 Currently we use apache 1.3 and tomcat 4.1.31. We tried to connect 
 them through JK. Everything works fine, except some special http 
 headers are gone.=20 Because we user entrust direct, which will set 
 some special http header in the http request. The servlets will check 
 those headers to check the user identity. =20 If you have any tips, 
 please let me know.


http://tomcat.apache.org/connectors-doc/config/apache.html
JkEnvVar is probably what you are pursuing.
OTHOH you might get into trouble if the headers are set by another
module.

Regards,
Mladen.

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



Realm in tomcat

2006-01-18 Thread Jack
In tomcat, Realm has such a definition: A Realm is a database of 
usernames and passwords that identify valid users of a web application (or 
set of web applications), plus an enumeration of the list of roles 
associated with each valid user. This is exactly a UserManager should do.



I guess the reason why we use Realm here is that at the beginning of the 
web, Realm is used to contain authorization  authentication together just 
like the MemoryRealm in Tomcat. With time, other things were removed from 
Realm gradually.



Actuall, realm should be a group of resources  the action can be performed 
on it.



Users will be prompted by such information: In order to allow you to access 
the realm: x, please provide us your identity. User can choose to 
provide certificate or username  password pair whatever is right. At the 
beginning of web, only username  password is used.



Apache is still using the Realm in its right meaning:
Realms: Areas of Controlled Access
In terms of voluntary control mechanisms on the Web, each protected area, 
whether it be a single document or an entire server, is called a realm. When 
a server challenges a client for credentials, it provides the name of the 
realm so the client can figure out which credentials to send.



Realm should return to its true meaning: a group of resources, like 
SecurityConstraint in tomcat.

We need to seperate UserManager from Realm.






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



User management Module in tomcat

2006-01-18 Thread Jack
The users of tomcat server

The users of a specific web-app

The users of a virtual host



The users of a specific web-app are also the users of the host.

The users of the host might not be the users of a specific web-app.

The users of this host might be shared with other virtual host.



Furthermore, the users of tomcat server should be independent from the users 
of hosts.

At present, they are all mixed up.



I hope that we could implemented a UserManager/UserModule for tomcat.

In the UserManager/UserModule, a subject doesn't have to have a username. 
When it uses a certificate, we could map the certificate to a role directly.

We might have a specific map to map all certificate to a lowest level role.



When a subject doesn't use a certificate, it will be assigned a username, a 
password, and the roles it can act as.



At present, the context management in the admin tool includes Resources, 
Context Properties, Loader Properties, Session Manager Properties. It doesn't 
access web.xml at all.

I hope it access web.xml, and it includes a more advanced UserManager too.



[EMAIL PROTECTED]






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



Re: Database Connectivity of JSP(Tomcat 4.x) with Oracle 8i

2006-01-18 Thread Ritchie Gillam
I believe that classes12.zip is for Version 1.2 and 1.3 only.  JRE5.0 uses 1.5. 
  Your solution would be to download ojdbc14.jar which is for JVM 1.4 or 1.5 
and put that in either you application/WEB-INF/lib directory or Tomcat's 
common/lib directory.

Follow this link to download ojdbc14.jar: 
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html 



Ritchie 




 [EMAIL PROTECTED] 18/01/2006 12:32 pm 
the one that comes with the latest rel of jre, jre5.0
 
Which version of JVM are you using?

Ritchie  




 [EMAIL PROTECTED] 18/01/2006 11:02:31 am  

Vidhi wrote:
i'd copied the classes12.zip from  C:\jdbc\lib. there's no folder of  
ORACLE_HOME.
now,what else to be  done?
i'm sending you my JSP pagae. kindly tell me what code should be   
written/added to execute it successfully.
i'd created the table named as  user1 in oracle 8.0 and inserted some values  
in it.
the name of the  database in which this table is been created is   prime.

Regards,
Vidhi

I do not use Oracle. I use MS Access  driver. From Data Sources (ODBC) in  
WinXP, after selecting MS  Access  as your database driver, create a blank  
database  (anything.mdb) and populate it by running MadeDB, which should be 
run   
(compiled) from the same folder where you have your database files. Then  
create  a 
properties file listing the database created and that should  go in the class 
 
folder of your web application.

Maybe for  Oracle, you need to copy jdbc classes to lib. But above is for my  
 
webapp!

Hope it  helps.



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



data file access for servlet

2006-01-18 Thread Neha Narkhede
Hi..
   I am running a servlet which requires some data files.
But I dont know where to paste those data files so that the servlet can find it.
I have a servlet Indexer and so a folder 'Indexer in webapps.

Please help..

Thank you.

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



Re: data file access for servlet

2006-01-18 Thread Frank W. Zammetti
Hi Neha,

You can basically put it wherever you want because your servlet can get
direct file system access (I'm not sure this is true if deployed in an
EAR, but I guess that's not an option here anyway).

Where it *makes sense* to put it is up to you... if it's something
specific to the webapp then it probably makes sense to put it somewhere in
the webapp's directory structure, but if it's more a shared data type
thing, it might make sense outside the webapp.

Take a look here:

http://cvs.sourceforge.net/viewcvs.py/javawebparts/javawebparts/WEB-INF/src/javawebparts/servlet/TextReturnerServlet.java?view=markup

Scroll down to the init() method and see how it gets an InputStream to the
itemsFile.  This is how you can do it context-relative.  If you want to go
to something outside the webapp, take a look at
ServletContest.getRealPath().

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Wed, January 18, 2006 12:40 pm, Neha Narkhede said:
 Hi..
I am running a servlet which requires some data files.
 But I dont know where to paste those data files so that the servlet can
 find it.
 I have a servlet Indexer and so a folder 'Indexer in webapps.

 Please help..

 Thank you.

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




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



Re: Latest stable version of Tomcat

2006-01-18 Thread Aparna_Maddireddy
Thank you for the reply.

 Do anyone  know how  to set PermGen space ? 
 

Thank you,
Aparna





[EMAIL PROTECTED] 
01/18/2006 08:27 AM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
users@tomcat.apache.org
cc

Subject
Re: Latest stable version of Tomcat






5.5.12
 
Hi,

Could  anyone tell me what is the latest stable version of  tomcat on 
JDK1.5




RE: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]

2006-01-18 Thread Tim Lucia
-XX:MaxPermSize=... [128m, for example]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 1:02 PM
To: Tomcat Users List
Subject: Re: Latest stable version of Tomcat

Thank you for the reply.

 Do anyone  know how  to set PermGen space ? 
 

Thank you,
Aparna




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



How to diagnose a TomCat hang?

2006-01-18 Thread Dave Pullin

Briefly: Is there anyway to figure out what TomCat is doing, or trying to
do, when it hangs and does not respond to any http or https request?

Details: I am running Tomcat 5.1.12 on Redhat9 on a 4 processor server. I
get frequent but random Tomcat hangs. It has not happened on a 1 processor
system, with either Linux or Windows. I can force the hang to happen fairly
reliably if I run tests to bombard the server with http requests (several
per second). According to logs it happens after the end of processing one
request and before the beginning the next. It is apparently not within
application code, unless it's a finalizer. I have run a higher priority
daemon thread in same JVM that just writes the time to a log file, and it
hangs at the same time, so it could be the JVM that's hanging, or whatever
does the real threading. Mostly, but not always, 'top' shows the 'java'
process using 99.9% of CPU, and 2 of the 4 processors at about 40%.  I can
kill the java process with 'kill -9', but I can't figure what it was stuck
doing.

Any suggestions?


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



RE: How to diagnose a TomCat hang?

2006-01-18 Thread Tim Lucia
kill -QUIT will cause a stack dump... including any Java deadlocks.

-Original Message-
From: Dave Pullin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 1:33 PM
To: users@tomcat.apache.org
Subject: How to diagnose a TomCat hang?


Briefly: Is there anyway to figure out what TomCat is doing, or trying to
do, when it hangs and does not respond to any http or https request?

Details: I am running Tomcat 5.1.12 on Redhat9 on a 4 processor server. I
get frequent but random Tomcat hangs. It has not happened on a 1 processor
system, with either Linux or Windows. I can force the hang to happen fairly
reliably if I run tests to bombard the server with http requests (several
per second). According to logs it happens after the end of processing one
request and before the beginning the next. It is apparently not within
application code, unless it's a finalizer. I have run a higher priority
daemon thread in same JVM that just writes the time to a log file, and it
hangs at the same time, so it could be the JVM that's hanging, or whatever
does the real threading. Mostly, but not always, 'top' shows the 'java'
process using 99.9% of CPU, and 2 of the 4 processors at about 40%.  I can
kill the java process with 'kill -9', but I can't figure what it was stuck
doing.

Any suggestions?


-
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: JNDI-based c3p0 pool in META-INF/context.xml not releasing resources?

2006-01-18 Thread Mark Thomas
David Perkowski wrote:
 Could this perhaps be a failure of Tomcat to un-initialize the pool  on
 undeployment (which I perform in my build file using Tomcat's Ant 
 tasks, prior to deployment of the new WAR file)? Or perhaps it is a 
 failure of c3p0 to release resources when Tomcat asks it to?

My memory is a little hazy but AFAICR, you need to write a
ContextListener and release these resources yourself.

Mark


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



Re: tomcat 5 and cgi execution

2006-01-18 Thread Mark Thomas
Linda Solomon wrote:
 I followed the instructions for configuring tomcat 5 for cgi.
 However, tomcat 5 contains a new xml variable:
 executable - The of the executable to be used to run the script. Default
 is perl.
 
 Using the default allows the perl cgis to work fine, but the c++ cgi's
 do not work.
This is unlikely to be a factor. Before it was configurable it was
hard-coded to perl so if you leave it as the default there should be
no functional change.

There are, however, a whole stack of other changes that may be a
factor. The following (rather long) URL should show you the changes.
http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java?p1=tomcat%2Fcontainer%2Fcatalina%2Ftrunk%2Fcatalina%2Fsrc%2Fshare%2Forg%2Fapache%2Fcatalina%2Fservlets%2FCGIServlet.javarev=366305r1=302487r2=366305diff_format=h

Mark


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



JK 1.2.15 connector issue

2006-01-18 Thread Casey Koz
  Tomcat: 5.0.28
Apache: 2.0.52 
JDK: 1.4.2_10
   
  I am having an issue with the JK 1.2.15 and JK 1.2.14 Apache / Tomcat 
connector.  I am able to successfully compile them on my Linux server and 
install them without any errors.  The issue I am having is when I utilize my 
Java servlet to display the status of loading XML files into a database.  The 
servlet streams a page to the web browser.  The import process takes several 
minutes to complete and periods are streamed across the page as each XML file 
is processed.
   
  Using the JK 1.2.15 and JK 1.2.14 connectors, this page no longer shows the 
streaming information.  When the servlet is accessed, the web browser clocks 
and after 5 minutes the page finally shows up with all of the information (the 
import process was completed). 
   
  I was able to successfully compile the JK 1.2.13 connector on the exact same 
system using the same servlets and the information streams just fine.  When I 
access my servlet, the status page correctly shows the progress of the import.
   
  I am unsure what changes were make in the connector between 1.2.13 and 1.2.14 
that is causing this issue.  Since I am using the exact same configuration, I 
am at a loss.  Has anyone else experienced this issue or have any 
recommendations?



Re: tomcat 5 and cgi execution

2006-01-18 Thread Mike Sabroff
The executable is the executable file name...perl is the name of the 
perl executable


Mark Thomas wrote:


Linda Solomon wrote:
 


I followed the instructions for configuring tomcat 5 for cgi.
However, tomcat 5 contains a new xml variable:
executable - The of the executable to be used to run the script. Default
is perl.

Using the default allows the perl cgis to work fine, but the c++ cgi's
do not work.
   


This is unlikely to be a factor. Before it was configurable it was
hard-coded to perl so if you leave it as the default there should be
no functional change.

There are, however, a whole stack of other changes that may be a
factor. The following (rather long) URL should show you the changes.
http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java?p1=tomcat%2Fcontainer%2Fcatalina%2Ftrunk%2Fcatalina%2Fsrc%2Fshare%2Forg%2Fapache%2Fcatalina%2Fservlets%2FCGIServlet.javarev=366305r1=302487r2=366305diff_format=h

Mark


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

 



--
Mike Sabroff
Web Services Developer
[EMAIL PROTECTED]
920-568-8379


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



JAX-WS 2.0, Netbeans, and Tomcat comments

2006-01-18 Thread Lucuk, Pete
Hi nb users, tomcat users, jax-ws users, Bobby, and Milan,

Not a question, really some comments.

- I have been trying to create and deploy webservices on a stand alone
Tomcat 5.5.x server for some time now with NO success till now

- Recently I have completed the tutorial Building JAX-WS 2.0 Services
with NetBeans 5.0 ( http://www.netbeans.org/kb/50/jaxws20.html )

- the tutorial worked like a champ!, no issues or problems! I have tried
other tutorials involving building web services using Netbeans 4.1/5
beta, Eclipse, JAX-RPC, Axis, and Tomcat and I could never get any of
them to work correctly, this was definitely a pleasant change.

- once I completed the above tutorial, I then installed the .war web
service file in my own Tomcat 5.5.12 and run it and it too worked like a
champ the first time!
Mind you I had to put all the JAX-WS jars from the lid dir in the Tomcat
common/endorsed dir

- It is very cool that the JAX-WS stuff will work on Tomcat and not just
Sun server

- JAX-WS is slick and easy as all getout to create/deploy webservices!,
blows away AXIS hands down

- I also recently tried the Eclipse WTP project WebServices tutorials (
http://www.eclipse.org/webtools/ ) and although the WTP GUI wizard was
fairly slick it hanged when I tried to deploy it on Tomcat 5.5.12 for
some unknown reason, another failed tutorial.


Bottom line...

- thanks to everyone involved with JAX-WS 2.0, Netbeans, Tomcat,
and Bobby and Milan (they wrote the tutorial)!

- Netbeans, Tomcat, and now JAX-WS, will continue to be my
development tools/platforms of choice!

- thought I would share the above info with everyone to let
others check it out for themselves









RE: How to diagnose a TomCat hang?

2006-01-18 Thread Dave Pullin
I am using JDK 1.5, so may be not good news for you.

btw - I have not observed the hang on my 2 processor systems - only the 4
processor -- but that could just be luck -- it's obviously very time
dependent.
Dave

-Original Message-
From: tamsin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 18, 2006 2:03 PM
To: Tomcat Users List
Subject: RE: How to diagnose a TomCat hang?


Just out of interest, what version of java are you using?

We had to disable the second processor on our production server while
running 1.4, due to the app hanging as you describe.

We're about to update to jdk 1.5, so might try re-enabling that second
processor again...

Tamsin

w: www.anorakgirl.co.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]



Re: form-based authentication support for cookies

2006-01-18 Thread Leonardo Kenji Shikida
too bad. resin has this

On 1/18/06, Mark Thomas [EMAIL PROTECTED] wrote:
 Leonardo Kenji Shikida wrote:
  using tomcat´s form-based authentication (j_username and
  j_password), is there any support for remember me feature? (saving
  encripted password into a cookie and reading it back in the next
  visit), or will I have to code myself the a whole new authentication
  process by hand?

 Nothing out of the box. Someone has probably already written it. Try
 sourceforge, google, etc.

 Mark


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




--

[]

Kenji
___
http://kenjiria.blogspot.com
http://gaitabh.blogspot.com

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



RE: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]

2006-01-18 Thread Tim Lucia
PermGen Max is 128m

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 2:43 PM
To: Tomcat Users List
Subject: RE: Do anyone know how to set PermGen space ? [was RE: Latest
stable version of Tomcat]

hi,

As you said, I set on service manger's Java tab like this :

-Dcatalina.opts=-XX:MaxPermSize=256m

I ran a jsp which shows the Memery usage.
Its showing correct values for Xmx, Xms but for PermGen it still showing 
the default 64mb.
Do you have any idea ? Is PermGen setting working for you

Thank you,
Aparna. 




Tim Lucia [EMAIL PROTECTED] 
01/18/2006 10:30 AM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
'Tomcat Users List' users@tomcat.apache.org
cc

Subject
RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
version of Tomcat]






Wherever/however you start your JVM.  In line with -Xmx -XMs should work
fine.  I set mine (under Windows) on the service manager, under the Java 
tab
and (under Linux) in bin/setenv.sh by adding it to CATALINA_OPTS.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 1:24 PM
To: Tomcat Users List
Subject: RE: Do anyone know how to set PermGen space ? [was RE: Latest
stable version of Tomcat]

Hi Tim,

Thank you for the reply.

But, where should I set this.
Is it in service.bat file ? If so is the following line correct ??

%EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions 
-Djava.io.tmpdir=%CATALINA_BASE%\temp --JvmMs 512 --JvmMx 512 
--JvmX:MaxPermSize=512m

And how to check if jvm is taking these values? Will they be inserted in 
the registry ? 
I set JvmMs, JvnMx and --JvmX:MaxPermSize and then started the service. 
Now, how to make sure if JVM is taking these values ?

Any help would be greatly appericiated.

Thank you,
Aparna






Tim Lucia [EMAIL PROTECTED] 
01/18/2006 10:09 AM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
'Tomcat Users List' users@tomcat.apache.org
cc

Subject
RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
version of Tomcat]






-XX:MaxPermSize=... [128m, for example]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 1:02 PM
To: Tomcat Users List
Subject: Re: Latest stable version of Tomcat

Thank you for the reply.

 Do anyone  know how  to set PermGen space ? 
 

Thank you,
Aparna




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






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






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



RE: How do I hide a web application's actual context from the client?

2006-01-18 Thread Tim Lucia
The context element below allows me to point the root context (/) to a
directory of my choosing.  It does not change the URL or mapping in any way.
The crux of the issue is the path for the cookie, set by the webapp, is
based on the context, and I want to deploy multiple wars and not use the
root context, while still allowing the use to refer to www.mysite.com/

Tim

-Original Message-
From: tamsin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 11:47 AM
To: Tomcat Users List
Subject: RE: How do I hide a web application's actual context from the
client?

I think you can do this using the special ROOT context.

In tomcat 5.5.12 I have the file:
conf/Catalina/localhost/ROOT.xml

which contains:
Context path=ROOT docBase=/path/to/app reloadable=false debug=5
privileged=false
etc

I think in previous versions you would put the same context node directly
in server.xml

Hope that helps...

w: www.anorakgirl.co.uk

-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: 18 January 2006 16:38
To: users@tomcat.apache.org
Subject: How do I hide a web application's actual context from the
client?


What is the recommended, or best-practice, method for deploying a web
application such that its actual context is hidden from the user, but still
maintains a session?  In other words, I wish to deploy myapp.war
(tomcathost:8080/myapp/...) but have it exposed to the client as
www.mysite.com.

http://www.mysite.com/ --AJP-- tomcathost:8009/myapp/

I am currently fronting clustered tomcats with Apache, so I have tried
mod_rewrite, which gets the request there correctly by prepending /myapp to
$1.  The problem then is that /myapp sets the session cookie JSESSIONID=...;
path=/myapp, and then the browser does not send the cookie back for requests
to /.

I have investigated the URLRewriteFilter (Paul Tuckey,
http://tuckey.org/urlrewrite) as posted in December on a thread on this list
(URL rewriting best practice?) and that would appear to suffer the same
problem (it would not get invoked for / if deployed as a filter for /myapp.)

I would like to avoid redirecting to www.mysite.com/myapp, since I intend to
change the context for versioning and I don't want the redirected URL to be
visible (or bookmarked.)

I have spent several hours with Google and reading the mail archive, and
haven't found quite what I am looking for (except that using Apache's
mod_rewrite intentionally (for security reasons) does not rewrite cookie
paths, which would solve this problem.)  A cookie-rewriting filter would be
a possibility, although I believe it would have to live inside Apache, and
it can't be too slow (i.e., running a script).  Maybe Apache::Cookie
(http://httpd.apache.org/apreq/Apache-Cookie.html) does what I want?  (I am
not a Perl programmer).

I appreciate any pointers or advice that anyone can offer.

Tim Lucia




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



Design Guidance requested for Tomcat newbie - servlets, MySQL access, etc.

2006-01-18 Thread Warrick Wilson
First, if I need to be on a different list, please let me know. I'm 
working my way up from Tomcat, which is where the servlet I'm 
developing is going to be running. I'm a Java newbie, but I'm on this 
project, and the learning curve is steep. Sadly, Google hasn't been my 
friend this time - I'm finding conflicting information and so I 
searched out a mailing list to ask

I've got Tomcat 5.5.12 running on my Win XP SP2 machine. I'm 
developing against that for now. I'm working on a servlet that will be 
accessing a MySQL database, so I've grabbed Connector/J from the MySQL 
site, and followed their info, plus the Tomcat JNDI Datasource How-To 
on settting up a context.xml for my database.

And that all works. I used the sample JSP from the Datasource How-To 
and was able to access my database.

My issues start when I work on my servlet. The basic tutorials and 
examples show something simple all happening within the one 
MyServlet.java file - create the JDBC context, set up a DataSource, 
get a Connection, and work with some Statements. Everything in one 
class implementing the servlet. When things get a little more 
complicated (read that as when you want to do things in the real 
world), then the examples disappear and some handwaving seems to 
replace it. That's becoming very confusing, particularly when this is 
the first real Java project you've worked on.

In my case, I want to have some different classes to read and write my 
database. Basically, there's one class for handling data coming in, 
and a second class to handle data going out. Based on what I've read, 
I want to use the connection pooling that's already present in the 
Commons DBCP that's included with my Tomcat installation. However, 
establishing contexts is expensive in terms of performance (again, 
so I've read), so I want to just use the DataSource I have set up in 
my context.xml. So more Googling, more reading, and I ran across some 
examples of Connection Pools that use a Singleton Pattern. Only I 
thought I already had a connection pool, and I'm trying to figure out 
how to make my design share the DataSource I was setting up in my 
servlet init() method, because I thought that would help my servlet's 
performance.

Am I way off-base here? Is there an example that shows how this type 
of thing should be designed? Should I just duplicate the 
Context/DataSource/Connection/Statement stuff in all my classes? Or is 
that the wrong way?

I could always configure my classes to have a DataSource passed in 
from the doGet() or doPost() handlers, but that doesn't seem like the 
right approach. I may do that just to get something working, but I 
hate learning how to do things the wrong way...

Thanks in advance for any pointers you can provide...

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



I need advice about choosing a application server.

2006-01-18 Thread Legolas Woodland

I need advice about choosing a application server.
Hi
Thank you for reading my post
I need some advice to choose an application server / srvlet container 
for deploying a project.

Application description :
application has two part  which one of them is a portal .
portal itself will have a  2 hit/second . each hit could have 1 select / 
1 update and one insert

sql statement. portal itself use hibernate and Derby.
I used plain *JDBC , derby , jsf *to develop my portlets (two portlet 
which are runing on the base)
there are about 2 emails /second in peak time of the system , it will 
jsut send the emails and store them

in database.

The most busy part of the system is another application which will 
handel about 30 hit (each hit has , 2 update , 2 insert , and 2 select 
statement)

for this part there will be no email

*I did not implement sending emails as i do not know a good or best 
practice for this one , and i think it is something related to 
application server ?*


As i did not use any EJB stuff and just some datasource  , JNDI , 
connection pool ,

what will be my choice to deploy the application ?
Tomcat ?
Sun application server 8.* ?
Geronimo ?

Host is a Redhat enterprise Linux , with one p4 processor .
some tables has 1/000/000 records.
Will that hardware handle this load ?








Re: SSL Porting from Apache to Tomcat

2006-01-18 Thread Markus Schönhaber
Armand Rock wrote:
 For example httpd.conf contains the following 2 lines:

 SSLCertificateFile/opt/ssl/cert.cer
 SSLCertificateKeyFile /opt/ssl/private.key

 I don't see a way to import private keys using the keytool and I'm not
 seeing a way to point to the private key
 and the SSL certificate within the tomcat documentation.  Short of either
 re-creating a new private key (and a
 new SSL Certificate) or of being forced to use Apache in front of Tomcat
 does anyone have any other idea as to how I might be able to make use of
 the existing files?

With Tomcat 5.5 you can use the APR Connectors:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html
This page also contains information about configuring HTTPS:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS
Some of the attributes mentioned there might look familiar to you ;-)

Regards
  mks

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



RE: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]

2006-01-18 Thread Aparna_Maddireddy
I tried with -XX:MaxPermSize=128m too.
but, its not working. any other suggestions ??

Thank you,
Aparna





Tim Lucia [EMAIL PROTECTED] 
01/18/2006 12:26 PM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
'Tomcat Users List' users@tomcat.apache.org
cc

Subject
RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
version of Tomcat]






PermGen Max is 128m

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 2:43 PM
To: Tomcat Users List
Subject: RE: Do anyone know how to set PermGen space ? [was RE: Latest
stable version of Tomcat]

hi,

As you said, I set on service manger's Java tab like this :

-Dcatalina.opts=-XX:MaxPermSize=256m

I ran a jsp which shows the Memery usage.
Its showing correct values for Xmx, Xms but for PermGen it still showing 
the default 64mb.
Do you have any idea ? Is PermGen setting working for you

Thank you,
Aparna. 




Tim Lucia [EMAIL PROTECTED] 
01/18/2006 10:30 AM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
'Tomcat Users List' users@tomcat.apache.org
cc

Subject
RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
version of Tomcat]






Wherever/however you start your JVM.  In line with -Xmx -XMs should work
fine.  I set mine (under Windows) on the service manager, under the Java 
tab
and (under Linux) in bin/setenv.sh by adding it to CATALINA_OPTS.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 1:24 PM
To: Tomcat Users List
Subject: RE: Do anyone know how to set PermGen space ? [was RE: Latest
stable version of Tomcat]

Hi Tim,

Thank you for the reply.

But, where should I set this.
Is it in service.bat file ? If so is the following line correct ??

%EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions 
-Djava.io.tmpdir=%CATALINA_BASE%\temp --JvmMs 512 --JvmMx 512 
--JvmX:MaxPermSize=512m

And how to check if jvm is taking these values? Will they be inserted in 
the registry ? 
I set JvmMs, JvnMx and --JvmX:MaxPermSize and then started the service. 
Now, how to make sure if JVM is taking these values ?

Any help would be greatly appericiated.

Thank you,
Aparna






Tim Lucia [EMAIL PROTECTED] 
01/18/2006 10:09 AM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
'Tomcat Users List' users@tomcat.apache.org
cc

Subject
RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
version of Tomcat]






-XX:MaxPermSize=... [128m, for example]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 1:02 PM
To: Tomcat Users List
Subject: Re: Latest stable version of Tomcat

Thank you for the reply.

 Do anyone  know how  to set PermGen space ? 
 

Thank you,
Aparna




-
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: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]

2006-01-18 Thread George Sexton
Here's what I use:

-server -Xms512m -Xmx768m -XX:PermSize=128m 
  -XX:MaxPermSize=192m -Djava.awt.headless=true 

Unless you specify PermSize, it will default 
to 64MB, and grow to MaxPermSize

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 18, 2006 3:57 PM
 To: Tomcat Users List
 Subject: RE: Do anyone know how to set PermGen space ? [was 
 RE: Latest stable version of Tomcat]
 
 I tried with -XX:MaxPermSize=128m too.
 but, its not working. any other suggestions ??
 
 Thank you,
 Aparna
 
 
 
 
 
 Tim Lucia [EMAIL PROTECTED] 
 01/18/2006 12:26 PM
 Please respond to
 Tomcat Users List users@tomcat.apache.org
 
 
 To
 'Tomcat Users List' users@tomcat.apache.org
 cc
 
 Subject
 RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
 version of Tomcat]
 
 
 
 
 
 
 PermGen Max is 128m
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 18, 2006 2:43 PM
 To: Tomcat Users List
 Subject: RE: Do anyone know how to set PermGen space ? [was RE: Latest
 stable version of Tomcat]
 
 hi,
 
 As you said, I set on service manger's Java tab like this :
 
 -Dcatalina.opts=-XX:MaxPermSize=256m
 
 I ran a jsp which shows the Memery usage.
 Its showing correct values for Xmx, Xms but for PermGen it 
 still showing 
 the default 64mb.
 Do you have any idea ? Is PermGen setting working for you
 
 Thank you,
 Aparna. 
 
 
 
 
 Tim Lucia [EMAIL PROTECTED] 
 01/18/2006 10:30 AM
 Please respond to
 Tomcat Users List users@tomcat.apache.org
 
 
 To
 'Tomcat Users List' users@tomcat.apache.org
 cc
 
 Subject
 RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
 version of Tomcat]
 
 
 
 
 
 
 Wherever/however you start your JVM.  In line with -Xmx -XMs 
 should work
 fine.  I set mine (under Windows) on the service manager, 
 under the Java 
 tab
 and (under Linux) in bin/setenv.sh by adding it to CATALINA_OPTS.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 18, 2006 1:24 PM
 To: Tomcat Users List
 Subject: RE: Do anyone know how to set PermGen space ? [was RE: Latest
 stable version of Tomcat]
 
 Hi Tim,
 
 Thank you for the reply.
 
 But, where should I set this.
 Is it in service.bat file ? If so is the following line correct ??
 
 %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions 
 -Djava.io.tmpdir=%CATALINA_BASE%\temp --JvmMs 512 --JvmMx 512 
 --JvmX:MaxPermSize=512m
 
 And how to check if jvm is taking these values? Will they be 
 inserted in 
 the registry ? 
 I set JvmMs, JvnMx and --JvmX:MaxPermSize and then started 
 the service. 
 Now, how to make sure if JVM is taking these values ?
 
 Any help would be greatly appericiated.
 
 Thank you,
 Aparna
 
 
 
 
 
 
 Tim Lucia [EMAIL PROTECTED] 
 01/18/2006 10:09 AM
 Please respond to
 Tomcat Users List users@tomcat.apache.org
 
 
 To
 'Tomcat Users List' users@tomcat.apache.org
 cc
 
 Subject
 RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
 version of Tomcat]
 
 
 
 
 
 
 -XX:MaxPermSize=... [128m, for example]
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 18, 2006 1:02 PM
 To: Tomcat Users List
 Subject: Re: Latest stable version of Tomcat
 
 Thank you for the reply.
 
  Do anyone  know how  to set PermGen space ? 
  
 
 Thank you,
 Aparna
 
 
 
 
 -
 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: 2nd Request: How do you programmatically determine Tomcat Version

2006-01-18 Thread Mark Thomas
andy gordon wrote:
 Peter, Thanks This is great! I am not sure of the policy but if you don't 
 mind me asking, is there anyway to add this functionality to earlier releases 
 of Tomca such as 5.5.x, 5.0x, or 4.x?  
5.5.x - As Peter said, it will be in 5.5.16 onwards. We don't issue
individual patches for previous releases on a branch, we do a new
release for that branch.

5.0.x - Unlikely. This branch has been pretty much dormant since 5.5.x
went stable.

4.1.x - I'll take a look at porting the patch. If it is easy, then
I'll do it. No time-scale as yet for a 4.1.32 release but I do intend
to do one once I clear up the last few remaining 4.1.x bugs.

Mark


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



RE: I need advice about choosing a application server.

2006-01-18 Thread George Sexton
Based on my testing, I would have to say the proposed hardware won't handle
it. Here are some test results I got:

http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.htm

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 18, 2006 3:34 PM
 To: Tomcat Users List
 Subject: I need advice about choosing a application server.
 
 I need advice about choosing a application server.
 Hi
 Thank you for reading my post
 I need some advice to choose an application server / srvlet container 
 for deploying a project.
 Application description :
 application has two part  which one of them is a portal .
 portal itself will have a  2 hit/second . each hit could have 
 1 select / 
 1 update and one insert
 sql statement. portal itself use hibernate and Derby.
 I used plain *JDBC , derby , jsf *to develop my portlets (two portlet 
 which are runing on the base)
 there are about 2 emails /second in peak time of the system , it will 
 jsut send the emails and store them
 in database.
 
 The most busy part of the system is another application which will 
 handel about 30 hit (each hit has , 2 update , 2 insert , and 
 2 select 
 statement)
 for this part there will be no email
 
 *I did not implement sending emails as i do not know a good or best 
 practice for this one , and i think it is something related to 
 application server ?*
 
 As i did not use any EJB stuff and just some datasource  , JNDI , 
 connection pool ,
 what will be my choice to deploy the application ?
 Tomcat ?
 Sun application server 8.* ?
 Geronimo ?
 
 Host is a Redhat enterprise Linux , with one p4 processor .
 some tables has 1/000/000 records.
 Will that hardware handle this load ?
 
 
 
 
 
 
 


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



tomcat doesn't shutdown

2006-01-18 Thread philguillard

Hi,
Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12.
Any idea?

Phil

*What i see directly:*
[EMAIL PROTECTED] ~]# /opt/apache-tomcat-5.5.12/bin/shutdown.sh
Using CATALINA_BASE:   /opt/apache-tomcat-5.5.12
Using CATALINA_HOME:   /opt/apache-tomcat-5.5.12
Using CATALINA_TMPDIR: /opt/apache-tomcat-5.5.12/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_06


*This is what i get in logs :*
== catalina.2006-01-18.log ==
Jan 18, 2006 5:27:02 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
== catalina.out ==
Jan 18, 2006 5:27:02 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
== catalina.2006-01-18.log ==
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
== catalina.out ==
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Hibernate dispose called
== localhost.2006-01-18.log ==
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@197d20c')

Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@5f3bad')

Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@46fef3')

Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@64dfeb')

Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@a8c19b')

Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@13eb2bc')

Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
== catalina.2006-01-18.log ==
Jan 18, 2006 5:27:04 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent

INFO: Failed shutdown of Apache Portable Runtime
== catalina.out ==
Jan 18, 2006 5:27:04 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent

INFO: Failed shutdown of Apache Portable Runtime



*Then i commented out this stuff cause i don't need JMX support:*
 !-- Comment these entries out to disable JMX MBeans support used for the
  administration web application --
 !--Listener className=org.apache.catalina.core.AprLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/--


*Now the INFO: Failed shutdown of Apache Portable Runtime disappeared*

== catalina.2006-01-18.log ==
Jan 18, 2006 5:34:15 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
== catalina.out ==
Jan 18, 2006 5:34:15 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
== catalina.2006-01-18.log ==
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jan 18, 2006 5:34:16 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
== catalina.out ==
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Hibernate dispose called
Jan 18, 2006 5:34:16 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
== localhost.2006-01-18.log ==
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@130b13c')

Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1c3e3fb')

Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 

RE: Do anyone know how to set PermGen space ? [was RE: Latest stable version of Tomcat]

2006-01-18 Thread George Sexton
Here's my complete startup script. Its all I can offer:

#!/bin/sh
. /etc/sysconfig/tomcat

export CATALINA_VER CATALINA_BASE CATALINA_HOME
export JDK_HOME=/etc/alternatives/java_sdk
export JRE_HOME=/etc/alternatives/jre
#
#   Get the manager apps clean up
#
cd $CATALINA_BASE


cp -f /dev/null $CATALINA_BASE/logs/catalina.out
export JAVA_OPTS=-server -Xms512m -Xmx768m -XX:PermSize=128m
-XX:MaxPermSize=192m -Djava.awt.headless=true
$CATALINA_HOME/bin/catalina.sh $1 $2 $3 $4 $5 $6 $7 $8 $9




George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 18, 2006 4:41 PM
 To: Tomcat Users List
 Subject: RE: Do anyone know how to set PermGen space ? [was 
 RE: Latest stable version of Tomcat]
 
 HI George,
 
 Thank you for the reply.
 I tried to use this option in my service.bat but when I start 
 the service 
 its giving error.(FYI:  I am using Tomcat 5.5.12.)
 Then I set in CATALINA_OPTS but its not taking the 
 PermSize/MaxPermSize 
 values.
 
 Thank you,
 Aparna.
 
 
 
 
 
 George Sexton [EMAIL PROTECTED] 
 01/18/2006 03:09 PM
 Please respond to
 Tomcat Users List users@tomcat.apache.org
 
 
 To
 'Tomcat Users List' users@tomcat.apache.org
 cc
 
 Subject
 RE: Do anyone know how to set PermGen space ? [was RE: Latest stable 
 version of Tomcat]
 
 
 
 
 
 
 Here's what I use:
 
 -server -Xms512m -Xmx768m -XX:PermSize=128m 
   -XX:MaxPermSize=192m -Djava.awt.headless=true 
 
 Unless you specify PermSize, it will default 
 to 64MB, and grow to MaxPermSize
 
 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585
  
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, January 18, 2006 3:57 PM
  To: Tomcat Users List
  Subject: RE: Do anyone know how to set PermGen space ? [was 
  RE: Latest stable version of Tomcat]
  
  I tried with -XX:MaxPermSize=128m too.
  but, its not working. any other suggestions ??
  
  Thank you,
  Aparna
  
  
  
  
  
  Tim Lucia [EMAIL PROTECTED] 
  01/18/2006 12:26 PM
  Please respond to
  Tomcat Users List users@tomcat.apache.org
  
  
  To
  'Tomcat Users List' users@tomcat.apache.org
  cc
  
  Subject
  RE: Do anyone know how to set PermGen space ? [was RE: 
 Latest stable 
  version of Tomcat]
  
  
  
  
  
  
  PermGen Max is 128m
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, January 18, 2006 2:43 PM
  To: Tomcat Users List
  Subject: RE: Do anyone know how to set PermGen space ? [was 
 RE: Latest
  stable version of Tomcat]
  
  hi,
  
  As you said, I set on service manger's Java tab like this :
  
  -Dcatalina.opts=-XX:MaxPermSize=256m
  
  I ran a jsp which shows the Memery usage.
  Its showing correct values for Xmx, Xms but for PermGen it 
  still showing 
  the default 64mb.
  Do you have any idea ? Is PermGen setting working for you
  
  Thank you,
  Aparna. 
  
  
  
  
  Tim Lucia [EMAIL PROTECTED] 
  01/18/2006 10:30 AM
  Please respond to
  Tomcat Users List users@tomcat.apache.org
  
  
  To
  'Tomcat Users List' users@tomcat.apache.org
  cc
  
  Subject
  RE: Do anyone know how to set PermGen space ? [was RE: 
 Latest stable 
  version of Tomcat]
  
  
  
  
  
  
  Wherever/however you start your JVM.  In line with -Xmx -XMs 
  should work
  fine.  I set mine (under Windows) on the service manager, 
  under the Java 
  tab
  and (under Linux) in bin/setenv.sh by adding it to CATALINA_OPTS.
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, January 18, 2006 1:24 PM
  To: Tomcat Users List
  Subject: RE: Do anyone know how to set PermGen space ? [was 
 RE: Latest
  stable version of Tomcat]
  
  Hi Tim,
  
  Thank you for the reply.
  
  But, where should I set this.
  Is it in service.bat file ? If so is the following line correct ??
  
  %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions 
  -Djava.io.tmpdir=%CATALINA_BASE%\temp --JvmMs 512 --JvmMx 512 
  --JvmX:MaxPermSize=512m
  
  And how to check if jvm is taking these values? Will they be 
  inserted in 
  the registry ? 
  I set JvmMs, JvnMx and --JvmX:MaxPermSize and then started 
  the service. 
  Now, how to make sure if JVM is taking these values ?
  
  Any help would be greatly appericiated.
  
  Thank you,
  Aparna
  
  
  
  
  
  
  Tim Lucia [EMAIL PROTECTED] 
  01/18/2006 10:09 AM
  Please respond to
  Tomcat Users List users@tomcat.apache.org
  
  
  To
  'Tomcat Users List' users@tomcat.apache.org
  cc
  
  Subject
  RE: Do anyone know how to set PermGen space ? [was RE: 
 Latest stable 
  version of Tomcat]
  
  
  
  
  
  
  -XX:MaxPermSize=... [128m, for example]
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, January 18, 2006 1:02 PM
  To: Tomcat Users List
  Subject: Re: Latest stable version of Tomcat
  
  

Re: 2nd Request: How do you programmatically determine Tomcat Version

2006-01-18 Thread Mark Thomas
Mark Thomas wrote:
 4.1.x - I'll take a look at porting the patch. If it is easy, then
 I'll do it.
I have just committed this to svn for 4.1.x

Mark


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



Re: Design Guidance requested for Tomcat newbie - servlets, MySQL access, etc.

2006-01-18 Thread Giorgio Clavelli
Hi,
I'm in your same boat (like many I guess). In an effort to learn best
pratice and avoiding to reinvent the wheel, I thought, it may be wise to
stick with one of the several java web application frameworks.
I'm trying with Spring, which seems quite good, but at least for me, it is
not that easy to learn too. I just come across another one called Wicket,
which between the other premises, says having focused on easier lerning
curve.
Hope it helps.

Giorgio

On 1/19/06, Warrick Wilson [EMAIL PROTECTED] wrote:

 First, if I need to be on a different list, please let me know. I'm
 working my way up from Tomcat, which is where the servlet I'm
 developing is going to be running. I'm a Java newbie, but I'm on this
 project, and the learning curve is steep. Sadly, Google hasn't been my
 friend this time - I'm finding conflicting information and so I
 searched out a mailing list to ask

 I've got Tomcat 5.5.12 running on my Win XP SP2 machine. I'm
 developing against that for now. I'm working on a servlet that will be
 accessing a MySQL database, so I've grabbed Connector/J from the MySQL
 site, and followed their info, plus the Tomcat JNDI Datasource How-To
 on settting up a context.xml for my database.

 And that all works. I used the sample JSP from the Datasource How-To
 and was able to access my database.

 My issues start when I work on my servlet. The basic tutorials and
 examples show something simple all happening within the one
 MyServlet.java file - create the JDBC context, set up a DataSource,
 get a Connection, and work with some Statements. Everything in one
 class implementing the servlet. When things get a little more
 complicated (read that as when you want to do things in the real
 world), then the examples disappear and some handwaving seems to
 replace it. That's becoming very confusing, particularly when this is
 the first real Java project you've worked on.

 In my case, I want to have some different classes to read and write my
 database. Basically, there's one class for handling data coming in,
 and a second class to handle data going out. Based on what I've read,
 I want to use the connection pooling that's already present in the
 Commons DBCP that's included with my Tomcat installation. However,
 establishing contexts is expensive in terms of performance (again,
 so I've read), so I want to just use the DataSource I have set up in
 my context.xml. So more Googling, more reading, and I ran across some
 examples of Connection Pools that use a Singleton Pattern. Only I
 thought I already had a connection pool, and I'm trying to figure out
 how to make my design share the DataSource I was setting up in my
 servlet init() method, because I thought that would help my servlet's
 performance.

 Am I way off-base here? Is there an example that shows how this type
 of thing should be designed? Should I just duplicate the
 Context/DataSource/Connection/Statement stuff in all my classes? Or is
 that the wrong way?

 I could always configure my classes to have a DataSource passed in
 from the doGet() or doPost() handlers, but that doesn't seem like the
 right approach. I may do that just to get something working, but I
 hate learning how to do things the wrong way...

 Thanks in advance for any pointers you can provide...

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




Re: Design Guidance requested for Tomcat newbie - servlets, MySQL access, etc.

2006-01-18 Thread Warrick Wilson
 Hi,
 I'm in your same boat (like many I guess). In an effort to learn best
 pratice and avoiding to reinvent the wheel, I thought, it may be 
wise to
 stick with one of the several java web application frameworks.
 I'm trying with Spring, which seems quite good, but at least for me, 
it is
 not that easy to learn too. I just come across another one called 
Wicket,
 which between the other premises, says having focused on easier 
lerning
 curve.
 Hope it helps.
 
 Giorgio

Giorgio,

I appreciate your reply. I don't have a choice in the framework - 
that's already set. I'm just learning a lot of stuff - a Java refresh, 
JDBC, Tomcat, numerous Apache-related project acronyms, and places to 
go for information. I'll have to look at the two you mentioned, simply 
to fill in the blanks on what they are.

I've put together something that's working for me for now. I (sadly) 
don't have a clue whether I'm totally misunderstanding something, or 
whether I've coded a potential show-stopping kludge into my program, 
but it currently _is_ running enough to let me get at the next thing 
on my task list for the project. Ah, well, it's for things like this 
that we schedule a long test/fix cycle, right?

Thanks again.Warrick

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



RE: tomcat doesn't shutdown

2006-01-18 Thread Caldarale, Charles R
 From: philguillard [mailto:[EMAIL PROTECTED] 
 Subject: tomcat doesn't shutdown
 
 Jan 18, 2006 5:27:04 PM org.apache.catalina.core.AprLifecycleListener 
 lifecycleEvent
 INFO: Failed shutdown of Apache Portable Runtime

Note that this is an informational message, not an error - it's
completely ignorable, just like the one you ignored at Tomcat startup
about not being able to start APR.  If you want to get rid of the
message, just comment out that one listener near the top of
conf/server.xml.

 *Then i commented out this stuff cause i don't need JMX support:*

The admin app is kind of useful for poking around inside Tomcat, so I'd
suggest turning all but the APR listener back on.

An alternative is to build and install APR for your platform.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Images caching

2006-01-18 Thread Rob Gregory
You are more than welcome mate. 

I learnt from you guys on the lists and the Net and we should all try and
give back to the community.  

Rob Gregory



-Original Message-
From: Bello Martinez Sergio [mailto:[EMAIL PROTECTED] 
Sent: 18 January 2006 07:43
To: Tomcat Users List
Subject: RE: Images caching

Thanks a lot, of course it has helped

 -Mensaje original-
 De:   Rob Gregory [SMTP:[EMAIL PROTECTED]
 Enviado el:   martes, 17 de enero de 2006 19:39
 Para: 'Tomcat Users List'
 Asunto:   RE: Images caching
 
 Code as requested, Hope this helps mate:-
 
 
 package com.my.filters;
 /**
  * pTitle:   CacheFilter/p
  * pDescription: This filter sets headers for all requests directed via
 the
  * filter mappings. This allows the browser to be forced
 to
 use
  * the cached version of the file. /p
 *
  * Most of the work required by this filter is done via the configuration
 parameters
  * within the web.xml deployment descriptor as follows:-
  *
  * filter
  *  filter-nameBrowserCache/filter-name
  *  filter-class com.my.filters.CacheFilter/filter-class
  *  init-param
  *param-nameCache-Control/param-name
  *param-valueprivate,max-age=3600/param-value
  *  /init-param
  *  init-param
  *param-namePragma/param-name
  *param-valuecache/param-value
  *  /init-param
  * /filter
  *
  * filter-mapping
  *  filter-nameBrowserCache/filter-name
  *  url-pattern*.gif/url-pattern
  * /filter-mapping
  * filter-mapping
  *  filter-nameBrowserCache/filter-name
  *  url-pattern*.css/url-pattern
  * /filter-mapping
  * filter-mapping
  *  filter-nameBrowserCache/filter-name
  *  url-pattern*.js/url-pattern
  * /filter-mapping
  * 
  * @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.42
 **
 **
  */
 import com.ieseries.core.Constants;
 import java.io.IOException;
 import java.util.Enumeration;
 import javax.servlet.Filter;
 import javax.servlet.FilterChain;
 import javax.servlet.FilterConfig;
 import javax.servlet.ServletException;
 import javax.servlet.ServletRequest;
 import javax.servlet.ServletResponse;
 import javax.servlet.http.HttpServletResponse;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
 /**
  *  Project Core
  */
 public class CacheFilter implements Filter {
 
   FilterConfig objFilterConfig;
   
   // Create a log attribute to allow access to log files
   private static final Log log = LogFactory.getLog(CacheFilter.class);
   
   private static final String VERSION_STRING = CacheFilter.class.getName()
 +
 
'/' +
 Constants.VERSION_NUMBER;
 
  
   /**
* init
* @param filterConfig the filter configuration object
*/
   public void init(FilterConfig filterConfig) {
 this.objFilterConfig = filterConfig;
   }
 
   /**
* doFilter
* @param req the ServletRequest object
* @param res the ServletResponse object
* @param filterChain the FilterChain
* @throws IOException
* @throws ServletException
*/
   public void doFilter(ServletRequest req,
ServletResponse res,
FilterChain filterChain) throws IOException,
 ServletException {
 if (log.isDebugEnabled()) log.debug(Doing Filter Cache);
 HttpServletResponse response = (HttpServletResponse) res;
 
 // set the provided HTTP response parameters
 Enumeration enu = objFilterConfig.getInitParameterNames();
 while ( enu.hasMoreElements() ) {
   String headerName = (String) enu.nextElement();
   // response.setHeader(headerName,
 objFilterConfig.getInitParameter(headerName));
   // RG : use addHeader not setHeader so multiple headers can be
 added...
   if (log.isDebugEnabled()) log.debug(Setting Header :  +
 objFilterConfig.getInitParameter(headerName));
   response.addHeader(headerName,
 objFilterConfig.getInitParameter(headerName));
 }
 
 // pass the request/response on to the rest of the filters
 filterChain.doFilter(req, response);
   }
 
   /**
* toString
* @return string containing the version information
*/
   public String toString() {
 return VERSION_STRING;
   }  
 
   /**
* destroy
*/
   public void destroy() {
 if (log.isDebugEnabled()) log.debug(Destroy Cache Filter);
 this.objFilterConfig = null;
   }
 
 
 }
 
 
 
 
 
 
 -Original Message-
 From: Bello Martinez Sergio [mailto:[EMAIL PROTECTED] 
 Sent: 17 January 2006 07:12
 To: Tomcat Users List
 Subject: RE: Images caching
 
 Hi Rob Gregory,
 I would thank a lot those code examples about setting headers with
 filters. 
 I've read a lot about this problem yesterday and I've discovered that
 there
 are a
 problem with IE6 images caching, so I'm very interested in the workaround
 you've
 suggested.
 
 Thanks a lot (thanks to Alex Hyde, too)
 
  -Mensaje original-
  De: Rob 

Re: Design Guidance requested for Tomcat newbie - servlets, MySQL access, etc.

2006-01-18 Thread Giorgio Clavelli
 Ah, well, it's for things like this that we schedule a long test/fix
cycle, right?
Indeed... :(

Here the links to those frameworks:
http://www.springframework.org/
http://wicket.sourceforge.net/

Have fun.
Giorgio

On 1/19/06, Warrick Wilson [EMAIL PROTECTED] wrote:

  Hi,
  I'm in your same boat (like many I guess). In an effort to learn best
  pratice and avoiding to reinvent the wheel, I thought, it may be
 wise to
  stick with one of the several java web application frameworks.
  I'm trying with Spring, which seems quite good, but at least for me,
 it is
  not that easy to learn too. I just come across another one called
 Wicket,
  which between the other premises, says having focused on easier
 lerning
  curve.
  Hope it helps.
 
  Giorgio

 Giorgio,

 I appreciate your reply. I don't have a choice in the framework -
 that's already set. I'm just learning a lot of stuff - a Java refresh,
 JDBC, Tomcat, numerous Apache-related project acronyms, and places to
 go for information. I'll have to look at the two you mentioned, simply
 to fill in the blanks on what they are.

 I've put together something that's working for me for now. I (sadly)
 don't have a clue whether I'm totally misunderstanding something, or
 whether I've coded a potential show-stopping kludge into my program,
 but it currently _is_ running enough to let me get at the next thing
 on my task list for the project. Ah, well, it's for things like this
 that we schedule a long test/fix cycle, right?

 Thanks again.Warrick

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




Re: Does tomcat 5.0 officially support JDK1.5?

2006-01-18 Thread HuangHao

David Smith wrote:

Wade Chandler wrote:


--- HuangHao [EMAIL PROTECTED] wrote:
 


Thanks. As a requirement, my application need to
support both Tomcat 5.0 and 5.5. But my application requires JDK1.5 
for some
reason.   

Should be fine if it's only that you are using methods
and classes from JDK1.5 which were not available in
previous JDK/JRE.

 


I understand it is OK with JDK1.5+Tomcat5.5, but I
want to make sure JDK1.5+Tomcat 5.0 can work too.  I can start  Tomcat
5.0 with  JDK1.5 but that can't be regarded as a fully support
certificate.
  

I really don't understand the question.  Maybe you
could re-form your question better and help me or
someone else better understand what it is you are
asking exactlyclients can't connect because of
some type of an SSL certificate...your web-app is
connecting to some external resource using a
certificateyou are using some key store..could
be any type of a certificate.
 


Does apache has official announcement about this
issue?

Thanks

Hao
  


Wade

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

 

I think the OP is looking for some sort of official endorsement from 
the tomcat 5.0.x developers that tomcat 5.0.x runs in a JDK 1.5 
environment.  While I can't speak for the dev folks, I have not seen a 
single issue either personally or on the user list running that 
combination.  It should work fine.



--David

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


Yes, David's explanation is correct. Maybe I didn't describe my question 
clearly. I was looking for endorsement about Tomcat 5.0 in JDK1.5 from 
Tomcat developer. Just as what they gave out about Tomcat 5 in JDK1.3 
and 1.4 like


/Tomcat 5 has been extensively tested with JDK 1.3.1 as well as JDK1.4.2, and the 
latter is recommended./

Thanks


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



how to configure the tomcat 5.5.12 for a port 80 in linux (Gentoo)??

2006-01-18 Thread Iosev Perez Rivero
So, I have configure a tomcat for a port 8080 in Linux (Gentoo), but when I try 
chance this port to 80 this make mistaje of Permission in de logs

What can I do?

Thanks 

Iósev Pérez Rivero
Estudiante 4to. Año
Universidad de las Ciencias Informáticas


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



Re: tomcat 5 and cgi execution

2006-01-18 Thread Linda Solomon

Mark,

Thanks for the suggestion.
I read thru the differences and nothing specific stood out as the root 
of my problem.

I noticed that hash tables are replaced by array lists;
a new option is available to indicate if the shell environment should be 
passed (or not) --

I think I need to set that;
the release notes indicate that a patch was made to prevent deadlock 
between stderr and

large stdout data .

This patch solves this problem by having a single loop which
reads stderr if it's ready, or stdout if ready.
Fixes Bug 12041


My web-application is a combination of html, javascript, perl scripts, 
c++ programs, and java applets.

My project is working rewriting this web-application as a J2EE  application.
However, we still need to use the older web-application for some time..

So, using the default executable in the cgi definition for 
tomcat/conf/web.xml ,

the perl scripts work fine.
When I execute any of the c++ programs, I get a white (that is, blank, 
empty)

browser window in return.
When I look at the tomcat 5.0  logs, the findCGI and runCGI seem to
determine the cgi name, path and parameters correctly.
However, I see a message that states runCGI received \x7F on stderr .
I am guessing that perl attempted to read the c++ executable as a file 
(so that it could interpret it)
because the first byte of every c++ program is \x7F  (that is, 
accounting for  little-endian, since

the system is running on a Dell 1750 running Redhat AS 3.0.)

I can fake out the system by creating a cshell-script with the same name 
as the c++ executable
and statically call the c++ cgi from within the cshell-script. The 
cshell-script is executed successfully, the
cshell-script executes the c++ cgi executable successfully and my 
expected output comes back

to the browser window.

Any suggestions?

Linda

Mark Thomas wrote:


Linda Solomon wrote:
 


I followed the instructions for configuring tomcat 5 for cgi.
However, tomcat 5 contains a new xml variable:
executable - The of the executable to be used to run the script. Default
is perl.

Using the default allows the perl cgis to work fine, but the c++ cgi's
do not work.
   


This is unlikely to be a factor. Before it was configurable it was
hard-coded to perl so if you leave it as the default there should be
no functional change.

There are, however, a whole stack of other changes that may be a
factor. The following (rather long) URL should show you the changes.
http://svn.apache.org/viewcvs.cgi/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java?p1=tomcat%2Fcontainer%2Fcatalina%2Ftrunk%2Fcatalina%2Fsrc%2Fshare%2Forg%2Fapache%2Fcatalina%2Fservlets%2FCGIServlet.javarev=366305r1=302487r2=366305diff_format=h

Mark


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


 



Re: how to configure the tomcat 5.5.12 for a port 80 in linux (Gentoo)??

2006-01-18 Thread Dhaval Patel
Hi,

   For detail information about the problem and solution, visit:
http://wiki.apache.org/tomcat/HowTo#head-18d1c3f3fa702a1be769340784515eecce6e0ac9

   The quick solution is to to administer (start, stop, edit) tomcat only as a 
root.

   Hope it helps.

Regards,
D
   

--- Iosev Perez Rivero [EMAIL PROTECTED] wrote:

 So, I have configure a tomcat for a port 8080 in Linux (Gentoo), but when I 
 try chance this port
 to 80 this make mistaje of Permission in de logs
 
 What can I do?
 
 Thanks 
 
 I�sev P�rez Rivero
 Estudiante 4to. A�o
 Universidad de las Ciencias Inform�ticas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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



Re: SSL Porting from Apache to Tomcat

2006-01-18 Thread Bill Barker

Armand Rock [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hello,
 I'm currently in the process of porting an application from Apache to 
 Tomcat
 (Apache was originally used as a front end to Orion).

 The server I'm porting from does not have any keystore information setup.
 Instead the server has
 a private key and the actual SSL certificate stored on the computer as
 files.  Apache is using SSLCertificateFile and
 SSLCertificateKeyFile to point to the current key information.  I'm not 
 even
 sure what algorithm was used
 to originally set all of this up.

 For example httpd.conf contains the following 2 lines:

 SSLCertificateFile /opt/ssl/cert.cer
 SSLCertificateKeyFile /opt/ssl/private.key

 I don't see a way to import private keys using the keytool and I'm not
 seeing a way to point to the private key
 and the SSL certificate within the tomcat documentation.  Short of either
 re-creating a new private key (and a
 new SSL Certificate) or of being forced to use Apache in front of Tomcat
 does anyone have any other idea as to how I might be able to make use of 
 the
 existing files?


This comes up like clockwork on the list, and I don't feel like answering it 
for the hundredth time ;-).

So, searching the archives is your best bet, followed by RTFM (starting with 
the ssl-howto).

 Thank You 




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



Re: Realm in tomcat

2006-01-18 Thread Bill Barker

Jack [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 In tomcat, Realm has such a definition: A Realm is a database of 
 usernames and passwords that identify valid users of a web application (or 
 set of web applications), plus an enumeration of the list of roles 
 associated with each valid user. This is exactly a UserManager should do.



 I guess the reason why we use Realm here is that at the beginning of the 
 web, Realm is used to contain authorization  authentication together just 
 like the MemoryRealm in Tomcat. With time, other things were removed from 
 Realm gradually.



 Actuall, realm should be a group of resources  the action can be 
 performed on it.



 Users will be prompted by such information: In order to allow you to 
 access the realm: x, please provide us your identity. User can choose 
 to provide certificate or username  password pair whatever is right. At 
 the beginning of web, only username  password is used.



 Apache is still using the Realm in its right meaning:
 Realms: Areas of Controlled Access
 In terms of voluntary control mechanisms on the Web, each protected area, 
 whether it be a single document or an entire server, is called a realm. 
 When a server challenges a client for credentials, it provides the name of 
 the realm so the client can figure out which credentials to send.



 Realm should return to its true meaning: a group of resources, like 
 SecurityConstraint in tomcat.

 We need to seperate UserManager from Realm.

Patches are always welcome ;-).




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