Tomcat error [Fatal Error] :2:5118: Content is not allowed in trailing section.

2003-07-26 Thread Venkatesh K. Kesavan



Hi,
 I have been using tomcat 4.0 till date and 
recently I upgraded to 4.1.24. My application is working in 4.1.24 but tomcat 
server screen shows the error "[Fatal Error] :2:5118: Content is not allowed in 
trailing section." whenever I open any jsp.(error repeated till the jsp is 
completely displayedin the browser).I don't get this error 
intomcat 4.0. Why is this error due to?How do I correct it? Thanks 
in advance for your help.

Thank you,Venkatesh K. Kesavan
email: [EMAIL PROTECTED]website: www.chain-sys.com


[ANN] Tomcat 5.0.5 Alpha released

2003-07-26 Thread Remy Maucherat
Tomcat 5.0.5 Alpha is now available for testing.

Please refer to the changelog included in the release for the list of 
changes.

Downloads:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v5.0.5-alpha/
Remy



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


Re: Env var serverRoot or JkSet config.file

2003-07-26 Thread Ivan Montoro
Sorry again, actually the path is a little more
obfuscated since our install policy is realy
non-user-friendly. But yes, paths are coordinated
between httpd.conf, workers2.properties and
jk2.properties...

serverRoot is set in a wrapper I've made for Tomcat's
startup.sh. Modifing a little catalina.sh I see
everything is correctly exported...

 --- Simon Pabst [EMAIL PROTECTED] wrote:  Where
did you set export serverRoot=/opt/apache2 ?
 (without trailing 
 slash, though that shouldn't matter since most
 unixes tolerate double 
 slashes in a path)
 It needs to be set in tomcat/bin/catalina.sh.
 
 Besides now you say your config.file is
 /opt/httpd/conf/workers2.properties ?
 Then serverRoot should be /opt/httpd , not
 /opt/apache2
 
 
 At 19:17 24.07.2003 +0100, you wrote:
 Thanks Eric, I forgot to mention is just set after
 mod_jk2 LoadModule with full path, and file exists
 
 LoadModule jk2_module modules/mod_jk2.so
 JkSet config.file
 /opt/httpd/conf/workers2.properties
 
 
   --- Eric J. Pinnell [EMAIL PROTECTED] wrote: 
 Hi,
  
   I use:
  
   JkSet config.file
   /usr/local/apache/conf/workers2.properties
  
   you have to have the full system path in there. 
 You
   can't shortcut it
   like you can in a LoadModule statement.  (i.e.
   modules/mod_jk2.so)
  
   -e
  
   On Thu, 24 Jul 2003, [iso-8859-1] Ivan Montoro
   wrote:
  
Nicolas, Simon, many thanks for the previous
   response.
To everybody else, hi again!
   
I'm a bit lost about configuration files with
   Apache
2.0+Tomcat 4.1+mod_jk2... I was trying to
 lower
workers2.properties logger level to ERROR
 instead
   of
INFO/DEBUG, but at startup Tomcat told me:
   
(error ) [jk_config_file.c (279)]
   config.update():
Can't find config file
${serverRoot}/conf/workers2.properties
( info ) [jk_config.c (251)]
   config.setAttribute()
Error setting config: file
${serverRoot}/conf/workers2.properties
   
I was using JkSet config.file at httpd.conf
 just
after LoadModule mod_jk2. Following
 instructions
from Nicolas' documents I did a export
serverRoot=/opt/apache2/ and everything worked
   fine.
Did Tomcat/Apache ignored my order or I was
 doing
something wrong? I would rather prefer to have
 a
config line rather than another line in my
 mega
   shell
script...
   
Thanks everybody
   
Ivan
   
   
  


Want to chat instantly with your online
 friends?
   Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/
   
   
  

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

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


 Want to chat instantly with your online friends? 
 Get the FREE Yahoo!
 Messenger http://uk.messenger.yahoo.com/
 

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

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


Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

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



Where are translated classes stored in Tomcat 5??

2003-07-26 Thread Julien Martin
Hello,
I am having some problems with tomcat5.  I don't know where translated files 
(something_jsp.java) are stored.  It used to be stored in 
%catalina_home%\work\catalina\localhost\myapp for an app called myapp in tomcat 4x and 
I can't find the file anymore now.  Can you help?
Thanks in advance,
Julien.

