Re: WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-04 Thread Rusty Wright
If you build your war files with maven you can use maven's profiles and have it build war files that contain settings tailored for each server. http://www.sonatype.com/books/maven-book/ http://www.exist.com/better-build-maven epicwin...@hotmail.com wrote: Is there any advantage why I should n

WEB-INF/classes vs WEB-INF/lib/classes.jar file

2009-02-04 Thread epicwin...@hotmail.com
Is there any advantage why I should not just jar all my class files and put them in WEB-INF/lib rather than exploding the jar file to the classes directory? I like developing with the classes and I understand it is nice to let tomcat deploy a .war file but it also creates some problems for me

RE: Realm Issue

2009-02-04 Thread Caldarale, Charles R
> From: Scott [mailto:hacktori...@gmail.com] > Subject: Realm Issue > > Here is my app info: Where is your webapp deployed? Where is the element for the webapp (if it has one)? What's in its element (if it has one)? > /MyApp/* The is relative to the webapp, not the host. You l

Realm Issue

2009-02-04 Thread Scott
Hello, I am having an issue setting up a FORM realm in Tomcat 5.5.27. It does not seem to be blocking access to protected resources for some reason, and I cannot figure out why. If I access index.jsp, which is supposed to be protected, the server just sends me to the index.jsp page. It does this

Re: tomcat including files from apache

2009-02-04 Thread Konstantin Kolinko
2009/2/3 chuckvb : > > I have a basic configuration working where Apache serves my static html and > tomcat provides my dynamic data. Using Apache2 on linux with TomCat 6 and > mod_jk. > > How do I include header files and other files from apache for my > tomcat jsp files. right now I use <%@ inc

How to dispatch HTTP requests from a servlet to an external server?

2009-02-04 Thread albrecht andrzejewski
Hi every one. I'm trying to make 2 different machine collaborate. Here is the deal: The client request first hit my Servlet, then should be dispatched to a physically distant machine to be analyzed, then my Servlet should read the response of this second server, and finally send response to

RE: comet loop after webapp re-start

2009-02-04 Thread Caldarale, Charles R
> From: Peter Warren [mailto:tomcat.subscript...@gmail.com] > Subject: Re: comet loop after webapp re-start > > I grabbed the trace from my eclipse debugger. Ah, that explains it. Don't know if this bug report is related to your situation: https://issues.apache.org/bugzilla/show_bug.cgi?id=46373

Location of download of mod_jk-1.2.26-httpd-2.2.4.so

2009-02-04 Thread randhir . singh
I wanted to know of the site or place to download mod_jk-1.2.26-httpd-2.2.4.so that I can rename it to mod_jk.so to include it in the $APACHE_HOME/libexec path as my httpd.conf is having the line:- - LoadModule jk_module libexec/m

Steps to build mod_jk.so

2009-02-04 Thread randhir . singh
As, I have understood to make a mod_jk Load module, the steps are:- $ ./configure --prefix=/path/to/install --enable-shared=foo $ make install Are, the steps correct as this i

RE: Thread dump analysis

2009-02-04 Thread Caldarale, Charles R
> From: Pieter Temmerman [mailto:ptemmerman@sadiel.es] > Subject: RE: Thread dump analysis > > And what about Tomcat 5 with JDK6? I don't run Tomcat 5 much anymore, but what little I have done with it seems to be fine on JDK 6. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OT

RE: Thread dump analysis

2009-02-04 Thread Pieter Temmerman
Charles, List, >Hmmm... could be a JVM bug, or might be a conflict with classes in your >webapp. Do you happen to have some XML-related jars in >your webapp or >otherwise visible to that branch of the classloader tree? (I guess you >answered that below.) Well, actually, the developers also i

Re: comet loop after webapp re-start

2009-02-04 Thread Peter Warren
> What JVM are you using? The stack trace doesn't look like anything that a > HotSpot JVM would produce. It's Sun Java 1.6.0_10-b33. I grabbed the trace from my eclipse debugger. And I see the loop when running both with and without vm debug flags. Peter -

RE: comet loop after webapp re-start

