Problem with tomcat configuration

2005-10-05 Thread vineesh kumar
Hi all, I manged to configure https on tomcat 5.5.9 with a passord different than changeit. It's working.But i tried to configure https on port 80 (i am running tomcat as root user). but when i point the browser to the system like https://localhost/ I am getting an error indicating that connection

Re: Database connections aren't being released...

2005-10-05 Thread Nikola Milutinovic
Richard Road Runner wrote: I am not sure that this is a Tomcat issue, but we are not sure what exactly is causing our problem. We are running Tomcat 5.0.27. We are using the most recent jconn2.jar driver to connect to a Sybase SQL Anywhere Studio 7 database via JDBC. Over a period of time,

Re: custom session manager

2005-10-05 Thread Leon Rosenberg
On 10/6/05, Mark <[EMAIL PROTECTED]> wrote: > basically, I want to prevent users from logging in and creating a > second session if a valid session for that user already exists. > > For instance. > > 1. Log in to my web app, session is created > 2. browse around in my web app > 3. close browser, do

Re: Context path changes in context.xml not working

2005-10-05 Thread Caldarale, Charles R
> From: David Kerber <[EMAIL PROTECTED]> > Subject: Re: Context path changes in context.xml not working > Nobody has any suggestions about setting up a 2-level context path > *without* putting it in the server.xml (it works fine in there)? I thought I remembered something about this, and went go

Configuring https on apache tomcat 5.5.9

2005-10-05 Thread vineesh kumar
Hi all, I am trying to configure tomcat 5.5.9 with SSL support.I followed the instructions from apache site. But the problem is I can use the server ay 8080 but at 8443 it's not workin with https. I am not getting any exception.Everything is showing fine.but the port is not open.I think some one ca

Re: useBeans problem

2005-10-05 Thread Michael Pope
Ok i found two other installations of JDK on the machine. I'm going to make sure that the only JDK i have installed on here is JDK1.5.0_p2 Michael Caldarale, Charles R wrote: From: Michael Pope [mailto:[EMAIL PROTECTED] Subject: useBeans problem I'm new to JSP and still getting used to

RE: useBeans problem

