RE: mod_jk2 under heavy load

2005-10-20 Thread fix
Hi We also had problems with performance using mod_jk2 under heavy load, because we are using apache2, we used mod_proxy instead and now are redirecting the requests to the default http listener. We are using (debian) linux with tomcat 4_1. Bjorn HI We are using IIS with JBoss 4.01(tomcat 5)

JAASRealm, Tomcat 5.5 getting HTTP error page 403 Access denied

2005-10-20 Thread Carsten Schiller
Hello! We are trying to implement a login/security environment using Tomcat 5.5's JAASRealm and Struts as a MVC-Framework. After Login ,which fails with error HTTP Status 403 - Access to the requested ressource has been denied, we can navigate manually to our output.jsp and use ... %=

Re: Unsubscribe DON'T WORK!

2005-10-20 Thread David Delbecq
That's fun, you can post to the mailing list, but your messages for unsuscribing are considered spams :) [EMAIL PROTECTED]: host asf.osuosl.org[140.211.166.49] said: 552 spam score (7.0) exceeded threshold [EMAIL PROTECTED] a écrit : Hi team of Tomcat Users List! All email that you have

Clustered Tomcat JSF

2005-10-20 Thread Mindaugas Zaksauskas
Hi, I was trying to make this work for more than a week, maybe there will be someone who will be able to help. Configuration: Tomcat [EMAIL PROTECTED] GNU/Linux, 2.6.13. Cluster configured accordingly to http://raibledesigns.com/tomcat/ (Apache2 + mod_jk + two Tomcat instances on the same

Using placeholders in context.xml for builds

2005-10-20 Thread Allistair Crossley
Hi, Anyone know if you can use placeholders in context files, e.g Context docBase=ROOT reloadable=${tomcat.webapp.root.reloadable} antiJARLocking=tomcat.webapp.root.antijarlocking antiResourceLocking=tomcat.webapp.root.antireslocking Currently I am using Ant to perform replacements on the

Re: Missing application web.xml, using defaults only - is this a Tomcat bug?

2005-10-20 Thread Rob Hills
Hi All, On 17 Oct 2005 at 11:23, Rob Hills wrote: I am currently using Tomcat 5.5.9 on Window XP Pro in my development environment and I believe I have finally tracked down the cause of a problem that has been plaguing me for some time. Until recently I've not had the time to do the

Re: Dynamically included jsp's

2005-10-20 Thread Tim Funk
That should work but with development=false checkInterval=900 - there might be a lag of 900 seconds before the nwe file is used. Try development=true -Tim j r wrote: All, This is perhaps a very easy question for many of you, but here it goes: What has changed from tomcat 4.1.30 to tomcat

NPE in init()

2005-10-20 Thread Zohar Amir
Hello, I'm new here, so all the normal disclaimers... I wrote a servlet and needed to read some configuration, so I overrode init(ServletConfig config). I forgot to invoke super(config) and then tried invoking getServletContext() and got a NPE. It took me some (a lot actually) time to figure

DoS on tomcat 5.5.x or false alert ?

2005-10-20 Thread David Maciejak
Hi, Seems that many requests (about 100) on a big dir listing cause catalina stop responding, in fact java takes all CPU. After that, a kill is necessary. Configuration files are the default ones. I have experienced the problem on Tomcat 5.5.0 to 5.5.11. Seems that 5.5.12 is not affected.

Re: DoS on tomcat 5.5.x or false alert ?

2005-10-20 Thread nag for
Hello.. I have expeienced similar problem but on 5.0.28. So far, we could not find the reason or solution... Any help would be much appreciated. --- David Maciejak [EMAIL PROTECTED] wrote: Hi, Seems that many requests (about 100) on a big dir listing cause catalina stop responding, in

Re: Clustered Tomcat JSF

2005-10-20 Thread Peter Rossbach
Hey, the tomcat clustering is design for sticky session is on, like the servlet spec described (SRV 7.7.2 Servlet Sepc 2.4) Clustering is implemented as backup, when a node is crashed or went shutdown. At rare special cases you can used synchron pooled mode without stickyness

PernGen memory leak with Tomcat 5.5.9

2005-10-20 Thread Félix Pedrera García
Hi! We are working on a web application using Struts 1.2.7, deployed on Tomcat 5.5.9 on Solaris SunOS 5.8 and JVM 1.5.0_04-b05 and we have the following problem: Sometimes we get an java.lang.OutOfMemoryError: PermGen space and the logs do not say anything more about the problem. We are

