Re: mod_jk2+tomcat+apache2 on OSX: WORKS! but NOT FINDINGworkers2.properties in DFAULT location

2003-03-29 Thread R Blake
hi I've built 2.0.44 on Mac OS X with mod_jk2 and and running Tomcat 4.1.8 and 4.1.24. If the apache directory patch is set up correctly apache should look for it conf directory, based on how you defined --prefix in configure. It should look something like this: ./configure \ --prefix=

Re: Configuring Tomcat to use a JDBC Realm

2003-03-29 Thread Dean A. Hoover
Isn't mysql a client program? If so, I can connect with the user/pw. Tarun Ramakrishna Elankath wrote: Seems like an access problem to me. Dean, did you try connecting to the server from a mysql client with the given username/password to check whether you are able to connect ? On Sat,

Re: Living without a Context - deploying an application using manager app

2003-03-29 Thread johannes . fiala
Hi Jacob, 1.) 1.000 thanks - this was the answer I needed. Do you know where this is to be found in the docs??? I spent quite some time with searching this forum and the internet, but didn't find any recommendation like that you just gave me. 2.) I see

Re: Living without a Context - deploying an application using manager app

2003-03-29 Thread johannes . fiala
p.s. I also have found that ant deploy will give me the context as desired (if stored in META-INF/context.xml as recommended by you) however, ant install does not create the same result. There the context.getInitParameter() and JNDI-configuration (ResourceLinks) both return null and are not

servlet problems with web app outside Tomcat directory

