Why HttpSessionEvent comes prior to ServletRequestEvent

2010-04-01 Thread Mercy

Hi,

   I declared two listeners , the former is a ServletRequestListener, 
the later is HttpSessionListener.


   When a client request  calls the application first, why a 
HttpSessionEvent comes prior to ServletRequestEvent?



Kind regards,
Mercy

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteHostValve for infinite domains?

2010-04-01 Thread Bob Hall
Dean,

--- On Wed, 3/31/10 at 10:53 PM, Dean Hiller dean.hil...@gmail.com wrote:

            
    allow=.*\.dev\.premonitionx\.com/
 

I haven't used this TC feature but it wouldn't hurt to try:

 allow=*\.dev\.premonitionx\.com /

- Bob




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Windows Local user Login

2010-04-01 Thread Stéphanie Cettou
No, I'm not sure what I want...the only things sure is my mandatory
(and optional) rules...but I don't know how I will make this...
I ask for the windows local user while for me is more simple to create
local user that install a new server with active directory...but if is
necessary (or best) I can install it.
Now, I am writing to understand wich solution I must to take...

So:
- the webapp running in a Microsoft Windows 2003 Server environment.
Active directory is NOT use in this server.
- I don't know what I do...but nobody here can do thisI must learn it..
- Actually the users authenticate with a user/passwords/roles in a SQL
2000 Database. I use
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=net.sourceforge.jtds.jdbc.Driver
 
connectionURL=jdbc:jtds:sqlserver://acer1/ServiceCenter;user=sa;password=sa;namedPipe=true
 userTable=Users userNameCol=UserId userCredCol=Password
 userRoleTable=UsersFeatures roleNameCol=FeatureID /

like standard tomcat authentication. But, I need to change to
implement my goal..

a) Do you have AD already? No
b) Do you have to authenticate against local Microsoft Windows User
DB? not mandatory
c) Can you use your own database? Yes (but I must to be implement
complex authentication)

Thank you very much Christopher for your help!

Stéphanie



2010/3/31 Christopher Schultz ch...@christopherschultz.net:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Stéphanie,

 It sounds to me like you're not sure what you want. Your original
 message was asking about how to authentication against a local Microsoft
 Windows user database (that is, NOT ActiveDirectory, which should be
 trivial). Now it sounds like you want to enforce all kinds of
 constraints on passwords, etc.

 Let's solve one problem at a time.

 On 3/31/2010 11:25 AM, Stéphanie Cettou wrote:
 I have a JSP application and tomcat 5.5.

 my goal it to implement a login for this application with this mandatory 
 rules:

 You can deal with password complexity once you've decided how your
 passwords will be stored and how they will be set.

 For example, typically when authenticating against ActiveDirectory, the
 webapp itself does not provide a way to change an AD password. When
 passwords are set is the appropriate time to check for required
 complexity. Password expiration should also be done by some other means:
 Authentication just checks credentials.

 The user must can connect from more pc, the finally application is in
 a Windows 2003 server.

 So, you have the webapp running in a Microsoft Windows 2003 Server
 environment: good to know. Is ActiveDirectory being used in this
 environment? If so, use it. If not, don't set up AD just for your webapp.

 I don't know if I can use active directory (create a new active
 directory only for this application = install a new server), or others
 things...
 I don't know if I need to implement this in java, or a existing
 solution is ready...

 An existing solution is probably already available... in Java.

 I don't have a lot of knowledge in active directory, tomcat, NTLM or
 Kerberos, 

 If you don't know what you're doing, I highly recommend that you find
 someone who does and make this their job to do.

 I need to be sure to choise the good solution for all point of my goal
 while I can't spent a lot of time, and I can't change my solution
 later...

 Do you have a user database against which you'd like to authenticate
 users? If that database is separate from Microsoft Windows (say, a
 RDBMS), then you don't have to mess with AD/NTLM/whatever: just use one
 of the standard Tomcat realms to do authentication for you. If you
 *must* use the Microsoft Windows user database, then you should look for
 a Java product that can authenticate against such a database.

 So, which is it:

 a) Do you have AD already?
 b) Do you have to authenticate against local Microsoft Windows User DB?
 c) Can you use your own database?

 I'm still not really clear on what your situation is.

 can you give me more informations, please? I don't have enough
 knowledge to choise the the simplest and best solution now...

 You are asking about implementing user authentication, which is
 typically an integral part of your security policy. If you don't
 understand what you are doing, anyone could give you horrible advice. My
 advice is to make sure you understand what you're doing before you do it.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkuzkiEACgkQ9CaO5/Lv0PCU3ACfd2wX88utKny/EEDEFxROcFl+
 W6gAnAktwUL/CWvTW8C3+4jocKqCnl5d
 =fRvV
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Connectors in Tomcat

2010-04-01 Thread Mark Thomas
On 01/04/2010 06:33, Hemali Doshi wrote:
 Hi,
  i wanted to create an https connector on a port other than 8443. There is a
 method to create HttpsConnector in MBeanFactory. Could anyone kindly tell me
 how to use this method and what parameters to pass?

Did you read the JavaDoc or look at the source code?

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Why HttpSessionEvent comes prior to ServletRequestEvent

2010-04-01 Thread Mark Thomas
On 01/04/2010 07:19, Mercy wrote:
 Hi,
 
I declared two listeners , the former is a ServletRequestListener,
 the later is HttpSessionListener.
 
When a client request  calls the application first, why a
 HttpSessionEvent comes prior to ServletRequestEvent?

Because something is triggering session creation before the request hits
the first filter or servlet in the app.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connectors in Tomcat

2010-04-01 Thread Hemali Doshi
Yes, i did look at the source code. But there is a parameter called parent
in createHttpsConnector method. I am unable to find the parent, I tried
passing Catalina,StandardEngine, etc. It gives me a null pointer exception
for whatever parent name I pass.

Thanks.
-Hemali


Re: RemoteHostValve for infinite domains?