Re: Where are translated classes stored in Tomcat 5??

2003-07-26 Thread Micael
The xml should tell you where it is.

At 11:25 PM 7/26/2003 +0200, Julien Martin wrote:
Hello,
I am having some problems with tomcat5.  I don't know where translated 
files (something_jsp.java) are stored.  It used to be stored in 
%catalina_home%\work\catalina\localhost\myapp for an app called myapp in 
tomcat 4x and I can't find the file anymore now.  Can you help?
Thanks in advance,
Julien.


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Authentication Tomcat and IIS

2003-07-26 Thread Fedor Smirnoff
Hey everyone, really hope you can help because I
really hit the wall here. I configured and installed
Tomcat 4.1.24 with IIS running on Windows 2000, now I
cannot get my basic authentication to work. I have it
configured in web.xml and it worked before when it was
Tomcat only stand-alone, now it deesnt work anymore. I
have tried everything I could think of, and everything
that I read about in the archives, still nothing.
Setting tomcat authorization to true or false didnt
help. I really dont care what does authentication IIS
or Tomcat, but I need it :)

It seem that I got to one point where IIS basic
authentication is on and it works when users types in
domain.com/webapp however when you go in as
domain.com/webapp/ it goes right through.

Any ideas as to how I can get authenticatioon to work
with Tomcat and IIS?

Thanks,
Fedor

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Where are translated classes stored in Tomcat 5??

2003-07-26 Thread Tim Funk
Same spot as 4. Somewhere beneath $CATALINA_HOME/work - its just a little 
deeper in the dir structure.

-Tim

Julien Martin wrote:
Hello,
I am having some problems with tomcat5.  I don't know where translated files 
(something_jsp.java) are stored.  It used to be stored in 
%catalina_home%\work\catalina\localhost\myapp for an app called myapp in tomcat 4x and 
I can't find the file anymore now.  Can you help?
Thanks in advance,
Julien.


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


admin question ??

2003-07-26 Thread Kevin Passey
Has anybody set up a datasource in the admin console and got it to work?

If so can you enlighten me.

Regards

Kevin

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



Re: Tomcat: SSL client authentication

2003-07-26 Thread Bill Barker
You can't generally use a self-signed client cert with JSSE (you can
configure PureTLS to accept it, but another bug means that you'd have to
wait for 4.1.26).  The work-around is way too much trouble for the sysadmin,
and I don't feel like being an enabler for a true hideous design.  So,
you'll just have to read the JSSE docs for yourself ;-).

If you need to issue your own client-certs, I'd suggest setting up your own
CA (with OpenSSL or otherwise), and import your CA's cert into cacerts.  You
can then hand out client certs, and Tomcat will accept them.

Dmitry S.Rogulin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello all,

 Sorry for the previous e-mail. %)

 This theme was discussed about month ago. I tried to use what I've
 found but I'm still having a problem...

 I'm trying to do SSL client authentication with Tomcat 4.1.18
(clientAuth=true).

 1. I've generated a client certificate using keytool:
   keytool -genkey -alias tomcat-cl -keyalg RSA -keystore client.keystore

 2. Then I created Certificate Signing Request:
   keytool -certreq -keyalg RSA -alias tomcat-cl -file
certreq.csr -keystore client.keystore

 3. I sent it to CA and got a signed certificate and CA Certificate.
 4. I imported them to the client keystore:
   keytool -import -alias root -keystore client.keystore -file cacert
   keytool -import -alias tomcat-cl -keystore client.keystore -file
usercert

 5. I exported server certificate and imported it as a trusted to the
 trusted keystore:
   keytool -import -trustcacerts -alias tomcat -file server.cer -keystore
trust.keystore

 6. I imported CA Certificate to \jre\lib\security\cacerts :
   keytool -import -file cacert -keystore