2003-03-29 Thread Peter Reynolds
Hello Mike, http://www.mail-archive.com/[EMAIL PROTECTED]/msg90076.html Did you ever manage to solve this problem? I think I have the same one and I couldn't see any replys to your message on the list. Thanks, Peter - To

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread Jeff Jensen
I do not have an answer for your specific issue, but I found minor deploy issues with install, so I only use deploy and undeploy tasks and do not have any more issues. Have you tried using deploy - did it have the same problems? -Original Message- From: [EMAIL PROTECTED]

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread johannes . fiala
Hi Jeff, no, using the ant deploy task it worked smoothly. I was just wondering what the install task is all about (if it's not working) thx Johannes Jeff Jensen [EMAIL PROTECTED] 29.03.2003 15:02 Please respond to Tomcat Users List [EMAIL PROTECTED] To 'Tomcat Users List' [EMAIL

Where to store files in a portable app?

2003-03-29 Thread johannes . fiala
HI there, In my app I need to store files after a transaction is complete. I want to keep my application portable, so where should I store such files to?? Should I use a /output/.. directory in the root area or where else could be a smart location? Any ideas on this topic?? thx alot Johannes

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread Jeff Jensen
Yes, me too. Based on what the install process does compared to deploy, I have not yet determined an applicable time to use install vs deploy! I haven't looked back since started using deploy... :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday,

Re: servlet problems with web app outside Tomcat directory

2003-03-29 Thread Boon Seong
since you have a package name for ur servlet , i think u need do a servlet mapping on web.xml file - Original Message - From: Peter Reynolds [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 3:40 PM Subject: servlet problems with web app outside

Re: Where to store files in a portable app?

2003-03-29 Thread Kaarle Kaila
At 15:35 29.3.2003 +0100, you wrote: HI there, In my app I need to store files after a transaction is complete. I want to keep my application portable, so where should I store such files to?? I would put the directory address for the files in a properties file (ResourceBundle) Then you can

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread johannes . fiala
hi jeff, ok. so I will stay with deploy as well. Currently I do the following to redeploy: ant remove ant deploy However, there is a small time where users will still get a 404 error (the small delay where the PUT command is issued by the deploy task). Do you know a way how to get around this

Re: Where to store files in a portable app?

2003-03-29 Thread johannes . fiala
Hi Kaarle, Thx for the input. Unfortunately the development system is Windows and production system is Unix, so absolute paths will never be the same. Do you have any idea for how to manage properties files which will be different for windows than unix? Should I create a separate web_local and

Re: Where to store files in a portable app?

2003-03-29 Thread Kaarle Kaila
At 15:58 29.3.2003 +0100, you wrote: Hi Kaarle, Thx for the input. Unfortunately the development system is Windows and production system is Unix, so absolute paths will never be the same. I would think that you need different settings for production and development. When you have the settings in

RE: Where to store files in a portable app?

2003-03-29 Thread Jeff Jensen
Have property files that are loaded per OS type/deployment environment. e.g. build.dev.properties build.prod.properties or a set of build.${os.name}.properties files (but then you have to do the deploy process on the same OS as the deploy target). So you can have a ${deploy.persist.dir} property

Re: Living without a Context - deploying an application using manager app

2003-03-29 Thread Jacob Kjome
At 11:38 AM 3/29/2003 +0100, you wrote: Hi Jacob, 1.) 1.000 thanks - this was the answer I needed. Do you know where this is to be found in the docs??? I spent quite some time with searching this forum and the internet, but didn't find any recommendation like that you just gave me. Not positive

Re: Living without a Context - deploying an application using manager app

2003-03-29 Thread Jacob Kjome
At 11:41 AM 3/29/2003 +0100, you wrote: p.s. I also have found that ant deploy will give me the context as desired (if stored in META-INF/context.xml as recommended by you) Yes, ant's deploy task uses HTTP PUT which isn't supported by normal browsers so deploy actually can't be done any other way

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread Jacob Kjome
If you use the deploy task to deploy the app, you should use the undeploy task to undeploy the app. The remove task is mated with the install task. Mixing these will give you unexpected results. Jake At 03:56 PM 3/29/2003 +0100, you wrote: hi jeff, ok. so I will stay with deploy as well.

Re: servlet problems with web app outside Tomcat directory

2003-03-29 Thread Jacob Kjome
You really need to read the release notes. In recent Tomcat versions, the invoker servlet mapping is commented out in CATALINA_HOME/web.xml. Uncomment that and your problem will be solved. Note that it was disabled because of security issues so I would not recommend enabling the invoker

Re: Where to store files in a portable app?

2003-03-29 Thread Jacob Kjome
There are a couple ways to proceed with this, but both are related. 1. Add an env-entry to your web.xml with a default location for file storage. You then override this in the Tomcat configuration via the Environment element. For instance... web.xml... env-entry

SOLVED: Re: Living without a Context - deploying an application using manager app

2003-03-29 Thread johannes . fiala
Hi Jacob, Thank you for your detailed description. I'm now using the ant deploy/ant undeploy task successfully and it works as expected. I replaced all file-system access with .getClass().getResourceAsStream() and it works smoothly now. Also, the ant install command works correctly with the

Re: Where to store files in a portable app?

2003-03-29 Thread johannes . fiala
Hi Jacob, I think the decision about where the locally stored data should go should be done at build time. I'd suggest to use two directories within the ant tree structure: /web/// stores the static data independent of location /web-production/ // stores the config data

Need help with org.apache.jasper.JasperException: Unable to compile class for JSP

2003-03-29 Thread Andre Carrier
Hi, I did a fresh install of tomcat on a win2000 server. I installed the latest JDK (1.4.1) first. I installed tomcat (4.1.24) after. Whenever I access the default index.jsp page I get this error. The JSPs of the application that I am building give the same error. Whith a previous build of

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread johannes . fiala
Hi Jacob, It seems as if I was wrong with ant install test. I now undeployed and installed, but the Context information got lost. Where do I have to put the context.xml in the /build/ directory? Would /build/myapp.xml ok? Would the install task accept any *.xml in /build/ as context

Internal server error only on first run tomcat 4.x + apache 2.0x + modjk2 + winxp

2003-03-29 Thread Henry Tang
Hi, I am getting this error below only on the first service for apache. After this error, all other pages served will be fine. Error is produced after the server hangs for a while around 2 minutes. Anyone experiencing the same problem? thanks henry Internal Server Error The server encountered

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread johannes . fiala
p.s. if I do ant undeploy ant install - context info gets lost ant remove ant deploy - context info is here again! == so with deploy the context is ok, with install not. *) I put /build/context.xml and /build/myapp.xml into the build-directory, but it still doesn't get the context inited. *)

Re: Classloader Mysteries

2003-03-29 Thread Theodore Chen
A couple of questions: How are you deploying the web app? Is the daemon thread aware of the Servlet lifecycle? I have observed that when deploying via the Tomcat manager, there are cases where the web app is stopped and restarted erroneously. Basically, it starts after a deploy, then within a

ant deploy - server.xml changes

2003-03-29 Thread johannes . fiala
Hi there, 1.) My server.xml looks a bit unstructured after doing an ant deploy with the manager app. == Is it possible to tell the ant deploy task not to change server.xml itself, but only the /webapps/myapp.xml file belonging to the context (myapp)? 2.) Is it possible to turn the automatic

Listing all JNDI resources available

2003-03-29 Thread johannes . fiala
Hi there, Is it somehow possible to look up all JNDI configuration values available in a servlet/context? This would be quite fine for debugging purposes, and it seems there is no function available for this, only for looking up a specific value. thx Johannes

Different behaviour of JSPC using ant/using tomcat itself