2010-04-01 Thread Mark Thomas
On 01/04/2010 06:53, Dean Hiller wrote:
 I added this(I want it to use my requirements.war file for any requests to
 .dev.premonitionx.com where  is infinite combinations all of which
 point to one single ip of course.  I have another Host for
 .demo.premonitionx.com as well with infinite combinations again.
 
 This does not seem to be working though...
 
   Host name=dev.premonitionx.com  appBase=zrequirements
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Valve className=org.apache.catalina.valves.RemoteHostValve
allow=.*\.dev\.premonitionx\.com/
   /Host
 
 Do I have this wrong?  How do I get this to work?  Does the name need to
 match the allow or something?

It is *Remote*HostValve so it acts on the host name of the client, not
the http host header.

You want wildcard matching in a host alias and that isn't supported at
the moment. It has been discussed a few times (see the dev archives) but
there are performance concerns.

If the performance concerns can be overcome, it is a possible feature
addition for Tomcat 7. Fancy writing a patch?

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connectors in Tomcat

2010-04-01 Thread Mark Thomas
On 01/04/2010 09:30, Hemali Doshi wrote:
 Yes, i did look at the source code. But there is a parameter called parent
 in createHttpsConnector method. I am unable to find the parent, I tried
 passing Catalina,StandardEngine, etc. It gives me a null pointer exception
 for whatever parent name I pass.

You need to the MBean name for the parent service. You can connect to a
running Tomcat instance with JConsole to see what the name is.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteHostValve for infinite domains?

2010-04-01 Thread André Warnier

Dean Hiller wrote:

I added this(I want it to use my requirements.war file for any requests to
.dev.premonitionx.com where  is infinite combinations all of which
point to one single ip of course.  I have another Host for
.demo.premonitionx.com as well with infinite combinations again.

This does not seem to be working though...

  Host name=dev.premonitionx.com  appBase=zrequirements
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Valve className=org.apache.catalina.valves.RemoteHostValve
   allow=.*\.dev\.premonitionx\.com/
  /Host

Do I have this wrong?  How do I get this to work?  Does the name need to
match the allow or something?


It looks like you are confusing to and from.
The above would only allow access *to* your server *from* remote clients 
whose IP address, when resolved by a reverse DNS lookup done by your 
server, matches a hostname like .*\.dev\.premonitionx\.com.
In other words, as done above, it is the *clients* which are expected to 
be in the domain .dev.premonitionx.com.


Re-read http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteHostValve for infinite domains?

2010-04-01 Thread André Warnier

Dean Hiller wrote:

I added this(I want it to use my requirements.war file for any requests to
.dev.premonitionx.com where  is infinite combinations all of which
point to one single ip of course.  I have another Host for
.demo.premonitionx.com as well with infinite combinations again.

This does not seem to be working though...

  Host name=dev.premonitionx.com  appBase=zrequirements
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Valve className=org.apache.catalina.valves.RemoteHostValve
   allow=.*\.dev\.premonitionx\.com/
  /Host

Do I have this wrong?  How do I get this to work?  Does the name need to
match the allow or something?

I may add that with the kind of hostnames you are using, there should 
not be any special configuration necessary.  Should not the Tomcat host 
be able to figure out in advance which client is going to send a request 
to which host, and set itself up automatically ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Why HttpSessionEvent comes prior to ServletRequestEvent

2010-04-01 Thread Mercy

Thanks,but I can't understand why not ServnetRequestEvent comes first?

Kind regards,
Mercy

Mark Thomas wrote:

On 01/04/2010 07:19, Mercy wrote:
  

Hi,

   I declared two listeners , the former is a ServletRequestListener,
the later is HttpSessionListener.

   When a client request  calls the application first, why a
HttpSessionEvent comes prior to ServletRequestEvent?



Because something is triggering session creation before the request hits
the first filter or servlet in the app.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


  




Re: Connectors in Tomcat

2010-04-01 Thread Mark Thomas
On 01/04/2010 11:45, Hemali Doshi wrote:
 Hi,
 
 We ran jconsole and found the the service is catalina and the mbean name is
 Catalina:type=Service,serviceName=Catalina. but still the program is giving
 null pointer exception. other two parameters have been passed as ip address
 of my machine and port as say 8443.
 
 Do you know what the problem is?

My crystal ball isn't working too well today. Given that you haven't
provided:
- Platform
- JDK version
- Tomcat version
- the stack trace

how do you expect people here to be able to answer that question?

I suggest you try reading http://www.catb.org/~esr/faqs/smart-questions.html

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Hide JSP name using web.xml

2010-04-01 Thread Konstantin Kolinko
2010/4/1 Karthik Nanjangude karthik.nanjang...@xius-bcgi.com:

 I also have roughly 300+ similar pages across folder1 /folder 2

You will either need something to generate that web.xml for you,
or some person to type in those 300 mappings (if they are all different),
or use some Filter/Servlet that performs introspection of your
resources at runtime.

Read the Servlet specification !
You can find the links in the first few sentences here:
http://wiki.apache.org/tomcat/FAQ


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: RemoteHostValve for infinite domains?

2010-04-01 Thread Caldarale, Charles R
 From: Bob Hall [mailto:rfha...@yahoo.com]
 Subject: Re: RemoteHostValve for infinite domains?
 
 I haven't used this TC feature but it wouldn't hurt to try:
 
  allow=*\.dev\.premonitionx\.com /

Please explain how that parses, since the allow string uses regular expression 
syntax, not wildcards (hence the need for the \. to match a period).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Why HttpSessionEvent comes prior to ServletRequestEvent

2010-04-01 Thread Caldarale, Charles R
 From: Mercy [mailto:techme...@gmail.com]
 Subject: Re: Why HttpSessionEvent comes prior to ServletRequestEvent
 
 Thanks,but I can't understand why not ServnetRequestEvent comes first?

Because the QuantumTunneling filter to reorder reality isn't scheduled until 
Tomcat 8.  (Yes, this is 1 April.)

As Mark said, something is triggering session creation before your webapp code 
gets control.  One possibility is that the user is required to log in.  Enable 
full logging if you want to see all the gory details.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



Re: Windows Local user Login

2010-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stéphanie,

On 4/1/2010 3:12 AM, Stéphanie Cettou wrote:
 - the webapp running in a Microsoft Windows 2003 Server environment.
 Active directory is NOT use in this server.

Got it.

 - Actually the users authenticate with a user/passwords/roles in a SQL
 2000 Database.

Perfect! There's no reason to mess around with AD/NTLM/Kerberos or any
of that stuff: just use a standard Realm that ships with Tomcat to
authenticate against a JDBC user database.

Uh, does SQL 2000 Database really mean Microsoft SQL Server 2000?

 Realm  className=org.apache.catalina.realm.JDBCRealm

I highly recommend that you do *not* use JDBCRealm, as this realm is
effectively single-threaded according to the Tomcat developers.
Consider using DataSourceRealm instead, which uses a pool of JDBC
connections to perform authentication.

  driverName=net.sourceforge.jtds.jdbc.Driver

If you're running Microsoft SQL Server, you should probably be using the
Microsoft JDBC driver. Although, I did look up jTDS and it looks like
it's a decent driver.

  userTable=Users userNameCol=UserId userCredCol=Password
  userRoleTable=UsersFeatures roleNameCol=FeatureID /
 
 like standard tomcat authentication.

Okay, great. It wasn't clear that you had an acceptable authentication
solution already implemented.

 But, I need to change to implement my goal...
 
 c) Can you use your own database? Yes (but I must to be implement
 complex authentication)

I see. Let's go to your previous message:

 - Check type of password (more that 8 char, special char,...)

Tomcat does not provide any way to change passwords, so you'll have to
implement these items yourself in your password-change code.

 - Ask new password every month (from the web site)

Again, you'll have to implement this yourself.

 - Block the user after 3 failed login

Tomcat does not implement this until recent versions of Tomcat 6.x. Are
you able to upgrade to the latest Tomcat 6.x? You can use LockOutRealm
to do /some/ kind of blocking (I'm not sure exactly what your
requirements are, and I'm not sure exactly what the LockOutRealm does to
enforce the locking).

 - Block inactive user (ex after 90 days)

Tomcat does not do this, either: you'll have to either use your own
authentication system (such as securityfilter
http://securityfilter.sourceforge.net along with your own Realm
implementation that includes additional data-checking during the login)
or in some other way.

We implement features like the above in our project by using
securityfilter with a custom Realm, plus a credential Filter which
checks password age and user status, and then does things like redirect
all requests to the change password page if you need to change your
password, etc.

Perhaps something like that would work for you.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku0oRYACgkQ9CaO5/Lv0PComwCfb/JwX0d2yDh8SvUVoteSh+lM
d4QAoJLrIaWZCzFApoB9uHS/G//4i+K4
=cSNG
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteHostValve for infinite domains?

2010-04-01 Thread Pid

On 01/04/2010 06:53, Dean Hiller wrote:

I added this(I want it to use my requirements.war file for any requests to
.dev.premonitionx.com where  is infinite combinations all of which
point to one single ip of course.  I have another Host for
.demo.premonitionx.com as well with infinite combinations again.

This does not seem to be working though...

   Host name=dev.premonitionx.com  appBase=zrequirements
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Valve className=org.apache.catalina.valves.RemoteHostValve
allow=.*\.dev\.premonitionx\.com/
   /Host

Do I have this wrong?  How do I get this to work?  Does the name need to
match the allow or something?


Remove the valve and set:

 Engine defaultHost=dev.premonitionx.com

All requests to unknown hosts will be directed to that Host.


p

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Can't load page via tomcat6

2010-04-01 Thread Pid

On 01/04/2010 06:41, Leon Li wrote:

Hi

I am trying to build sermyadmin page via tomcat6 on a RHEL5 machine. I
can start tomcat6 fine, but I couldn't load even the default page.
browser seems to try to load something and eventually timed out.

Any ideas?


Nope.


I can provide other information if required.


Please do.


p


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: connection_pool_size informations

2010-04-01 Thread Ramblewski David
Hi,

Does anyone can help me know what exactly impact the connection_pool_size 
parameter in mod_jk configuration file?
If I've posted to the wrong mailing list, please let me know the right one.

Thanks for help,

David

-Message d'origine-
De : Ramblewski David
Envoyé : mercredi 31 mars 2010 10:29
À : 'users@tomcat.apache.org'
Objet : connection_pool_size informations


Hi,

I'm actually working on a production platform to make some benchmarks and there 
is an important latency mainly because of sockets renewal.

The platform is set up with 4 front servers hosting 1 apache process and 24 
middle servers hosting 4 tomcat instances.
Thus there is 4 apaches and 96 tomcat workers in the mod_jk worker 
configuration file.

The previous apache non working configuration was:

IfModule worker.c
StartServers5
MaxClients  8192
ServerLimit 137
MinSpareThreads 25
MaxSpareThreads 60
ThreadsPerChild 60
MaxRequestsPerChild 1000
/IfModule


I found an apache MPM worker configuration which has successfully passed the 
benchmarks:

IfModule worker.c
StartServers16
MaxClients  8192
ServerLimit 34
MinSpareThreads 25
MaxSpareThreads 150
ThreadsPerChild 256
MaxRequestsPerChild 0
/IfModule


Reading the tomcat worker documentation, I saw that the connection_pool_size 
parameter is equal to ThreadsPerChild by default.
This defines the number of connections made to the AJP backend that are 
maintained as a connection pool. It will limit the number of those connection 
that each web server child process can made.

So I first conclude that:
1 Apache Child process = 1 mod_jk connection pool shared between N threads
and connection_pool_size = N where N is the value of ThreadsPerChild apache 
parameter

Thus in the example above we could have maximum 34 mod_jk connection pools (1 
per Apache child) and connection_pool_size = 256 - 8704 connections


But I found the configuration site below:

http://lbconfig.appspot.com/?lb=mod_jkv=1.2.27%20or%20lessnca=4ncj=4nai=4nji=24njips=4f=truec=falselr=falselrl=mpm=Worker

which explain us that there is a connection_pool_size for each worker.
Thus 1 Apache Child process can handle X threads and indirectly Y workers so 
there is Y mod_jk connection pools per apache child and connection_pool_size = 
X.

Thus in the example above we could have maximum 34 (ServerLimit) * 96 (tomcat 
workers) mod_jk connection pools and connection_pool_size = 256 - 835584 
connections

Does anyone can elucidate that question?
Apache ThreadPerChild parameter should be superior or equal to the number of 
mod_jk tomcat workers?

Thanks for help,

David Ramblewski



Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Windows Local user Login

2010-04-01 Thread Stéphanie Cettou
Thanks!!!
Now, I have a best idea.

I will analyse all this for the next week.

A very big Thanks!
Stéphanie



2010/4/1 Christopher Schultz ch...@christopherschultz.net:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Stéphanie,

 On 4/1/2010 3:12 AM, Stéphanie Cettou wrote:
 - the webapp running in a Microsoft Windows 2003 Server environment.
 Active directory is NOT use in this server.

 Got it.

 - Actually the users authenticate with a user/passwords/roles in a SQL
 2000 Database.

 Perfect! There's no reason to mess around with AD/NTLM/Kerberos or any
 of that stuff: just use a standard Realm that ships with Tomcat to
 authenticate against a JDBC user database.

 Uh, does SQL 2000 Database really mean Microsoft SQL Server 2000?

 Realm  className=org.apache.catalina.realm.JDBCRealm

 I highly recommend that you do *not* use JDBCRealm, as this realm is
 effectively single-threaded according to the Tomcat developers.
 Consider using DataSourceRealm instead, which uses a pool of JDBC
 connections to perform authentication.

              driverName=net.sourceforge.jtds.jdbc.Driver

 If you're running Microsoft SQL Server, you should probably be using the
 Microsoft JDBC driver. Although, I did look up jTDS and it looks like
 it's a decent driver.

              userTable=Users userNameCol=UserId userCredCol=Password
              userRoleTable=UsersFeatures roleNameCol=FeatureID /

 like standard tomcat authentication.

 Okay, great. It wasn't clear that you had an acceptable authentication
 solution already implemented.

 But, I need to change to implement my goal...

 c) Can you use your own database? Yes (but I must to be implement
 complex authentication)

 I see. Let's go to your previous message:

 - Check type of password (more that 8 char, special char,...)

 Tomcat does not provide any way to change passwords, so you'll have to
 implement these items yourself in your password-change code.

 - Ask new password every month (from the web site)

 Again, you'll have to implement this yourself.

 - Block the user after 3 failed login

 Tomcat does not implement this until recent versions of Tomcat 6.x. Are
 you able to upgrade to the latest Tomcat 6.x? You can use LockOutRealm
 to do /some/ kind of blocking (I'm not sure exactly what your
 requirements are, and I'm not sure exactly what the LockOutRealm does to
 enforce the locking).

 - Block inactive user (ex after 90 days)

 Tomcat does not do this, either: you'll have to either use your own
 authentication system (such as securityfilter
 http://securityfilter.sourceforge.net along with your own Realm
 implementation that includes additional data-checking during the login)
 or in some other way.

 We implement features like the above in our project by using
 securityfilter with a custom Realm, plus a credential Filter which
 checks password age and user status, and then does things like redirect
 all requests to the change password page if you need to change your
 password, etc.

 Perhaps something like that would work for you.

 Hope that helps,
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAku0oRYACgkQ9CaO5/Lv0PComwCfb/JwX0d2yDh8SvUVoteSh+lM
 d4QAoJLrIaWZCzFApoB9uHS/G//4i+K4
 =cSNG
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteHostValve for infinite domains?

2010-04-01 Thread Dean Hiller
So, xxx.dev.premonitionx.com will go be routed to

Engine defaultHost=dev.premonitionx.com

I will give that a try tonight then.  If it doesn't, I guess I would have to
write a patch.  I need this feature to badly to be able to do
companyname.premonitionx.com for any companies that register.

thanks!!!
Dean

On Thu, Apr 1, 2010 at 7:52 AM, Pid p...@pidster.com wrote:

 On 01/04/2010 06:53, Dean Hiller wrote:

 I added this(I want it to use my requirements.war file for any requests to
 .dev.premonitionx.com where  is infinite combinations all of
 which
 point to one single ip of course.  I have another Host for
 .demo.premonitionx.com as well with infinite combinations again.

 This does not seem to be working though...

   Host name=dev.premonitionx.com  appBase=zrequirements
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Valve className=org.apache.catalina.valves.RemoteHostValve
allow=.*\.dev\.premonitionx\.com/
   /Host

 Do I have this wrong?  How do I get this to work?  Does the name need to
 match the allow or something?


 Remove the valve and set:

  Engine defaultHost=dev.premonitionx.com

 All requests to unknown hosts will be directed to that Host.


 p



Re: RemoteHostValve for infinite domains? Patch submit question...

2010-04-01 Thread Dean Hiller
hmmm, I don't think Engine worksaccording to

http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html
Exactly one *Engine* element MUST be nested inside a
Servicehttp://tomcat.apache.org/tomcat-5.5-doc/config/service.htmlelement

I need twoone for requests .domain1.com and one for
.domain2.com where  is infinite combination.

PATCH submission: I am not interested in regular expression matching and I
have seen many posts on users trying to do customer.domain.com, so is
serverName.endsWith(domainName) that much of a performance hit?  This patch
would be great for many applications that just set up wildcard DNS so all
subdomains point to the tomcat ip like basecamp or other products.  Right
now, the problem is we have two apps with two different domains each with
infinite subdomains.

thanks,
Dean


On Thu, Apr 1, 2010 at 8:37 AM, Dean Hiller dean.hil...@gmail.com wrote:

 So, xxx.dev.premonitionx.com will go be routed to

 Engine defaultHost=dev.premonitionx.com

 I will give that a try tonight then.  If it doesn't, I guess I would have
 to write a patch.  I need this feature to badly to be able to do
 companyname.premonitionx.com for any companies that register.

 thanks!!!
 Dean


 On Thu, Apr 1, 2010 at 7:52 AM, Pid p...@pidster.com wrote:

 On 01/04/2010 06:53, Dean Hiller wrote:

 I added this(I want it to use my requirements.war file for any requests
 to
 .dev.premonitionx.com where  is infinite combinations all of
 which
 point to one single ip of course.  I have another Host for
 .demo.premonitionx.com as well with infinite combinations again.

 This does not seem to be working though...

   Host name=dev.premonitionx.com  appBase=zrequirements
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 Valve className=org.apache.catalina.valves.RemoteHostValve
allow=.*\.dev\.premonitionx\.com/
   /Host

 Do I have this wrong?  How do I get this to work?  Does the name need to
 match the allow or something?


 Remove the valve and set:

  Engine defaultHost=dev.premonitionx.com

 All requests to unknown hosts will be directed to that Host.


 p





RE: RemoteHostValve for infinite domains? Patch submit question...

2010-04-01 Thread Caldarale, Charles R
 From: Dean Hiller [mailto:dean.hil...@gmail.com]
 Subject: Re: RemoteHostValve for infinite domains?  Patch submit
 question...
 
 http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html
 Exactly one *Engine* element MUST be nested inside a
 Servicehttp://tomcat.apache.org/tomcat-5.5-
 doc/config/service.htmlelement
 
 I need twoone for requests .domain1.com and one for
 .domain2.com where  is infinite combination.

So create two Service and Engine elements - or run two instances of Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: AW: AW: Virtualization (Xen, vmware) + Tomcat

2010-04-01 Thread Eric Laflamme
Hi all,

Any ideas from the log I sent..

Thank you
-- 
Eric Laflamme [iWeb]
IT Architecture Specialist
Spécialiste de l'Architecture TI
http://www.iWeb.com/




Le 2010-03-31 à 11:04, Caldarale, Charles R a écrit :

 From: Eric Laflamme [mailto:elafla...@iweb.com]
 Subject: Re: AW: AW: Virtualization (Xen, vmware) + Tomcat
 
 Ok Again, change the extension to .zip
 
 The .zip got to the list on your first attempt.  The attachment stripped 
 message came from the overly protective e-mail server of one of the 
 subscribers to the list, not the list itself.
 
 - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteHostValve for infinite domains? Patch submit question...

2010-04-01 Thread André Warnier

Dean Hiller wrote:
...



I need twoone for requests .domain1.com and one for
.domain2.com where  is infinite combination.

I think that you are right.  Based on the little I know about Java and 
Tomcat and RequestDispatcher, I would suggest a range of possible 
solutions, in my personal order of preference :


1) have a look at the urlrewrite filter at www.tuckey.org.
It may be able to do what you want.

2) use an Apache httpd with mod_rewrite and mod_proxy (or mod_jk) in 
front of Tomcat, as a proxy server listening on the IP address to which 
your hostnames resolve and port 80.
Set up Tomcat to listen on another port (e.g.8080), and configure it 
with one default Host (localhost), and two additional Hosts 
(www.domain1.com and www.domain2.com).
Use Apache's mod_rewrite to rewrite and proxy the calls to one or the 
other Tomcat Host(name), on the base of the domain ending of the 
original request.


3) get two different IP addresses for your server, and start 2 Tomcat 
instances, each one listening on one of these adresses.
Each one would then have a default host, which will answer on all names 
which resolve to that IP.

(Of course then you also need to split your two domains DNS-wise)

There are different variations mixing and matching the above bits and 
pieces.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk behaviour during failure

2010-04-01 Thread Mohit Anchlia
On Wed, Mar 31, 2010 at 3:35 PM, Mohit Anchlia mohitanch...@gmail.com wrote:
 On Wed, Mar 31, 2010 at 3:29 PM, Christopher Schultz
 ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Mohit,

 On 3/31/2010 5:33 PM, Mohit Anchlia wrote:
 On Wed, Mar 31, 2010 at 2:27 PM, Rainer Jung rainer.j...@kippdata.de 
 wrote:
 Which version?

 If 1.2.28 or newer, look for error_escalation_time in

 Actually I am on 1.2.27 so can't use error escalation time. Is there
 any other way I can do it? I am seeing real odd behaviour with mod_jk.
 It does change to ERR but only when box is pingable. Can't seem to
 find any other way of configuring it such that the failed worker is
 considered as global error.

 What happens if the backend server never comes back up? Try bringing it
 down and waiting. How long does it take for mod_jk to put that worker
 into ERR state? Or, are you actually required to bring-up the backend
 server in order to achieve the ERR state?

 I tested that leaving server down and in 15mt test the worker never
 went to ERR state while the node was down.

Could someone please advise?

I have couple more questions:

- What's the default behaviour of recovery_option when not specified?
Currently it's specified as 7 but if I don't specify in conf then what
will happen?
- What's the advantage of setting connection_min_size to 0?



 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkuzzNEACgkQ9CaO5/Lv0PBOEgCgw6/ENt2t36dnG+9nRwNA7tCj
 H1QAoMOOt0MDkjPSZr0gjQEZ/TRpQos/
 =+qy3
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: AW: AW: Virtualization (Xen, vmware) + Tomcat

2010-04-01 Thread Caldarale, Charles R
 From: Eric Laflamme [mailto:elafla...@iweb.com]
 Subject: Re: AW: AW: Virtualization (Xen, vmware) + Tomcat
 
 Any ideas from the log I sent..

Haven't had time to look at it in detail, but these issues are pretty obvious:

java.sql.SQLException: Access denied for user 'atventdemo'@'localhost'

Mar 31, 2010 9:55:00 AM org.apache.jasper.EmbeddedServletOptions init
SEVERE: The scratchDir you specified: 
/usr/local/jakarta/apache-tomcat-5.5.28/work/Catalina/share.orongo.com/vivirenchile.info
 is unusable.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connectors in Tomcat

2010-04-01 Thread Rajeev Sampath
On Thu, Apr 1, 2010 at 4:42 PM, Hemali Doshi hemalido...@gmail.com wrote:

 We are using Tomcat 6.0.18 with jdk 1.5 on Windows XP.



 line 118 is:

 factory.createHttpsConnector(Catalina:type=Service,serviceName=Catalina,
 127.0.0.1, 8443);
 *


Have you instantiated the 'factory' properly?




 The stack trace is as follows:

 java.lang.NullPointerException
 *

 at toggle1.doPost(*toggle1.java:118*)

 at javax.servlet.http.HttpServlet.service(*HttpServlet.java:637*)

 at javax.servlet.http.HttpServlet.service(*HttpServlet.java:717*)

 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(*
 ApplicationFilterChain.java:290*)

 at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
 ApplicationFilterChain.java:206*)

 at org.apache.catalina.core.StandardWrapperValve.invoke(*
 StandardWrapperValve.java:233*)

 at org.apache.catalina.core.StandardContextValve.invoke(*
 StandardContextValve.java:191*)

 at org.apache.catalina.core.StandardHostValve.invoke(*
 StandardHostValve.java:128*)

 at org.apache.catalina.valves.ErrorReportValve.invoke(*
 ErrorReportValve.java:102*)

 at org.apache.catalina.core.StandardEngineValve.invoke(*
 StandardEngineValve.java:109*)

 at org.apache.catalina.connector.CoyoteAdapter.service(*
 CoyoteAdapter.java:293*)

 at org.apache.coyote.http11.Http11Processor.process(*
 Http11Processor.java:849*)

 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(*
 Http11Protocol.java:583*)

 at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(*JIoEndpoint.java:454*)

 at java.lang.Thread.run(Unknown Source)

 -Hemali