2009-02-04 Thread Caldarale, Charles R
> From: Peter Warren [mailto:tomcat.subscript...@gmail.com] > Subject: comet loop after webapp re-start > > The ClientPoller thread consumes most of the cpu running through the > following stack over and over. What JVM are you using? The stack trace doesn't look like anything that a HotSpot JVM

comet loop after webapp re-start

2009-02-04 Thread Peter Warren
I'm running tomcat 6.0.18 on Ubuntu 8.10. I have a comet application that maintains an open connection with tomcat. If I re-start my webapp and then close the client connection, tomcat goes into a loop and chews up all cpu. This server is not live and only has my single client. The ClientPoller

Re: servlet use. TC6, FC10

2009-02-04 Thread Gregor Schneider
Dave, On Wed, Feb 4, 2009 at 8:50 PM, Dave Pawson wrote: > 2009/2/4 Caldarale, Charles R : >>> From: Dave Pawson [mailto:dave.paw...@gmail.com] >>> Subject: Re: servlet use. TC6, FC10 >>> >>> 2009/2/4 Gregor Schneider : >>> > what gives "uname -n" ? >>> >>> 2.6.27.12-170.2.5.fc10.i686 >> >> Is it

RE: dbcp pool freezing

2009-02-04 Thread Caldarale, Charles R
> From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric B. > Subject: Re: dbcp pool freezing > Has there ever been any thought to doing abandoned > connection tracking as a background thread, or was > the current implementation decided upon to save on > resources? Don't know the history of com

RE: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-04 Thread Peter Crowther
> From: André Warnier [mailto:a...@ice-sa.com] > Christopher Schultz wrote: > > What about forwarding X through the tunnel instead? > > > You can't, because it is variable. It is the result of some internal > "negotiation" between Jconsole and the remote JVM. > Apparently, anyway. I haven't managed

Re: dbcp pool freezing

2009-02-04 Thread Eric B.
"Christopher Schultz" wrote in message news:4989df6b.3030...@christopherschultz.net... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Eric, > > Eric B. wrote: >> I'm happy to test out an validate that theory, but based on what I've >> seen >> so far, this isn't the case at all. > > Try de

Re: Using tomcat to Post a datafile for download

2009-02-04 Thread Hassan Schroeder
On Wed, Feb 4, 2009 at 10:57 AM, gordonk66 wrote: > > I'm using tomcat 6 and axis2 for webservices. I'd like to make a tar file > available for download via wget. Is there anywhere in tomcat I could drop > that file? Just put it anywhere within your webapp other than the WEB-INF or META-INF dir

Using tomcat to Post a datafile for download

2009-02-04 Thread gordonk66
I'm using tomcat 6 and axis2 for webservices. I'd like to make a tar file available for download via wget. Is there anywhere in tomcat I could drop that file? I've currently installed http to host to file but I'd like to keep it to tomcat if possible. I think I could build a simple project to

RE: servlet use. TC6, FC10

2009-02-04 Thread Caldarale, Charles R
> From: Dave Pawson [mailto:dave.paw...@gmail.com] > Subject: Re: servlet use. TC6, FC10 > > 2009/2/4 Gregor Schneider : > > what gives "uname -n" ? > > 2.6.27.12-170.2.5.fc10.i686 Is it just me, or does that look like a really, really weird result for uname -n? Did someone mistake an "n" for an

Re: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-04 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: Steve Cohen wrote: [...] Which means I'm looking for command-line equivalents for what JConsole does, particularly the threads tab. Any ideas along that path? Not really a help here, but

Re: dbcp pool freezing

2009-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric B. wrote: > I'm happy to test out an validate that theory, but based on what I've seen > so far, this isn't the case at all. Try deploying nothing in your application but the following JSP. Browse to it, and intentionally leak a connectio

Re: dbcp pool freezing

2009-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric B. wrote: > I've been trying to figure out how to create a Wrapper of SqlConnection, but > am having trouble getting this to work. Would you mind giving me a couple > of pointers where to start? See the thread from last week with the su

RE: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnewnative thread

2009-02-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: [Tomcat] [daemon] java.lang.OutOfMemoryError > unable to createnewnative thread > > Would you believe that at 13:00 I'm still bleary-eyed? ;) You just need to move to a different time zone... - Chuck THIS COMMUNIC

