Filter problems

2003-02-08 Thread Manavendra Gupta
Hi, I have a simple security filter for authentication used for a custom MVC framework application. Everything works properly, however, if a large file is uploaded (about 17MB), I get the error listed below. As you can see the root cause is RTIFilter.java line 67. This line has the following

compilation a prodject when tomcat is starting

2003-02-08 Thread Piotr Stanek
Hi, I compile my prodject manualy, remove soureces and everything is running OK. But the question is: Is it possible to compile the whole prodject when tomcat is starting and remove prodject's source after compilation? I use tomcat 4.1.18 Piotr

Re: Connecting PostgreSQL with JNDI

2003-02-08 Thread Sean Dockery
In your web application's Context, you need a ResourceLink to specify that the global resource is accessible in a given context. Look at the example at the bottom of the page at... http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html#Resource %20Links -- Sean Dockery [EMAIL

Re: How to avoid error-reports? -Want

2003-02-08 Thread Sean Dockery
What do you mean when you say, Tomcat creates an error report? What exactly do you see? Morten Mortensen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Is it possible to avoid error reports? I have an application, where in some cases it is appropriate

Re: setting CATALINA_HOME

2003-02-08 Thread Bill Barker
Actually, the recommended way to go is to create $CATALINA_HOME/bin/setenv.sh (or %CATALINA_HOME%\bin\setenv.bat on Windows). In that file, you should set things like CATALINA_HOME, and JAVA_HOME if they are not already set at the O/S level. Turner, John [EMAIL PROTECTED] wrote in message

Re: Tomcat does not access sub-directories.

2003-02-08 Thread Hans Deragon
Tim Moore wrote: Is the Tomcat process running with the appropriate permissions to read and execute the directory? ;-) Permissions are fine. Apache can access all the sub-directories, not Tomcat. I run Tomcat as root (home project, so do not bother lecturing me. :)) so permissions should

Re: Tomcat does not access sub-directories.

2003-02-08 Thread Hans Deragon
Hans Deragon wrote: Greetings. I am baffled. I have setup the following context: Context path= docBase=deragon debug=0/ Now, I have the following directory: ..jakarta-tomcat/webapps/deragon/generic Tomcat renders any file under the deragon directory. For instance,

Tomcat 4.1.18 and Sub Domain Name access

2003-02-08 Thread Etienne
Hi, I made a migration from Tomcat 4.0.3 to Tomcat 4.1.18. With Tomcat 4.0.3 I never had problem with accessing sub domain name. I could load a page using sub1.mydomaine.com or sub2.mydomaine.com. Now only mydomaine.com works, the web page/servlet is never reach. Is there a sub-domain name

Re: include .inc file extension problem

2003-02-08 Thread Tim Funk
Depending on the tomcat version, this might not be not needed. The exception occurs because unknown file extensions used by includes attempt to grab the ServletOutput stream. In a JSP page, a Writer is already being used. Therefore bad things happened. A patch was put in to (4.1.11 and 4.0.6)

Using JasperReports with Tomcat's Xerces : NoClassDefFound exception

2003-02-08 Thread Arun Jayaprakash
Hello to all, I am facing a strange problem while using JasperReports Xerces with Tomcat v4.1.12. I found that xercesImpl.jar and xmlParserAPIs.jar were present in the common\endorsed folder and assumed that they would be loaded for use with my application. The application that I am

DataSourceRealm, Exception performing authentication ?

2003-02-08 Thread Uros Kotnik
Here is the problem, I defined DataSource in Server.xml in Context for my app like this : Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ and that connection is working OK from my test servlet like this : Context initCtx = new InitialContext(); Context

How to set a custom error page? Seem easy? Not really

