Re: [OT] How to write/use Tomcat's war classloader

2006-04-14 Thread V D
Thank you for your interest. The application starts very slowly with the war and my classloader (this is a standard app, not webapp). The war also has a webapp in it. This has nothing to do with the application logic. It's the leading time to load the classes. It takes about 2 or 3 minutes

Re: Tomcat 5.5 SSL Configuration problem, can't connect!

2006-04-14 Thread Bill Barker
I would *really* like to see more of your log, since this is a classic "this can't happen" bug. "Jana Nguyen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi there, I am running Tomcat 5.5 on RH Linux as user 'tomcat', I'm trying to get tomcat to run on a secure port 8443 instead

Re: WebappClassLoader delegates to SystemClassLoader, not CustomClassLoader

2006-04-14 Thread Bill Barker
Not enough info to give you a code sample (since with Embedded, you are controlling the ClassLoaders, and Tomcat isn't doing it's default common/server/shared thing). However, what you want is one of the following (depending on your CL requirements): engine.setParentClassLoader(myClassLoader

Re: help using SSL with Tomcat error no server.pem?

2006-04-14 Thread Bill Barker
You are using the PureTLS flavor of the SSL Connector. This one expects something closer to an OpenSSL style keystore (which defaults to 'server.pem' if not specified) with the private key and cert PEM encoded in the same text file. In particular, it doesn't use a JKS keystore. Assuming that

RE: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Scott Smith
OK, I removed the unnecessary Contexts (at least they are unnecessary for the time being) and did notice the following messages. WARNING: A docBase c:\webapps\myapp inside the host appBase has been specified, and will be ignored Apr 15, 2006 2:09:41 AM org.apache.catalina.loader.WebappClassLoader

RE: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Scott Smith
I've read the logs a half-dozen times. If there's something there, I've missed it. Now, having said that, there is another Context that's giving me an error message. I need to set up a couple of Contexts that point to static content in directories outside of the web application (assume they have

Re: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Filip Hanik - Dev Lists
maybe I should read the docs ;) yes, any container can have it, Filip Hanik - Dev Lists wrote: exactly, the realm element doesn't belong there, read up on the docs Scott Smith wrote: I am also doing Forms authentication...but I haven't got that far since the webapp doesn't initialize yet. Th

RE: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Scott Smith
I don't know. It's there because when I looked in the JNDI DataSource How-to, it was there. Originally, I had the database Resource (not the Realm) in the (which didn't work either; I then had a ResourceLink in the Context). I moved the Resource to the Context in an attempt to figure out why it

Re: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Filip Hanik - Dev Lists
also, did you check your logs yet? I bet there is a nice little error message in there for you :) Filip Scott Smith wrote: You are correct. I thought path was required and implied the docBase (I guess it's the other way around). So I changed it to: However, that didn't change the error m

Re: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Filip Hanik - Dev Lists
exactly, the realm element doesn't belong there, read up on the docs Scott Smith wrote: I am also doing Forms authentication...but I haven't got that far since the webapp doesn't initialize yet. This app used to use the struts tag, but I'm trying to move it to jndi. -Original Message-

FW: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Arshad Mahmood
Hi, Do you really need that resource-ref in the web.xml. Your resource is defined under Context so you shouldn't need one. Other than that Your code looks fine and I can't see any problems with it. Regards. On 4/14/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > > check your log files u

FW: Relative Link Question

2006-04-14 Thread Arshad Mahmood
Hi, Hmm. What are you trying to do? Surely your images are not actually in a directory called "/webapp/images/...". Your images are probably at the top level of your docBase. The "webapp" is surely just a context that is being mapping to a webapp under tomcat, and you probably want Apache to serve

RE: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Scott Smith
I am also doing Forms authentication...but I haven't got that far since the webapp doesn't initialize yet. This app used to use the struts tag, but I'm trying to move it to jndi. -Original Message- From: Marc Farrow [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 5:05 PM To: Tomc

RE: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Scott Smith
You are correct. I thought path was required and implied the docBase (I guess it's the other way around). So I changed it to: However, that didn't change the error message. -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 4:56 PM

Re: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Marc Farrow
What are you trying to accomplish with the tag? On 4/14/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > > check your log files upon startup, your myapp.xml doesn't have a docBase > attribute to associate it with the app itself. > path="/myapp">. > > Scott Smith wrote: > > Sorry,

Re: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Filip Hanik - Dev Lists
check your log files upon startup, your myapp.xml doesn't have a docBase attribute to associate it with the app itself. . Scott Smith wrote: Sorry, I sent this so many times. Hopefully, I have all of the typos out of it this time... I have specified the following as myapp.xml in the c

Relative Link Question

2006-04-14 Thread Steven Huey
Hello, I've got a setup with Apache 2.2, Mod_Jk 1.2.15, and Tomcat 5.5.16 and things are working pretty well except for relative links in my webapp. When accessing my webapp at http://myserver.com/mywebapp/index.jsp any relative links within subdirectories of the mywebapp directory don'

Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-14 Thread Scott Smith
Sorry, I sent this so many times. Hopefully, I have all of the typos out of it this time... I have specified the following as myapp.xml in the conf\Catalina\locahost directory: In my web.xml file I have: jdbc/MyDB javax

Recall: Tomcat 5.5.16 configuration problem

2006-04-14 Thread Scott Smith
Scott Smith would like to recall the message, "Tomcat 5.5.16 configuration problem". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5.5.16 configuration problem

2006-04-14 Thread Marc Farrow
in your code you are looking for context named "jdbc/MediaBrowserDB", however your name in your context and web.xml is "jdbc/MyDB". Unless this is a typo from trying to put code to the list, i would check that. On 4/14/06, Scott Smith <[EMAIL PROTECTED]> wrote: > > Sorry, I hit send too soon- > >

Tomcat 5.5.16 configuration problem

2006-04-14 Thread Scott Smith
Sorry, I hit send too soon- I have specified the following as myapp.xml in the conf\Catalina\locahost directory: In my web.xml file I have: jdbc/MyDB javax.sql.DataSource Container But, when I execut

Recall: Tomcat 5.5.16 configuration problem

2006-04-14 Thread Scott Smith
Scott Smith would like to recall the message, "Tomcat 5.5.16 configuration problem". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tomcat 5.5.16 configuration problem

2006-04-14 Thread Scott Smith
I have specified the following as myapp.xml in the conf\Catalina\locahost directory: In my web.xml file I have: jdbc/MyDB javax.sql.DataSource Container But, when I execute the code DataS

help using SSL with Tomcat error no server.pem?

2006-04-14 Thread Jana Nguyen
Hi there, I've posted my issues not being able to connect using tomcat with ssl using port 8443 some days ago, but did not get any response. I am running Tomcat 5.5 on RH Linux as user 'tomcat', I'm trying to get tomcat to run on a secure port 8443 instead of 8080. I uncommented the "SSL HTTP/1.

Re: Tomcat & SSL

2006-04-14 Thread Dhaval Patel
Hi, Try this in your web.xml file. Secure Area /* GET POST CONFIDENTIAL url-pattern is the list of pages, folders or whole webapp (/*). Regards, Dhaval --- hung ngole <[EMAIL PROTECTED]> wrote:

Tomcat 5.0.19 - softlink issue

2006-04-14 Thread Sandeep N
Hi, We have a web application deployed on Tomcat 5.0.19 running on Solaris 9. Our connection is https configured on port 8443. The web application runs fine. Here is my issue. We have two subfolders under the context folder named folderA and folderB. folderB is a softlink pointing to another

RE: 5.5.16, Too many open files on startup

2006-04-14 Thread Corey Kaiser
Ah, yes, I wasn't setting the correct limit. Thanks much, it works now... But now Tomcat takes almost 5x longer to start up than it did with 5.5.15. >From 7 seconds to 36 seconds. It won't be restarted much, but that's a bit silly. Why? Corey -Original Message- From: Filip Hanik - Dev lis

Re: stop ``ant install'' copying the app to /webapps

2006-04-14 Thread Aladin Alaily
LOL! I read the first line of your response and automatically thought: oh my god... Then I laughed when I saw the "just kidding!" part. You're welcome & thanks for the laugh. Aladin [EMAIL PROTECTED] wrote: Aladin Alaily <[EMAIL PROTECTED]> wrote on 04/14/2006 12:45:52 PM: [EMAIL PROTE

Re: stop ``ant install'' copying the app to /webapps

2006-04-14 Thread tschaeffer
Aladin Alaily <[EMAIL PROTECTED]> wrote on 04/14/2006 12:45:52 PM: > > > [EMAIL PROTECTED] wrote: > > This is a fundamental question, but I can't find an answer to it anywhere. > > Probably right in from of my nose. > > > > I have set up my development environment exactly as directed in the

Re: Setting up to use 443

2006-04-14 Thread David Smith
Can you tell us the exact error? Internet Explorer throws up that error in a lot of situations. This could be the result of a firewall or another process on 443. Anything show up in the logs? Can you try it with Firefox for a better error display? TCPView from SysInternals can show open and

Re: Setting up to use 443

2006-04-14 Thread David Shaw
Sorry, I forgot to mention that I have root (or administrative) access and on an WindowsXP system. Original Message Follows From: Mike Sabroff <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: Setting up to use 443 Date: Thu, 13 Apr 2006 20:05:16 -050

Re: stop ``ant install'' copying the app to /webapps

2006-04-14 Thread Aladin Alaily
Hi Tim, Assuming your application is called "tim" and you want to map it to "/tim" Place a tim.xml file in: ${TOMCAT_INSTALLATION}/conf/Catalina/localhost/ tim.xml contains: = build.xml: == Tell ant to compile the code in the location specified in tim.xml Now, your

Re: webapp slow on first access every morning

2006-04-14 Thread Filip Hanik - Dev Lists
you have 8GB of RAM, but you only gave tomcat 256m? Filip Edward Quick wrote: Thanks Peter. I've checked the performance history but there is very little running on the box, and CPU is usually 99% idle. There is also 8GB of RAM on here, and usually 6GB free. Ed. Have you monitored your se

Re: IE 20 session cookies limitation

2006-04-14 Thread Rick Wong
It's been a while since my last posting of this topic. I have a work-around that perhaps someone may find it useful. I worked around the issue by implementing a Tomcat Valve, and screen out for the jsessionsso cookie on every request. If I find it, I reinsert it back into the response within

Tomcat & SSL

2006-04-14 Thread hung ngole
Hi, I'm using Tomcat 5 & I have configured SSL successful. But now I want to use SSL for a particular pages not for all pages ( or for whole application ). How can I do this? Thanks much, Hung. - Yahoo! Messenger with Voice. PC-to-

stop ``ant install'' copying the app to /webapps

2006-04-14 Thread tschaeffer
This is a fundamental question, but I can't find an answer to it anywhere. Probably right in from of my nose. I have set up my development environment exactly as directed in the tomcat docs. When I ``ant install'', the app is copied to the /webapps directory, and a subsequent ``ant compile''

Re: Tomcat and Sysdeo Eclipse Plugin

2006-04-14 Thread Mike Sabroff
Sounds like a Sysdeo problem not tomcat Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 Asad Habib wrote: Hello. I am experiencing a problem trying to start Tomcat from Eclipse using the Sysdeo Plugin. The error I get is as follows: Exception in thread "main" java.lang.N

Re: Tomcat and Sysdeo Eclipse Plugin

2006-04-14 Thread Paul Singleton
Asad (I doubt that something as fundamental as this is a difference between 5.5.9 and 5.5.16) Have you checked Eclipse's Window / Preferences... / Tomcat to ensure that all references to Tomcat files refer to your new 5.5.16 installation? I get the same error if "Tomcat home" is set incorrectly

WebappClassLoader delegates to SystemClassLoader, not CustomClassLoader

2006-04-14 Thread Andrew McDowall
Hi, I'm running into ClassLoader problems when using a custom ClassLoader with an embedded Tomcat. The problem, as I understand it, is arising due to multiple versions of log4j being loaded by different ClassLoaders resulting in ClassCastExceptions or expected interfaces not being implemented. I

RE: Embedded Tomcat stops deploying WARs when using custom ClassLoader

2006-04-14 Thread Andrew McDowall
It would appear that my problem was solved by simply changing the line 'new Catalina();' to 'new Embedded();', so now it unpacks. -Original Message- From: Andrew McDowall [mailto:[EMAIL PROTECTED] Sent: 13 April 2006 16:56 To: users@tomcat.apache.org Subject: Embedded Tomcat stops deployi

Re: RE Tomcat and SSL

2006-04-14 Thread Franck UB
Hi Klaus, > coming back to my issue: How can I make sure that my certificate is > right for tomcat? Could I attach it at one of these eMails? Or are > attachments not allowed? Could you test it? I think this could be one solution. Today I am not in office. But you can send your stuff to [EMAI

Tomcat and Sysdeo Eclipse Plugin

2006-04-14 Thread Asad Habib
Hello. I am experiencing a problem trying to start Tomcat from Eclipse using the Sysdeo Plugin. The error I get is as follows: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap I am running Tomcat 5.5.16 and using Eclipse 3.1.2 with Sysdeo Eclip

changes in tomcat realms between 5.5.7 and 5.5.16?

2006-04-14 Thread David Delbecq
Hello, I have a webapp here which comes with it's own realms. It's working prefectly in tomcat 5.5.7. I deployed this application and copied the realm files (common/lib/MyRealm-api.jar and server/lib/MyRealm-impl-1.0.jar) to a new tomcat installation. I the deployed to webapp and tried to access a