Re: RemoteHostValve for infinite domains? Patch submit question...

2010-04-01 Thread Dean Hiller
yes, I have thought through all those actually.  Was just talking about
urlrewrite filter and apache this morning.  Issue with that then is having
to keep their company name in a param of every single redirect seam does
which is not the easiest of things to dothat way, company could be put
in front company.domain.com.

I like the ip idea(except for needing two tomcats).

Two services in tomcat doesn't work as then we would need different ports
which is definintely not something we want.

I decided I am going to go the route of finding that Host matching code
which probably looks up in a map of domain to Host object to route request
to the Host/Engine(*which file is that in so I can jump to it?*), and just
loop through it instead with endsWith.  *hmmm, too bad there is not a
pluggable component to Service or something or whoever owns the lookup like
in server.xml lookupClass=com.alvazan.tomcat.LookupHost or something*?  I
could certainly provide a patch so people could plug into tomcat what they
like based on performance considerations...ie. endsWith loop is not the best
if you have 400 domains on one tomcat.

Dean

On Thu, Apr 1, 2010 at 9:31 AM, André Warnier a...@ice-sa.com wrote:

 Dean Hiller wrote:
 ...



 I need twoone for requests .domain1.com and one for
 .domain2.com where  is infinite combination.

  I think that you are right.  Based on the little I know about Java and
 Tomcat and RequestDispatcher, I would suggest a range of possible solutions,
 in my personal order of preference :

 1) have a look at the urlrewrite filter at www.tuckey.org.
 It may be able to do what you want.

 2) use an Apache httpd with mod_rewrite and mod_proxy (or mod_jk) in front
 of Tomcat, as a proxy server listening on the IP address to which your
 hostnames resolve and port 80.
 Set up Tomcat to listen on another port (e.g.8080), and configure it with
 one default Host (localhost), and two additional Hosts (www.domain1.comand
 www.domain2.com).
 Use Apache's mod_rewrite to rewrite and proxy the calls to one or the other
 Tomcat Host(name), on the base of the domain ending of the original request.

 3) get two different IP addresses for your server, and start 2 Tomcat
 instances, each one listening on one of these adresses.
 Each one would then have a default host, which will answer on all names
 which resolve to that IP.
 (Of course then you also need to split your two domains DNS-wise)

 There are different variations mixing and matching the above bits and
 pieces.



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: RemoteHostValve for infinite domains? Patch submit question...

