Re: session getting null

2004-04-19 Thread UmamaheswarKalluru
I have the problem only within this JSP file. The other JSP pages are working fine. This JSP talks to a Servlet and the servlet talks to another JSP file. The objects from the servlet are sent throughRequestDispatcher. I dont know why, but the same JSP works good somtimes. i.e the session

Installation Problem In Tomcat

2004-04-19 Thread birendar . waldiya
Hi, Im a new to Tomacat , i have installed it on my machine but its not starting rather im getting following message C:\Tomcat\catalina\src\binstartup Using CATALINA_BASE: C:\Tomcat\catalina\src Using CATALINA_HOME: C:\Tomcat\catalina\src Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp

Re: getContext() returns null

2004-04-19 Thread Umer Rashid
I did, but I got the error at Tomcat startup. I had written: Context path=/A docBase=A debug=0 reloadable=true crossContext=true/ in server.xml. Is there no way to access context of another servlet from root servlet/war? Regards, umer - Original Message - From: Shapira, Yoav

RE: Installation Problem In Tomcat

2004-04-19 Thread Galbayar Dorjgotov
C:\Tomcat\catalina\src\bincatalina.bat run _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 15:17 To: Tomcat Users List Subject: Installation Problem In Tomcat Hi, Im a new to Tomacat , i have installed it on my machine but its not starting

RE: Installation Problem In Tomcat

2004-04-19 Thread Thomas Chua
most prob port 8080 has already been used by tomcat cos during installation, tomcat is added as a service which will start automatically. Go to control panel - administrative tools - services and look for apache tomcat Galbayar Dorjgotov [EMAIL PROTECTED] 04/19/2004 02:28 PM Please respond

Does setBufferSize() work?

2004-04-19 Thread Graham Lea
Summary: Tomcat appears to be committing the response buffer when it is much less full (~200K) than the buffer size I have set (4MB). Using Tomcat 4.0.1 (by necessity). In my normal requests, I am generating a large amount of HTML through JSPs. Because there's a lot of different stuff to

RE: Installation Problem In Tomcat

2004-04-19 Thread birendar . waldiya
No I cant see that !! should i install it again ??? Birendar Singh Waldiya Thomas Chua [EMAIL PROTECTED] 19-04-04 12:00 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: Installation Problem In Tomcat most

Re: shared/lib again...

2004-04-19 Thread Veniamin Fichin
Julio César Aguilar wrote: I've done several tests in Windows and this is what I found. To remember my settings No CATALINA_BASE defined. Tests done with CATALINA_HOME/shared/lib. 1. As being told, I can find jars put in CATALINA_HOME/common/lib. 2. What exactly the moment when CNFE is

Re: Does setBufferSize() work?

2004-04-19 Thread Graham Lea
Graham Lea wrote: Summary: Tomcat appears to be committing the response buffer when it is much less full (~200K) than the buffer size I have set (4MB). I think I've made some headway... I conjecture that the buffer size of the ServletResponse is irrelevant to a JSP - that perhaps a JSP is only

contextInitialized called twice during webapp deployment

2004-04-19 Thread Brett Randall
Can anyone advise - what would cause a listener's contextInitialized() to be called exactly twice during the deployment of a webapp? I am using Tomcat included in the Java Web Services Developer Pack v1.3. The double call of contextInitialized() happens for both my servlets, and the example

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
Hello Seiji. What it means character is not encoded correctly? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do response.setContentType(application/pdf) and let

Tomcat is frozen

2004-04-19 Thread Cui Xiaojing-a13339
Hello All, I am using Tomcat 4.1.24 and JDK 1.4.1_02. If there is no request submitted to Tomcat to handle for some time after Tomcat is started up, then the Tomcat is frozen, it could not handle requst any more. If there is request submitted to Tomcat immediately after it is started up, then

RE: JK connector -- isapi2 -- file upload