%java_home%\jre\lib\security\cacerts -storepass changeit

   I'm running Tomcat and test client on the same machine.
   Server keystore: %USERHOME%\.keystore
   Client keystore: %USERHOME%\client.keystore
   Client trusted keystore: %USERHOME%\trust.keystore

   Test Client:
 
 import java.net.*;
 import java.io.*;
 import java.util.*;
 import java.security.*;
 import javax.net.ssl.*;

 public class SimpleClient {

 public static void main(String[] args) {
 System.setProperty(javax.net.ssl.trustStore,
System.getProperty(user.home)+File.separator +trust.keystore);

 System.setProperty(javax.net.ssl.keyStore,
System.getProperty(user.home)+File.separator +client.keystore);
 System.setProperty(javax.net.ssl.keyStorePassword,
changeit);

 InputStream is = null;
 OutputStream os = new ByteArrayOutputStream();

 try {
 URL url = new
URL(https://localhost:8443/readme.txt;);

 try {
 is = url.openStream();

 byte[] buffer = new byte[4096];
 int bytes_read;
 while((bytes_read = is.read(buffer))
!= -1)
 os.write(buffer, 0, bytes_read);

 System.out.println(os.toString());

 } catch (Exception e) { e.printStackTrace(); }
 finally {
 try {
 is.close();
 os.close();
 } catch (IOException e) {
e.printStackTrace(); }
 }

 } catch (Exception e) { e.printStackTrace(); }


 }
 }
 

 With [clientAuth=false] it works fine, but with [clientAuth=true]
 it gives an error:

 java.net.SocketException: Software caused connection abort: recv failed
 at java.net.SocketInputStream.socketRead0(Native Method)
 at java.net.SocketInputStream.read(SocketInputStream.java:129)
 at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6275)
 at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)

 What did I do in a wrong way?

 Thanks in advance.

 Best regards,
 Dmitry.




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



Tomcat under load - Use 'java -Xss' to increase default stack size

2003-07-26 Thread Rau NF
Hi - We have seen this problem showing up on Tomcat 4.1.24 (/JDK 1.4.2 from Sun/Linux) 
after running tomcat for a few hours. 
 
Fatal: Stack size too small. Use 'java -Xss' to increase default stack size.

We have set the stack size to 1024k and we still get this error. (-Xms/Xmx is 1.5 Gb)
 
Any pointers will be very helpful
 
Thanks

S Rau
 


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

JNDI database again

2003-07-26 Thread dein_metzger
 hi there.
 My doubt is quite simple.
 I have to use an ms-access database (MDB) via JNDI.
 I am using tomcat 4.1, on windows xp, with j2sdk 1.4 
 I am thinkin about using the jdbcodbcdriver from sun.
 
 I´ve heard a lot of things about it on the net, but I don´t understood
nothing.
 On tomcat, there´s on the admin login the option of databases, can I
use it? if yes, how I configure it/

 thanks in advance for any help and sorry for any inconvenience that I
may have caused.

 InacioW-

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/7/2003
 


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



Re: JNDI database again

2003-07-26 Thread Luis Duran
OKi Doki, i think i could help with the first part of the request.

JDBC-ODBC implementation included in Java SDK's distributions pretends
solve the immediatly database connectivity problem on Windows boxes, and
Java do not shipped it like a final and stable solution, they mean:
umm, this works, you can try it but they not recommend it use in a
large scale project. There are many other free and commercial vendors
that offer diferent drivers libraries to connect with ODBC or mainly
ms access thing. If you try JDBC-ODBC and feel comfortably with it, then
you've worked around the problem. Note: i maybe wrong, my english maybe
not perfect, but i hope be helpfull.

El sáb, 26 de 07 de 2003 a las 23:53, dein_metzger escribió:
  hi there.
  My doubt is quite simple.
  I have to use an ms-access database (MDB) via JNDI.
  I am using tomcat 4.1, on windows xp, with j2sdk 1.4 
  I am thinkin about using the jdbcodbcdriver from sun.
  
  I´ve heard a lot of things about it on the net, but I don´t understood
 nothing.
  On tomcat, there´s on the admin login the option of databases, can I
 use it? if yes, how I configure it/
 
  thanks in advance for any help and sorry for any inconvenience that I
 may have caused.
 
  InacioW-
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.502 / Virus Database: 300 - Release Date: 18/7/2003
  
 
 
 -
 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]