2005-10-05 Thread Caldarale, Charles R
> From: Michael Pope [mailto:[EMAIL PROTECTED] > Subject: useBeans problem > > I'm new to JSP and still getting used to the environment. > I'm using FreeBSD5.4, Jakarta tomcat 5.5.9 with JDK 1.5.0_p2 > > When I try to use Beans it comes up with the error: > javax.servlet.ServletException: UserD

useBeans problem

2005-10-05 Thread Michael Pope
I'm new to JSP and still getting used to the environment. I'm using FreeBSD5.4, Jakarta tomcat 5.5.9 with JDK 1.5.0_p2 When I try to use Beans it comes up with the error: *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfi

RE: Tomcat does not honor acceptCount configuration variable

2005-10-05 Thread Wei Zhao
Any tips on this issue? -Original Message- From: Wei Zhao [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 11:22 AM To: tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Subject: Tomcat does not honor acceptCount configuration variable Hi: I am resending this question since

precompiling JSPs -- how to resolve references normally resolved by apache?

2005-10-05 Thread ut9h-3pye
Hi, I am trying to get our JSPs to be precompiled as part of our ant build process to catch all syntax errors at compile time. The problem I have run into is that we are using apache + tomcat and we have set the following rules in apache httpd. conf: JkMount /servlets/* ajp13 JkMount /jsp/

RE: Database connections aren't being released...

2005-10-05 Thread Caldarale, Charles R
> From: Richard Road Runner [mailto:[EMAIL PROTECTED] > Subject: Database connections aren't being released... > > Over a period of time, the number of connections to the > database continues to increase far beyond the possible number > of users. This is usually a problem in the webapp, in tha

RE: custom session manager

2005-10-05 Thread Caldarale, Charles R
> From: Mark [mailto:[EMAIL PROTECTED] > Subject: Re: custom session manager > > basically, I want to prevent users from logging in and creating a > second session if a valid session for that user already exists. Why? Some strange security issue? Resource consumption? An anti-DoS measure? -

Re: Context path changes in context.xml not working

2005-10-05 Thread Mark Eggers
Did you try it in: $CATALINA_HOME/conf///.xml? /mde/ --- David Kerber <[EMAIL PROTECTED]> wrote: > Nobody has any suggestions about setting up a > 2-level context path > *without* putting it in the server.xml (it works > fine in there)? > > Dave ___

Re: Context path changes in context.xml not working

2005-10-05 Thread David Kerber
Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? Dave David Kerber wrote: I guess I missed that part about paths - thanks for pointing that out. How do I rename things to get the 2-level context path? This i

[ANN] Tomcat sources moved to Subversion

2005-10-05 Thread Yoav Shapira
Hi, FYI, the Tomcat source code has been moved to Apache's Subversion (SVN) repository. The old CVS repositories are now locked down: they can still be used for checking out code, but no further work will be done in them. For details on how to work with SVN, please see http://www.apache.org/dev/v

Re: custom session manager

2005-10-05 Thread Mark
basically, I want to prevent users from logging in and creating a second session if a valid session for that user already exists. For instance. 1. Log in to my web app, session is created 2. browse around in my web app 3. close browser, do not logout 4. Start browser up again 5. try and log in 6.

Database connections aren't being released...

2005-10-05 Thread Richard Road Runner
I am not sure that this is a Tomcat issue, but we are not sure what exactly is causing our problem. We are running Tomcat 5.0.27. We are using the most recent jconn2.jar driver to connect to a Sybase SQL Anywhere Studio 7 database via JDBC. Over a period of time, the number of connections to t

isapi_redirector2.dll question

2005-10-05 Thread John MccLain
I have installed the IIS to Tomcat redirector on my windows XP pro machine and it works great. I took the same steps to install in on a win2k machine running IIS5.0, and it fails. Both machines have the same tomcat version (5.5.11) and both are configured identically. Here is the workers2.propertie

RE: Modjk and Tomcat 5.5.4 problem

2005-10-05 Thread Rick
We had an issue where it seemed like it would crash using mod_jk, the trouble was the connections were not letting go. By default, I think the timeout is infinite, so after setting the property: connectionTimeout, in the server.xml's connector descriptor as follows, The old connections would ge

end-of-lifecycle control for naming resources

2005-10-05 Thread Brian Moseley
i'm setting up an instance of javax.jcr.Repository as a naming resource like so: this implementation of Repository requires a shutdown() method to be executed when the webapp or container is being shut down, in order to clean up resources, release the lock on the repository's filesystem, e

Modjk and Tomcat 5.5.4 problem

2005-10-05 Thread John Martyniak
Has anyone had any problems with ModJK crashing the server? I haven't been able to fully debug yet, primarily because it doesn't update any logs to state there is a problem, and I can't reliably replicate the problem. I am using Apache 2.0.47, modjk 1.2.5 and tomcat 5.5.4 I think that it h

Re: Tomcat Manager, Session Statistics

2005-10-05 Thread Rainer Jung
Hi, documentation says: Display ... the number of currently active sessions that fall within ten-minute ranges of their actual timeout times. "Actual timeout times" does not mean "from now", but instead "in general". It does not relate to when the session has been used last time. Since all sessi

[5.5.9] Excessive jk INFO log msgs "connection timeout reached"

2005-10-05 Thread Rick
Anyone know the proper way to handle these messages? I get piles of them in catalina.out Oct 5, 2005 3:00:23 PM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Tried adding the following line to the default /common/classes/logging.p

Re: custom session manager

2005-10-05 Thread Leon Rosenberg
I have never seen that the getRemoteUser method you are referring to returned something userful, or just something other then null. Taken in account different browsers, proxies, internet-cafes... I don't think it's possible. On the other hand, why do you need that? As a matter of security this will

Re: custom session manager

2005-10-05 Thread Mark
This is about 90% of what I want. One of the features I want to put into my session manager is the ability to only have one open session per user. What I would like is to have a createSession method that takes in user and host. This way I could be relatively sure that the user could only have on

Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-05 Thread Jose Maria Ramirez Martinez
Hi, everybody I have the next problem: A servlet calls a non-servlet class, and this non-servlet class imports classes from a jar file, but the classloader does not find the class from the jar file (so when I call the servlet from an internet browser, I get a NoClassDefFoundException) But if a

Re: Tomcat Manager, Session Statistics

2005-10-05 Thread Jean-Pierre Pelletier
I suggest that the display of 30 - <40 minutes:1 sessions be rethink. To me it looks misleading at best. The documentation is probably wrong as well. In the example, the newly created session shouldn't be counted. Jean-Pierre Pelletier - Original Message - From: "Mark Thomas" <[EMAIL P

RE: Re: java.lang.ClassCircularityError

2005-10-05 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni > Subject: Re: java.lang.ClassCircularityError > > There seems to be a well-known Java bug (1.3.x and 1.4.x, > fixed in 1.5) that affects JBoss 3.x: > http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4699981 According to th

sharing session information across tomcats on different machines

2005-10-05 Thread Mark
Is there any possibility for tomcats on separate machines to share session information. I am looking into load balancing a few tomcats with an apache in front of them. In other words, the setup will be internet <-> Apache(s) <-> Tomcats Is it possible for this type of scenario to exist, and ses

Re: java.lang.ClassCircularityError

2005-10-05 Thread Shankar Unni
Jagadeesha T wrote: I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. There seems to be a well-known Java bug (1.3.x and 1.4.x, fixed in 1.5) that affects JBoss 3.x:

Re: Tomcat Manager, Session Statistics

2005-10-05 Thread Mark Thomas
Jean-Pierre Pelletier wrote: Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? Looks like a

Re: Deploying a webapp under two different URIs

2005-10-05 Thread Paul Singleton
Carsten Guenther wrote: I want to deploy the same webapp under two different URIs. I created two context descriptors like this: Everything seems to work fine, I just want to make sure that this is the right thing to do. Are there any unwanted consequences bu doing this? Or is th

Re: Context path changes in context.xml not working

2005-10-05 Thread David Kerber
I guess I missed that part about paths - thanks for pointing that out. How do I rename things to get the 2-level context path? This is an app I'm migrating from SilverStream to Tomcat, and I don't want to change the url my users use to connect to it. David Smith wrote: Intended behavior.

Error: Connection was refused when attempting to contact

2005-10-05 Thread André
Hi people! I'm facing this error with my Tomcat (version 4.0.6) on Debian. It seems that is everything ok: I can access the JSP and servlets examples, the tomcat docs and others without any errors. The problem occurs when I attempt to run an application called maca_ad_web.war, that is available at

Balancer for redirect to other host

2005-10-05 Thread Jury Levykin
Hi, I want use balancer for redirect all requests from mydomain.org to www.mydomain.org. I try following configuration: -- server.xml -- ... ... - Balancer application have default configuration. I receive error message after typi

Re: Context path changes in context.xml not working

2005-10-05 Thread David Smith
Intended behavior. path attributes are ignored in context xml files. If you'd like to change the name of the webapp, I'd suggest changing the name of the .war file to change it's name. If you aren't working with .war files, change the name of the webapp folder and then the name of it's context x

Re: Context path changes in context.xml not working

2005-10-05 Thread Mark Eggers
As mentioned several times on the mailing list, path is no longer read from /META-INF/context.xml. Try placing the context information in: \\.xml under %CATALINA_HOME%\conf or %CATALINA_BASE%\conf if you're using multiple Tomcats served from one binary. If you're using the defaults, then is C

Re: an advice neede for use of encodeURL method...

2005-10-05 Thread Paul Singleton
jonas skrebys wrote: Hi everyone, could anyone help me understand what I am doing wrong... I want to put a session tracking into my jsp page. I use response.encodeURL method to rewrite all url in my page : "> also I think u should not have the space in "/appName/myJSP.jsp?parameter ="

Context path changes in context.xml not working

2005-10-05 Thread David Kerber
Running Tomcat 5.5.9 on Windows 2000 server. I am trying to change the context path of an application, and it works fine when I put this into my server.xml: docBase="e:\TomcatClients\Pelican\webapps\SiteData" debug="0" reloadable="true" autoDeploy="true" unpackWARs="true" crossContex

Apache & Tomcat Virtual Host question

2005-10-05 Thread Aria Bamdad
Hi, Sorry if this has been asked before but I can't find any such example.. I have Apache talking to Tomcat and everything works fine. My situation is as follows: I am using Apache VirtualHost directive to set different document roots depending on the PORT number the request comes in. So, I am

Tomcat Manager, Session Statistics

2005-10-05 Thread Jean-Pierre Pelletier
Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? According to the documentation of Tomcat Man

RE: problem with setting path for config files

2005-10-05 Thread Sabitha
You can declare a variable in Catalina.sh with your path and append it to the classpath. -Original Message- From: Raviteja Veerla [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 05, 2005 11:26 AM To: tomcat-user@jakarta.apache.org Subject: problem with setting path for config files

RE: Problems mixin getReader and getParameter

2005-10-05 Thread Mauricio Nuñez
El mié, 05-10-2005 a las 08:46 -0400, Jean-Marc Marchand escribió: > According to the servlet's spec, the behavior of getParameter() > is undefined if you consumed the payload first through getInputStream > or getReader: > > "If the parameter data was sent in the request body, such as occurs with

Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Larry Meadors
Yeah, i just hate the " /> stuff. Messy. ;-) Larry On 10/5/05, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > Larry Meadors wrote: > > You may be able to use this instead: > > > > src="js/EdiHost.js" > > > It is nice, because you can rename your context, and not break your webapp. > > :) > > Or

Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Hassan Schroeder
Larry Meadors wrote: > You may be able to use this instead: > > src="js/EdiHost.js" > It is nice, because you can rename your context, and not break your webapp. :) Or, if you're using JSTL, use: src="" which has the added advantage of *not* being a relative path that'll only work if referen

Tomcat behind IIS -> Session timeout is ignored

2005-10-05 Thread Tobias Meyer
Hello list, I have a problem with a tomcat 5.0.28 installation connected to IIS 6.0 (Windows 2003 server) with isapi_redirect.dll Everything is working well, except for the session timeout. The timeout is set to 60 minutes in the context's web.xml file (60) which works great in many other install

Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Larry Meadors
You may be able to use this instead: src="js/EdiHost.js" IDEA will get pissed about it, but it should work (I know it does for images). It is nice, because you can rename your context, and not break your webapp. :) Larry On 10/5/05, Pigott, Paul <[EMAIL PROTECTED]> wrote: > Greetings, > > I'm

problem with setting path for config files

2005-10-05 Thread Raviteja Veerla
Hi all, I am having a problem with setting the path for config files. I am building a webservices in java using a 3rd party java API. this third party API requires few config files(xml files) to be present in the class path, so that they can read from those config files. i am developing these on a

Re: SSL question

2005-10-05 Thread Raueber Hotzenplotz
Hi Not exactly sure what you mean. Could you send me a snippet of your web.xml? That would be very nice. Thanks! Greetings from Vienna --- Yassine ELassad <[EMAIL PROTECTED]> wrote: > > hi i'm not sure if this will help you but i have hade a quite similar issue : > i have passed a full URL a

Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Darek Czarkowski
You have to specify the full path, this should not work under any of the webservers. DarekC On Wed, 2005-10-05 at 08:03, Pigott, Paul wrote: > Greetings, > > I'm having problems executing functions in an external javascript file. > It's like the .js file can't be found. I was able to do this un

Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Pigott, Paul
Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under Tomcat 4.0 but for some reason it's not working under Tomcat 5.0. The folder under "webapps" is "/EdiHost" and I've got another folder, "/js", und

manager for address-based virtual hosts?

2005-10-05 Thread Paul Singleton
Is there a version of the Manager app which handles all address-based virtual hosts in a Tomcat system? I've tried ManagerX which embraces name-based hosts but not the address-based ones which our SSL-enabled apps require... Paul Singleton -- No virus found in this outgoing message. Checked by

[Announce] Stylus Studio Offers Unprecedented Free Upgrade for Altova XMLSpy and Mapforce Users

2005-10-05 Thread Stylus Studio
[Announce] Customers who have purchased qualifying Altova XML Products, including Altova XMLSPY 2005 or Altova XMLSPY(r) 2004 (Enterprise or Professional Edition) or Mapforce(r) 2005 or Mapforce 2004 (Enterprise or Professional Edition), on or before October 1, 2005 can now obtain a free upgrade li

Add context to URI (Tomcat5/Apache2)

2005-10-05 Thread Benjamin Lerman
Hi all, I'm looking through docs and FAQs, but I cannot find how to do the following. I use Tomcat5 and Apache2. My apache server can accede the tomcat server, and things like: [uri:/manager/*] info=A scriptable management web application for the Tomcat Web Server. debug=0 in the workers2.pr

RE: Tomcat Alone or tomcat+IIS/Apache

2005-10-05 Thread Caldarale, Charles R
> From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat Alone or tomcat+IIS/Apache > > Does Tomcat support CGI bins > utalizing non-java technology? As usual, RTFM: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDEN

Re: Tomcat Alone or tomcat+IIS/Apache

2005-10-05 Thread Gregg D Bolinger
We required IIS for a CGI ecommerce solution that was required. Plug and Pay I think is the company we bought it from. I came in late on the project and haven't had a lot of time to mess with it. Does Tomcat support CGI bins utalizing non-java technology? Gregg On 9/30/05, Peddireddy Srikanth <[E

IIS - Tomcat - And Trailing /

2005-10-05 Thread Gregg D Bolinger
While IIS and Tomcat are working fine together, to access the webapp by utalizing a welcome file, a trailing / is required on the end of the URL. Is there a way to change that requirement? http://www.site.com/app/ - works http://www.site.com/app - desired to work Thanks Gregg

RE: Problems mixin getReader and getParameter

2005-10-05 Thread Jean-Marc Marchand
According to the servlet's spec, the behavior of getParameter() is undefined if you consumed the payload first through getInputStream or getReader: "If the parameter data was sent in the request body, such as occurs with an HTTP POST request, then reading the body directly via .getInputStream or

Setting up an HTTPS connection with tomcat 5.5.9

2005-10-05 Thread vineesh kumar
Hi, I am using tomcat 5.5.9 I hav o setup an https connection and i followed the configuration documentation in the apache tomcat site. But when I am using startup.sh,(yes! i am using an RHEL 4.0 host) the normal http is running but no https. How i can make it work] thanks in advance vineesh

Re: java.lang.ClassCircularityError

2005-10-05 Thread Jagadeesha T
HI, Thanks for the reply, It is being working correctly all these days. Only once I got this error.After restarting the server worked fine. Only one time I got this error. But I have not done as you mentioned. I am very curious to know why is this suddenly came which was working all these da

Re: java.lang.ClassCircularityError

2005-10-05 Thread Leon Rosenberg
Just some thoughts... if you write two classes A and B B extends A then compile then put B into deployment change B to not extend A and A to extend B, compile A put A into deployment Then you'll probably have your runtime circularity. Try to delete all your class files and recompile your applicat

Re: java.lang.ClassCircularityError

2005-10-05 Thread Andoni
Just thinking aloud here... is there anywhere in your program that you are using Java Reflection? Beyond this I am afraid I have no more ideas for now :-( Later, Andoni. - Original Message - From: Jagadeesha T To: Tomcat Users List Sent: Wednesday, October 05, 2005 9:48 AM S

limit tomcat threads lifetime

2005-10-05 Thread Marcus Franke
Hello, when I look in the manager/status page I sometimes see threads in status keep-alive that are very old, have atm some which are 70700177ms old, which is over 19 hours. These threads have no longer any connection to the apache server, which invoked them, as I restarted the responsible apa

Re: java.lang.ClassCircularityError

2005-10-05 Thread Jagadeesha T
HI Andoni, Thanks for the reply, It uses association that too unidirectional, I have seen the option in sun forum as have you explained to me. I tried to compile classes like this for just to get that error. This scenario won't compile, It gave me a error saying "cycling inheritence".

Re: java.lang.ClassCircularityError

2005-10-05 Thread Andoni
Hi Jagadish, Do you have a drawing of all your inheritance relationships? This error seems to be caused by a circular inheritance relationship i.e.: class ClassOne extends ClassTwo { ... } class ClassTwo extends ClassOne { ... } Obviously there could be many more than two classes involved so i

java.lang.ClassCircularityError

2005-10-05 Thread Jagadeesha T
Hi all, I am using Tomcat 5.0 with JBoss 3.2.6. In a very rare cases I got the error as java.lang.ClassCircularityError(myclass). Does anybody know wahy this error is coming. Thanks, Jagadish - Yahoo! for Good Click here to donate to t

No stack trace?

2005-10-05 Thread Andoni
Hello, I am currently trying to implement a system which sends me an email if the site ever has an exception (not that it ever will of course!). To this end I have inserted a simple exception into my code and when I run the code in Tomcat there is no stack trace! Either in the HTML of the JSP o