2010-04-01 Thread Hassan Schroeder
On Thu, Apr 1, 2010 at 9:45 AM, Dean Hiller dean.hil...@gmail.com wrote:

 I like the ip idea(except for needing two tomcats).

You don't need 2 tomcats; a connector can be told to listen on a
specific IP...

 Two services in tomcat doesn't work as then we would need different ports
 which is definintely not something we want.

.. in which case you don't need non-standard ports, either.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteHostValve for infinite domains? Patch submit question...

2010-04-01 Thread Dean Hiller
yes, interesting, unfortunately, I am running our QA and customer demo
machine behind comcast at home so there is only one ip, though it would work
for our production environment.
Dean

On Thu, Apr 1, 2010 at 10:56 AM, Hassan Schroeder 
hassan.schroe...@gmail.com wrote:

 On Thu, Apr 1, 2010 at 9:45 AM, Dean Hiller dean.hil...@gmail.com wrote:

  I like the ip idea(except for needing two tomcats).

 You don't need 2 tomcats; a connector can be told to listen on a
 specific IP...

  Two services in tomcat doesn't work as then we would need different ports
  which is definintely not something we want.

 .. in which case you don't need non-standard ports, either.

 --
 Hassan Schroeder  hassan.schroe...@gmail.com
 twitter: @hassan

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Cyclos application install(s)

2010-04-01 Thread Rick Bragg
On Wed, 2010-03-31 at 23:37 +0400, Konstantin Kolinko wrote:
 2010/3/31 Rick Bragg li...@gmnet.net:
  What am I missing?
 
 Cyclos support forum is here:
 http://project.cyclos.org/forum/
 
 From Tomcat point of view, there is nothing wrong in what you did.
 
 Just speculating here (as I am not a Cyclos user),
 you might have a) updated not all configuration files, b) screwed when
 copying a database.   I can suggest to start with installing a new
 copy of cyclos next to the existing one. (Do they support installation
 with a non-default name?)
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 

