Re: Tomcat throwing some weird errors

2009-06-25 Thread André Warnier
John Oliver wrote: RHEL5.2, tomcat5-5.5.23-0jpp.7.el5_2.1, Sun Java JDK 1.6.0u13 ... Is there something else that needs to be restarted or installed or set or ??? to make it leave the symlinks? Or some other package from Sun that includes jndi.jar, jaas.jar, and jdbc-stdext.jar? I think y

Re: Problem of port 8080

2009-06-25 Thread Xia Guowen
Thanks, Andre-John Mas But, ipv6 was always disable. Why port 8080 is disapeared ? Is java or tomcat bind to port 8080? Compatible problem between JDK and Tomcat? # cat /etc/modprobe.conf alias net-pf-10 off alias ipv6 off # netstat -lnut |grep 80 tcp0 0 127.0.0.1:8005

Re: Problem of port 8080

2009-06-25 Thread Andre-John Mas
Odd, in the first case I see 8080 listening to any IPv6 port (no IPv4 addresses), yet in the second case it seems to have stopped listening to IPv6. I am going to hazard a guess that maybe there is something wrong with you IPv6 interface or something IPv6 related is failing. On 25-Jun-2009

Re: Problem of port 8080

2009-06-25 Thread Xia Guowen
I'm so sorry for the first question. My tomcat listen on port 8080, I could access http://server_ip:8080/ everything was ok. # netstat -lnut |grep 80 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:80090.0.0.0:*

[ANN] Apache Tomcat 4.1.40 stable is now available

2009-06-25 Thread Mark Thomas
The Apache Tomcat team is proud to announce the immediate availability of Tomcat 4.1.40 stable. This build contains a small number of bug fixes and two important and three low severity security fixes. Please refer to the release notes for a complete list of changes. Apache Tomcat 4 is an implemen

j_security_check

2009-06-25 Thread Oliver Block
Hello everybody, a jaas login module - the first one I've actually written - authenticates a user by connecting to an imap server and if the connection is established, the credentials are considered valid and the user is authenticated. (I've written about that in another mail last week I think.

Tomcat throwing some weird errors

2009-06-25 Thread John Oliver
RHEL5.2, tomcat5-5.5.23-0jpp.7.el5_2.1, Sun Java JDK 1.6.0u13 [r...@mda-services3 logs]# service tomcat5 start Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Alan Chaney
Andre André Warnier wrote: Pid wrote: The Filter checks the domain name is suitable, /looks up a config object/ and drops it into the request attributes for use on the page. Ha ! I believe that this is exactly what Jonathan is (or was originally) looking for. Where is this "config object",

Re: The best place for implementing context specific behavior?

2009-06-25 Thread André Warnier
Pid wrote: The Filter checks the domain name is suitable, /looks up a config object/ and drops it into the request attributes for use on the page. Ha ! I believe that this is exactly what Jonathan is (or was originally) looking for. Where is this "config object", and when and how is it being

Re: The best place for implementing context specific behavior?

2009-06-25 Thread André Warnier
Jonathan Mast wrote: Haha thanks, Andre, I'm not lost but it seems other people might be. I'm going to go ahead define separate hosts, although the option mentioned might work, I don't know if it would preserve correctly the value returned by request.getLocalName() that's *wrong*, you should

SSL requests not forwarding to jk on Solaris x86

2009-06-25 Thread Kenneth Aung
I have run into a strange problem. I have installed apache 2.2.11 from source. Installed nTrust certs. Everything works fine. I also installed Tomcat 5.5.27. Tested by itself port 8080 etc. all works fine. Then, mod_jk compiled the latest 1.2.28 from source (no binaries available). Set up workers.p

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark Thomas wrote: > If all your requests are handled by a single host, you don't need the > aliases. Right. (Actually I do have a second virtual host on this server.) Cheers, Marcus -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux)

RE: Custom Valve

2009-06-25 Thread Caldarale, Charles R
> From: Sumit D [mailto:sumitd...@gmail.com] > Subject: Re: Custom Valve > > by the way, I could not find META-INF/context.xml. I create from > scratch ? Yes, create it if you need one. Many webapps do not require the Tomcat-specific settings available via a element. > Also, if I put the

RE: session-timeout vs. maxInactiveInterval

2009-06-25 Thread Caldarale, Charles R
> From: Lynn Hollerman [mailto:gmh2...@louisiana.edu] > Subject: session-timeout vs. maxInactiveInterval > > I have been looking around the Net for information about > the items in the subject and tomcat; it appears that they > are actually the same thing Pretty much. The setting is used if the