2003-03-29 Thread johannes . fiala
hi there, I noticed an interesting difference between using ant jspc and having the jsp-file compiled by jasper during runtime. *) during runtime the file is processed ok *) using jspc it is encoded in UTF-8, which means that the german umlaute (ä,ö,ü) are displayed wrong, because the browser

Re: Listing all JNDI resources available

2003-03-29 Thread jerome moliere
[EMAIL PROTECTED] wrote: Hi there, Is it somehow possible to look up all JNDI configuration values available in a servlet/context? This would be quite fine for debugging purposes, and it seems there is no function available for this, only for looking up a specific value. depending from

Switching between releases during runtime

2003-03-29 Thread johannes . fiala
hi there, Is it possible to have a virtual context, which just points to another context? e.g. myapp = current version, should point to myapp-1.0 myapp-1.0 myapp-1.1 Is it possible to change the context myapp is pointing to during runtime? This would make switching between releases much easier

Re: Listing all JNDI resources available

2003-03-29 Thread johannes . fiala
Hi Jerome, I thought about the jdbc and env-entity entries in server.xml and web.xml. I think it could be quite handy to have a servlet which lists all resources available (without having to know the name of each JNDI resource). Of course digging in LDAP directories would make no sense, but I

Re: Classloader Mysteries

2003-03-29 Thread Micael
At 09:55 AM 3/29/03 -0700, you wrote: A couple of questions: How are you deploying the web app? The web app is deployed as ROOT. The server.xml is: Context path= docBase=my_app debug=0/ The daemon thread is created and destroyed in the struts

Re: Listing all JNDI resources available

2003-03-29 Thread Craig R. McClanahan
On Sat, 29 Mar 2003 [EMAIL PROTECTED] wrote: Date: Sat, 29 Mar 2003 18:03:21 +0100 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Listing all JNDI resources available Hi there, Is it somehow possible to look up all

Re: Listing all JNDI resources available

2003-03-29 Thread Phil Steitz
[EMAIL PROTECTED] wrote: Hi there, Is it somehow possible to look up all JNDI configuration values available in a servlet/context? This would be quite fine for debugging purposes, and it seems there is no function available for this, only for looking up a specific value. thx Johannes

RE: Trouble with ant install command and ResourceLink

2003-03-29 Thread Jacob Kjome
You need to look at the attributes provided for the install task... target name=catalina-install depends=compile,manager.init description=Install application to servlet container catalina-install url=${manager.url} username=${manager.username}

Re: Where to store files in a portable app?

2003-03-29 Thread Jacob Kjome
Ok, that's fine, but now instead of releasing a simple .war file for someone to drop into a servlet container, you are making them run an ant build in order to deploy your app. Not my idea of portability, but you can do what works for you. For development purposes, you can easily do a filter

MYSTERY SOLVED: Re: Classloader Mysteries

2003-03-29 Thread Micael
An extra version of the app was being created under root in web.xml. Thanks for all who assisted. At 09:55 AM 3/29/03 -0700, you wrote: A couple of questions: How are you deploying the web app? Is the daemon thread aware of the Servlet lifecycle? I have observed that when deploying via the

Memory leak for webapp Manager deploy/undeploy

2003-03-29 Thread Theodore Chen
I believe I'm seeing a memory leak as a result of a Manager deploy/undeploy. I have a very simple test case: a Servlet that has a static field that refers to an object (Foo) that allocates a large chunk of memory. I've instrumented both the Servlet (init(), destroy(), and finalize()) and Foo

RE: Virtual hosting mod_jk2

2003-03-29 Thread Quinton McCombs
None at all. I think that I encountered a bug or two in mod_jk2. This is when you have two virtual hosts mapping the same path to the worker. Only the last map is kept. I ended up switching to mod_jk. I got everything working under that connector. I can go into the details of how that is

RE: mod_jk2 logic check

2003-03-29 Thread Quinton McCombs
-Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:11 PM To: Tomcat List Subject: mod_jk2 logic check I have apache 2.0.43 and tomcat 4.1.24. I've set up mod_jk2. Here is my understanding of how things should work. I need

Re: Memory leak for webapp Manager deploy/undeploy

2003-03-29 Thread Jacob Kjome
This is interesting. Can you post a bug on this to http://nagoya.apache.org/bugzilla/ and then report back here as to what the link to that bug is?Also, it would be ideal if you could post your testcase (Foo.java) to that bug so people can easily reproduce the issue. later, Jake At

Bug in CoyoteConnector when using JkCoyoteHandler

