Problem stopping 5.0.28 Tomcat on Solaris

2005-07-05 Thread Stuart
Hi, I am running into a situation when running shutdown.sh fails to shutdown tomcat on Solaris. The scenario is as follows: (1) I am running out of my own CATALINA_BASE directory on Solaris. (2) After starting and running for some time I edit the context xml (I'm not sure this

Implementing my own realm

2005-07-05 Thread Laurent FALLET
Hi everybody, I'm planning to write my own realm, because the JDBCRealm doesn't suit me very well. I would like to implement something else which only needs 3 more lines. The problem is that I don't know if I have to: - add this new realm in Tomcat sources (create my own java file) - then

Re: plugin-like structure

2005-07-05 Thread Xavier Méhaut
Thanks Laurent... I've forgotten to say that in my example org.toto.ui depends on org.toto.domain and org.toto.common, ie for performing an action, ui could/will use classes or ressources from domain or common... ideally I would like to have the same Application name (MyAppli) as root for

apache and tomcat

2005-07-05 Thread ganesan malairaja
hi guys .. i am confused now.. i need help undeerstanding apache and tomcat .. what purpose each serve and how to link both them ... i want to know how to link html and applets in tomcat htdoc folder to jsp codes in tomcat webapps folder .. thank you guys.. i am new apache and

Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-05 Thread Daniel Fanjul
No, you have to put each application log4j.xml in each WEB-INF/classes or WEB-INF/lib (in a jar) The first time you declare a Logger in your app, log4j.xml is searched in the ClassLoader; but, I don´t know why (maybe some log4j initialization static code), some log4j class is loaded by the

Web Server Authentication on Tomcat (5.5)

2005-07-05 Thread marcus . schmidke
Title: Nachricht Hello, I want to use Tomcat together with IIS to let IIS do the Windows based authentication. I've managed to install and configure isapi_redirect-1.2.13, and everything seems to work. When I call "request.getUserPrincipal()" in my servlet, I get a principal object with the

Re: Implementing my own realm

2005-07-05 Thread Jon Wingfield
We've implemented our own realm. The step's are quite easy: 1) Implement your custom Realm, we subclassed RealmBase. 2) compile your Realm class with catalina.jar in the classpath 3) jar up your Realm class and any helper classes 4) deploy realm jar to server/lib The only thing you really need

Re: apache and tomcat

2005-07-05 Thread Alan Chandler
ganesan malairaja writes: hi guys .. i am confused now.. i need help undeerstanding apache and tomcat .. what purpose each serve and how to link both them ... Apache is a web server - with lots of usage and good experience with in terms of security facing the internet. You can get

Configuration Tomcat after upgrading Java SDK

2005-07-05 Thread Lily Widiawaty Tan
Hi all I have upgraded my java sdk and jre to j2sdk1.4.2_08 from j2sdk1.4.1_01. How do I configure Tomcat 4.1.30 so that it runs from the j2sdk1.4.2_08 instead of the old copy? Do I have to reinstall Tomcat or is there a configuration that I can change? I have changed my JAVA_HOME

RE: Webapp security by IP range

2005-07-05 Thread Cope, Jared
Thanks. I was hoping that was not going to be the answer though. I thought about doing it this way, but wanted to avoid the overhead of managing two application directories. Maybe it's unavoidable in tomcat. Jared. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent:

deny directory listing in tomcat

2005-07-05 Thread vishwam
hi, iam using tomcat5.0, I have developed a web application on my server and I want to deny directory listing in tomcat so that if any one types even http://localhost:8080 it should deny the listings. I tried by changing in web.xml listings falselistings tag, but by this method I can prevent

Re: deny directory listing in tomcat

2005-07-05 Thread Antony Paul
On 7/5/05, vishwam [EMAIL PROTECTED] wrote: hi, iam using tomcat5.0, I have developed a web application on my server and I want to deny directory listing in tomcat so that if any one types even http://localhost:8080 it should deny the listings. I tried by changing in web.xml listings

RE: deny directory listing in tomcat

2005-07-05 Thread Raghupathy,Gurumoorthy
Change in tomcat\conf\web.xml servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param

Connection Pool

