Re: I know this is a stupid question

2004-03-28 Thread Antonio Fiol Bonnín
Hi Don, As Bryan already told you, you should clear the work directory of already compiled versions. Antonio Donald Lee wrote: I have since downloaded version 4.1.30 and am not experiencing this problem. I have noticed that there are fewer sub-directories under the WEB-INF. This leads me

Tomcat and JApplet / Applet

2004-03-28 Thread Lars Nielsen Lind
Hi. How do I run JApplets / Applets with the Tomcat server? I place the applets in /WEB-INF/classes/package_name/package_name/JAppeltExample.class, but the browser can't see them. /Lars Nielsen Lind

mod_jk2 problem

2004-03-28 Thread Angelo Alerta
I have only one tomcat instance running on port 50089 but mod_jk2 can't connect. It require port 8009? If i try to run ajp connector on port 8009 all runs fine. But I need a different port. This is the output log: [Sun Mar 28 15:06:22 2004] [error] channelSocket.open() connect failed

RE: post data through form based authentication example?

2004-03-28 Thread Martin Alley
The updated web.xml below now correctly lists the required security-role tags, but the only effect was to bring the form.html resource into the secured area (ie login is requested before accessing this page now), so I have also modified web.xml to put form.html *outside* the secured area - thus

Re: Tomcat and JApplet / Applet

2004-03-28 Thread Antonio Fiol Bonnín
Hi, Class files for applets (or jars) are to be served by the web server exactly as any other STATIC file. Place them outside WEB-INF/classes, as anything in that directory is NOT served. Antonio Fiol Lars Nielsen Lind wrote: Hi. How do I run JApplets / Applets with the Tomcat server? I

Re: apache + 2 tomcat cluster memory problem

2004-03-28 Thread Asim Alp
Thanks Filip. I only found the thread of mails starting March 17 with the title Horrible memory leak in tomcat 5.0.19 If this is indeed the mails you advised me to look at, here is what I found out: Our setup differs in a way that we are using mod_jk 1.2.5 instead of 2.0.2. So mod_jk

Re: Horrible memory leak in tomcat 5.0.19

2004-03-28 Thread Asim Alp
Hello Robert, We are having the same problem with mod_jk 1.2.5 and Tomcat 5.0.19. However, we cannot downgrade to Tomcat 5.0.18 because of a bug fix regarding session states. I was wondering, have you guys tried disableing the JMX registration? Was that indeed the problem? Thank you very

Re: Tomcat and JApplet / Applet

2004-03-28 Thread Lars Nielsen Lind
But then it is possible for third part to download and read the code in the applet? or? How do I protect my applets? /Lars Nielsen Lind - Original Message - From: Antonio Fiol Bonnín [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 4:29 PM Subject:

Re: Tomcat and JApplet / Applet

2004-03-28 Thread Parsons Technical Services
Obfuscators. http://developers.evrsoft.com/directory/dir.pl?redir=/Computers/Programming/Languages/Java/Development_Tools/Obfuscators/ Doug - Original Message - From: Lars Nielsen Lind [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 11:30 AM

RE: Tomcat and JApplet / Applet

2004-03-28 Thread SH Solutions
Howdy, But then it is possible for third part to download and read the code in the applet? or? How do I protect my applets? No. You need to make your class files accessible only. You do not need tomcat for this. You can use tomcat as well as apache, iis or any other web server. You do not

Re: I know this is a stupid question

2004-03-28 Thread Torsten Fohrer
Look at ROOT/WEB-INF/web.xml. all web-apps in tomcat 4/5 distributions, are precompiled. cu Fohrer On Sunday 28 March 2004 03:31, Donald Lee wrote: Ok, I know this has got to be a stupid newbie question but I have searched the archives without success. What is special about the default

Re: Tomcat and JApplet / Applet

2004-03-28 Thread Dan Agarlita
Hi Lars, put the applet in another folder than WEB-INF I have the same problem, and I put the applet in a diferrent folder and works. Dan A. - Original Message - From: Lars Nielsen Lind [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 1:18 PM Subject: Tomcat and

Re: I know this is a stupid question

2004-03-28 Thread Dan Agarlita
Hi all, how do I catch http errors with tomcat? 404 Error, 403 Error. I put the same question 2 years ago :) but I forgot I remember that are some tags in config xml, something like ? Thanks, Dan A. - To unsubscribe, e-mail:

Re: I know this is a stupid question

2004-03-28 Thread Phillip Rhodes
Dan Agarlita wrote: Hi all, how do I catch http errors with tomcat? 404 Error, 403 Error. I put the same question 2 years ago :) but I forgot I remember that are some tags in config xml, something like ? You can put this in your web.xml file: error-page error-code404/error-code

Re: jsp compile - default constructor

2004-03-28 Thread Tim Funk
The spec says using new() is OK. So tomcat does since it is *much* faster than reflection. -Tim Rupert Jones wrote: Hi there [Running Tomcat 5.0.19] I have a servlet which forwards a Boolean object resource (request.setAttribute(someBoolean, someBoolean);) on to a jsp page. As you know