Re: Tomcat and Salesforce Issue

2009-06-25 Thread Filip Hanik - Dev Lists
define "fails to connect when invoked" very little information about your actual error in your email Filip Jamz_2010 wrote: Hi all, I have a web service setup on tomcat 5.5 that connects to Salesforce.com through a web service call. This works fine and dandy but after it has been left overnigh

Re: Help with Layer 7 LB and Tomcat

2009-06-25 Thread Filip Hanik - Dev Lists
since you're using HTTP:80 on Tomcat, I would configure it this way this should make it work Filip Vinicius Carvalho wrote: Hello there! We are adding a new server to our park, and now we are going to use LB for both machines. We are using an Alteon 180e layer 7 switch to perform LB. So far e

tomcat 5.5 jndi look up

2009-06-25 Thread Vikrant Dessai
I am experiencing strange and unpredictable behavior with the look up resource name. My context.xml is as below and my jndi lookup code looks up for "java:comp/env/UserTransaction" Sometime it works other times it cribs as not found and changing it to "java:comp/UserTransaction" resolves t

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Mark Thomas
Marcus Better wrote: > First you can setup aliases in the Host, something like > > > apples.mysite.com > bananas.mysite.com > coconuts.mysite.com > If all your requests are handled by a single host, you don't need the aliases. Equally, if the host is the default host, you don't need the

Re: Upgrade from 6.0.18 - 6.0.20

2009-06-25 Thread Norm Wong
Thanks, Hassan. Appreciate the quick response! Cheers, Norm On Thu, Jun 25, 2009 at 9:58 AM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Thu, Jun 25, 2009 at 9:19 AM, Norm Wong wrote: > > > I'm new to Apache Tomcat and currently have installed 6.0.18 on a Windows > > 2008 Server t

Re: Upgrade from 6.0.18 - 6.0.20

2009-06-25 Thread Hassan Schroeder
On Thu, Jun 25, 2009 at 9:19 AM, Norm Wong wrote: > I'm new to Apache Tomcat and currently have installed 6.0.18 on a Windows > 2008 Server to support a customer application. > A vulnerability issue was raised and I have to move to 6.0.20. I've > downloaded the file and have tried to run it, but i

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Pid
Jonathan Mast wrote: > Haha thanks, Andre, I'm not lost but it seems other people might be. Seriously: skip the extra Hosts, skip the Aliases, just use the defaultHost. I have a private label system in production right now that does exactly this. The Filter checks the domain name is suitable, lo

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan Mast wrote: > I'm going to go ahead define separate hosts, although the option > mentioned might work, I don't know if it would preserve correctly the > value returned by request.getLocalName() which is what I'm using for > determining the ho

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Pid
André Warnier wrote: > Pid wrote: >> >> If you're analyzing the host name per request and no other config is >> required, just point it all at the default host. You may not need to >> setup additional virtual hosts in server.xml. >> > I claim prior art on that one. fair enough... but the same thi

Upgrade from 6.0.18 - 6.0.20

2009-06-25 Thread Norm Wong
Good people - I'm new to Apache Tomcat and currently have installed 6.0.18 on a Windows 2008 Server to support a customer application. A vulnerability issue was raised and I have to move to 6.0.20. I've downloaded the file and have tried to run it, but it appears to just install a new instance of

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Jonathan Mast
Haha thanks, Andre, I'm not lost but it seems other people might be. I'm going to go ahead define separate hosts, although the option mentioned might work, I don't know if it would preserve correctly the value returned by request.getLocalName() which is what I'm using for determining the host spe

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan Mast wrote: > I have a webapp that I would like to behave in a context (actually > host)-specific manner. Where is the best place to initialize the > context/host specific functionality? I implemented something very similar a few days ago.

Re: The best place for implementing context specific behavior?

2009-06-25 Thread André Warnier
Jonathan, if by now you are a bit lost in the various options related to the hostname and why, just say so. I have a practised step-by-step explanation available. It's all pretty standard HTTP/name-based virtual hosts stuff, but it has many people confused. --

Re: The best place for implementing context specific behavior?