2004-04-19 Thread Allistair Crossley
I use a workaround - my upload form uploads to port 8080 directly and then Tomcat redirects the user back to port IIS port 80 after the upload. ADC. -Original Message- From: JoAnn Lemm [mailto:[EMAIL PROTECTED] Sent: 16 April 2004 18:17 To: 'Tomcat Users List' Subject: RE: JK connector

Re: pageEncoing and contentType

2004-04-19 Thread seiji takegata
Hi Veniamin, Thank you for your reply. What it means character is not encoded correctly? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do

Content-disposition with non-us filename problem: Tomcat 4.1.24 + JK2 2.0.2 + Apache 2

2004-04-19 Thread Carlos Fernández
Hi, I'm trying to http download a file whose name has latin characteres via servlet. The servlet composes a http request with the header: Content-disposition: attachment; filename=fileNameWithLatinCharacters If the request is dispatched to the browser directly by tomcat,

Mysterious Null Pointer Exception in Login script

2004-04-19 Thread Adam Buglass
Hi, I hope this is the right list for this, it's been driving me up the wall! First things first, I'm using tomcat servlet container 4.1 with Suns J2SE 1.4.1 The problem is I have a simple login procedure whereby a user enters their id and password into a JSP which passes the information to a

Tomcat 4.1 + apache 1.3.28 + mod_rewrite

2004-04-19 Thread Kruno
Hi, does somebody knows if mod_rewrite works with tomcat integrated with apache via mod_jk ? I was searching old mails in archive to find out, but didn't see any good answer. In some documents I've read that the mod_rewrite will not work since it'll broke the servlet specification, but

jakarta-tomcat-connectors 2.0.4 binary file for windows is not available on the apache site

2004-04-19 Thread Doris . Morris
The Windows Binary JK2 zip file contains the binary Unix file, mod_jk2.so, and not mod_jk2.dll. (http://apache.mirror.positive-internet.com/jakarta/tomcat-conn ectors/jk2/binaries/win32/jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip). Where can I get the correct binary files for the

Re: Mysterious Null Pointer Exception in Login script

2004-04-19 Thread Thomas Chua
try looking for this file in your work directory login_jsp._jspService(login_jsp.java:74) Adam Buglass [EMAIL PROTECTED] 04/19/2004 05:41 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Mysterious Null

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
seiji takegata wrote: Hi Veniamin, Thank you for your reply. What it means character is not encoded correctly? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do

Re: Mysterious Null Pointer Exception in Login script

2004-04-19 Thread Adam Buglass
Thanks, but I already had a look. The line causing the error in that file is the line that calls the method: thisUser.login( userid, passwd ); Which itself appears to be causing the error, or am I missing something? The login_jsp.java file looks like this of you're interested: package

Re: Mysterious Null Pointer Exception in Login script

2004-04-19 Thread Thomas Chua
could the userid or passwd be null??? Adam Buglass [EMAIL PROTECTED] 04/19/2004 06:05 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Mysterious Null Pointer Exception in Login script Thanks, but I

Re: Mysterious Null Pointer Exception in Login script

2004-04-19 Thread Adam Buglass
I've commented out those particular error-checks for testing but with them in or out whatever I put in the same message *always* comes up. Even if I've changed the source file the error is always reported at Line 30. On Mon, 2004-04-19 at 11:27, Thomas Chua wrote: could the userid or passwd be

Re: Mysterious Null Pointer Exception in Login script

2004-04-19 Thread Adam Buglass
Interestingly - I edited out the source file in question so that it only had about 15-20 lines. It *still* claims that the exception is being thrown is at Line 30, although line 30 doesn't exist anymore. I'm stumped! :-( Adam On Mon, 2004-04-19 at 11:29, Adam Buglass wrote: I've commented out

Re: Mysterious Null Pointer Exception in Login script

2004-04-19 Thread Thomas Chua
maybe ur new file is not compiled try deleting ur work directory... the line 30 is base on the java file not the jsp file Adam Buglass [EMAIL PROTECTED] 04/19/2004 06:33 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc:

Re: Mysterious Null Pointer Exception in Login script

2004-04-19 Thread Adam Buglass
No, everything seems to be compiling correctly. It's the java file that I'm editing. The errors in the JSP seem to stem from a problem in the Java file. On Mon, 2004-04-19 at 11:47, Thomas Chua wrote: maybe ur new file is not compiled try deleting ur work directory... the line 30 is base

Tomcat , APache , Jserv

2004-04-19 Thread birendar . waldiya
Hi , can anyone tell me that 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine

RE: Tomcat , APache , Jserv

2004-04-19 Thread Ralph Einfeldt
- Tomcat is a servlet and jsp engine. - Tomcat can be used as a stand alone webserver - Apache is a webserver (with different features than tomcat, if it is better depends on the requirements) - Apache can be integrated with tomcat by mod_jk[2] (So Apache replaces tomcats own http stack)

RE: Tomcat , APache , Jserv

2004-04-19 Thread birendar . waldiya
Thanks a lot. Birendar Singh Waldiya Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Ralph Einfeldt [EMAIL PROTECTED] 19-04-04 05:44 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE:

RE: Tomcat 4 session replication in a production environment

2004-04-19 Thread Filip Hanik \(lists\)
hey there, several people are using it in production, however, it is not a supported implementation. I can upgrade the 4 version for a consulting fee, but time constraints limits me to work on T5 only at the moment. Filip -Original Message- From: Ryan Lissack [mailto:[EMAIL PROTECTED]

Re: pageEncoing and contentType

2004-04-19 Thread seiji takegata
Hi, seiji takegata wrote: Hi Veniamin, Thank you for your reply. What it means character is not encoded correctly? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader?

Re: jboss tomcat integration

2004-04-19 Thread Peter Choe
it's just that i have a lot of things configured on tomcat and i am not too familiar with jboss yet. my preference is to have things very modular for easier upgrade and switching. i guess after some time when i get use to jboss, i'll just so the integrated package. thanks for the help.

Tomcat does not start !

2004-04-19 Thread birendar . waldiya
Hi, I have installed Tomcat on my windows machine and set the CATALINA_HOME and JAVA_HOME as per installation instruction when i try to start my tomcat ser ver i get following output in the dos prompt and a new window get initiate d and that get exited instantly. can anyone tell me what can be

First posting + 5.0.19 problem

2004-04-19 Thread Matthew Clark
HI all, this is my first post to this list... I've been using Tomcat for quite some time but only lurked in the archives... However.. I am experiencing a strange problem since upgrading to 5.0.19 and wondered if a resolution has been found. In my log, I see the following error message with no

jk2 connectivity options

2004-04-19 Thread Pete Stokes
Hi. I'm assuming that JK2 over AF_UNIX socket is meant for apache / tomcat on the same box? Thx. Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the

Re: Tomcat does not start !

2004-04-19 Thread Pete Stokes
locaslhost should be localhost. if that's an email typo, look in the tomcat logs and see what it says. Pete. [EMAIL PROTECTED] wrote: Hi, I have installed Tomcat on my windows machine and set the CATALINA_HOME and JAVA_HOME as per installation instruction when i try to start my tomcat ser

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
seiji takegata wrote: Try this: %@ page contentType=application/pdf; charset=ISO-8859-1 pageEncoding=Shift_JIS % I tried. This time jasper generates: response.setContentType(application/pdf; charset=ISO-8859-1); OK, and with that you still can't get PDF right? Maybe you should

Tomcat does not start !

2004-04-19 Thread birendar . waldiya
Can it be a problem with my installation , I cant find any log file in my Tomcat folder ??? Birendar Singh Waldiya Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Pete Stokes [EMAIL PROTECTED] 19-04-04 06:28 PM Please respond to Tomcat Users List

RE:Mail Delivery (failure p00507@aah-point.com)

2004-04-19 Thread tomcat-user
This Mail has a Virus and has been blocked! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Help with handling exceptions

2004-04-19 Thread Frank Burns
Hi, Please help. What I would like to do is redirect, or forward, to another page when an exception occurs in certain JSP pages. I call some JSPs that utilize beans (via JSTL) that have getter methods which perform database access. These getter methods can generate exceptions. When they do, the

Re: jboss tomcat integration

2004-04-19 Thread Nikola Milutinovic
Peter Choe wrote: it's just that i have a lot of things configured on tomcat and i am not too familiar with jboss yet. Most of those things can be configured on JBoss, too. Note that things tied to JNDI (DataSources, etc.) are not configured from Tomcat, but from JBoss. my preference is to

Re: jk2 connectivity options

2004-04-19 Thread Nikola Milutinovic
Pete Stokes wrote: Hi. I'm assuming that JK2 over AF_UNIX socket is meant for apache / tomcat on the same box? Yes. And you'll need JK JNI module, too. (libjkjni.so or jkjni.so). Nix. - To unsubscribe, e-mail: [EMAIL

Re: jboss tomcat integration

2004-04-19 Thread Peter Choe
do you know where the corresponding configuration files for tomcat is in jboss (i.e. server.xml, tomcat-user.xml)? i have apache and jk2 set up on a different server to pass request to tomcat for web applications. i would think that this doesn't need to be changed if tomcat is running

JK/JK2 startup explanation

2004-04-19 Thread Daniel Gibby
I'm trying to better understand what options my tomcat setup has that it may not need. Here is pertinent starting information from catalina.out Can someone explain what each of these lines mean? Apr 19, 2004 5:59:13 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing,

Re: jboss tomcat integration

2004-04-19 Thread Nikola Milutinovic
Peter Choe wrote: do you know where the corresponding configuration files for tomcat is in jboss (i.e. server.xml, tomcat-user.xml)? Huh. somewehre in the JBoss config dir. And JNDI stuff is in some other file. i have apache and jk2 set up on a different server to pass request to tomcat for

Tomcat and IIS Web Server

2004-04-19 Thread Varley, Roger
Hi I have Tomcat running behind Microsofts IIS Web server. All requests go first to IIS and IIS forwards any URL specified in workers.properties to Tomcat. All standard stuff and it works well. I now need to use HTTPS to send a request to IIS which is going to be forwarded to Tomcat. My

Re: contextInitialized called twice during webapp deployment

2004-04-19 Thread Milt Epstein
On Mon, 19 Apr 2004, Brett Randall wrote: Can anyone advise - what would cause a listener's contextInitialized() to be called exactly twice during the deployment of a webapp? I am using Tomcat included in the Java Web Services Developer Pack v1.3. The double call of contextInitialized()

Re: pageEncoing and contentType

2004-04-19 Thread $BC]7A(B $B@?;J(B
On 2004.4.19, at 10:02 PM, Veniamin Fichin wrote: seiji takegata wrote: Try this: %@ page contentType=application/pdf; charset=ISO-8859-1 pageEncoding=Shift_JIS % I tried. This time jasper generates: response.setContentType(application/pdf; charset=ISO-8859-1); OK, and with that

Re: Tomcat and IIS Web Server

2004-04-19 Thread Daniel Gibby
IIS will handle the https. That means that actually the connection between IIS and tomcat is not secure, so take that into consideration as you make your decision. Varley, Roger wrote: Hi I have Tomcat running behind Microsofts IIS Web server. All requests go first to IIS and IIS forwards any

RE: Handling SOAP faults

2004-04-19 Thread Yansheng Lin
I started looking at SOAP a few months ago, that's why I said it. Anyways, what gets put in sendError(code, msg) should be available in your _custom_ error handler by calling req.getAttribute(javax.servlet.error.message). -Yan -Original Message- From: Bill Harrelson [mailto:[EMAIL

RE: Tomcat and IIS Web Server

2004-04-19 Thread Varley, Roger
IIS will handle the https. That means that actually the connection between IIS and tomcat is not secure, so take that into consideration as you make your decision. Thanks Daniel. Both the IIS server and Tomcat are located on the same server behind a firewall - so that really shouldn't

Re: Tomcat and IIS Web Server

2004-04-19 Thread Daniel Gibby
You're right. If you can trust your machine(s) and the users on them, then you should be secure enough. Varley, Roger wrote: IIS will handle the https. That means that actually the connection between IIS and tomcat is not secure, so take that into consideration as you make your decision.

AW: Tomcat 5, cross context problem

2004-04-19 Thread Bernhard Slominski
Hi, I posted the same question, and didn't get an answer, so I just did some research on my own: First of all the session is ALWAYS on application scope, this is not an Tomcat specific behaviour but a requirement of the Specification: SRV.7.3 Session Scope HttpSession objects must be scoped at

ajp13.service() ajpGetReply recoverable error 3

2004-04-19 Thread Michael Sanders
I'm using Apache 2.0.49, Tomcat 4.1.29, and mod_jk2 2.04 on Windows 2000 Server. I'm getting errors in my Apache Tomcat logs (shown below), BUT I do not get any errors shown in the browser and my servlet appears to be functioning correctly. I guess the fact that it says recoverable error means

Closed war class loading.

2004-04-19 Thread Owen Fellows
Hi, I've raised a bug online http://issues.apache.org/bugzilla/show_bug.cgi?id=28470 but though I would ask the question here as well. -- The problem i'm experiencing is this. org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/index.vm'

Re: Closed war class loading.

2004-04-19 Thread Jacob Kjome
You've got unpackWars=false. I don't use Velocity, but does it use File IO to load .vm files? If so, you will have to unpack wars to use Velocity. Pretty stupid on Velocity's part if they use File IO in Webapps. Jake Quoting Owen Fellows [EMAIL PROTECTED]: Hi, I've raised a bug online

Re: ajp13.service() ajpGetReply recoverable error 3

2004-04-19 Thread Matt Woodings
hi I get the exact same thing with the same configuration and I have been trawling the news groups and web for answers but to no avail, so I am with you on getting a definitive answer on this log file output. Matt - Original Message - From: Michael Sanders [EMAIL PROTECTED] To: [EMAIL

setting cookies in servlet and read inside the JSP

2004-04-19 Thread Emerson Cargnin
How do I read a cookie (inside a JSP) that I created inside a servlet. It looks that it has different path properties and so when I'm inside the JSP it can't read the cookie... -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal

Re: JK/JK2 startup explanation

2004-04-19 Thread Nikola Milutinovic
Daniel Gibby wrote: I'm especially wondering if I need to jave apr, JK and JK2 running. I was trying to only use JK2 with unixSockets... maybe that isn't what is actually happening, eh? Can I disable JNI? How do I use just JK or JK2? JNI is used mainly in two situations: starting Tomcat from

hey you

2004-04-19 Thread craigmcc
Norton AntiVirus gelöscht1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Closed war class loading.

2004-04-19 Thread Owen Fellows
Hi, Cheers for that, I've unpacked the war now and it works fine. Is there any way to redeploy an unpacked war with undeploying and then redeploying. It doesn't take that long to redeploy but it is a bit ennoying. Cheers, Owen On Mon, 19 Apr 2004 15:15:57 +, Jacob Kjome [EMAIL PROTECTED]

Re: Closed war class loading.

2004-04-19 Thread Jacob Kjome
Quoting Owen Fellows [EMAIL PROTECTED]: Hi, Cheers for that, I've unpacked the war now and it works fine. Is there any way to redeploy an unpacked war with undeploying and then redeploying. It doesn't take that long to redeploy but it is a bit ennoying. Upgrade to Tomcat-5. It

Need help building JK/JK2 for Netscape (Sun ONE) on Solaris

2004-04-19 Thread Rob Cash
I'm having trouble building JK/JK2 for Netscape on Solaris. Has anyone had any luck with this? I got the sources via CVS (using JK_1_2_5 tag), made build.properties file, then ran 'ant native'. Ant fails on the 'so' task because it tried to call libtool, which wants to invoke 'cc'. I have gcc on

RE: Need help building JK/JK2 for Netscape (Sun ONE) on Solaris

2004-04-19 Thread Benjamin Armintor
AFAIK, you won't be able to get an NSAPI connector for JK2. We're using JK 1.2.5 and Netscape, but I built it with good ol' make. What were the actual error messages you got? Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562

Offtopic: Re: Closed war class loading.

2004-04-19 Thread Julio César Aguilar
Jacob Kjome wrote: Upgrade to Tomcat-5. It explodes war files by default...even on a Tomcat manager deploy. I would still rethink using a technology that violates the J2EE by requriing access to the file sytem in order to work properly. Just a claryfing note: Velocity is not intended to be

RE: Closed war class loading.

2004-04-19 Thread Mike Curwen
Velocity does not violate J2EE by *requiring* access to the file system, so everyone calm down. ;) ClasspathResourceLoader : To use this loader effectively, all you must do is jar your templates, and put that jar into the WEB-INF/lib directory of your webapp From:

Re: Closed war class loading.

2004-04-19 Thread Owen Fellows
Hi, I should have read my email before sending it as i doesn't make much sense. :-) I'm using Tomcat-5. I've set unpackwars to True. I've deployed my war through the manager interface. But as far as i can see the only way to redeploy the war is to undeploy it and the redeploy it again. (I

RE: Help with handling exceptions

2004-04-19 Thread Yansheng Lin
Hi, First of all, you only defined a custom error page for one type of exception, i.e., ServletException. So if you only want to display the exception message, you would want to wrap whatever the exception was in a ServletException and rethrow it. Secondly, by calling c:catch ..., you

emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
We reloaded the drives on our web server yesterday, but Tomcat keeps choking, and we think it's because not enough memory is allocated, and we're trying to get into the admin web application, but it keeps saying our password isn't correct. Even though I set a password during the install, there

RE: Connecting the HTTP Server and Tomcat

2004-04-19 Thread Yang Xiao
Hi, The jsvc utility in commons-daemon is just for this purpose, it allows you to specify a user TC should run as, and if you read the INSTALL.txt and Tomcat5.sh under native/ you will know it's very easy to change the startup method. Yang -Original Message- From: SH Solutions

Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question

2004-04-19 Thread John H
- Original Message - From: Jeanfrancois Arcand [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 16, 2004 5:52 PM Subject: Re: Extending GenericPrincipal/RealmBase: Essentially a classloader question Have you tried the privileged attribute in context.xml

Re: emergency - need to get into admin app

2004-04-19 Thread Rob Cash
I believe that tomcat-users.xml is only read when Tomcat is started. So if you modified the file after you started Tomcat, it won't help. You'd need to restart Tomcat after modifying the file. This is just my best guess, not a definitive fact. Good luck. Cheers, Rob Stephen Charles Huey [EMAIL

RE: emergency - need to get into admin app

2004-04-19 Thread Mike Curwen
Is there anything in the system.out or system.err log files? (catalina.out on unix, stderr/stdout on windows). What about context-specific log files? you say it's choking, but you also say it says wrong password, so *something* is responding? Do you get the default tomcat welcome page? (the one

RE: Virtual Host, Locations and Mod_JK2

2004-04-19 Thread Angus Mezick
Use the uri property in workers2.properties instead of using JkUriSet. I do it that way and have no such problems: [uri:www.guidestar.org/*.jsp] group=lbWWW [uri:www.SITENAME.org/*.adp] group=lbWWW [uri:www.SITENAME.org/*.inc] group=lbWWW [uri:www.SITENAME.org/servlet/*] group=lbWWW

Re: emergency - need to get into admin app

2004-04-19 Thread Parsons Technical Services
NOTE: This is an emergency fix only and will leave you wide open. Edit the admin web.xml to allow no authentication. DO NOT LEAVE IT THIS WAY. What do you logs say? What does the server.xml look like? Please post it. Doug - Original Message - From: Stephen Charles Huey [EMAIL

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
Thanks, but we are restarting after every modification. And this is Tomcat 4, by the way. Our website is dead right now. If anybody has a clue why the password I'm putting in there isn't being accepted, please let me know! - Original message - From: Rob Cash [EMAIL PROTECTED] To:

RE: Handling SOAP faults

2004-04-19 Thread Bill Harrelson
Hi Yan, I think I may finally see what you are suggesting: put the SOAPfault into the message of the sendError(int, string), and use the custom error-handler to write it to the errorStream after getting it from the getAttribute. Hmmm, well, that is a bit more elegant then using the session

How to hide files by extension under Tomcat 5?

2004-04-19 Thread Stephen Bacon
Hello, I've got Tomcat 5 running standalone. Unfortunately I cannot discover how to prevent non-JSP files from being served. Specifically, I've got code sections (which aren't really appropriate to be written as beans) which I jsp:include into several pages. I end up giving all of these the

Tomcat4x Development Process

2004-04-19 Thread Duncan Krebs
Hi, Since I have started developing with Tomcat4x I have noticed some annoying trends in my development process and am convinced there has to be a better way. I am finding that I always have to restart tomcat so updated java classes getting compiled into the web-inf folder get loaded. I have

Re: How to hide files by extension under Tomcat 5?

2004-04-19 Thread Emerson Cargnin
You can hide all this files inside the WEB-INF directory. It will be included when called by a JSP or servlet, but not served directly... Stephen Bacon wrote: Hello, I've got Tomcat 5 running standalone. Unfortunately I cannot discover how to prevent non-JSP files from being served.

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
Ok, I took out the security tags and I can get in there. Is the admin app where I set memory allocations in Tomcat??? I'm looking at adding an Environment Entry or something, but I don't know what to do with this! Our total Java memory is only like 60 MB and we need at least a gig! Thanks...

Use of RemoteAddrValve class to restrict client access to Web Application deployed in Embedded Tomcat

2004-04-19 Thread Chirayu Shah
Hello, I am trying to set request filter at host level programatticaly for Embedded Tomcat. It doesn't seem like working. Anyone can point out what i am doing wrong or what i am supposed to do. Here, is the Code Snippet that i am using: host = embedded.createHost(localhost, getPath() +

Re: emergency - need to get into admin app

2004-04-19 Thread Parsons Technical Services
How are you starting tomcat? What OS are you running? - Original Message - From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:28 PM Subject: Re: emergency - need to get into admin app Ok, I took out the security tags

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
I see something in catalina.bat about a JAVA_OPTS environment variable. Do I need to set this in Windows? When I run java -X on the command line, I see something about a -Xms option for setting the heap size. Do I just type -Xms some number in the Windows environment variable or what? -

Re: emergency - need to get into admin app

2004-04-19 Thread Peter Davison
Hi Stephen. You need to modify the CATALINA_OPTS environment variable: To give yourself a Gig of memory, try: export CATALINA_OPTS=-Xmx1024m How you set this variable will depend on your environment/os etc. Hope that helps. Pete. Quoting Stephen Charles Huey [EMAIL PROTECTED]: Ok, I took

Re: How to hide files by extension under Tomcat 5?

2004-04-19 Thread Stephen Bacon
Good idea. Unfortunately, I'd like to keep my file org as-is (it'd be a bit strange to put all sorts of resources in a directory struture starting with WEB-INF). Plus I'm not sure it's a good thing to rely on a product-specific feature (WEB-INF is hidden by Tomcat) for this. What happens if in

Re: shared/lib again...

2004-04-19 Thread Julio César Aguilar
Sorry about not being clear enough last time. Let's see... The original problem was with a Filter, which was started at deployment. Then to my opinion this is due to Filter initialization (not run-time usage) as implemented in Tomcat. That was my first thought when you brought up the

Re: How to hide files by extension under Tomcat 5?

2004-04-19 Thread Parsons Technical Services
Steve, Since you don't like that you might try this. Set security-constraints for all the file types you want to protect. Then do NOT set an auth-constraint for it. Thus no one will be able to access it from outside. Have not done this myself, but read it in the docs somewhere. Doug

Re: Classpath problems with tomcat on Linux 9

2004-04-19 Thread Andy Wadsworth
Still no luck. I'm basically trying to do exactly the same thing that the jsp-examples/checkbox is doing and I can't get Tomcat to recognize my UserData.class file. I've tried placing my UserData.class file in every location possible, and no luck. My next step will be to downgrade to Tomcat 4 so

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Bacon
In general, you only use it to pass options that you might need. For example the X flag controls memory, so if your app requires it you can instruct tomcat to launch JVMs with a higher max (i.e. if it seems to be running out of memory). As an example I use: -Xmx128m to set the max at 128MB (i

Re: Classpath problems with tomcat on Linux 9

2004-04-19 Thread Stephen Bacon
Hi Andy, I'm porting over to TC5 and I've not had any problems with it finding my classes, *BUT* I don't put any classes into the base directory itself, but below that. So for example, my UserBean class is in myapp/WEB-INF/classes/AccessCtrl and it is part of the package AccessCtrl (i.e.

Best way to handle JNDI exceptions

2004-04-19 Thread Yansheng Lin
Hi, I got this question while thinking whether to implement Business Delegate for a small web application. If I implemented a small Delegate, then I would be able to catch ?all? the service failure inside of the Delegate. But I got a feeling it may be an overkill since the application is pretty

Re: auto generation of mod_jk.conf in tomcat 5

2004-04-19 Thread Emerson Cargnin
the strange thing is that a virtualhost tag is generated and no rule is created... if I take those out I can see the rules being created How do I configure the autogeneration of the conf file not put the virtualhost tag??? Other question: the loadmodule, log and worker files and log level

AccessControlException

2004-04-19 Thread Juan José García Lau
Hi, I'm having problems to make jsp to work. The code of the page call a bean named myMoneda d:/jakarta-tomcat-5.0.19/webapps/tarjetas/test.jsp [EMAIL PROTECTED] contentType=text/html% [EMAIL PROTECTED] errorPage=errorJSP.jsp% [EMAIL PROTECTED] import=Def.*% [EMAIL PROTECTED] import=Interfaz.*%

Re: Detecting Sessions already existent at Tomcat Startup?

2004-04-19 Thread Andreas Schildbach
Hello Mark, you are right, sorry for misinterpreting the spec. What I am now doing is, for each session I set an instance of a custom HttpSessionActivationListener implementation as an attribute. This works, at least if the Listener is implemented as a normal (outer) class. If I implement it

RE: Classpath problems with tomcat on Linux 9

2004-04-19 Thread Yang Xiao
Hi, You need the %@ page import=package % directive to tell it where to look for it. Yang -Original Message- From: Andy Wadsworth [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 3:11 PM To: Tomcat Users List Subject: Re: Classpath problems with tomcat on Linux 9 Still no luck.

RE: AccessControlException

2004-04-19 Thread Benjamin Armintor
I don't think that's going to be the codeBase for your compiled JSP classes. You shouldn't need to put that AllPermission block in at all to get a file from WEB-INF/classes: Use servletContext.getResource(). Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas

Re: Detecting Sessions already existent at Tomcat Startup?

2004-04-19 Thread Andreas Schildbach
Hello again, I solved the inner class issue. Had to declare the inner class as static. Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat performance issue?

2004-04-19 Thread Daniel Gibby
I'm sending my JVM stack trace to see if any of you are better at reading it than I am. ;-) I'm guessing that you can somehow tell by looking at the stack trace whether the connections between apache and tomcat are somehow being held onto or locked waiting for something and not released.

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Charles Huey
Thanks to everyone who wrote back with suggestions. We had a rough time, and right now we're up because we slapped the old drives back in. After doing that, I found CATALINA_OPTS in the Environment Variables, and it had the -Xms and -Xmx flags after the -server one, but I called the guy who

  1   2   >