Re: Re: jsp compile - default constructor

2004-03-28 Thread info
Sehr geehrte Damen und Herren Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich bearbeiten. Mit internetten Grüssen Ihr Shoppingcity.ch-Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: I know this is a stupid question

2004-03-28 Thread Donald Lee
No, it's not that big a deal really. I just noticed that there are compiled class files and a jar file under the ROOT that does not exist in TC4. I came to the conclusion either right or wrong, that it must be the compiled class that is actually being loaded not the jsp itself. Since I am

Re: Re: I know this is a stupid question

2004-03-28 Thread info
Sehr geehrte Damen und Herren Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich bearbeiten. Mit internetten Grüssen Ihr Shoppingcity.ch-Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-28 Thread tom ly
Background threads? What can be causing them to occur? If you have any suggestions on where to look that'll be great. Thanks Tom Tim Funk [EMAIL PROTECTED] wrote: Sounds like background threads doing bad things or things that the GC can't resolve as candidate for freeing. -Tim tom ly

Re: Re: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-28 Thread info
Sehr geehrte Damen und Herren Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich bearbeiten. Mit internetten Grüssen Ihr Shoppingcity.ch-Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: I know this is a stupid question

2004-03-28 Thread Donald Lee
Yes, I did clear my work directory. No diff. The index.jsp just would not change or even go away despite my deleting it. From: Antonio Fiol Bonnín [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: I know this is a stupid

Re: Re: I know this is a stupid question

2004-03-28 Thread info
Sehr geehrte Damen und Herren Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich bearbeiten. Mit internetten Grüssen Ihr Shoppingcity.ch-Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: jsp compile - default constructor

2004-03-28 Thread Rupert Jones
Tim I realise the spec says it's ok to use new, however it's a fairly restrictive implementation. In fact it means that you can only pass objects through to the JSP page that have an empty constructor. It is no longer 'all objects'. Is the performance hit of using reflection 'that much'?

mod_jk2 problem [OK]

2004-03-28 Thread Angelo Alerta
My problem was a port number... changing from 50089 to 8010 jk2 runs perfectly. There is some documentation about this? It's normal? Thanks in advance. Angelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: mod_jk2 problem [OK]

2004-03-28 Thread info
Sehr geehrte Damen und Herren Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich bearbeiten. Mit internetten Grüssen Ihr Shoppingcity.ch-Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: post data through form based authentication example?

2004-03-28 Thread Martin Alley
After further testing, I believe this is a bug specific to the JBoss environment (both 3.2.3 and 3.2.4RC1) Martin -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: 28 March 2004 15:24 To: 'Tomcat Users List' Subject: RE: post data through form based authentication

Manager Application does not remove webapp correctly

2004-03-28 Thread Just Fun 4 You
Hi, I am using Tomcat 4.1.29 and deploy/undeploy my webapp with the Tomcat Manager Application. My webapp uses Struts 1.1, SecurityFilter and Log4J. The first deploy works fine. Then, when I remove the webapp, the app folder is not totally removed from the tomcat webapps directory. The folder

Re: I know this is a stupid question

2004-03-28 Thread Bryan K. Cantwell
If you are still seeing a page that litterally does not exist, then you ARE looking at a cached version of the page. Stop Tomcat, in Internet Exploder click tools-internet options-settings-every visit to the page and set amount os disk space to the min (1MB) and ok. then click delete files under

Re: Manager Application does not remove webapp correctly

2004-03-28 Thread Parsons Technical Services
Dirk, Have you tried putting these jars in common/lib? This way they are loaded on Tomcat start-up and will be available to your app without impacting the deploy/undeploy. Doug www.parsonstechnical.com - Original Message - From: Just Fun 4 You [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: Tomcat and JApplet / Applet

2004-03-28 Thread Lars Nielsen Lind
If I place the applet as a *.jar file in the 'public' area of a web folder - is it possible to prevent any programs from scanning the Apache/Tomcat server for extraction of the files (html, jsp, class, jar)? I want to prevent access by programs to the source files - like /WEB-INF is protected -

Re: I know this is a stupid question

2004-03-28 Thread Donald Lee
Yes I did do all of this ( i may be newbie to tomcat but not that new to web/application servers). I tetsted this using both MSIE and Mozilla Firefox. I also do not experience the problem with my test.jsp that I placed in the webapps\ROOT folder. This seems to be isolated to only the

Re: tomcat4.1 for windows,please

2004-03-28 Thread yuni indrasary
--- Jon Wingfield [EMAIL PROTECTED] wrote: I just looked at the code you posted. thank's for the t ime Jon NullPointerException within line 33 of your LoginServlet int kode = Integer.parseInt(request.getParameter(kode)); This will throw an NPE if the kode parameter is not set.. I don't

Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru
Hi, My Tomcat 5.0.19 configuration is typical. I have got 2 IP addresses (202.200.xxx.xx1 and 202.200.xxx.xx2) which are pointing to 2 internal IP addresses (192.68.xxx.xx1 and 192.68.xxx.xx2) I have registered one domain name (www.mysite.com). The entire site should work only on https:// I

RE: mod_jk2 2.0.4 for Win32

2004-03-28 Thread E Cunningham
YEAH!!! Thank you. --- David Short [EMAIL PROTECTED] wrote: Thank you!!! I've been searching all over the place for the .dll. I loaded the .so and things seem to be ok so far. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 10:37

Re: Configuring Tomcat on different IP's

2004-03-28 Thread Parsons Technical Services
Uma, First don't take this wrong but I got to ask Why? Someone with more knowledge will have to chime in to say if this can be done. But if the goal is to send all request for http://www.mysite.com to https://www.mysite.com then Tomcat can do this for you. And without two IPs. For details see;

Re: JK2 and SHM

2004-03-28 Thread Nikola Milutinovic
SH Solutions wrote: Hi I get the following errors in apache2s log: [error] shm.create(): error creating shm 70014 End of file found [error] shm.create(): error creating shm /isp/apache2.shm Can someone tell me what to do ? The shm file mentioned in workers2.properties exists (created using

Re: Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru
Doug, Thanks for the reply. It is just for security reasons out network administrator has planned to do. So, I need to configure as such. I have made the settings in the code to see if the user is using http or https and block the user from using http. But there should be some way of doing

RE: How to Secure my Passwd Info from server.xml file?

2004-03-28 Thread Cathy Hui
Thanks Doug and Tim for the input. -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Saturday, March 27, 2004 11:04 AM To: Tomcat Users List Subject: Re: How to Secure my Passwd Info from server.xml file? Cathy and list, I have been running this one

RE: JK2 and SHM

2004-03-28 Thread Mladen Turk
Hi, It would be helpful if you provide at least the platform and apache version running. We did observe such behavior, but it involve deleting shm file while the httpd was running, but only on FreeBSD. The only help was to restart the OS, but then the bug could not be reproduced any more. Also

Re: Configuring Tomcat on different IP's

2004-03-28 Thread Parsons Technical Services
Uma, I think this will do what you want. For each connector defined, one for http and one for https use the address attribute to specify the IP to listen on. So in the https connector use address=192.68.xxx.xx1 and Tomcat will listen on 192.68.xxx.xx1 for only https request. On the http

Re: Tomcat and JApplet / Applet

2004-03-28 Thread Antonio Fiol Bonnín
Hi, For JSP files, it's easy: instead of the source, they will get the processed page. If you do not want your JSP to be called directly, place it in WEB-INF or establish a restriction in web.xml (can't remember at the moment how this is done, but it is not complicated). For HTML, if they

Re: Configuring Tomcat on different IP's

2004-03-28 Thread Parsons Technical Services
Clicked too fast. There is more to come... - Original Message - From: Parsons Technical Services [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 29, 2004 1:19 AM Subject: Re: Configuring Tomcat on different IP's Uma, I think this will do what you want.

Re: jsp compile - default constructor

2004-03-28 Thread Antonio Fiol Bonnín
I don't agree or disagree. But this will break many apps. Mine for example. Couldn't that be detected at jsp-java time? I believe that would not hurt that much. In fact... (not having read the spec) ...what's the whole point of creating the object at that time? IMHO, if it doesn't exist, just

Re: Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru
Doug, There will be only one site running in the server, so there wont be much problems. I never created a connector. Can you help me out with this? Any sample .xml file would be helpful. Thank you, Best Regards, Uma

RE: JK2 and SHM

2004-03-28 Thread SH Solutions
Hi It would be helpful if you provide at least the platform and apache version running. Sorry. I am using debian sarge and apache 2.0.48. Also if I understood you correctly, you've created the shm file? Why? Because it was mentioned to do so on one of the very few really helpful pages:

Re: Configuring Tomcat on different IP's

2004-03-28 Thread Parsons Technical Services
Okay to continue, In the Server element you can declare two services. In one service you would have the connector for the http and the context for your application. Note unless someone can tell me how to control which service a context is associate you will have to put your context in the

Re: Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru
I am using Tomcat 5.0.19 and using context tag within the server.xml file is not recommended. Do you still want me try with this one? Thank you, Best Regards, Uma Parsons

Re: Configuring Tomcat on different IP's

2004-03-28 Thread UmamaheswarKalluru
Doug, Can you look at this server.xml file to see if I have done everything correct? (See attached file: server.xml) Thank you, Best Regards, Uma Parsons

RE: JK2 and SHM

2004-03-28 Thread Mladen Turk
From: SH Solutions Also if I understood you correctly, you've created the shm file? Why? Because it was mentioned to do so on one of the very few really helpful pages: http://cymulacrum.net/writings/tomcat5/c831.html#JK2_BUILD_MOD_JK2 That's quite outdated. In 2.0.4 we've moved

- How to retrieve Username and Password in a Basic Authentication in Tomcat?

2004-03-28 Thread Bachler, Elisabeth (Elisabeth)
Hello, I am using the Basic Authentication in Tomcat and I would like to know if there is a way of retrieving the username and the password that have been typed. Thanks Elisabeth - To unsubscribe, e-mail: [EMAIL PROTECTED] For