2009-06-25 Thread André Warnier
Pid wrote: If you're analyzing the host name per request and no other config is required, just point it all at the default host. You may not need to setup additional virtual hosts in server.xml. I claim prior art on that one. "All of the above is predicated on the asumption that you really ne

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André Warnier wrote: > I believe (but we need a real expert here) that having multiple > entries sharing the same appBase is a receipe for problems. (Not that I'm an expert, but...) Fortunately it's not necessary in this case. You can use a single H

RE: compiling mod_jk1.2.28 with apache2.2.9 on windows 2003 server help needed.

2009-06-25 Thread Ashwin K
Thank you Rainer, I will update the list with my finding, once I get back to work tomorrow. -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thursday, June 25, 2009 8:36 PM To: Tomcat Users List Subject: Re: compiling mod_jk1.2.28 with apache2.2.9 on windows 2

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Pid
Jonathan Mast wrote: > You misunderstood the issue at hand. The host name I'm detecting is not the > that of the viewer of my site, but my site, so there must be different host > virtualhosts setup. No, I don't think I did, but I was perhaps hasty and imprecise in the terminology I used. All req

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Jonathan Mast
You misunderstood the issue at hand. The host name I'm detecting is not the that of the viewer of my site, but my site, so there must be different host virtualhosts setup. On Thu, Jun 25, 2009 at 11:07 AM, Pid wrote: > Jonathan Mast wrote: > > Chris, this is indeed a case of private labeling.

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Pid
Jonathan Mast wrote: > Chris, this is indeed a case of private labeling. My company has setup a > site to which a major distributor wants to send traffic. As such they are > demanding custom advertising tags. The problem is that this site will also > be recieving traffic from other distribution

Re: compiling mod_jk1.2.28 with apache2.2.9 on windows 2003 server help needed.

2009-06-25 Thread Rainer Jung
Hi, On 25.06.2009 14:08, Ashwin K wrote: > Hi , > > I have followed the instruction said in here "Building mod_jk for Apache on > Windows NT/2K/XP" at this official tomcat site > http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html. > Basically the step i did was > > 1) download a

session-timeout vs. maxInactiveInterval

2009-06-25 Thread Lynn Hollerman
Question. I have been looking around the Net for information about the items in the subject and tomcat; it appears that they are actually the same thing(I'm not sure I'm understanding the docs correctly). So then, what is the difference between the that's set in a tomcat's web.xml or an applic

RE: Tomcat startup as service on CentOS 5.3

2009-06-25 Thread tomcatastrophe
Ok, I changed the owner and it works now. :) tomcatastrophe wrote: > > I have gotten the script to work now, but I do want to change the user. > When I change to a user that isn't root I get permission denied errors > when trying to run the script. > > What do I need to do to get a different u

RE: Tomcat startup as service on CentOS 5.3

2009-06-25 Thread tomcatastrophe
I have gotten the script to work now, but I do want to change the user. When I change to a user that isn't root I get permission denied errors when trying to run the script. What do I need to do to get a different user to be able to run the script? Normally I'd just run sudo, but I'm not sure ho

Re: Help with Layer 7 LB and Tomcat

2009-06-25 Thread Rainer Jung
On 25.06.2009 14:06, Vinicius Carvalho wrote: > Thanks Rainer, I've already set up clusters using apache + mod_jk > (mod_proxy) with and without ssl. The problem now is just the Alteon > LB, which is not my area, so I was looking for some advices on setting > up with a layer 7 swtich. Did you actu

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Jonathan Mast
Chris, this is indeed a case of private labeling. My company has setup a site to which a major distributor wants to send traffic. As such they are demanding custom advertising tags. The problem is that this site will also be recieving traffic from other distribution channels, hence the need for

Re: Tomcat startup as service on CentOS 5.3

2009-06-25 Thread Markus Schönhaber
tomcatastrophe: > I was using root just trying to get it to work. I'm not sure what you mean > about line endings here... I don't have any \n in my file... or do you mean > the character return ? I'm a little confused. I'm talking about the character(s) that denotes a line ending, "return" in a m

RE: Tomcat startup as service on CentOS 5.3

2009-06-25 Thread tomcatastrophe
Sure enough, this did it! VERY helpful. Jason Pyeron wrote: > > >> -Original Message- >> From: tomcatastrophe >> Sent: Thursday, June 25, 2009 9:47 >> Subject: Tomcat startup as service on CentOS 5.3 >> >> >> I have found and tried some startup scripts online and added >> them to /

Re: Tomcat startup as service on CentOS 5.3