Re: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread

2009-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: [Tomcat] [daemon] java.lang.OutOfMemoryError >> unable to createnew native thread >> >> You can use jmap from the command-line. That

Re: Performance of APR

2009-02-04 Thread Gregor Schneider
On Wed, Feb 4, 2009 at 6:45 PM, André Warnier wrote: > You should all just switch to perl. *yuck* - coding in perl always make my eyes squint and my hair stick out =8| > You could go to ApacheCON, skip half the sessions with a clear conscience > and have good beer instead. well, there's still

RE: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to createnew native thread

2009-02-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: [Tomcat] [daemon] java.lang.OutOfMemoryError > unable to createnew native thread > > You can use jmap from the command-line. That will give you a > thread dump That's jstack, not jmap; jmap displays a histogram of the

Re: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, Steve Cohen wrote: > One additional restriction I have is a security bureaucracy from hell. You can use jmap from the command-line. That will give you a thread dump which can help you see what all your threads are doing. If you are using a sy

Re: [Tomcat] [daemon] java.lang.OutOfMemoryError unable to create new native thread

2009-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: > Steve Cohen wrote: > [...] >> >> Which means I'm looking for command-line equivalents for what >> JConsole does, particularly the threads tab. Any ideas along that path? >> >> > Not really a help here, but as I have dis

RE: Excel file in Tomcat Virtual Dir has junk data in it.

2009-02-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Excel file in Tomcat Virtual Dir has junk data in it. > > I'd bet the problem is newline translation. It was the MIME type - the version of Tomcat the OP was using had it wrong (known bug). - Chuck THIS COMMUNICA

Re: Performance of APR

2009-02-04 Thread André Warnier
You should all just switch to perl. It's much less complicated that all this JVM, JIT, Gcs, memory leaks, classloaders, commons logging and and all that stuff. You would not even need Tomcat. You could go to ApacheCON, skip half the sessions with a clear conscience and have good beer instead.

Re: Excel file in Tomcat Virtual Dir has junk data in it.

2009-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Uddav, uddav wrote: > I have put a .xls file in there, and when we open it - it opens in the > browser itself and what it seems to have is junk data in it. (unreadable). > However instead of clicking it to open, if we do "Save the target as.." and > s

RE: Subcontext, filter problem.

2009-02-04 Thread Caldarale, Charles R
> From: Yavuz Kavus [mailto:yavuzka...@gmail.com] > Subject: Re: Subcontext, filter problem. > > DefaultServlet caches content of files, length, content types etc. I suspect the better performance of the DefaultServlet is related to its use of sendfile, not its cache (which persists for only a fe

Re: Performance of APR

2009-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] >> Well, actually when it comes to IO performance Java outperforms C, so >> I wouldn't place my money on old bets like C is faster because its C. >> It isn't.

Re: Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf

2009-02-04 Thread Gregor Schneider
On Wed, Feb 4, 2009 at 6:01 PM, wrote: > Thanks, for your answer. But, I could not understand how to make the > module mod_jk.so so that it gets placed in the path $APACHE_HOME/libexec > as the documents you mentioned are not very clear on that. > In your 1st post above you wrote: On Wed, Feb

Re: Performance of APR

2009-02-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Boreham wrote: > I think you also need to factor in the labor cost to manage two > different servers. I know that in our production deployments we could > buy many many machines for the cost of the time we've spent trying to > make AJP wo

Re: Subcontext, filter problem.

2009-02-04 Thread Yavuz Kavus
it does not work on apache-tomcat-6.0.18, too. Caldarale, Charles R yazmış: From: Yavuz Kavus [mailto:yavuzka...@gmail.com] Subject: Re: Subcontext, filter problem. apache-tomcat-6.0.16 There were some fixes for multi-level paths that went into 6.0.17. If possible, install 6.0.18 from

RE: Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf

2009-02-04 Thread randhir . singh
Thanks, for your answer. But, I could not understand how to make the module mod_jk.so so that it gets placed in the path $APACHE_HOME/libexec as the documents you mentioned are not very clear on that. regards -Original Message- From: Gregor Schneider [mailto:rc4...@googlemail.com] Sent: W