2005-07-05 Thread Sapales
Hi: I´m working with Tomcat4 and a Connection Pool for accesing MySQL. But, when I use the following code in a jsp: %@ page import =java.sql.*, javax.sql.* % %@ page import =javax.naming.InitialContext, javax.naming.Context % htmlbody % Context mInitCtx = null; DataSource mDs =

Silent runtime replace of a class

2005-07-05 Thread Gal Robert
Hi, we have a new user requriement: to be able to modifiy the application without affecting user work. Is there any way to achieve this under tomcat? Currently we're building war file. Is there any way to replace a class (maybe jsp class) runtime, without restarting the tomcat? any information

Re: Silent runtime replace of a class

2005-07-05 Thread delbd
This is tricky. Concerning jsp, you can simply replace old jsp with new one, they'll get recompiled. But what do you mean by replacing a class without affecting user work? This is practically impossible to do, because you can't change the class of an existing instance, all you can do is load

Re: Silent runtime replace of a class

2005-07-05 Thread Sriram N
--- Gal Robert [EMAIL PROTECTED] wrote: Hi, we have a new user requriement: to be able to modifiy the application without affecting user work. Is there any way to achieve this under tomcat? Currently we're building war file. Is there any way to replace a class (maybe jsp class) runtime,

RE: Silent runtime replace of a class