2009-06-25 Thread tomcatastrophe
I was using root just trying to get it to work. I'm not sure what you mean about line endings here... I don't have any \n in my file... or do you mean the character return ? I'm a little confused. Markus Schönhaber-10 wrote: > > tomcatastrophe: > >> When I try to run /etc/init.d/tomcat restart

Re: Tomcat startup as service on CentOS 5.3

2009-06-25 Thread Markus Schönhaber
tomcatastrophe: > When I try to run /etc/init.d/tomcat restart or /sbin/service tomcat restart > (or stop or start) I get this error: > > -bash: /etc/init.d/tomcat: /bin/bash^M: bad interpreter: No such file or > directory When you create script files for Linux on a Windows box, make sure you sa

RE: Tomcat startup as service on CentOS 5.3

2009-06-25 Thread Jason Pyeron
> -Original Message- > From: tomcatastrophe > Sent: Thursday, June 25, 2009 9:47 > Subject: Tomcat startup as service on CentOS 5.3 > > > I have found and tried some startup scripts online and added > them to /etc/init.d as tomcat, so /etc/init.d/tomcat > > I ran chmod a+x tomcat on t

Tomcat startup as service on CentOS 5.3

2009-06-25 Thread tomcatastrophe
I have found and tried some startup scripts online and added them to /etc/init.d as tomcat, so /etc/init.d/tomcat I ran chmod a+x tomcat on the script and then chkconfig --add tomcat chkconfig --list shows tomcat in the list I have modified the script to have the proper location for my tomcat i

Re: compiling mod_jk1.2.28 with apache2.2.9 on windows 2003 server help needed.

2009-06-25 Thread Steve Ochani
Send reply to: Tomcat Users List From: Ashwin K To: users@tomcat.apache.org Subject:compiling mod_jk1.2.28 with apache2.2.9 on windows 2003 server help needed. Date sent: Thu, 25 Jun 2009 17:38:59 +0530 > Hi ,

RE: Tomcat WAR deployment with virtual host only shows blank page

2009-06-25 Thread Caldarale, Charles R
> From: tomcatastrophe [mailto:nab...@changethings.org] > Subject: RE: Tomcat WAR deployment with virtual host only shows blank > page > > So, I should package my WAR then? Not necessarily; you can deploy it expanded, but with the directory name ROOT, not ROOT.war. - Chuck THIS COMMUNICATION

RE: Tomcat WAR deployment with virtual host only shows blank page

2009-06-25 Thread tomcatastrophe
Thanks Chuck. So, I should package my WAR then? Caldarale, Charles R wrote: > >> From: tomcatastrophe [mailto:nab...@changethings.org] >> Subject: RE: Tomcat WAR deployment with virtual host only shows blank >> page >> >> Yes, it is a directory. What is odd is that it copies the >> META-INF/co

RE: Tomcat WAR deployment with virtual host only shows blank page

2009-06-25 Thread Caldarale, Charles R
> From: tomcatastrophe [mailto:nab...@changethings.org] > Subject: RE: Tomcat WAR deployment with virtual host only shows blank > page > > Yes, it is a directory. What is odd is that it copies the > META-INF/context.xml to the /tomcat/conf/Catalina/foo.com folder... Not something to be counted on

Re: log4j w/apache

2009-06-25 Thread Christopher Piggott
This is described here: http://www.mail-archive.com/log4j-u...@logging.apache.org/msg10697.html If you truly want them to go nowhere you can do this: log4j.logger.org.apache.commons.digester.Digester=WARN, nowhere log4j.logger.org.apache.commons.digester.Digester.sax=WARN, nowhere log4j.appender

RE: Tomcat WAR deployment with virtual host only shows blank page

2009-06-25 Thread tomcatastrophe
Yes, it is a directory. What is odd is that it copies the META-INF/context.xml to the /tomcat/conf/Catalina/foo.com folder... This works fine on JBoss, I can deploy a foo.war that is actually a directory and JBoss (which uses Tomcat) has no problem doing this. Caldarale, Charles R wrote: > >>

RE: Tomcat WAR deployment with virtual host only shows blank page

2009-06-25 Thread Caldarale, Charles R
> From: tomcatastrophe [mailto:nab...@changethings.org] > Subject: Tomcat WAR deployment with virtual host only shows blank page > > If I rename the ROOT.war to ROOT it starts up fine. Does it matter if > the .war file is packed or unpacked and just named .WAR? Are you saying that ROOT.war is rea

compiling mod_jk1.2.28 with apache2.2.9 on windows 2003 server help needed.