Thanks,
I do have a posting in that forum as well, but they seem to think it is
more of a tomcat problem.  I tried to install a new copy along side my
existing one, and I get the same problem.  The new copy DOES make the
new database fine when I restart tomcat, but tomcat dies after that.
Any clues?  
Thanks
Rick




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Where is org.apache.catalina.startup.Tomcat in the 6.0.x branch??

2010-04-01 Thread David Calavera
Hi,

I've been using a custom version of Tomcat 6.0.18 that included that class
but I can't find any extra jar that contained it for 6.0.x version and I'd
like to migrate to 6.0.26 and continuing using it. I've seen the class is in
trunk but it's not in any other branch.

Does anyone know if that class is packed in any extra jar or other place?

Thank you


Re: RemoteHostValve for infinite domains? Patch submit question...

2010-04-01 Thread Hassan Schroeder
On Thu, Apr 1, 2010 at 10:00 AM, Dean Hiller dean.hil...@gmail.com wrote:
 yes, interesting, unfortunately, I am running our QA and customer demo
 machine behind comcast at home so there is only one ip, though it would work
 for our production environment.

Then you could use the same 2-Engine setup there with 2 local IPs,
one for each Engine, and Apache httpd in front of Tomcat as a proxy.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RemoteHostValve for infinite domains?

2010-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dean,

On 4/1/2010 10:37 AM, Dean Hiller wrote:
 So, xxx.dev.premonitionx.com will go be routed to
 
 Engine defaultHost=dev.premonitionx.com

Yes. But, requests to xxx.demo.premonitionx.com will also go to that
Host as well.

I thin the only way to get around writing many Alias entries in
server.xml is to either use something like Apache httpd + mod_jk to
perform routing to the correct backend Tomcat server, or to modify the
Tomcat code that does Host picking and use String.endsWith() instead
of String.equals() to perform the matching.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku01r4ACgkQ9CaO5/Lv0PAMyACfVCfVxrnP8PE4uV6N1vN3Ixkm
nLYAn0IXKxF7Pwxw/GbFbcaVOB63dBHG
=77d2
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat NIO : CometProcessor

2010-04-01 Thread Michael Wojcik
Filip Hanik - Dev Lists wrote:
 
 I just skimmed this through, but from what I remember, the CRLF after
 /xml should not be counted into your chunk header

No, the chunk-size is the entire length of the chunk. Since a chunked
content-body can include any sort of data, it wouldn't make sense to
exclude trailing whitespace characters - the content might not be of a
type where whitespace characters were defined.

See RFC 2616 3.6.1:

   chunk-data = chunk-size(OCTET)

There must be exactly as many octets as specified in chunk-size.

What I don't see in the trace are the zero-size chunks that terminate
the chunked content-bodies.

In frame 12, the client closes the connection (sends a FIN); that
would appear to be why Tomcat is reporting the client closed the
connection.

Of course this is only a half-close, and the server *could* still send
a response, but RFC 2616 doesn't acknowledge the half-close mechanism
in TCP. From 4.4:

   5.By the server closing the connection. (Closing the connection
 cannot be used to indicate the end of a request body, since that
 would leave no possibility for the server to send back a response.)

This is, depending on your viewpoint, an error, oversight, or
restriction in HTTP; but in effect it means that if the client closes
its end of the conversation after sending a request but before
receiving a response, the the server is free to consider the
connection closed (even though it isn't) and discard the request.

-- 
Michael Wojcik
Micro Focus
Rhetoric  Writing, Michigan State University


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Where is org.apache.catalina.startup.Tomcat in the 6.0.x branch??

2010-04-01 Thread Caldarale, Charles R
 From: David Calavera [mailto:david.calav...@gmail.com]
 Subject: Where is org.apache.catalina.startup.Tomcat in the 6.0.x
 branch??
 
 I've been using a custom version of Tomcat 6.0.18 that 
 included that class but I can't find any extra jar that
 contained it for 6.0.x version and I'd like to migrate
 to 6.0.26 and continuing using it.

Let's look at the comments in the source:

 * Minimal tomcat starter for embedding/unit tests.
 * 
 * This class provides a main() and few simple CLI arguments,
 * see setters for doc. It can be used for simple tests and
 * demo.

Doesn't look like it will ever be part of any real Tomcat distribution; trunk 
appears to be the only place to get it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Cyclos application install(s)

2010-04-01 Thread Pid

On 01/04/2010 18:04, Rick Bragg wrote:

On Wed, 2010-03-31 at 23:37 +0400, Konstantin Kolinko wrote:

2010/3/31 Rick Braggli...@gmnet.net:

What am I missing?


Cyclos support forum is here:
http://project.cyclos.org/forum/

 From Tomcat point of view, there is nothing wrong in what you did.

Just speculating here (as I am not a Cyclos user),
you might have a) updated not all configuration files, b) screwed when
copying a database.   I can suggest to start with installing a new
copy of cyclos next to the existing one. (Do they support installation
with a non-default name?)

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Thanks,
I do have a posting in that forum as well, but they seem to think it is
more of a tomcat problem.  I tried to install a new copy along side my
existing one, and I get the same problem.  The new copy DOES make the
new database fine when I restart tomcat, but tomcat dies after that.


Can you define dies in slightly more technical terms?

What is in the logs?


p



Any clues?
Thanks
Rick




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: RemoteHostValve for infinite domains?

2010-04-01 Thread Bob Hall
--- On Thu, 4/1/10 at 5:52 AM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

 
 Please explain how that parses, since the allow string uses
 regular expression syntax, not wildcards (hence the need for
 the \. to match a period).
 

I can't, since it doesn't.

- Bob


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk behaviour during failure

2010-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mohit,

On 4/1/2010 11:35 AM, Mohit Anchlia wrote:
 I tested that leaving server down and in 15mt test the worker never
 went to ERR state while the node was down.

 Could someone please advise?

You'll have to wait for MLaden or Rainer to comment.

 I have couple more questions:
 
 - What's the default behaviour of recovery_option when not specified?
 Currently it's specified as 7 but if I don't specify in conf then what
 will happen?

The default is printed in the documentation:

http://tomcat.apache.org/connectors-doc/reference/workers.html

 - What's the advantage of setting connection_min_size to 0?

If you mean connection_pool_minsize, then I don't know why you'd bother
doing this. Has someone suggested that connection_pool_minsize=0 is
somehow advantageous?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku06WQACgkQ9CaO5/Lv0PCUbACgp2pIaIFK2H5nkAFfK8dJCRCD
ApkAmgJ2P8TTLDWBar46eRA5s8YXQSGy
=mC6n
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Version

2010-04-01 Thread Woods, Everett
What version(s) of Apache Tomcat work(s) with Windows 7?

Sincerely,
Everett Woods
Tyson Foods, Inc.
IS Middleware

This email and any files transmitted with it are confidential and intended 
solely for the use of the addressee. If you are not the intended addressee, 
then you have received this email in error and any use, dissemination, 
forwarding, printing, or copying of this email is strictly prohibited. Please 
notify us immediately of your unintended receipt by reply and then delete this 
email and your reply. Tyson Foods, Inc. and its subsidiaries and affiliates 
will not be held liable to any person resulting from the unintended or 
unauthorized use of any information contained in this email or as a result of 
any additions or deletions of information originally contained in this email.


[OT] Imperialism and sad demise

2010-04-01 Thread André Warnier
Well, fellow Tomcatters, it is with deep sadness that I have to report 
that one of the most beloved tools used on this forum seems to have been 
hijacked.
www.lmgtfy.com now seems to lead to a search page named Topeka, with a 
logo eerily reminiscent of something else, but which leads to a search 
in... Bing !
Of course one has to give it's due to free enterprise, and I wish the 
original lmgtfy inventors the best of luck, congratulate them on their 
inventive spirit, and thank them for the numerous and humorous answers 
they have made possible on this forum. I won't even ask how much dirty 
money the bastards got for this new linkage, nor show any inkling of my 
deep jealousy.
I have to say however that my first try, through lmgtfy, to this new 
search engine, was deeply disappointing, and largely inferior to the 
results I got right after that using the same simple search in Google.

Just try tomcat +windows7 if you don't believe me.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Version

2010-04-01 Thread André Warnier

Woods, Everett wrote:

What version(s) of Apache Tomcat work(s) with Windows 7?

It is generally considered good form and polite on these forums, to do a 
search of the archive before asking a question.


For example, a thread just yesterday entitled Tomcat Supported Windows 
Operating Systems answers that very question, and much more.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Imperialism and sad demise

2010-04-01 Thread Len Popp
That's terrible! I predict a humungous backlash from lmgtfy users, and
they'll be forced to restore the old service. Probably by tomorrow
morning. :-)
-- 
Len