Re: Subcontext, filter problem.

2009-02-04 Thread Yavuz Kavus
DefaultServlet caches content of files, length, content types etc. i do not cache content of them, everytime a file in the external directory requested, i simply set response headers, read bytes of the resource, and send bytes to the client. i can cache, but i dont want to write a small server i

RE: Subcontext, filter problem.

2009-02-04 Thread Caldarale, Charles R
> From: Yavuz Kavus [mailto:yavuzka...@gmail.com] > Subject: Re: Subcontext, filter problem. > i am currently using the third one. but it is a bit slow > and i dont want to use a filter for such a task. There's nothing wrong with using a filter to catch references to the external directory. The

RE: Subcontext, filter problem.

2009-02-04 Thread Caldarale, Charles R
> From: Yavuz Kavus [mailto:yavuzka...@gmail.com] > Subject: Re: Subcontext, filter problem. > > apache-tomcat-6.0.16 There were some fixes for multi-level paths that went into 6.0.17. If possible, install 6.0.18 from tomcat.apache.org and test with that level. > my filters/servlets in main app

Re: Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf

2009-02-04 Thread Gregor Schneider
well, well, well, seems you're becoming a running gag here in the list. did your read http://tomcat.apache.org/connectors-doc/ as I suggested previously? if so, did you *understand* it? if even so, did you find the link within the document pointing to http://tomcat.apache.org/connectors-doc/webs

Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf

2009-02-04 Thread randhir . singh
I have seen the following set of statements in APACHE_HOME/conf/httpd.conf file,$ LoadModule jk_module libexec/mod_jk.so JkWorkersFile /usr/local/apache1.3/conf/workers.properties JkLogFile /usr/local/apache1.3/logs/m

Re: Subcontext, filter problem.

2009-02-04 Thread Yavuz Kavus
very sorry. apache-tomcat-6.0.16 Caldarale, Charles R yazmış: From: Yavuz Kavus [mailto:yavuzka...@gmail.com] Subject: Subcontext, filter problem. how can i achieve this? For the gazillionth time, TELL US WHAT VERSION OF TOMCAT YOU'RE USING - Chuck THIS COMMUNICATION MA

RE: Thread dump analysis

2009-02-04 Thread Caldarale, Charles R
> From: Pieter Temmerman [mailto:ptemmerman@sadiel.es] > Subject: Re: Thread dump analysis > > Now, I don't know why (since I'm a noob programmer), but it seems that > the implementation of Xerces that is included in JDK6 is causing the > application to hang. Hmmm... could be a JVM bug, or mig

RE: Tomcat configuration with multiple services

2009-02-04 Thread Caldarale, Charles R
> From: Jaakko Taipale [mailto:jaakko.taip...@dbmanager.fi] > Subject: VS: Tomcat configuration with multiple services > The reason why I have two element is that I have configured my > applications to different appBase directories as ROOT. That's a perfectly good reason and an appropriate use f

RE: Subcontext, filter problem.

2009-02-04 Thread Caldarale, Charles R
> From: Yavuz Kavus [mailto:yavuzka...@gmail.com] > Subject: Subcontext, filter problem. > how can i achieve this? For the gazillionth time, TELL US WHAT VERSION OF TOMCAT YOU'RE USING - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus f

RE: java.lang.ClassNotFoundException when starting tomcat

2009-02-04 Thread Caldarale, Charles R
> From: alex_m [mailto:alexander.tolfmans-mar...@systeam.se] > Subject: java.lang.ClassNotFoundException when starting tomcat > > Exception in thread "main" java.lang.NoClassDefFoundError: \ > Caused by: java.lang.ClassNotFoundException: \ > Could not find the main class: \. Program will exit. Loo

RE: Setting a Different context path to webapp name

2009-02-04 Thread Caldarale, Charles R
> From: James Hoare [mailto:james.ho...@net-a-porter.com] > Subject: Setting a Different context path to webapp name > > I have a webapp called myApp.war but I would like to > set this to a different url path than the webapp name. The easiest thing to do is just rename the .war file, but if you in