2005-07-05 Thread Peter Crowther
From: Sriram N [mailto:[EMAIL PROTECTED] --- Gal Robert [EMAIL PROTECTED] wrote: we have a new user requriement: to be able to modifiy the application without affecting user work. That's a very broad requirement, and may not be achievable in its full form. Does this mean that users must

non-web app in tomcat

2005-07-05 Thread philippelonchampt
Hello all, I need an advice : I have to develop an application which will be called by other apps in the same server -- all the callers are wep apps stored in a tomcat instance. This application is not a web app, but it has to access the same resources (database), so I thought that the easiest

RE: Silent runtime replace of a class

2005-07-05 Thread Sriram N
--- Peter Crowther [EMAIL PROTECTED] wrote: From: Sriram N [mailto:[EMAIL PROTECTED] --- Gal Robert [EMAIL PROTECTED] wrote: we have a new user requriement: to be able to modifiy the application without affecting user work. snip/ You'll could place the context.xml in either the

Re: Automatic Realm login?

2005-07-05 Thread Mark Winslow
I'm using 5.5.9. Do you need to set a session timeout variable? I imagine I'll run into login timeouts as well, but my quick signup page seems to work with the referral for now. There's also this issue of simple redirects putting passwords into the log files which is insecure. I'm looking for

Re: Automatic Realm login?

2005-07-05 Thread Chirag
I don't think this is a session issue but I think they must be inserting something extra rather than username and password so that they can come to know that the persons have comed from the login screen But I can't figure out the way out As I have done much part of the work in Tomcat 5.5.2 and

Re: Embedded example

2005-07-05 Thread sandeep arshanapally
You can google for tomcat embedded and should be able to find examples. Most of the setup for embedded is same as in 4.1 except for setting some properties... Sandeep On 7/2/05, Steffen Heil [EMAIL PROTECTED] wrote: Hi Can someone tell me where to find an example with tomcat 5.5 embedded?

Re: Silent runtime replace of a class

2005-07-05 Thread Gal Robert
I'll give you the user- requirement, to understand better the problem: pre-defined subsystems or modules should be upgraded or patched without interfering/interrupting system usage (defined by the supplier). Often happens, that we must correct a little error in business logic. In these cases

[OT] Relating source code to class code

2005-07-05 Thread Ciaran Hanley
Hi, Is there a way to build a webapp so that once deployed when an error is thrown that the stack trace will include the line in the java code which caused the error? Instead of (Unknown Source) coming up, have for example (LoginAction.java:115) as it does with other classes. Anybody know the

Intermittent 500 Error

2005-07-05 Thread uttam.g.dubal
Hello All I am running Apache 2.0.52 with Tomcat 5.5.9. I am running a virtualhost in this setup (which has protected resources with RSA ClearTrust). After logging in, the user is forwarded to a legal page where he/she is prompted to agree to terms and conditions (tc). However, there is an

Re: [OT] Relating source code to class code

2005-07-05 Thread Larry Meadors
Wehn you compile, you have to included debugging information. This can be done with the javac task in ant (debug=true), or on the commnad line for javac using the -g option. Larry On 7/5/05, Ciaran Hanley [EMAIL PROTECTED] wrote: Hi, Is there a way to build a webapp so that once

RE: [OT] Relating source code to class code

2005-07-05 Thread Ciaran Hanley
That easy! Thanks :) -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: 05 July 2005 18:24 To: Tomcat Users List Subject: Re: [OT] Relating source code to class code Wehn you compile, you have to included debugging information. This can be done with the javac task

Map network drive

2005-07-05 Thread Johnnie Chang
Hi, We used to use an older version of Tomcat. The old version did not run as a service. On the old version, we have an Java aplication that needs to access mapped network drives. With the new Tomcat 5.x, the Tomcat is ran as a service, and I do not know how to map a network drive in this

obscure tomcat 5.5 text file display bug?

2005-07-05 Thread Woodchuck
hihi all, i'm having an obscure problem relating to the display of regular plain .txt files hosted withing Tomcat. on Tomcat 4.1 links to .txt files would diplay within the browser and the text files would preserve the text formatting (ie. spaces) *because* the text file contents would be

Re: Connection Pool

2005-07-05 Thread Elaine
should this be: CONCUR_UPDATEABLE? Sapales wrote: Hi: I´m working with Tomcat4 and a Connection Pool for accesing MySQL. But, when I use the following code in a jsp: %@ page import =java.sql.*, javax.sql.* % %@ page import =javax.naming.InitialContext, javax.naming.Context % htmlbody %

RE: obscure tomcat 5.5 text file display bug?

2005-07-05 Thread GB Developer
(i suspect it's the way Tomcat is telling the browser what type of file it's sending back... some kind of header info.. but i'm not sure how to go about debugging this) thx in advance, woodchuck I like using FireFox for debugging this type of thing, and the liveheaders

Re: Map network drive

2005-07-05 Thread David F. Newman
If I were you I would use UNC paths if possible instead of relying on mapped drives. However, having said that, you should be able to setup the service to run as a particular user. I believe it should be a domain user. Then log into the server using that domain login and map the drive

Re: Silent runtime replace of a class

2005-07-05 Thread Charles Meier
This article may help... http://www.fawcette.com/javapro/2002_09/magazine/columns/proshop/ Gal Robert wrote: Hi, we have a new user requriement: to be able to modifiy the application without affecting user work. Is there any way to achieve this under tomcat? Currently we're building war

RE: obscure tomcat 5.5 text file display bug?

2005-07-05 Thread Woodchuck
thanks GB Developer! i will definitely give this a try! woodchuck --- GB Developer [EMAIL PROTECTED] wrote: (i suspect it's the way Tomcat is telling the browser what type of file it's sending back... some kind of header info.. but i'm not sure how to go about

[OT] UK tomcat hosting recommendations?

2005-07-05 Thread Mark Benussi
Having some fun with my current ISP and was wondering if any of you have UK tomcat recommendations? My technical needs are pretty small; just tomcat 5.0+ installed with mysql 4.0+ etc. My main non-technical requirement is a good UK based support, and any recommendations would be

RE: obscure tomcat 5.5 text file display bug?

2005-07-05 Thread Caldarale, Charles R
From: Woodchuck [mailto:[EMAIL PROTECTED] Subject: obscure tomcat 5.5 text file display bug? however in Tomcat 5.5 links to the same .txt files would also display within the browser, but the formatting is stripped because the text file contents are being displayed in a non-fixed width font

RE: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]

2005-07-05 Thread Woodchuck
GB Developer, thanks so much for your suggestion, Live HTTP Headers is awesome! and my hunch was correct. the problem is Tomcat 5.5 does not produce any Content-Type information at all when serving back the .txt file. here is the relevant header info from Tomcat 4.1: HTTP/1.x 200 OK Etag:

RE: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]

2005-07-05 Thread Caldarale, Charles R
From: Woodchuck [mailto:[EMAIL PROTECTED] Subject: RE: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?] here is the relevant header info from Tomcat 4.1: HTTP/1.x 200 OK Etag: W/1706-1120587147968 Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT Content-Type: text/plain

RE: Map network drive

2005-07-05 Thread Johnnie Chang
Hi, We have a lot of documents linked using the mapped drive. To switched to UNC will require me to change all the links. I had already tried what you suggested 2 weeks ago. It didn't work. It didn't work even on a clean installation. The mapped drive seem to work on our production server,