On Thu, Apr 1, 2010 at 15:25, André Warnier a...@ice-sa.com wrote:
 Well, fellow Tomcatters, it is with deep sadness that I have to report that
 one of the most beloved tools used on this forum seems to have been
 hijacked.
 www.lmgtfy.com now seems to lead to a search page named Topeka, with a logo
 eerily reminiscent of something else, but which leads to a search in... Bing
 !
 Of course one has to give it's due to free enterprise, and I wish the
 original lmgtfy inventors the best of luck, congratulate them on their
 inventive spirit, and thank them for the numerous and humorous answers they
 have made possible on this forum. I won't even ask how much dirty money the
 bastards got for this new linkage, nor show any inkling of my deep jealousy.
 I have to say however that my first try, through lmgtfy, to this new search
 engine, was deeply disappointing, and largely inferior to the results I got
 right after that using the same simple search in Google.
 Just try tomcat +windows7 if you don't believe me.



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Imperialism and sad demise

2010-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Len,

On 4/1/2010 3:30 PM, Len Popp wrote:
 That's terrible! I predict a humungous backlash from lmgtfy users, and
 they'll be forced to restore the old service. Probably by tomorrow
 morning. :-)

I've certainly registered my complaint!

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku0/aoACgkQ9CaO5/Lv0PBxgwCgp+x7rdOGKVOWQXjBl+Xz//LN
vL4An1r7D9H/tD9l3v05au15XFUaa3z+
=qrnH
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: [OT] Imperialism and sad demise

2010-04-01 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: [OT] Imperialism and sad demise
 
 www.lmgtfy.com now seems to lead to a search page named Topeka

By design (or at least intent).  This is Google's 1 April response to the city 
of Topeka, Kansas officially changing its name to Google, Kansas in a likely 
vain attempt to be the location for the proposed super-fast network Google 
intends to deploy somewhere in the USA.

Things will be back to normal in a few hours.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



Re: connection_pool_size informations

2010-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 4/1/2010 9:56 AM, Ramblewski David wrote:
 Does anyone can help me know what exactly impact the
 connection_pool_size parameter in mod_jk configuration file?

What, specifically, don't you understand that's covered in
http://tomcat.apache.org/connectors-doc/reference/workers.html ?

Maybe you could be more specific with your question.

 If I've posted to the wrong mailing list, please let me know the
 right one.

This is the right place.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku0/qUACgkQ9CaO5/Lv0PAi8QCdFsV9wS5+j35zrYyWKWK6AEls
Za0AmQHjcbwIHFlDzBGO2n4HAacSMTmB
=qy1r
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Imperialism and sad demise

2010-04-01 Thread Ken Bowen

...Toto, I don't think we're in Kansas anymore!

On Apr 1, 2010, at 4:10 PM, Caldarale, Charles R wrote:


From: André Warnier [mailto:a...@ice-sa.com]
Subject: [OT] Imperialism and sad demise

www.lmgtfy.com now seems to lead to a search page named Topeka


By design (or at least intent).  This is Google's 1 April response  
to the city of Topeka, Kansas officially changing its name to  
Google, Kansas in a likely vain attempt to be the location for the  
proposed super-fast network Google intends to deploy somewhere in  
the USA.


Things will be back to normal in a few hours.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
PROPRIETARY MATERIAL and is thus for use only by the intended  
recipient. If you received this in error, please contact the sender  
and delete the e-mail and its attachments from all computers.





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Imperialism and sad demise

2010-04-01 Thread André Warnier

Caldarale, Charles R wrote:

From: André Warnier [mailto:a...@ice-sa.com]
Subject: [OT] Imperialism and sad demise

www.lmgtfy.com now seems to lead to a search page named Topeka


By design (or at least intent).  This is Google's 1 April response to the city of Topeka, 
Kansas officially changing its name to Google, Kansas in a likely vain 
attempt to be the location for the proposed super-fast network Google intends to deploy 
somewhere in the USA.

Things will be back to normal in a few hours.


Probably the calm voice of reason here.
As I am located in Europe, where the day is pretty much over, I forgot 
that it still has some way to run elsewhere.
We also did probably not get the coverage over here, about the 
Google/Topeka story, as this is the first I hear about it.


One thing however does not fit : the lmgtfy site really links to 
http://www.bing.com/search?q=


but, at least in Europe, www.google.com looks entirely normal.

Now that I started using them, my little grey cells sugest to me that 
rather than Google's, this is an April's Fool joke of the lmgtfy people, 
again.  I thus readily admit having been fooled, salute their renewed 
inventive spirit, and withdraw illico my earlier snide remarks.


And Len was obviously faster on the ball.
:-)

Pity for their wallets though.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: [OT] Imperialism and sad demise

2010-04-01 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: [OT] Imperialism and sad demise
 
 We also did probably not get the coverage over here, about the
 Google/Topeka story, as this is the first I hear about it.

Let's hope this works outside of the US:
http://googleblog.blogspot.com/2010/04/different-kind-of-company-name.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



Significant change between 5.5 and 6.0 for Development

2010-04-01 Thread Clark


We recently started looking at moving from Tomcat 5.5.28 to 6.0.26 in 
our development environment.


In the initial upgrade/testing of it, I have found the following that 
gives me great concern.


Again, this is in a development sandbox, not a production deployment.
The environment, btw, is Eclipse 3.5, MyEclipse 8.5, Java 1.6, Windows 7.

We run our app as the ROOT context, using this context.xml, and the 
appbase is set to be the developers working sandbox in the server.xml


   Context path= docBase= reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=inhouse.
suffix=.log timestamp=true/

   Resource name=jdbc/rampage auth=Container
type=javax.sql.DataSource
url=jdbc:mysql://192.168.2.52:3306/Rampage
factory=com.rampageinc.EncryptedDataSourceFactory
driverClassName=com.mysql.jdbc.Driver
username=u
password=p
maxIdle=5
maxActive=50
/

   Environment name=company.id value=0 type=java.lang.Long
   override=false/
   Environment name=site.id value=0 type=java.lang.Integer
   override=false/
   Environment name=timeout.interval value=3600
   type=java.lang.Integer override=false/

   Environment name=service.jobs
   value=com.rampageinc.services.JobService type=java.lang.String
   override=false/
   Environment name=service.useraccesscontrol
   value=com.rampageinc.services.UserAccessControlService
   type=java.lang.String override=false/
   Environment name=service.cms
   value=com.rampageinc.services.CMSService type=java.lang.String
   override=false/
   Environment name=root.upload value=C:\TempUpload
   type=java.lang.String override=false/
   Environment name=root.job value=\\Winserve-2008\Clark-12-0\Rsi
   Jobs type=java.lang.String override=false/
   Environment name=root.db
   value=\\Winserve-2008\Clark-12-0\Rampage type=java.lang.String
   override=false/
   Environment name=root.preps
   value=\\Winserve-2008\Clark-12-0\Preps 5.2 type=java.lang.String
   override=false/
   /Context

And it loads just fine.

Here are the problems with 6.0:

1. While running, hot deploy does not work.  Changes made to the app are 
not picked up consistently.  In specific, class file changes appear to 
be missed.
2. If you stop Tomcat, change the app, and start Tomcat, the app does 
not load.  You have to manually delete the copied ROOT.xml from under 
conf/Catalina/localhost
3. If you delete the ROOT.xml while tomcat is running, it deletes the 
appbase directory.  Since this is pointing to the developers sandbox...


None of these happen with 5.5 and earlier.

Since any one of these would be a full stop issue for developing under 
Tomcat 6.0, this is just hitting the Trifecta of badness.


So, is it that we have missed some new configuration parameter?

This also appears to be related to Bug 47343 (introduced by 42747).

In the mean time, back to 5.5.28.

- Clark Wright.





Re: mod_jk behaviour during failure

2010-04-01 Thread Mohit Anchlia
On Thu, Apr 1, 2010 at 11:43 AM, Christopher Schultz
ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Mohit,

 On 4/1/2010 11:35 AM, Mohit Anchlia wrote:
 I tested that leaving server down and in 15mt test the worker never
 went to ERR state while the node was down.

 Could someone please advise?

 You'll have to wait for MLaden or Rainer to comment.

Could Rainer or MLaden advise?


 I have couple more questions:

 - What's the default behaviour of recovery_option when not specified?
 Currently it's specified as 7 but if I don't specify in conf then what
 will happen?

 The default is printed in the documentation:

 http://tomcat.apache.org/connectors-doc/reference/workers.html


Sorry but I don't see the option listed for default behaviour when
recovery_option is not specified.

I do know that I set to 7 so that I get the benefit of bit 1, 2 and 4.

 - What's the advantage of setting connection_min_size to 0?

 If you mean connection_pool_minsize, then I don't know why you'd bother
 doing this. Has someone suggested that connection_pool_minsize=0 is
 somehow advantageous?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAku06WQACgkQ9CaO5/Lv0PCUbACgp2pIaIFK2H5nkAFfK8dJCRCD
 ApkAmgJ2P8TTLDWBar46eRA5s8YXQSGy
 =mC6n
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Significant change between 5.5 and 6.0 for Development

2010-04-01 Thread Pid

On 01/04/2010 21:52, Clark wrote:


We recently started looking at moving from Tomcat 5.5.28 to 6.0.26 in
our development environment.

In the initial upgrade/testing of it, I have found the following that
gives me great concern.