Re: Wrong install on debian server 40r6

2009-02-04 Thread cactux
Markus Schönhaber-10 wrote: > > Most people on this list (me included) are not interested in helping to > solve problems which might be caused by the Debian-specific re-packaging > of Tomcat (or in finding out whether or not this really is the case). > Therefore, the answer you'll most likely ge

Re: Thread dump analysis

2009-02-04 Thread Pieter Temmerman
Hi. For all of you who were so kind to respond to my problem a few days ago, and for others who'd like to know, I think I have found the problem. As mentioned in earlier mails, the application I monitor hangs after a random amount of time. Using jconsole and virtualvm I managed to detect the thre

Re: servlet use. TC6, FC10

2009-02-04 Thread Dave Pawson
2009/2/4 Gregor Schneider : > what gives "uname -n" ? 2.6.27.12-170.2.5.fc10.i686 -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additio

Re: Why tomcat 6.0.18 looks for MySQL JDBC driver to be placed in CATALINA_HOME/lib folder?

2009-02-04 Thread peterramesh
Hi Gregor, >Why should your webapps require different versions of the same >JDBC-driver? Do you have different instance of MySQL running? >If not, IMHO that doesn't make any sense at all. Thanks for your reply, this make me understood that Tomcat server just need a JDBC driver (single version) f

Re: Why tomcat 6.0.18 looks for MySQL JDBC driver to be placed in CATALINA_HOME/lib folder?

2009-02-04 Thread peterramesh
Hi Kees, Yes. Since, I'm using the JNDO datasource the JDBC driver need to be in $CATALINA_HOME, becase 'common' class loader looks for the JDBC driver (it may be invoked by tomcat-dbcp.jar). Ramesh Kees de Kooter wrote: > > Hi Ramesh, > > Did you configure a JNDI datasource in tomcat? In th

Subcontext, filter problem.