2009-06-25 Thread Ashwin K
Hi , I have followed the instruction said in here "Building mod_jk for Apache on Windows NT/2K/XP" at this official tomcat site http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html. Basically the step i did was 1) download and install jdk1.6.0_07 2) download and install apapche2.2.

Re: Help with Layer 7 LB and Tomcat

2009-06-25 Thread Vinicius Carvalho
Thanks Rainer, I've already set up clusters using apache + mod_jk (mod_proxy) with and without ssl. The problem now is just the Alteon LB, which is not my area, so I was looking for some advices on setting up with a layer 7 swtich. Regards On Thu, Jun 25, 2009 at 8:19 AM, Rainer Jung wrote: > Hi,

Re: Custom Valve

2009-06-25 Thread Sumit D
Hi Christopher* * Thank you for your response. *By "write some data in an object" I wanted to say that, when the logs are written, * *then and there I would like to have the same information encapsulated in an object* because we need to send it to our framework. Another option would be analyzing

Re: mod_jk MAX WORKERS

2009-06-25 Thread Rainer Jung
On 25.06.2009 08:46, Mladen Turk wrote: > Fletcher Cocquyt wrote: >> Hi, we have noticed when we get close to 150 workers/2000bytes defined >> in our >> worker.list - mod_jk 1.2.20 starts to break ("could not find worker >> for worker >> name=xyz") >> >> Anyone know what the limits are on 1.2.28 in

Re: Help with Layer 7 LB and Tomcat

2009-06-25 Thread Rainer Jung
Hi, On 25.06.2009 02:36, Vinicius Carvalho wrote: > Hello there! We are adding a new server to our park, and now we are > going to use LB for both machines. We are using an Alteon 180e layer 7 > switch to perform LB. So far everything was fine. But we decided to > let the router do all the SSL par

Re: Bizarre NoClassDefFoundError

2009-06-25 Thread A. Rothman
Thanks Bill - I think we've got progress! I missed the policy file, thinking about file permissions... when I add "grant { permission java.security.AllPermission; }" to the policy file, the error goes away! So - what's going on? It makes sense that the compiler and app runtime would have d

Tomcat and Salesforce Issue

2009-06-25 Thread Jamz_2010
Hi all, I have a web service setup on tomcat 5.5 that connects to Salesforce.com through a web service call. This works fine and dandy but after it has been left overnight it fails to connect when invoked. I had a similar problem with another web service call that I was using so I dont think its

Re: The best place for implementing context specific behavior?

2009-06-25 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: The best place for implementing context specific behavior? I believe (but we need a real expert here) that having multiple entries sharing the same appBase is a receipe for problems. It seems to work for mos

Re: Problem of port 8080

2009-06-25 Thread Markus Schönhaber
Please don't hijack a completely unrelated thread. Xia Guowen: > Tomcat running for some time, do not have access to 8080, but 8009 and 8005 > is ok. > mod_jk access is normal. Is a Connector listening to port 8080 indeed configured? If so, what's in the logs? > # netstat -lnut |grep 8080 > tc

Re: Regarding Java Heap Size

2009-06-25 Thread André Warnier
Leon Rosenberg wrote: Bother telling which? He didn't say, waiting to be asked precisely. The next answer would probably have been : "Windows". He must have read http://marc.info/?l=tomcat-user&m=122823060425367&w=2 catalina.bat was kind of a giveaway though. ;-) -

Re: Regarding Java Heap Size

2009-06-25 Thread Leon Rosenberg
Bother telling which? If its windows the max you can get is 1500-something. For linux it depends, but will be clearly under 2Gb. regards Leon On Thu, Jun 25, 2009 at 8:52 AM, Habib Rahman wrote: > Thanks Leon, M is not a problem I forget to include in my question, My > system is 32 bit OS . > >

Re: Tomcat 6.0 and JULI issue.

2009-06-25 Thread Mark Thomas
Kodichath, Suresh wrote: > Hi all: > I hit this issue while trying to move my application from Tomcat 5.5.9 to > Tomcat 6.0.18. The application runs fine in Tomcat 5.5.9 but is getting the > following exception with Tomcat 6.0.18. Any help with this is much > appreciated!. Your handler needs to

Problem of port 8080

2009-06-25 Thread Xia Guowen
Tomcat running for some time, do not have access to 8080, but 8009 and 8005 is ok. mod_jk access is normal. # netstat -lnut |grep 8080 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:80090.0.0.0:* L