Again, this is in a development sandbox, not a production deployment.
The environment, btw, is Eclipse 3.5, MyEclipse 8.5, Java 1.6, Windows 7.

We run our app as the ROOT context, using this context.xml, and the
appbase is set to be the developers working sandbox in the server.xml

Context path= docBase= reloadable=true


The above is defined in a context.xml file?  If so, where is the file 
placed - because it looks broken to me...



Logger className=org.apache.catalina.logger.FileLogger
prefix=inhouse.
suffix=.log timestamp=true/



Resource name=jdbc/rampage auth=Container
type=javax.sql.DataSource
url=jdbc:mysql://192.168.2.52:3306/Rampage
factory=com.rampageinc.EncryptedDataSourceFactory
driverClassName=com.mysql.jdbc.Driver
username=u
password=p
maxIdle=5
maxActive=50
/

Environment name=company.id value=0 type=java.lang.Long
override=false/
Environment name=site.id value=0 type=java.lang.Integer
override=false/
Environment name=timeout.interval value=3600
type=java.lang.Integer override=false/

Environment name=service.jobs
value=com.rampageinc.services.JobService type=java.lang.String
override=false/
Environment name=service.useraccesscontrol
value=com.rampageinc.services.UserAccessControlService
type=java.lang.String override=false/
Environment name=service.cms
value=com.rampageinc.services.CMSService type=java.lang.String
override=false/
Environment name=root.upload value=C:\TempUpload
type=java.lang.String override=false/
Environment name=root.job value=\\Winserve-2008\Clark-12-0\Rsi
Jobs type=java.lang.String override=false/
Environment name=root.db
value=\\Winserve-2008\Clark-12-0\Rampage type=java.lang.String
override=false/
Environment name=root.preps
value=\\Winserve-2008\Clark-12-0\Preps 5.2 type=java.lang.String
override=false/
/Context

And it loads just fine.


It loads just fine in Tomcat 6?

What do you have in your server.xml for 5.5 and 6.0?


p



Here are the problems with 6.0:

1. While running, hot deploy does not work. Changes made to the app are
not picked up consistently. In specific, class file changes appear to be
missed.
2. If you stop Tomcat, change the app, and start Tomcat, the app does
not load. You have to manually delete the copied ROOT.xml from under
conf/Catalina/localhost
3. If you delete the ROOT.xml while tomcat is running, it deletes the
appbase directory. Since this is pointing to the developers sandbox...

None of these happen with 5.5 and earlier.

Since any one of these would be a full stop issue for developing under
Tomcat 6.0, this is just hitting the Trifecta of badness.

So, is it that we have missed some new configuration parameter?





This also appears to be related to Bug 47343 (introduced by 42747).

In the mean time, back to 5.5.28.

- Clark Wright.






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Significant change between 5.5 and 6.0 for Development

2010-04-01 Thread Clark

On 4/1/2010 5:23 PM, Pid wrote:

On 01/04/2010 21:52, Clark wrote:


The context.xml is in app-base/ROOT/META-INF

The server.xml, for both 5.5 and 6.0, is :

Server port=*8005* shutdown=*SHUTDOWN*
- # GlobalNamingResources
Resource name=*UserDatabase* auth=*Container* 
type=*org.apache.catalina.UserDatabase* description=*User database 
that can be updated and saved* 
factory=*org.apache.catalina.users.MemoryUserDatabaseFactory* 
pathname=*conf/tomcat-users.xml* /

/GlobalNamingResources
- # Service name=*Catalina*
Connector port=*80* protocol=*HTTP/1.1* connectionTimeout=*2* 
redirectPort=*443* /

Connector port=*8009* protocol=*AJP/1.3* redirectPort=*8443* /
- # Engine name=*Catalina* defaultHost=*localhost*
Realm className=*org.apache.catalina.realm.UserDatabaseRealm* 
resourceName=*UserDatabase* /
Host name=*localhost* appBase=*webapps* unpackWARs=*true* 
autoDeploy=*true* xmlValidation=*false* xmlNamespaceAware=*false* /
- # Host name=*192.168.2.52* 
appBase=*C:/Users/Clark/Workspaces/Sandbox/Java/Mainline/RampageRemoteVersion_1/WebRoot* 
unpackWARs=*false* autoDeploy=*true*

Alias192.168.2.52/Alias
/Host
/Engine
/Service
/Server

And yes, I know the alias.../alias is redundant.

As stated, for 5.5 this configuration works just fine.

In 6.0, it works, but is rather touchy, problematic and somewhat self 
destructive.


Thanks,

- clark.




We recently started looking at moving from Tomcat 5.5.28 to 6.0.26 in
our development environment.

In the initial upgrade/testing of it, I have found the following that
gives me great concern.

Again, this is in a development sandbox, not a production deployment.
The environment, btw, is Eclipse 3.5, MyEclipse 8.5, Java 1.6, 
Windows 7.


We run our app as the ROOT context, using this context.xml, and the
appbase is set to be the developers working sandbox in the server.xml

Context path= docBase= reloadable=true


The above is defined in a context.xml file?  If so, where is the file 
placed - because it looks broken to me...



Logger className=org.apache.catalina.logger.FileLogger
prefix=inhouse.
suffix=.log timestamp=true/



Resource name=jdbc/rampage auth=Container
type=javax.sql.DataSource
url=jdbc:mysql://192.168.2.52:3306/Rampage
factory=com.rampageinc.EncryptedDataSourceFactory
driverClassName=com.mysql.jdbc.Driver
username=u
password=p
maxIdle=5
maxActive=50
/

Environment name=company.id value=0 type=java.lang.Long
override=false/
Environment name=site.id value=0 type=java.lang.Integer
override=false/
Environment name=timeout.interval value=3600
type=java.lang.Integer override=false/

Environment name=service.jobs
value=com.rampageinc.services.JobService type=java.lang.String
override=false/
Environment name=service.useraccesscontrol
value=com.rampageinc.services.UserAccessControlService
type=java.lang.String override=false/
Environment name=service.cms
value=com.rampageinc.services.CMSService type=java.lang.String
override=false/
Environment name=root.upload value=C:\TempUpload
type=java.lang.String override=false/
Environment name=root.job value=\\Winserve-2008\Clark-12-0\Rsi
Jobs type=java.lang.String override=false/
Environment name=root.db
value=\\Winserve-2008\Clark-12-0\Rampage type=java.lang.String
override=false/
Environment name=root.preps
value=\\Winserve-2008\Clark-12-0\Preps 5.2 type=java.lang.String
override=false/
/Context

And it loads just fine.


It loads just fine in Tomcat 6?

What do you have in your server.xml for 5.5 and 6.0?


p



Here are the problems with 6.0:

1. While running, hot deploy does not work. Changes made to the app are
not picked up consistently. In specific, class file changes appear to be
missed.
2. If you stop Tomcat, change the app, and start Tomcat, the app does
not load. You have to manually delete the copied ROOT.xml from under
conf/Catalina/localhost
3. If you delete the ROOT.xml while tomcat is running, it deletes the
appbase directory. Since this is pointing to the developers sandbox...

None of these happen with 5.5 and earlier.

Since any one of these would be a full stop issue for developing under
Tomcat 6.0, this is just hitting the Trifecta of badness.

So, is it that we have missed some new configuration parameter?





This also appears to be related to Bug 47343 (introduced by 42747).

In the mean time, back to 5.5.28.

- Clark Wright.






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org








Re: Cyclos application install(s)

2010-04-01 Thread Pid

On 01/04/2010 20:17, Rick Bragg wrote:

On Thu, 2010-04-01 at 18:55 +0100, Pid wrote:

On 01/04/2010 18:04, Rick Bragg wrote:

On Wed, 2010-03-31 at 23:37 +0400, Konstantin Kolinko wrote:

2010/3/31 Rick Braggli...@gmnet.net:

What am I missing?


Cyclos support forum is here:
http://project.cyclos.org/forum/


 From Tomcat point of view, there is nothing wrong in what you did.


Just speculating here (as I am not a Cyclos user),
you might have a) updated not all configuration files, b) screwed when
copying a database.   I can suggest to start with installing a new
copy of cyclos next to the existing one. (Do they support installation
with a non-default name?)

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




Thanks,
I do have a posting in that forum as well, but they seem to think it is
more of a tomcat problem.  I tried to install a new copy along side my
existing one, and I get the same problem.  The new copy DOES make the
new database fine when I restart tomcat, but tomcat dies after that.


Can you define dies in slightly more technical terms?

What is in the logs?


p


Hi,

Sorry, it seems there are no errors in the logs, but after I copy (cp
-Rp ...) then restart it on the command line (/etc/init.d/tomcat6
restart) I see stopping... OK then starting ... OK.  I go to visit
any site on the system http://xxx.xx:8080/manager for example, and there
is no service running on 8080.  It just hangs waiting to connect.  If I
now restart again, it only says starting ... OK not stopping - then
starting.  It seems that as long as I have a second copy of cyclos in
webapps dir, the service running on 8080 is no longer running after any
restarts until I remove that directory and restart.  All permissions are
identical. and the database does get populated correctly.  Very
Puzzling.