2009-02-04 Thread Yavuz Kavus
hi. i have a problem and need some assistance. i want to map an external directory to a tomcat wepapp(virtual directory). i can achieve this in many ways. 1- adding another context, and setting docbase to my external directory(in server.xml) 2- adding a subcontext to $CATALINA_BASE/conf/[engi

Re: servlet use. TC6, FC10

2009-02-04 Thread Gregor Schneider
what gives "uname -n" ? gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To unsubscribe, e-mail:

servlet use. TC6, FC10

2009-02-04 Thread Dave Pawson
I now have a tiny class file for context 'atom'. Loaded {catalina-home}/webapps/atom/WEB-INF/web.xml and /classes/SimpleServlet.class plus /lib/ couple of jars needed I'm failing to run the app, possibly because of this logged error? [Loaded java.net.Proxy from shared objects file] [Loaded

Re: tomcat including files from apache

2009-02-04 Thread André Warnier
Hi again. Apart from the standard mod_include in Apache (http://httpd.apache.org/docs/2.2/mod/mod_include.html) I was also thinking about another way. It may look less efficient, but it isn't necessarily. The trick would be to use s in the jsp pages which you generate. An has its own SRC at

Limit connections to tomcat via mod_jk

2009-02-04 Thread ben short
Hi, We have Apache Httpd 2.4.4 in front of Tomcat 6.0.13 and are using mod_jk to talk between them. Apache Httpd is using prefork configured to allow 256 processes. Tomcat also has 256 threads available. When a user requests a page one call to the Tomcat is made followed by many requests to get s

Re: tomcat including files from apache

2009-02-04 Thread André Warnier
I just want to forward the following, because I find it nice that someone who is not subscribed would nevertheless want to help. Original Message Subject: Re: tomcat including files from apache Date: Wed, 4 Feb 2009 07:20:04 -0500 From: Rajwinder Makkar x To: x

Limit connections to tomcat via mod_jk

2009-02-04 Thread benshort
Hi, We have Apache Httpd 2.4.4 in front of Tomcat 6.0.13 and are using mod_jk to talk between them. Apache Httpd is using prefork configured to allow 256 processes. Tomcat also has 256 threads available. When a user requests a page one call to the Tomcat is made followed by many requests to get

Re: Display URL without port

2009-02-04 Thread André Warnier
Randir, in the last few days you have been posting several questions to this list (and, unless I am mistaken, also on Apache httpd's). You have received some well-intentioned answers, and a few rather curt ones. The reason for that is, that from your questions it sounds pretty much as if you a

Re: hi

2009-02-04 Thread André Warnier
Kusuma Pabba wrote: unsubscribe me from this list follow the arrow : --! ! ! \/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: hi

2009-02-04 Thread Mihamina Rakotomandimby (R12y)
Kusuma Pabba wrote: unsubscribe me from this list Do it yourself ;-) -- Chef de projet chez Vectoris http://www.google.com/search?q=mihamina+rakotomandimby - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For ad

RE: AJP vs HTTP connectors?

2009-02-04 Thread Gerhardus.Geldenhuis
> -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: 03 February 2009 19:35 > To: Tomcat Users List > Subject: Re: AJP vs HTTP connectors? > > Hi. > > Maybe slightly off-topic, but having a moment of blues and lack of > inspiration/motivation about working on what I

hi

2009-02-04 Thread Kusuma Pabba
unsubscribe me from this list - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

VS: Tomcat configuration with multiple services

2009-02-04 Thread Jaakko Taipale
Thanks for advices, 'tip' was exactly what I need. I have now following configuration: server.xml: ...and I added this in admin application web.xml for ssl forwarding: SLL Forwarding /*

Re: Display URL without port

2009-02-04 Thread Kees de Kooter
Dear Rhandir, Why are you asking this question again today? I already answered the exact same question with a solution similar to Gregor's yesterday. Please do not pollute this mailing list. Cheers, Kees de Kooter http://www.boplicity.net On Wed, Feb 4, 2009 at 11:14, wrote: > We are using

Re: Display URL without port

2009-02-04 Thread Gregor Schneider
Randhir, I presume that both Apache HTTPD and Tomcat are located on the same machine? Note that the default port for HTTP-protocol is port 80. As I've written in one of my previous posts, only one application can be bound to a port, meaning when Apache HTTPD and Tomcat are both located on the sam

Re: AJP vs HTTP connectors?

2009-02-04 Thread Pieter Temmerman
I have a Tomcat cluster with mod_jk and another one with mod_proxy_http, and I'm quite happy with both. Just in case somebody is interested, this guy wrote a blog post about configuring apache with mod_proxy_http: http://www.darkcoding.net/software/goodbye-mod_jk-hello-mod_proxy/ Although he says

Re: java.lang.ClassNotFoundException when starting tomcat

2009-02-04 Thread Mark Thomas
Kees de Kooter wrote: > If I recall correctly Tomcat 5 and lower need a JDK to run, not a JRE. Not quite correct. Tomcat 5.5.x uses the Eclipse JDT compiler so it only requires a JRE. Tomcat 4.1.x normally requires a JDK although if you pre-compile your JSPs it will run quite happily on a JRE.

Re: Setting a Different context path to webapp name

2009-02-04 Thread Kees de Kooter
In the context tag you need to add an attribute named docBase pointing to your warfile. Cheers, Kees de Kooter http://www.boplicity.net On Wed, Feb 4, 2009 at 11:05, James Hoare wrote: > > Hi, was hoping someone would help with the following. I have a webapp called > myApp.war but I would lik

Display URL without port

2009-02-04 Thread randhir . singh
We are using both apache and tomcat in our environment. I wanted information on how to display a URL without port. In, our live environment, when we say http://reselleraccount.directonpc.com, it automatically takes it as http://reselleraccount.directonpc.com:10080. We are migrating to new server. I

Re: java.lang.ClassNotFoundException when starting tomcat

2009-02-04 Thread Kees de Kooter
If I recall correctly Tomcat 5 and lower need a JDK to run, not a JRE. Cheers, Kees de Kooter http://www.boplicity.net On Wed, Feb 4, 2009 at 10:39, alex_m wrote: > > Hi! > > I have a RedHat server that with Tomcat5.5.18 and java (JRE) 1.6.0. When i > tries to start the tomcat server it fails

Re: Wrong install on debian server 40r6

2009-02-04 Thread Markus Schönhaber
cactux: > The Tomcat install on Debian Server 40r6 is quite weird and not functionnal, > although I used the package manager. > > I just installed tomcat5.5 on debian server 40r6, with: > aptitude install sun-java5-jre > aptitude install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps Most people on

Setting a Different context path to webapp name

2009-02-04 Thread James Hoare
Hi, was hoping someone would help with the following. I have a webapp called myApp.war but I would like to set this to a different url path than the webapp name. I've seen in the docs that you can specify an xml file under Catalina_Home/Catalina/localhost/newurlname.xml. I have tried this but

Wrong install on debian server 40r6

2009-02-04 Thread cactux
Hi, The Tomcat install on Debian Server 40r6 is quite weird and not functionnal, although I used the package manager. I just installed tomcat5.5 on debian server 40r6, with: aptitude install sun-java5-jre aptitude install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps It is then available from htt

sneding Ajax call to jsp page

2009-02-04 Thread Sneha Manohar
Hi all , I am new to AJAX , I sending ajax request to jsp page , var url = "http://localhost:8084/Anoigma/handler/loginHandler.jsp?userId="+userId+"&pwd="+pwd;  xmlhttp.onreadystatechange=state_Change;     xmlhttp.open("GET",url,true);     xmlhttp.send(null);    jsp page validates user Id & pwd .

java.lang.ClassNotFoundException when starting tomcat

2009-02-04 Thread alex_m
Hi! I have a RedHat server that with Tomcat5.5.18 and java (JRE) 1.6.0. When i tries to start the tomcat server it fails and i get this output in the Catalina.out file. (this is not due to this bug: https://issues.apache.org/bugzilla/s...g.cgi?id=45983) Any clues? BR Alex >From Catalina.out:

Re: tomcat only query localhost database

2009-02-04 Thread Gregor Schneider
On Wed, Feb 4, 2009 at 8:28 AM, Mihamina Rakotomandimby (R12y) wrote: > > So, my deduction is the Linux tomcat6 has a setting that avoid reading > Catalina/localhost/webappName.xml > can you specify the Linux-distribution / version? In case you are using package-distribution (apt, yast etc.), it'

Re: Apache Tomcat 6.0 loads blank page

2009-02-04 Thread André Warnier
zia mohades wrote: I don't undrestand what the problem is? 1) I have gave all the permissions to test.cgi file 2) this is the address i use ../../bin/test.cgi and it seems to me the right addres. Well, you're wrong. The problem seems to come from a fundamental misunderstanding on your p

Re: Request queue menagement Tomcat 5.5 + Axis

2009-02-04 Thread Sergio Arrighi
Hi Chuck, Thank you very much for the precious shortcut! BB Sergio Caldarale, Charles R ha scritto: From: Sergio Arrighi [mailto:sergio.arri...@iminholding.com] Subject: Re: Request queue menagement Tomcat 5.5 + Axis Could you please tell me if it's possible to set the number of dedicated th

Re: apache tomcat connector header size

2009-02-04 Thread André Warnier
Eric, I'll answer this, so that you don't feel like being totally ignored, which should really be the case. If you really want an answer however, I suggest you repost with some additional information : - which Apache/Tomcat connector are you talking about ? - what versions of Apache, Tomcat,

Re: Tomcat 6: How to tell a Context/Webapp where to look for files?

2009-02-04 Thread André Warnier
Steve Mysterious wrote: Hi; Tomcat: 6.0 Tomcat Installation Directory: C:\Program Files\Apache Software Foundation\Tomcat 6.0 OS: Windows XP ( Windows 5.1 service pack 2 ) Java: JDK 1.6.0_10-beta Context/Webapp Name: abcdev I'm using the above configuration to set up a development environm

Re: tomcat including files from apache

2009-02-04 Thread André Warnier
H. Hall wrote: chuckvb wrote: I have a basic configuration working where Apache serves my static html and tomcat provides my dynamic data. Using Apache2 on linux with TomCat 6 and mod_jk. How do I include header files and other files from apache for my tomcat jsp files. right now I use <%@