2003-03-29 Thread Quinton McCombs
I am running into a strange problem on Tomcat 4.1.18. I setup a CoyoteConnector on port 8009 using the JkCoyoteHandler protocol handler to handle AJP13 requests. This worked perfectly. I then needed to add a second AJP13 connector to process secure requests (though an ssl apache virtual

RE: mod_jk2+tomcat+apache2 on OSX: WORKS! but NOT FINDING workers2.properties in DFAULT location

2003-03-29 Thread Quinton McCombs
JkSet config.file /etc/apache2/worker2.properties The above directive can be placed anywhere inside your httpd.conf file. It will set the location of your config file for jk2. -Original Message- From: R Blake [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 2:07 AM To:

RE: Where to store files in a portable app?

2003-03-29 Thread Quinton McCombs
You could have ant replace the value of the directory name in your properties file during the build. As part of your build process, ant would have to copy the properties file from its source directory into the target directory where it will be used for the build. See the ant docs for filter and

RE: mod_jk2+tomcat+apache2 on OSX: WORKS! but NOT FINDINGworkers2.properties in DFAULT location

2003-03-29 Thread R Blake
BINGO! i suppose that should've been obvious but thanks! blakers -- On Saturday, March 29, 2003 3:34 PM -0600 Quinton McCombs [EMAIL PROTECTED] wrote: JkSet config.file /etc/apache2/worker2.properties The above directive can be placed anywhere inside your httpd.conf file. It will set

Question about getting client certificate in servlet

2003-03-29 Thread Mark Liu
I am using Tomcat 4.1.18 in SSL mode under Win2K. And my Web server requires client authentication. As we know, if we visit a web server which requires client authentication, say, https://www.myweb.com , the browser brings up a dialog box which presents a list of valid certificates for you

URGENT: java.lang.OutOfMemoryError

2003-03-29 Thread Galbayar Dorjgotov
I'm running Tomcat 4.1.18 on Linux 7.3+jdk 1.4 and installed few webapps. I think one application leaks memory but i can't detect what one leaks memory? Tomcat reports(catalina.out) Mar 29, 2003 11:34:25 PM org.apache.tomcat.util.log.CommonLogHandler log SEVERE: Exception in acceptSocket

Re: URGENT: java.lang.OutOfMemoryError

2003-03-29 Thread Andre Carrier
Hi, I don't have a precise answer, but you can look in the jakarta projects list. There might be a utility that evaluates performance of a java program. There might be a utility that monitors memory usage. I am sure a tool exists out there to do this kind of thing. Sorry I can't help more. See

Porting a functioning Web App to Tomcat 3.2.4

2003-03-29 Thread Taylor, Robert
I have a Web App that I have successfully deployed to a JRun server, but when I try to port it over to Tomcat 3.2.4 I get the error that it cannot find my Servlet class. I hard coded the path to that class in my refering HTML page and it found the class properly, however I have several servlets

RE: URGENT: java.lang.OutOfMemoryError

2003-03-29 Thread Filip Hanik
Borland OptimizeIT or Sitraka's JProbe work pretty well Filip -Original Message- From: Andre Carrier [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 4:37 PM To: Tomcat Users List Subject: Re: URGENT: java.lang.OutOfMemoryError Hi, I don't have a precise answer, but you

help? JNI config FAILS for inprocess Tomcat at vm: initializationon OSX

2003-03-29 Thread R Blake
hi, i've got tomcat 4.1.24 LE + apache2 2.1.0 cvs + mod_jk2 all behaving nicely for 'out of process' Tomcat. however, when I try to launch tomcat 'in process', it fails, and the catalina.out log shows: INFO: Starting Coyote HTTP/1.1 on port 8080 [Sat Mar 29 18:07:59 2003] ( info )

it's always the simplest things (redeploy)

2003-03-29 Thread Dan Allen
I can't for the life of me understand why this has to be so difficult. It seems a major flaw of tomcat not to be able to simply redeploy and activate an application from a war file. I have read many posts on the subject from the archives of this list and no one seems to have a definitive

Can't disable cookies when web-app running on localhost

2003-03-29 Thread gardener
Hi, I am unable to disable cookies when my web-app is running on the same computer that the browser (IE6) is running on. When I run the web-app on a remote host, I can disable cookie support by setting privacy at the highest level. However the high privacy setting has no affect when the

Re: Bug in CoyoteConnector when using JkCoyoteHandler

2003-03-29 Thread Bill Barker
There is a bug in 4.1.18 where it will always behave as you are seeing. It should be fixed in 4.1.24. Even with 4.1.18, you should be able to override the port setting in the jk2.properties file. Quinton McCombs [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am running into a

Re: Can't disable cookies when web-app running on localhost

2003-03-29 Thread Bill Barker
You'll have to complain to Bill Gates about this one ;-). The MSIE-6 Privacy settings are for the Internet Zone only. They are ignored for the Local Intranet Zone (which includes localhost). gardener [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am unable to disable cookies