2003-02-08 Thread Vy Ho
The question seems obvious. Read the fine manual right? No. I tried it. You then say, just put ... in the web.xml page. Yes, I did it. It works for the global web.xml, but not for the application level web.xml. I must have done something wrong or the application level does not allow

Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Vy Ho
I am not sure what you mean, but under Unix, I created a symbolic link for a directory and it works just like a real directory. I haven't test with symbolic link for file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Mike Johnson
hi, just add allowLinks=true to your context config, like: Context path=/dealernet docBase=dealernet debug=0 reloadable=true allowLinking=true / On Sat, 2003-02-08 at 06:58, Hans Deragon wrote: Greetings. Simple question: How to configure Tomcat to follow symbolic links? I have

Re: Connecting PostgreSQL with JNDI

2003-02-08 Thread Tom Sheehan
Thanks Sean, You were right. I did not have that covered. And, now the document you refer to makes much more sense to me. However, after a tomcat restart, hitting the .jsp still fails. I'm fairly convinced I've messed up server.xml. I think I'll go back and build up server.xml from the

Help: JNI, mod_jk2 , Apache 2 not working

2003-02-08 Thread Rahul Bhargava
Keep getting the error from mod_jk2 about Error connecting to tomcat 12 Using Apache 2.0.44 with Tomcat 4.1.18 on Win2K. Checked my config 1000 times everything looks good. Is this a know issue ? Is there ant doc/reference on workers2.properties ? Attached are my config files. [Sat Feb

Help: JNI, mod_jk2 , Apache 2 not working

2003-02-08 Thread Rahul Bhargava
Re-posting with the relevant files attached. Keep getting the error from mod_jk2 about Error connecting to tomcat 12. Using Apache 2.0.44 with Tomcat 4.1.18 on Win2K. Checked my config 1000 times everything looks good. Is this a know issue ? Is there ant doc/reference on

form based auth problem when disallowing cookies

2003-02-08 Thread mech
Hi, I'm using Tomcat 4.1.18 with a form based auth method. My login.jsp is in a directory context/login/ and for that directory I've also set a security contraint which switches to https for logon (and stays in https, of course) I have no problem when I use cookies, but I see a bit strange

Re: Filter problems

2003-02-08 Thread Craig R. McClanahan
On Sat, 8 Feb 2003, Manavendra Gupta wrote: Date: Sat, 8 Feb 2003 14:12:38 -0800 From: Manavendra Gupta [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Filter problems Hi, I have a simple security filter for

RE: Tomcat 4.1.18 and Sub Domain Name access

2003-02-08 Thread Etienne
Hi, Sorry for the last email, the problem is elsewhere. E.L. -Original Message- From: Etienne [mailto:[EMAIL PROTECTED]] Sent: February 8, 2003 8:28 AM To: 'Tomcat Users List' Subject: Tomcat 4.1.18 and Sub Domain Name access Hi, I made a migration from Tomcat 4.0.3 to Tomcat

RE: Help: JNI, mod_jk2 , Apache 2 not working

2003-02-08 Thread jcubic
I just got Apache 2.0.44 and Tomat 4.1 working with a little twist. I think we are trying to accomplish the same thing. I think server.xml is not the culprit. jk2.properties and worker2.properties are. Also web.xml in Tomcat home as well as the webapp could affect servlet and jps execution. What

Re: DataSourceRealm, Exception performing authentication ?

2003-02-08 Thread Sean Dockery
Did you declare the Realm after your Resource or before it? -- Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.com Uros Kotnik [EMAIL PROTECTED] wrote in message 017501c2cf7f$9684b170$[EMAIL

Re: Shutdown problems with malformed reply from SOCKS server

2003-02-08 Thread Hugh Field-Richards
Jeff I have just come to the same conclusion myself after much fiddling with the system and a complete disk backup and restore onto a clean disk :-( It is definitely the SOCKS proxy setting. Many thanks for the confirmation of this. Hugh On Thursday, January 30, 2003, at 06:53 pm, Jeff Self

Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Hans Deragon
Mike Johnson wrote: hi, just add allowLinks=true to your context config, like: Context path=/dealernet docBase=dealernet debug=0 reloadable=true allowLinking=true / Tried, but does not work. I have the following: lrwxrwxrwx1 root root9 Feb 8 10:33 aaa - graphics/

Accessing Singleton

2003-02-08 Thread Joe
Hi, What would be the best way to access a singleton running in the JVM that runs Tomcat? What I have is this: The classes in question are singleton because they take a huge amount of time to start up but little to call methods. Tomcat contains one webapp, that has those singletons running

deploying simple servlet

2003-02-08 Thread colin diggensworth
Hi, I am running Tomcat version 4.1 with JDK1.3.1 onWin98. I can run all the Tomcat examples servlets no problem. I am trying to run a simple servlet. I do the following: (1)Write a simple Servlet called HelloWorld (2)I compile the servlet and put it in under webapps/Root/Web-Inf/classes.

mod_jk2 AGAIN

2003-02-08 Thread Frank Liu
http://www.pubbitch.org/jboss/mod_jk2.html talks about mod_jk2 and apache2, tomcat4.0.4 I have several questions: 1) Can I skip step 5-7 in that document if I use tomcat 4.1.18? Or do I still need to compile the jtc.jar and replace several tomcat jars as described in step 6. 2) uri mapping

RH 8.0 Tomcat 4.1.18 and Apache 2.0.43

2003-02-08 Thread Tom Holmes Jr.
I got Apache 2.0.43 and Tomcat 4.1.18 working with jk2 on my Windows 2K Advanced Server, and I got all the virtual hosts working. I am now trying to get SSI (server-side includes) to work though I followed all the directions, but that is a minor issue for me right now. I also have RH Linux 8.0

Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Sean Dockery
I believe that there is more to this than that. allowLinking is a property of org.apache.naming.resources.FileDirContext, not org.apache.catalina.core.StandardContext. FileDirContext is the default class for a Resources declaration--of which Context must be the parent. So, you would start with

DEPLOY Command

2003-02-08 Thread Alberto Magalhaes
Hi, why when i try to make: http://127.0.0.1:8080/manager/deploy?path=/examples, it gives an error: FAIL - Unknown command /deploy Thanks AAM

Re: Accessing Java Classes

2003-02-08 Thread Steve Burrus
Hi Brian, or Bio Jazz. Ya, I am wondering about the very same thing that you are now agonizing about! Re. putting your classes that you need to execute a jsp/servlet in the Tomcat container is a long-time problem of mine! I am still trying to learn the fine art of packaging up classes, lemme

Re: mod_jk2 AGAIN

2003-02-08 Thread Lajos
Frank - On Question 1, yes, you can skip those steps with 4.1.18. Don't know about # 2, though. Lajos Frank Liu wrote: http://www.pubbitch.org/jboss/mod_jk2.html talks about mod_jk2 and apache2, tomcat4.0.4 I have several questions: 1) Can I skip step 5-7 in that document if I use tomcat

Re: Tomcat exploding 1.4.1 JVM

2003-02-08 Thread Jacob Kjome
I haven't seen that one, but I did get this one once. Can't reproduce it, though Running under Win2k SP3 on a 2ghz AMD Athalon wth 512m RAM Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D5A19BB Function=JVM_FindSignal+0x3C19B

trouble to run servlet

2003-02-08 Thread Jianping Zhu
I have redhat 7.3 with apach tomcat running on it I put HelloServlet on following directoy: usr/local/jwsdp-1_0_01/server/webapps/admin/WEB-INF/classes/HelloServlet.class Then i try http://mango.ctegd.uga.edu/servlet/HelloServlet; to invoke the servlet. but failed in error_log i got: [Sat Feb 8

Apache vhost + Tomcat sharing the same document root

2003-02-08 Thread c.davies
Hi, I had a problem with getting Apache and Tomcat to share the same document root cleanly, with Apache serving requests that were outside Tomcat's perview (e.g. static pages, PHP). Essentially, I have a system with Apache2 doing name based vhosting, with a tree that looks something like this:

War files / codeBase and security permissions (v4.0.4)

2003-02-08 Thread Kenneth J Baker
I'm deploying a war file with unpackWARs=false. I am trying to grant permissions to this war in 04webapps.policy. Here is what I've tried... Given the examples this is what I would expect to work but doesn't: grant codeBase file:${catalina.home}/webapps/iface.war!/- { permission

Re: Apache vhost + Tomcat sharing the same document root

2003-02-08 Thread Lajos
Hi C. Davies - I can't help you with mod_webapp, which I avoid like the plague, but it would certainly work with mod_jk. Each Apache VirtualHost block should contain a JkMount something like this: JkMount /*.jsp ajp13 which means that any page ending in *.jsp will be passed to Tomcat. Then,

mod_jk2 and apache13

2003-02-08 Thread liug
mod_jk2 (tomcat 4.1.18) seems to compile fine with apache13, but only mod_jk2.so is generated. There is no libjkjni.so. Is that a problem? Is libjkjni.so really needed? The mod_jk2 works fine without it in my test. BTW, what is this jni thing in the jk2 connector? I understand we already have

Re: DEPLOY Command

2003-02-08 Thread Jacob Kjome
2 things.. 1. the deploy command uses the HTTP PUT method. No browser out there supports this. You need to use the Catalina Ant tasks to run deploy. What you want is install. 2. Tomcat-4.1.19 had the manager app retooled. In the process, the servlet mapping for the deploy command was

Re: Apache vhost + Tomcat sharing the same document root

2003-02-08 Thread Chris Davies
Hi, Sadly this doesn't appear to work. Both domains get redirected to Tomcat's docBase (in this case /www) and you get a 404. Am I formatting the Context tags wrong? Can you give me an example of how they are supposed to look? Thanks, C.Davies Quoting Lajos [EMAIL PROTECTED]: Hi C. Davies -

Re: Apache vhost + Tomcat sharing the same document root

2003-02-08 Thread Lajos
Hi Chris - Oops - I realize my mistake. I was thinking something entirely different. You should have two Host blocks, one for each vhost, one with appBase of /www/cust1 and one with appBase of /www/cust2. Sorry for leading you the wrong way. If that still doesn't work, email me your

Need help w. another jsp!

2003-02-08 Thread Steve Burrus
Hello all, I am having yet more trouble with executing a jsp in the right way! The jsp in question this time is a calendar.jsp, which as the name of it suggests, displays a calendar. I placed/put it into the right folder, the C:\jakarta-tomcat\webapps\ROOT\WEB-INF\classes, but alas, when I go

RE: Help: JNI, mod_jk2 , Apache 2 not working

2003-02-08 Thread Robo code
Hi Jimmy, I have solved some of the problems you are facing. I can get Apache to startTomcat via JNI cleanly. The TomcatStarter problem was solved by putting $TOMCAT/bin/tomcat-jni.jar on the path. I have couple of startup servlets which were correctly loaded. I use Cactus so had to put the

_strncpy already defined - compiling jk2 isapi with VS7/ i.e. win isapi_redirector2.dll

2003-02-08 Thread Mark Clarke
Hi all, I am trying to compile jk2 isapi dll with VS7.0. I downloaded and built apache2 to get the apr.h header files and some libraries that jk2 requires from apache. When I compile jk2 I get an error message that _strncpy is already defined in e.g. MSVCRTD.lib(MSVCR70D.dll) : error LNK2005:

RE: _strncpy already defined - compiling jk2 isapi with VS7/ i.e. win isapi_redirector2.dll

2003-02-08 Thread Mark Clarke
OK solved it. I needed to have the sdk library Advapi32.lib in the link library list ;) = Mark Clarke - Exotic Pets E-Mail: [EMAIL PROTECTED] WWW: www.ExoticPets.co.za = -Original Message- From: Mark

Tomcat complains: java.security.NoSuchProviderException: no such provider: BC

2003-02-08 Thread Mark Liu
I run Tomcat 4.1.18 on my Win2K box. Because my project will use bouncycastle cryptographic bundle (known as BC version 1.18), I have this package properly installed on my system. If you don't believe it, look at the following output: C:\Javajava ListCryptoProviders SUN version 1.2 SunJSSE