RE: Missing application web.xml, using defaults only - is this a Tomcat bug?

2005-10-20 Thread Caldarale, Charles R
From: Rob Hills [mailto:[EMAIL PROTECTED] Subject: Re: Missing application web.xml, using defaults only - is this a Tomcat bug? From the my reading of the Documentation, docBase and Path are mandatory attributes of the Context element for Tomcat 5.0. Check the 5.5 doc for Context:

Re: mod_jk2 under heavy load

2005-10-20 Thread j r
Steve, I use tomcat 5.5 with jvm 1.5 on linux. I allocate 1.4G of ram also. Your configs look like mine for the property files. -jr On 10/19/05, Steve Gaunt [EMAIL PROTECTED] wrote: HI We are using IIS with JBoss 4.01(tomcat 5) What verion of tomcat are you using?? We are using windows

Re: mod_jk2 under heavy load

2005-10-20 Thread nag for
But... Are you experiencing the same with Tomcat 5.5??? --- j r [EMAIL PROTECTED] wrote: Steve, I use tomcat 5.5 with jvm 1.5 on linux. I allocate 1.4G of ram also. Your configs look like mine for the property files. -jr On 10/19/05, Steve Gaunt [EMAIL PROTECTED] wrote: HI

WAR versions

2005-10-20 Thread Zohar Amir
Hello, I was wondering what is the best way to indicate a war file's version. Should the file's name indicate it (e.g., bla_1.3.2.war), and/or should the manifest in META-INF include an entry for it? Thanks, Zohar. - To

RE: Missing application web.xml, using defaults only - is this a Tomcat bug?

2005-10-20 Thread Rob Hills
Hi Chuck, On 20 Oct 2005 at 8:44, Caldarale, Charles R wrote: From: Rob Hills [mailto:[EMAIL PROTECTED] Subject: Re: Missing application web.xml, using defaults only - is this a Tomcat bug? From the my reading of the Documentation, docBase and Path are mandatory attributes of the

Unable to open Tomcat Manager?

2005-10-20 Thread 梁炳場
My tomcat-users.xml ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=role1 password=tomcat roles=role1/ user username=both

Re: WAR versions

2005-10-20 Thread David Delbecq
manifest as name of .war is used by tomcat during deployement to name the webapp :) Zohar Amir a écrit : Hello, I was wondering what is the best way to indicate a war file's version. Should the file's name indicate it (e.g., bla_1.3.2.war), and/or should the manifest in META-INF include an

Can you intercept the default Servlet ? stack servlets ? forward to specific class ?

2005-10-20 Thread Darryl L. Miles
I would like to change a sub-tree (/subdir) of my web-app so that I run every request runs through my own default servlet (for a security check) then if it drops out of the bottom I wish to forward to tomcat's default servlet. Does Servlet technology allow the stacking of servlets, so mine

RE: Can you intercept the default Servlet ? stack servlets ? forward to specific class ?

2005-10-20 Thread Brantley Hobbs
It sounds like a filter might be what you're looking for. http://java.sun.com/products/servlet/Filters.html B. -Original Message- From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 10:51 AM To: Tomcat Users List Subject: Can you intercept the default

RE: Trouble finding Datsource Resource with DataSourceRealm

2005-10-20 Thread GB Developer
I should have mentioned, I have a ContextListener that contains the following: --- initCtx = new InitialContext(); envCtx = (Context) initCtx.lookup(java:comp/env); logger.info(*** loading Data Source); try { ds = (DataSource)

FTP from Tomcat Servlet: Socket Timeouts

2005-10-20 Thread Jacob Hookom
I'm attempting to create an HTTP-FTP proxy servlet. The remote FTP server works fine and is accessible, in addition, the Java code I have (Commons Net) is able to connect fine to the remote FTP from eclipse. The problem with connection timeouts only occurs when the same code is placed in a

Re: Can you intercept the default Servlet ? stack servlets ? forward to specific class ?

2005-10-20 Thread Tim Funk
There called ServletFilters. -Tim Darryl L. Miles wrote: I would like to change a sub-tree (/subdir) of my web-app so that I run every request runs through my own default servlet (for a security check) then if it drops out of the bottom I wish to forward to tomcat's default servlet.

Re: WAR versions

2005-10-20 Thread Zohar Amir
any standard entry for that? - Original Message - From: David Delbecq [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 20, 2005 4:47 PM Subject: Re: WAR versions manifest as name of .war is used by tomcat during deployement to name the webapp

RE: Accessing resource from another context.. ..

2005-10-20 Thread Robert Graf-Waczenski
Remember that you have to configure your web context app1 to allow cross-context access. If you have not done so, the method you call below will always return null. So your context xml file should look similar to this here: Context docBase=YOUR_DOC_BASE crossContext=true/ I.e. the parameter

jakarta verisign transaction slow?

2005-10-20 Thread Tim Tyler
Jakarta experts, We are running Jakarta 5.0 on an AIX 5.1 system. We have never worked with jakarta before. We seem to have it successfully installed. We are using it to make financial transactions through Verisign's Payflowpro java programs. As far as we can tell the transactions

FTP from Tomcat Servlet: Socket Timeouts

2005-10-20 Thread Jacob Hookom
I'm attempting to create an HTTP-FTP proxy servlet. The remote FTP server works fine and is accessible, in addition, the Java code I have (Commons Net) is able to connect fine to the remote FTP from eclipse. The problem with connection timeouts only occurs when the same code is placed in a

Memory leaks solved

2005-10-20 Thread Lionel Farbos
A usefull link : http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 This could be added to the FAQ deployment ( http://tomcat.apache.org/faq/deployment.html#deployMemIncrease)... - To

ajp13.service() Error

2005-10-20 Thread MC Moisei
Anyone can tell why I get errors like this in apache2's error log ? I have tomcat in tandam with apache2 and I use the mod_jk for that purpose. The errors seems not critical but nonetheless they are errors. [Thu Oct 20 09:11:50 2005] [error] ajp13.service() ajpGetReply recoverable error 3 [Thu

Re: JAASRealm, Tomcat 5.5 getting HTTP error page 403 Access denied

2005-10-20 Thread Brad O'Hearne
I'm presently waist deep in my own JAASRealm / JAAS login module / single signon implementation myself, so I'm sorry I can't answer your question directly at the moment. But after I'm through this, I'm going to put together a FAQ and examples and put them up on a website. JAAS

SSL on Tomcat 5.5 9 - non-secure pages

2005-10-20 Thread Greg Brownell
All, I have set up tomcat 5.5.9 with SSL as follows: server.xml: !-- Define a non-SSL HTTP/1.1 Connector on port (8080 changed to 9123 -- Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false

RE: Accessing resource from another context.. ..

2005-10-20 Thread Archana Mathur
thanks Robert it works with this crossContext = true attribute. [EMAIL PROTECTED] 10/20/05 04:21pm Remember that you have to configure your web context app1 to allow cross-context access. If you have not done so, the method you call below will always return null. So your context xml file

RE: Problems with web.xml generated from RAD and from Ecplise.

2005-10-20 Thread Caldarale, Charles R
From: Developer Developer [mailto:[EMAIL PROTECTED] Subject: Re: Problems with web.xml generated from RAD and from Ecplise. As far as my problem is concered, I solved it. Tomcat (5.5) does not support 2.4 V of the servlet. That's simply not true - Tomcat 5.5.x fully supports version 2.4

Re: Problems with web.xml generated from RAD and from Ecplise.

2005-10-20 Thread Hassan Schroeder
Developer Developer wrote: As far as my problem is concered, I solved it. Tomcat (5.5) does not support 2.4 V of the servlet. That's simply not true. Whatever your RAD problem involved, that's not part of it :-) -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive

Windows, Runtime.exec() problems

2005-10-20 Thread David Teran
Hi, i am trying to call a native application from a servlet application (specifically an webservice based on axis 1.3) with the following code: Process p = Runtime.getRuntime().exec(args); StreamReader isr = new StreamReader(p.getInputStream()); // just uses separate thread

Re: Windows, Runtime.exec() problems

2005-10-20 Thread jacob hookom
You might be experiencing the same issues I just had with FTP sockets-- make sure your windows firewall is disabled. --- David Teran [EMAIL PROTECTED] wrote: Hi, i am trying to call a native application from a servlet application (specifically an webservice based on axis 1.3) with the

RE: OffTopic Big Picture Question XForms vs JFS ??

2005-10-20 Thread Bovy, Stephen J
Can anyone out there give me some opinion or perspective or web links that explain how Xforms and JFS fit together in the big picture, (I.E.) yes, they are complementary and they do fit together no, they conflict and are separate competing technologies Thanks in advance for any

context.xml file and war

2005-10-20 Thread Alexander Eller
Hello list users, after searching the documenation and the internet, I finally ask the list for help: I want to deploy an application as a war file. As I need to configure JNDI Resources (datasources), I want to use a context-specific xml file instead of modifying server.xml. But I can't get

How do I configure my own certificate realm to tomcat 5.5.9?

2005-10-20 Thread Sara Hugh
Hi all, Please help. I do not know how to configure user certificate realm in the tomcat conf/server.xml. I have been reading and searching around on internet, but I did not get any. The only information I got is for basic authentication. I wonder if tomcat accepts user certificate realm. If

Multiple SSL Virtual Hosts on Port 443 - Tomcat 5.5.12

2005-10-20 Thread Jay Thompson
I am trying to configure tomcat 5.5.12 for multiple virtual hosts on port 443. SSL works fine if I set server.xml to listen for all IPs on port 443... connection port=443 blah blah/ However, if I try to configure to listen to a specific IP address on

mod_jk tomcat

2005-10-20 Thread Andrew Marcum
We are running mod_jk-1.2.13 and apache-2.0.54-r30 on a Gentoo box running the 2.6.10 kernel and when Tomcat is restarted, if a request is made to the Tomcat URL soon after the restart (within 10 seconds), Apache responds with Service Temporarily Unavailable and will continue to so for a few

Re: Unable to open Tomcat Manager?

2005-10-20 Thread andy gordon
hi, If you are intending on using MySQL and a JDBC Realm for access control, then the Tomcat-users.xml file is not used. I am wondering if in your role table you have two rows for user name admin? if not then this could be your problem as there has to be one row for each role a specific user

Tomcat 5.5.12 -- Roles being lost and causing authorization to fail

2005-10-20 Thread Brad O'Hearne
Hey all, I just got a JAASRealm working in Tomcat, successfully authenticating against my loging module. In my login module, I am successfully storing a role principal manager inside the authenticated subject, which Tomcat logging confirms. Immediately after authentication, Tomcat then tries

RE: Unable to open Tomcat Manager?

2005-10-20 Thread Caldarale, Charles R
From: Giorgio Clavelli [mailto:[EMAIL PROTECTED] Subject: Re: Unable to open Tomcat Manager? I solved it by deleting the all Server files and re-unzip them back in the same location (possibly not required this deletion but who knows?). I seriously doubt that had anything to do with it.

RE: jakarta verisign transaction slow?

2005-10-20 Thread Caldarale, Charles R
From: Tim Tyler [mailto:[EMAIL PROTECTED] Subject: jakarta verisign transaction slow? We are running Jakarta 5.0 on an AIX 5.1 system. It's Tomcat, not Jakarta. (Jakarta is an umbrella project of the Apache Software Foundation for many Java-based products, such as Tomcat - although Tomcat

Re: Unable to open Tomcat Manager?

2005-10-20 Thread 梁炳場
Yes, Andy. I use MySQL and JDBCRealm. If tomcat-users.xml is ignored, it is fine. But I have entered records in table of user and user role. I have tried input the password in both plain text and MD5 encrypted in user table. Still not okay. 2005/10/21, Caldarale, Charles R [EMAIL PROTECTED]:

RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Caldarale, Charles R
From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Subject: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization When this statement executes, principal is not a GenericPrincipal, by merits of the request's getUserPrincipal() method executed prior to

Re: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Brad O'Hearne
Charles, I addressed this at the bottom of my email. It might be a hack that would work, but you would effectively be duplicating what the JAASRealm is doing already. The JAASRealm takes the user principal and role principal, and shoves them into a GenericPrinicipal. If you wanted to try to

RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Caldarale, Charles R
From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Subject: Re: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization If you wanted to try to game the authorization, you'd have to take your role principal, shove it into the user principal, then let the

RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Caldarale, Charles R
From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Subject: Re: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization So in the JAAS login module, what you would have to do is instantiate a user principal that is a subclass of GenericPrinicipal for your

Re: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Brad O'Hearne
Chuck, The JAASRealm takes whatever user principal you have and the role principal you have added to the subject, and creates a new GenericPrincipal class, containing both your user principal and your role principal. I do not think it populates your custom user principal with roles. The

RE: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization

2005-10-20 Thread Caldarale, Charles R
From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Subject: Re: Bug in RealmBase, JAASRealm, and/or Requestt object preventing proper role authorization The JAASRealm takes whatever user principal you have and the role principal you have added to the subject, and creates a new

session problem

2005-10-20 Thread David Won
I developed a very simple project, there is a jsp page and a servlet. In servlet: session.setAttribute(my,abc); In jsp: String mystring = (String) session.getAttribute(my); This project works perfect in one of my PC, but when I deployed it to another PC, mystring in jsp always gets a null