You are copying a live application to a location where it will create 
another live application?


Or are you stopping first, then copying, then starting again?

What happens if you start up using the scripts in tomcat/bin?

What is in actually in catalina.out?  (Please include real log data.)

Is Tomcat actually running when you have two applications deployed?

What is the output of ps -aef | grep tomcat when run after starting 
tomcat with both apps?



p

















-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Significant change between 5.5 and 6.0 for Development

2010-04-01 Thread Pid

On 01/04/2010 22:31, Clark wrote:

On 4/1/2010 5:23 PM, Pid wrote:

On 01/04/2010 21:52, Clark wrote:


The context.xml is in app-base/ROOT/META-INF

The server.xml, for both 5.5 and 6.0, is :

Server port=*8005* shutdown=*SHUTDOWN*
- # GlobalNamingResources
Resource name=*UserDatabase* auth=*Container*
type=*org.apache.catalina.UserDatabase* description=*User database
that can be updated and saved*
factory=*org.apache.catalina.users.MemoryUserDatabaseFactory*
pathname=*conf/tomcat-users.xml* /
/GlobalNamingResources
- # Service name=*Catalina*
Connector port=*80* protocol=*HTTP/1.1* connectionTimeout=*2*
redirectPort=*443* /
Connector port=*8009* protocol=*AJP/1.3* redirectPort=*8443* /
- # Engine name=*Catalina* defaultHost=*localhost*
Realm className=*org.apache.catalina.realm.UserDatabaseRealm*
resourceName=*UserDatabase* /
Host name=*localhost* appBase=*webapps* unpackWARs=*true*
autoDeploy=*true* xmlValidation=*false* xmlNamespaceAware=*false* /
- # Host name=*192.168.2.52*
appBase=*C:/Users/Clark/Workspaces/Sandbox/Java/Mainline/RampageRemoteVersion_1/WebRoot*
unpackWARs=*false* autoDeploy=*true*
Alias192.168.2.52/Alias
/Host
/Engine
/Service
/Server


I'll assume the extra * and # are a bi-product of mail mangling.


And yes, I know the alias.../alias is redundant.

As stated, for 5.5 this configuration works just fine.


It might do, but there are differences in Tomcat 6.0 and certain things 
that worked before by accident now don't.



In 6.0, it works, but is rather touchy, problematic and somewhat self
destructive.


Setting path= in a app/META-INF/context.xml file is wrong, it's not 
allowed there.  Setting docBase= is also wrong.  Remove those two 
attributes.


This is likely to be the cause of the WebRoot directory being deleted.



C:/Users/Clark/Workspaces/Sandbox/Java/Mainline/RampageRemoteVersion_1/WebRoot/ROOT 



The Logger element isn't applicable in Tomcat 6.

 http://wiki.apache.org/tomcat/FAQ/Logging

The Resource looks OK.

The Environment defs look OK.

Removing or updating a deployed context.xml file (ROOT.xml) will cause a 
redeployment cycle if autoDeploy is true in the Host.



p



Thanks,

- clark.




We recently started looking at moving from Tomcat 5.5.28 to 6.0.26 in
our development environment.

In the initial upgrade/testing of it, I have found the following that
gives me great concern.

Again, this is in a development sandbox, not a production deployment.
The environment, btw, is Eclipse 3.5, MyEclipse 8.5, Java 1.6,
Windows 7.

We run our app as the ROOT context, using this context.xml, and the
appbase is set to be the developers working sandbox in the server.xml

Context path= docBase= reloadable=true


The above is defined in a context.xml file? If so, where is the file
placed - because it looks broken to me...


Logger className=org.apache.catalina.logger.FileLogger
prefix=inhouse.
suffix=.log timestamp=true/



Resource name=jdbc/rampage auth=Container
type=javax.sql.DataSource
url=jdbc:mysql://192.168.2.52:3306/Rampage
factory=com.rampageinc.EncryptedDataSourceFactory
driverClassName=com.mysql.jdbc.Driver
username=u
password=p
maxIdle=5
maxActive=50
/

Environment name=company.id value=0 type=java.lang.Long
override=false/
Environment name=site.id value=0 type=java.lang.Integer
override=false/
Environment name=timeout.interval value=3600
type=java.lang.Integer override=false/

Environment name=service.jobs
value=com.rampageinc.services.JobService type=java.lang.String
override=false/
Environment name=service.useraccesscontrol
value=com.rampageinc.services.UserAccessControlService
type=java.lang.String override=false/
Environment name=service.cms
value=com.rampageinc.services.CMSService type=java.lang.String
override=false/
Environment name=root.upload value=C:\TempUpload
type=java.lang.String override=false/
Environment name=root.job value=\\Winserve-2008\Clark-12-0\Rsi
Jobs type=java.lang.String override=false/
Environment name=root.db
value=\\Winserve-2008\Clark-12-0\Rampage type=java.lang.String
override=false/
Environment name=root.preps
value=\\Winserve-2008\Clark-12-0\Preps 5.2 type=java.lang.String
override=false/
/Context

And it loads just fine.


It loads just fine in Tomcat 6?

What do you have in your server.xml for 5.5 and 6.0?


p



Here are the problems with 6.0:

1. While running, hot deploy does not work. Changes made to the app are
not picked up consistently. In specific, class file changes appear to be
missed.
2. If you stop Tomcat, change the app, and start Tomcat, the app does
not load. You have to manually delete the copied ROOT.xml from under
conf/Catalina/localhost
3. If you delete the ROOT.xml while tomcat is running, it deletes the
appbase directory. Since this is pointing to the developers sandbox...

None of these happen with 5.5 and earlier.

Since any one of these would be a full stop issue for developing under
Tomcat 6.0, this is just hitting the Trifecta of badness.

So, is it that we have missed some new 

RE: Why HttpSessionEvent comes prior to ServletRequestEvent

2010-04-01 Thread Martin Gainty

the event listener responds to events which are occuring in the monitored 
object (in this case ServletContext)

the first event listent is Servlet context creation, at which point the first 
request can be serviced 
http://sqltech.cl/doc/oas10gR3/web.1013/b14426/listener.htm#BABEFJDH

 

as chuck mentioned there is nothing we can to help unless you have full logging 
enabled
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

 Date: Thu, 1 Apr 2010 14:19:01 +0800
 From: techme...@gmail.com
 To: users@tomcat.apache.org
 Subject: Why HttpSessionEvent comes prior to ServletRequestEvent
 
 Hi,
 
 I declared two listeners , the former is a ServletRequestListener, 
 the later is HttpSessionListener.
 
 When a client request calls the application first, why a 
 HttpSessionEvent comes prior to ServletRequestEvent?
 
 
 Kind regards,
 Mercy
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1

Re: Where is org.apache.catalina.startup.Tomcat in the 6.0.x branch??

2010-04-01 Thread Mark Thomas

On 01/04/2010 18:39, Caldarale, Charles R wrote:

From: David Calavera [mailto:david.calav...@gmail.com]
Subject: Where is org.apache.catalina.startup.Tomcat in the 6.0.x
branch??

I've been using a custom version of Tomcat 6.0.18 that
included that class but I can't find any extra jar that
contained it for 6.0.x version and I'd like to migrate
to 6.0.26 and continuing using it.


Let's look at the comments in the source:

  * Minimal tomcat starter for embedding/unit tests.
  *
  * This class provides a main() and few simple CLI arguments,
  * see setters for doc. It can be used for simple tests and
  * demo.

Doesn't look like it will ever be part of any real Tomcat distribution; trunk 
appears to be the only place to get it.


It will be included in Tomcat 7. There are no plans to back-port it to 
Tomcat 6. From what I recall from doing this for an internal Tomcat fork 
at work, it required some API changes that would be a no-no for 6.0.x.


Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Significant change between 5.5 and 6.0 for Development

2010-04-01 Thread Mark Thomas

On 01/04/2010 21:52, Clark wrote:


We recently started looking at moving from Tomcat 5.5.28 to 6.0.26 in
our development environment.

In the initial upgrade/testing of it, I have found the following that
gives me great concern.

Again, this is in a development sandbox, not a production deployment.
The environment, btw, is Eclipse 3.5, MyEclipse 8.5, Java 1.6, Windows 7.

We run our app as the ROOT context, using this context.xml, and the
appbase is set to be the developers working sandbox in the server.xml

Context path= docBase= reloadable=true


Stop right there. That is completely broken. That this might have worked 
in the past was pure fluke and a side-effect of a bug that has since 
been fixed. You need to read up on the ROOT context.


Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Significant change between 5.5 and 6.0 for Development

2010-04-01 Thread Caldarale, Charles R
 From: Pid [mailto:p...@pidster.com]
 Subject: Re: Significant change between 5.5 and 6.0 for Development
 
 The Logger element isn't applicable in Tomcat 6.

Or 5.5, for that matter.  It's always bad form to blindly copy configuration 
from one level of Tomcat to another, but in this case that appears to be what 
has been going on for quite some time.
 
 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org