Re: Query Regarding Clustering

2006-06-02 Thread Peter Rossbach

Hi,

please use 5.5.17 and read the tomcat 5.5 cluster docs.

Sorry, but tutorials and real design docs not exists.

Regards
Peter


Am 02.06.2006 um 07:54 schrieb Sandeep Gaikwad:



Hi All,

I am trying to devlop Horizontal clustering for tomcat 5.5.9.
I am new to this field so if anyone have any links for this
please reply back to me.


Regards,
Sandepp




 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION  
intended solely for the use of the addressee(s). If you are not the  
intended recipient, please notify the sender by e-mail and delete  
the original message. Further, you are not to copy, disclose, or  
distribute this e-mail or its contents to any other person and any  
such actions are unlawful. This e-mail may contain viruses. Infosys  
has taken every reasonable precaution to minimize this risk, but is  
not liable for any damage you may sustain as a result of any virus  
in this e-mail. You should carry out your own virus checks before  
opening the e-mail or attachment. Infosys reserves the right to  
monitor and review the content of all messages sent to or from this  
e-mail address. Messages sent to or from this e-mail address may be  
stored on the Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Query Regarding Clustering

2006-06-02 Thread Sandeep Gaikwad
I had done through vertical clustering on Single Machine.
Can you suggest me changes required for horizontal clustering across Two
machine?

-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 11:41 AM
To: Tomcat Users List
Subject: Re: Query Regarding Clustering

Hi,

please use 5.5.17 and read the tomcat 5.5 cluster docs.

Sorry, but tutorials and real design docs not exists.

Regards
Peter


Am 02.06.2006 um 07:54 schrieb Sandeep Gaikwad:


 Hi All,

   I am trying to devlop Horizontal clustering for tomcat 5.5.9.
   I am new to this field so if anyone have any links for this
please 
 reply back to me.


 Regards,
 Sandepp




  CAUTION - Disclaimer * This e-mail 
 contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for 
 the use of the addressee(s). If you are not the intended recipient, 
 please notify the sender by e-mail and delete the original message. 
 Further, you are not to copy, disclose, or distribute this e-mail or 
 its contents to any other person and any such actions are unlawful. 
 This e-mail may contain viruses. Infosys has taken every reasonable 
 precaution to minimize this risk, but is not liable for any damage you

 may sustain as a result of any virus in this e-mail. You should carry 
 out your own virus checks before opening the e-mail or attachment. 
 Infosys reserves the right to monitor and review the content of all 
 messages sent to or from this e-mail address. Messages sent to or from

 this e-mail address may be stored on the Infosys e-mail system.
 ***INFOSYS End of Disclaimer INFOSYS***


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Maciej Łabędzki

Hi,
i develope my web application using ActiveMQ and run it under Apache 
Tomcat 5. There is a problem - the 'jndi.properties' file seems to be 
invisible, although it is placed on class path.


Has anybody met such a problem?

Maciej



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Query Regarding Clustering

2006-06-02 Thread Peter Rossbach

What is your problem?

Your nodes can find the others? Check your network allow Mutlicast  
and TCP traffic


Regards
Peter



Am 02.06.2006 um 08:22 schrieb Sandeep Gaikwad:


I had done through vertical clustering on Single Machine.
Can you suggest me changes required for horizontal clustering  
across Two

machine?

-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 11:41 AM
To: Tomcat Users List
Subject: Re: Query Regarding Clustering

Hi,

please use 5.5.17 and read the tomcat 5.5 cluster docs.

Sorry, but tutorials and real design docs not exists.

Regards
Peter


Am 02.06.2006 um 07:54 schrieb Sandeep Gaikwad:



Hi All,

I am trying to devlop Horizontal clustering for tomcat 5.5.9.
I am new to this field so if anyone have any links for this

please

reply back to me.


Regards,
Sandepp




 CAUTION - Disclaimer * This e-mail
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for
the use of the addressee(s). If you are not the intended recipient,
please notify the sender by e-mail and delete the original message.
Further, you are not to copy, disclose, or distribute this e-mail or
its contents to any other person and any such actions are unlawful.
This e-mail may contain viruses. Infosys has taken every reasonable
precaution to minimize this risk, but is not liable for any damage  
you



may sustain as a result of any virus in this e-mail. You should carry
out your own virus checks before opening the e-mail or attachment.
Infosys reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or  
from



this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Hadraba Petr

Hi Maciej,

I'm connecting from Tomcat to ActiveMQ with this configuration:

META-INF/context.xml:
Context
...
  Resource
  name=jms/ConnectionFactory
  auth=Container
  type=org.apache.activemq.ActiveMQConnectionFactory
  description=JMS Connection Factory
  factory=org.apache.activemq.jndi.JNDIReferenceFactory
  brokerURL=tcp://ws:61616
  brokerName=localhost
  useEmbeddedBroker=false /
  Resource
  name=jms/Test
  auth=Container
  type=org.apache.activemq.command.ActiveMQQueue
  factory=org.apache.activemq.jndi.JNDIReferenceFactory
  physicalName=TEST /
...
/Context


WEB-INF/web.xml:
...
  resource-env-ref

resource-env-ref-namejms/ConnectionFactory/resource-env-ref-name

resource-env-ref-typejavax.jms.ConnectionFactory/resource-env-ref-type
  /resource-env-ref

  resource-env-ref
  resource-env-ref-namejms/Test/resource-env-ref-name
  resource-env-ref-typejavax.jms.Queue/resource-env-ref-type
  /resource-env-ref
...


Hope, it helps...

PETR


On 6/2/06, Maciej Łabędzki [EMAIL PROTECTED] wrote:

Hi,
i develope my web application using ActiveMQ and run it under Apache
Tomcat 5. There is a problem - the 'jndi.properties' file seems to be
invisible, although it is placed on class path.

Has anybody met such a problem?

Maciej



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Petr Hadraba
graphic artist and software designer
http://people.hadraba-soft.com/~petr
hadrabap AT bluetone DOT cz


Retrieve certain session data inside a servlet

2006-06-02 Thread Carlos Alonso Vega


I am trying to obtain data about a session inside a servlet, the code 
seems to be simple as


localSession = Ctx.getManager().findSession(sessionId);

My problem is that I do not know how to obtain the Ctx object from a 
request (HttpServletRequest)


Thanks in advance



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Auto Reload Features by Tomcat

2006-06-02 Thread ks.foong
Hi, I notice that starting from Tomcat 5 onwards; we can enjoy the benefit
of the Auto-reload features of it.

 

I personally have tried it with my Eclipse development. Each time I have
changed any servlet coding, the eclipse (or more specific, Tomcat) able to
detect the changes and Reload for itself.

 

But for my production, I am not sure how this is work. I have replaced my
servlet, ProfileServlet.java to the
[CATALINA_HOME]/webapps/project/WEB-INF/src/com/servlet folder. 

 

I login into my system; I didn't see any changes at all. 

 

So, any ideas how can is this reload features work in production machine? Do
I need to issues any command for this?

 



RE: Auto Reload Features by Tomcat

2006-06-02 Thread ks.foong
Forget to mentioned, I have make sure my Context tag in server.xml have
included the reloadable=true entity

Context path=/project reloadable=true ...

Foong Kim Seong
 
-Original Message-
From: ks.foong [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 4:52 PM
To: 'Tomcat Users List'
Subject: Auto Reload Features by Tomcat

Hi, I notice that starting from Tomcat 5 onwards; we can enjoy the benefit
of the Auto-reload features of it.

 

I personally have tried it with my Eclipse development. Each time I have
changed any servlet coding, the eclipse (or more specific, Tomcat) able to
detect the changes and Reload for itself.

 

But for my production, I am not sure how this is work. I have replaced my
servlet, ProfileServlet.java to the
[CATALINA_HOME]/webapps/project/WEB-INF/src/com/servlet folder. 

 

I login into my system; I didn't see any changes at all. 

 

So, any ideas how can is this reload features work in production machine? Do
I need to issues any command for this?

 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Bob Hall
--- Carlos Alonso Vega [EMAIL PROTECTED] wrote:

 
 I am trying to obtain data about a session inside a
 servlet, the code 
 seems to be simple as
 
 localSession =
 Ctx.getManager().findSession(sessionId);
 
 My problem is that I do not know how to obtain the
 Ctx object from a 
 request (HttpServletRequest)
 
 Thanks in advance
 

Carlos,

To obtain the HttpSession for the current request:

HttpSession sess = req.getSession();
OR
boolean create = false;  (or true)
HttpSession sess = req.getSession(create);

HTH,
Bob

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jar Sequence in the same directory

2006-06-02 Thread Tim Funk

No. Place your patches in the classes folder.

-Tim

exquisitus wrote:
I have a special question related to the classloader of Tomcat. If I put 
two jar files in the same directory (myJar.jar and myJarPatch.jar) where 
the second jar is a patch, that contains only a part of classes (let's 
say a subset of the first one).

Does Tomcat loads the jars in a special order sequence (alphabetical) ??


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Carlos Alonso Vega

Bob,

Thanks for the reply. My problem is that the session info I need is not 
of the session that makes the request. I need to check other sessions in 
the same context.  I can use the request because it is in the same 
context, so the manager is the same.


This servlet is called internally from the app, and checks if some 
session exists. It is similar to the case of obtaining all active 
sessions from one context using the manager inside the servlet code 
(findSessions). If someone have this piece of code (or similar), it will 
serve me.


Regards

Carlos


Bob Hall escribió:


--- Carlos Alonso Vega [EMAIL PROTECTED] wrote:

 


I am trying to obtain data about a session inside a
servlet, the code 
seems to be simple as


localSession =
Ctx.getManager().findSession(sessionId);

My problem is that I do not know how to obtain the
Ctx object from a 
request (HttpServletRequest)


Thanks in advance

   



Carlos,

To obtain the HttpSession for the current request:

HttpSession sess = req.getSession();
   OR
boolean create = false;  (or true)
HttpSession sess = req.getSession(create);

HTH,
Bob
 

















-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to hide the keystorePass at the server.xml

2006-06-02 Thread Bill Barker
TC 3.3.x had an optional module to do this.  It never got ported.

I generally agree with most of the people that say that this is the least of 
your problems.  If you are usings a self-signed cert, then you are just 
getting what you deserve.  Otherwise, you simply contact the CA and revoke 
the cert:  At least this problem solved :).  Now, how to deal with the fact 
that the hacker just uploaded 10,000 credit-card numbers, since my jdbc 
password was in the clear :).

Dickson Lam (dilam) [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Hi,



I am using Tomcat 5.5.16 window version. When I configure Tomcat to use
SSL, I need to put the keystorePass password on the Tomcat server.xml
file which is in plain text format.



Is it anyway I can hide the keystore password from the server.xml? or
configure Tomcat to read in an encrypted keystorePass password and
decrypted the password during startup?



Regards

Dickson





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Maciej Łabędzki

Hadraba Petr napisał(a):

Hi Maciej,

I'm connecting from Tomcat to ActiveMQ with this configuration:


Thx, but how it corresponds to my jndi.properties file?
How should I form my configuration files (context.xml, web.xml)?
jndi.properties:
---
java.naming.factory.initial = 
org.activemq.jndi.ActiveMQInitialContextFactory

brokerURL =ssl://localhost:32450
queue.listenerDestination = dms.PublicLogQueue


Maciej



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to hide the keystorePass at the server.xml

2006-06-02 Thread Leon Rosenberg

On 6/2/06, Bill Barker [EMAIL PROTECTED] wrote:

TC 3.3.x had an optional module to do this.  It never got ported.

I generally agree with most of the people that say that this is the least of
your problems.  If you are usings a self-signed cert, then you are just
getting what you deserve.  Otherwise, you simply contact the CA and revoke
the cert:  At least this problem solved :).  Now, how to deal with the fact
that the hacker just uploaded 10,000 credit-card numbers, since my jdbc
password was in the clear :).


Actually you are not allowed to save credit card numbers unless you
are a certified payment provider (which implies major security
constraints).
Even a certified payment provider is not allowed to store cvc codes,
and without the codes the credit card numbers are useless. (amazon of
course is an exception to this rule...)
However, if you saving cc-numbers or bank accounts or any other
payment related data in your database unencrypted you belong in jail
:-)
But please feel free to tell us that you are doing one of the above,
so we know which sites to avoid :-)

regards
leon

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem while deploying war

2006-06-02 Thread Venkatesh Babu
Hi all,

I'm using Tomcat 4.1.31.

I have a war file and I'm using the ant target
deploy to deploy this war. Here is the code
snippet of my build.xml :

property name=tomcat.server.name
value=localhost/
property name=tomcat.server.port value=8080/
property name=tomcat.user.name value=admin/
property name=tomcat.user.password
value=admin/

property name=app.deploy.manageurl
value=http://${tomcat.server.name}:${tomcat.server.port}/manager/


target name=deployapp depends=war
deploy
   url=${app.deploy.manageurl}
   path=/app1
   war=${basedir}/app1.war
   username=${tomcat.user.name}
   password=${tomcat.user.password}/
/target

But when I call this target, I'm getting a strange
error:

BUILD FAILED
C:\temp\app1\build.xml:33:
java.net.MalformedURLException: unknown protocol: c

I have taken catalina-ant.jar from
${TOMCATHOME}/lib/ and placed that in ${ANT_HOME}/lib
but still having this problem.

Can anybody help me and point out what might be the
problem?

Thank you,
Venkatesh


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Hadraba Petr

Hi,

sorry, I forgot to note, that the resources in the context.xml and
web.xml files are replacements for the jndi.properties. I'm using
Tomcat's build-in JNDI.

It looks like you're using one Queue with the name listenerDestination.

So, try the following:
META-INF/context.xml:
Context
...
 Resource
 name=jms/ConnectionFactory
 auth=Container
 type=org.apache.activemq.ActiveMQConnectionFactory
 description=JMS Connection Factory
 factory=org.apache.activemq.jndi.JNDIReferenceFactory
 brokerURL=ssl://localhost:32450
 brokerName=localhost
 useEmbeddedBroker=false /
 Resource
 name=jms/listenerDestination
 auth=Container
 type=org.apache.activemq.command.ActiveMQQueue
 factory=org.apache.activemq.jndi.JNDIReferenceFactory
 physicalName=dms.PublicLogQueue /
...
/Context

WEB-INF/web.xml:
...
 resource-env-ref

resource-env-ref-namejms/ConnectionFactory/resource-env-ref-name

resource-env-ref-typejavax.jms.ConnectionFactory/resource-env-ref-type
 /resource-env-ref

 resource-env-ref
 
resource-env-ref-namejms/listenerDestination/resource-env-ref-name
 resource-env-ref-typejavax.jms.Queue/resource-env-ref-type
 /resource-env-ref
...


And in the code you can obtain the Destination using
 try {
  InitialContext ic = new InitialContext();
  Context ctx = (Context) ic.lookup(java:comp/env);

  ConnectionFactory cf = (ConnectionFactory)
ctx.lookup(jms/ConnectionFactory);
  Connection conn = (Connection) cf.createConnection();
  conn.start();

  Session s = conn.createSession(false,
Session.CLIENT_ACKNOWLEDGE);
  Destination d = (Destination)
ctx.lookup(jms/listenerDestination);

  MessageProducer mp = s.createProducer(d);
  mp.setDeliveryMode(DeliveryMode.PERSISTENT);

  TextMessage tm = s.createTextMessage();
  tm.setText(Foo);

  mp.send(tm);

  tm = s.createTextMessage();
  tm.setText(Bar);

  mp.send(tm);

  conn.close();
  } catch (Exception e) {
  e.printStackTrace();
  }
...


If you want to run ActiveMQ under Tomcat, not as standalone broker,
specify useEmbeddedBroker=true in the context.xml.

The Resource tags can be also placed in the server.xml, but I have bad
experience with JDBC resources there, so I didn't try it.


Try the configuration above. This must work for you!

PETR


On 6/2/06, Maciej Łabędzki [EMAIL PROTECTED] wrote:

Hadraba Petr napisał(a):
 Hi Maciej,

 I'm connecting from Tomcat to ActiveMQ with this configuration:

Thx, but how it corresponds to my jndi.properties file?
How should I form my configuration files (context.xml, web.xml)?
jndi.properties:
---
java.naming.factory.initial =
org.activemq.jndi.ActiveMQInitialContextFactory
brokerURL =ssl://localhost:32450
queue.listenerDestination = dms.PublicLogQueue


Maciej



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Petr Hadraba
graphic artist and software designer
http://people.hadraba-soft.com/~petr
hadrabap AT bluetone DOT cz


A way to know if file download has ended

2006-06-02 Thread Bachler, Elisabeth (Elisabeth)
Hello,

I have an application that uses tomcat 5.0.19. At one point in my
application, the user has the possibility to click on a certain link in
order to download a file.
Once the file is downloaded, I would like the application to go to a certain
jsp page is there a way to configure tomcat to do such a thing? I mean,
to redirect to a page only if the download has been successfully ended?

Thanks



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Auto Reload Features by Tomcat

2006-06-02 Thread Marc Farrow

I remember something about a reloadable parameter in the Server.xml (in a
tag above context either host or engine I think) that has that attribute as
well. Unless the override attribute is included, the attribute in the
context tag is not applied.  I may be chasing the wrong horse, but it
somewhere for you start.  check the docs.  Also, with tomcat5+ it is
recommended that you do not place your context tag in your server.xml but
use the new method.  read the section on contexts in the docs.




On 6/2/06, ks.foong [EMAIL PROTECTED] wrote:


Forget to mentioned, I have make sure my Context tag in server.xml have
included the reloadable=true entity

Context path=/project reloadable=true ...

Foong Kim Seong

-Original Message-
From: ks.foong [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 4:52 PM
To: 'Tomcat Users List'
Subject: Auto Reload Features by Tomcat

Hi, I notice that starting from Tomcat 5 onwards; we can enjoy the benefit
of the Auto-reload features of it.



I personally have tried it with my Eclipse development. Each time I have
changed any servlet coding, the eclipse (or more specific, Tomcat) able to
detect the changes and Reload for itself.



But for my production, I am not sure how this is work. I have replaced my
servlet, ProfileServlet.java to the
[CATALINA_HOME]/webapps/project/WEB-INF/src/com/servlet folder.



I login into my system; I didn't see any changes at all.



So, any ideas how can is this reload features work in production machine?
Do
I need to issues any command for this?





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: SSL Setup

2006-06-02 Thread Roch

I finally got it to recognize the keystore and its able to get in.  I still
have clientauth=false.  I had to add in ciphers also.  I'm not getting any
errors.  But when I go to view the page, it won't come up.  Is there
anything else that I missed?  Thanks.
--
View this message in context: 
http://www.nabble.com/SSL-Setup-t1710991.html#a4678581
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Auto Reload Features by Tomcat

2006-06-02 Thread Jerome Jar

I think it's because that you just enabled the Auto Build feature of
eclipse, so every time you changed your java source, eclipse built it
for you, and tomcat saw the class files changed and then reloaded that
context. But when you metioned for my production, I guess that
machine do not have an eclipse and you just replaced the java source
without compiling it to /WEB-INF/classes and thus tomcat won't reload
your context. Did I get it?

2006/6/2, ks.foong [EMAIL PROTECTED]:

Hi, I notice that starting from Tomcat 5 onwards; we can enjoy the benefit
of the Auto-reload features of it.



I personally have tried it with my Eclipse development. Each time I have
changed any servlet coding, the eclipse (or more specific, Tomcat) able to
detect the changes and Reload for itself.



But for my production, I am not sure how this is work. I have replaced my
servlet, ProfileServlet.java to the
[CATALINA_HOME]/webapps/project/WEB-INF/src/com/servlet folder.



I login into my system; I didn't see any changes at all.



So, any ideas how can is this reload features work in production machine? Do
I need to issues any command for this?







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



APR extensinos for Tocmat 5.5.17 cause a JVM crash on Windows OS

2006-06-02 Thread Stefan Baramov

Hi everyone:

Tomcat 5.5.17 for Windows (distribution apache-tomcat-5.5.17.exe) comes 
with a DLL file called tcnative-1.dll. According to the Tomcat 
documentation this is a native extension based on the APR and Open SSL 
projects. However,  the extension causes the JVM to crashes qutie often.


The application is a image intense web app running on
- Windows 2003 Server + SP1
- JDK 1.5.0_06

I've tried both server and client JVM's and both fails. I've tried to 
disable the AJP connector and still the problem was there. The problem 
disappears only if I remove the tcnative-1.dll from the system path.


The attachment shows one of the crashes. It obviously points to the 
tcnative-1.dll. So can someone shed some light on this extension and 
problem it is causing.


Thanks,
Stefan
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x100043a4, pid=192, tid=1448
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)
# Problematic frame:
# C  [tcnative-1.dll+0x43a4]
#

---  T H R E A D  ---

Current thread (0x003cfe60):  JavaThread Finalizer daemon [_thread_in_native, 
id=1448]

siginfo: ExceptionCode=0xc005, reading address 0x0014

Registers:
EAX=0x006f, EBX=0x006f, ECX=0x02a12f10, EDX=0x26cd7df8
ESP=0x028ff6cc, EBP=0x028ff6d8, ESI=0x, EDI=0x
EIP=0x100043a4, EFLAGS=0x0206

Top of Stack: (sp=0x028ff6cc)
0x028ff6cc:   003cfe60 26cd7340 26cd7340 028ff714
0x028ff6dc:   0083826f 003cff20 028ff71c 
0x028ff6ec:     006f 028ff6f8
0x028ff6fc:    028ff730 26cd7df8 
0x028ff70c:   26cd7340 028ff724 028ff750 008329cf
0x028ff71c:   26cd7da0 00836449 006f 
0x028ff72c:     028ff734 270fc72e
0x028ff73c:   028ff758 270fca40  270fc760 

Instructions: (pc=0x100043a4)
0x10004394:   8b 5d 1c 56 33 f6 85 db 57 76 32 8b 7d 10 8b c3
0x100043a4:   8b 4f 14 2b c6 8d 55 1c 89 45 1c 8b 47 0c 52 8b 


Stack: [0x028c,0x0290),  sp=0x028ff6cc,  free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [tcnative-1.dll+0x43a4]
j  org.apache.tomcat.jni.Socket.sendbb(JII)I+0
j  org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer()V+22
j  org.apache.coyote.http11.InternalAprOutputBuffer.flush()V+19
j  
org.apache.coyote.http11.Http11AprProcessor.action(Lorg/apache/coyote/ActionCode;Ljava/lang/Object;)V+104
j  
org.apache.coyote.Response.action(Lorg/apache/coyote/ActionCode;Ljava/lang/Object;)V+31
j  org.apache.catalina.connector.OutputBuffer.doFlush(Z)V+95
j  org.apache.catalina.connector.OutputBuffer.flush()V+2
j  org.apache.catalina.connector.CoyoteOutputStream.flush()V+4
j  javax.imageio.stream.FileCacheImageOutputStream.close()V+50
j  javax.imageio.stream.ImageInputStreamImpl.finalize()V+8
v  ~StubRoutines::call_stub
V  [jvm.dll+0x845a9]
V  [jvm.dll+0xd9317]
V  [jvm.dll+0x8447a]
V  [jvm.dll+0x897cb]
C  [java.dll+0x2006]
j  java.lang.ref.Finalizer.runFinalizer()V+45
j  java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
j  java.lang.ref.Finalizer$FinalizerThread.run()V+11
v  ~StubRoutines::call_stub
V  [jvm.dll+0x845a9]
V  [jvm.dll+0xd9317]
V  [jvm.dll+0x8447a]
V  [jvm.dll+0x841d7]
V  [jvm.dll+0x9ed69]
V  [jvm.dll+0x109fe3]
V  [jvm.dll+0x109fb1]
C  [msvcrt.dll+0x2b530]
C  [kernel32.dll+0x26063]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.apache.tomcat.jni.Socket.sendbb(JII)I+0
j  org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer()V+22
j  org.apache.coyote.http11.InternalAprOutputBuffer.flush()V+19
j  
org.apache.coyote.http11.Http11AprProcessor.action(Lorg/apache/coyote/ActionCode;Ljava/lang/Object;)V+104
j  
org.apache.coyote.Response.action(Lorg/apache/coyote/ActionCode;Ljava/lang/Object;)V+31
j  org.apache.catalina.connector.OutputBuffer.doFlush(Z)V+95
j  org.apache.catalina.connector.OutputBuffer.flush()V+2
j  org.apache.catalina.connector.CoyoteOutputStream.flush()V+4
j  javax.imageio.stream.FileCacheImageOutputStream.close()V+50
j  javax.imageio.stream.ImageInputStreamImpl.finalize()V+8
v  ~StubRoutines::call_stub
j  java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0
j  java.lang.ref.Finalizer.runFinalizer()V+45
j  java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
j  java.lang.ref.Finalizer$FinalizerThread.run()V+11
v  ~StubRoutines::call_stub

---  P R O C E S S  ---

Java Threads: ( = current thread )
  0x007db5e8 JavaThread http-8080-10 daemon [_thread_in_native, id=592]
  0x03396f48 JavaThread http-8080-9 daemon [_thread_in_native, id=2580]
  0x02b78780 JavaThread http-8080-8 daemon [_thread_in_native, id=3076]
  0x02cca350 JavaThread http-8080-7 daemon [_thread_in_native, id=2548]
  0x02aa4008 JavaThread http-8080-6 daemon [_thread_in_native, id=3244]
  0x02fa9a90 JavaThread http-8080-5 daemon [_thread_in_native, id=3940]
  0x02c739c0 JavaThread 

RE: tomcat ssl not working

2006-06-02 Thread Alvarez, Mike
The servers.xml file needs to be configured with the keystore path and
file name.

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   keystoreFile=D:\\Documents and Settings\\kz616d\\My
Documents\\temp\\Jill\\w2jzdr9y01.amer.corp.eds.com.keystore
   keystorePass=dorkdork
   clientAuth=false protocol=TLS /
/Connector 


-Original Message-
From: AJ Jonen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 3:12 PM
To: Tomcat Users List
Subject: tomcat ssl not working

My tomcat server is not responding when I type in
https://localhost:8443.
oddly enough it does work when I type in http://localhost:8443

I'm having a bit of an issue getting Tomcat to work on the secure port 
8443.   What happens is I type https://localhost:8443 and the page never

loads.  I get no errors (page cannot be found, page cannot be displayed
etc).  My browser simply looks like it's loading the page, it eventually
says that it's done, but my browser home page is still displayed.

- The unsecure port (port 8090 in my case, because port 8080 was already
in use) works fine.
- I generated my keystore file, presumably correctly (I was prompted to
enter my name, organization, location, etc), and it is in the correct
location (C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf).
- Kathy O. looked at my server.xml page and says that everything looks
correct.  Everything looks right to me too.
- I am using Tomcat 5.5 and I am using the correct java version (1.5,
not 1.4).

Any ideas on what might be preventing the page from loading correctly on
the secure port?

Rebecca


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: APR extensinos for Tocmat 5.5.17 cause a JVM crash on Windows OS

2006-06-02 Thread Remy Maucherat

On 6/2/06, Stefan Baramov [EMAIL PROTECTED] wrote:

Hi everyone:

Tomcat 5.5.17 for Windows (distribution apache-tomcat-5.5.17.exe) comes
with a DLL file called tcnative-1.dll. According to the Tomcat
documentation this is a native extension based on the APR and Open SSL
projects. However,  the extension causes the JVM to crashes qutie often.

The application is a image intense web app running on
- Windows 2003 Server + SP1
- JDK 1.5.0_06

I've tried both server and client JVM's and both fails. I've tried to
disable the AJP connector and still the problem was there. The problem
disappears only if I remove the tcnative-1.dll from the system path.

The attachment shows one of the crashes. It obviously points to the
tcnative-1.dll. So can someone shed some light on this extension and
problem it is causing.


You're using Java2D, which as usual is doing invalid accesses to the
output steam. Without APR, you would get issues like getting requests
which are already committed at the beginning of the request, and other
random behavior like that. The solution is to not give direct access
to the Servlet API to the Java2D components (using an intermediate
buffer, etc), or enable the security manager.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Inc
x

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Michael Echerer
Peter Lin wrote:
 I'm gonna say that's quite a bit of myth here. If SSL is important, get a
 cheap SSL enabled router. Doing software SSL is waste of CPU power and
 impacts the server's stability.  Anyone that has a lot of HTTPS traffic
 shouldn't be using software SSL in my bias opinion.  If you are so
 desparate
 that you need software SSL, as remy says, there's APR.  no need to stick
 apache httpd infront.

Guess my information regarding Tomcat + SSL was a bit outdated. Last
time AFAIR I measured Tomcat 5.0.x (no APR avail) vs. Apache+Tomcat 5.0.x.
So good to know there are new options with 5.5.x, Remy.

Well regarding the HW vs. SW question, there's another point:
Often you have different DMZs (e.g. you are required to do it for
security reasons and some forced protocol changes) eventhough you know
that you'll have servers running idle.
In that case you might have pure Apache HTTPD servers in one DMZ and
some Tomcats in another DMZ. Some HTTPS handling and not just AJP
forwarding will use at least some CPU time in your external machines.
;-) if an SSL-enabled router is not what other people want.

Cheers,
Michael
 
 my bias 2 bits on this topic
 
 peter
 
 On 6/1/06, Remy Maucherat [EMAIL PROTECTED] wrote:
 

 On 6/1/06, Michael Echerer [EMAIL PROTECTED] wrote:
  Danny Lee wrote:
   Hi guys!
  
   I wondering if it's really so good to use Tomcat behind a real web
   server like Apache or IIS.
  
 
  In case you have a lot of HTTPS traffic, you'll find that having Apache
  handle SSL is faster than the Java implementation that Tomcat can
 offer.
 
  IMHO for HTTP traffic performance is almost comparable as long as you
  don't need 100% perf, but for HTTPS Apache is definitely better already
  with not so many concurrent requests.

 Great post. And now, for the real information:
 http://tomcat.apache.org/tomcat-5.5-doc/apr.html

 :)

 -- 
 x
 Rémy Maucherat
 Developer  Consultant
 JBoss Inc
 x

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Setup

2006-06-02 Thread Roch

I'm getting the error that says cannot communicate securely because they
have no common encryption algorithms.
--
View this message in context: 
http://www.nabble.com/SSL-Setup-t1710991.html#a4680316
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error when starting tomcat 4.1.27

2006-06-02 Thread bhavik shah

Hi I have tomcat 4.1.27 server.
when ever i start the tomcat i saw a message below

Starting service Tomcat-Standalone

Apache Tomcat/4.1.27

DCTMINFO Documentum Java Method Server

DCTMINFO Docbase Names = 

DCTMINFO Host Names = 

DCTMINFO IP Addresses = 

DCTMINFO Java Method Dir = /java_methods

DCTMINFO DoMethod
CLASSPATH=$CLASSPATH:/java_methods/:/opt/docu/dev/dba/java_methods/mailmethod.jar

CacheQueriesServlet initialized

DCTMINFO Documentum Java Method Server

DCTMINFO Docbase Names = 

DCTMINFO Host Names =

DCTMINFO IP Addresses = 

DCTMINFO Java Method Dir = /java_methods

DCTMINFO DoMethod
CLASSPATH=$CLASSPATH:/java_methods/:/opt/docu/dev/dba/java_methods/mailmethod.jar

*log4j:ERROR setFile(null,true) call failed.*

java.io.FileNotFoundException:/log/fdk_server.log (Permission denied)

I dont know what does it mean

can anybody please help me

thanks

bhavik


Re: Query Regarding Clustering

2006-06-02 Thread Filip Hanik - Dev Lists
Peter is correct, first read the docs, then you'll know more and have 
more info to ask the right questions


Filip


Sandeep Gaikwad wrote:

I had done through vertical clustering on Single Machine.
Can you suggest me changes required for horizontal clustering across Two
machine?

-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 11:41 AM

To: Tomcat Users List
Subject: Re: Query Regarding Clustering

Hi,

please use 5.5.17 and read the tomcat 5.5 cluster docs.

Sorry, but tutorials and real design docs not exists.

Regards
Peter


Am 02.06.2006 um 07:54 schrieb Sandeep Gaikwad:

  

Hi All,

I am trying to devlop Horizontal clustering for tomcat 5.5.9.
I am new to this field so if anyone have any links for this

please 
  

reply back to me.


Regards,
Sandepp




 CAUTION - Disclaimer * This e-mail 
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for 
the use of the addressee(s). If you are not the intended recipient, 
please notify the sender by e-mail and delete the original message. 
Further, you are not to copy, disclose, or distribute this e-mail or 
its contents to any other person and any such actions are unlawful. 
This e-mail may contain viruses. Infosys has taken every reasonable 
precaution to minimize this risk, but is not liable for any damage you



  
may sustain as a result of any virus in this e-mail. You should carry 
out your own virus checks before opening the e-mail or attachment. 
Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from



  

this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***




-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: error when starting tomcat 4.1.27

2006-06-02 Thread Marc Farrow

It means that you have something specified to write/read a log file and you
do not have permission to do that.  Check your permissions on the directory
or file for:

java.io.FileNotFoundException:/log/fdk_server.log (Permission denied)


On 6/2/06, bhavik shah [EMAIL PROTECTED] wrote:


Hi I have tomcat 4.1.27 server.
when ever i start the tomcat i saw a message below

Starting service Tomcat-Standalone

Apache Tomcat/4.1.27

DCTMINFO Documentum Java Method Server

DCTMINFO Docbase Names = 

DCTMINFO Host Names = 

DCTMINFO IP Addresses = 

DCTMINFO Java Method Dir = /java_methods

DCTMINFO DoMethod

CLASSPATH=$CLASSPATH:/java_methods/:/opt/docu/dev/dba/java_methods/mailmethod.jar

CacheQueriesServlet initialized

DCTMINFO Documentum Java Method Server

DCTMINFO Docbase Names = 

DCTMINFO Host Names =

DCTMINFO IP Addresses = 

DCTMINFO Java Method Dir = /java_methods

DCTMINFO DoMethod

CLASSPATH=$CLASSPATH:/java_methods/:/opt/docu/dev/dba/java_methods/mailmethod.jar

*log4j:ERROR setFile(null,true) call failed.*

java.io.FileNotFoundException:/log/fdk_server.log (Permission denied)

I dont know what does it mean

can anybody please help me

thanks

bhavik





--
Marc Farrow


Re: Farm Deployer looping

2006-06-02 Thread Filip Hanik - Dev Lists




Hi Ed, no you are right, the appBase was a change from 5.0 to 5.5, that
requirement used to be the opposite.
You can have a cluster and a farm deployer for each Host if you
wish. Just configure it on a per host basis

Filip

Edoardo Causarano wrote:
Got it, I was too pedantic in following the documentation
defining a "war-deploy" that to me seemed automatically inspected as
the traditional "webapps" is. Instead this directory has to point to
the same directory referenced by the appBase of some Host or
the Farm deployer will work but the app never deployed. I must have
misunderstood the docs but perhaps these should emphasize more this
detail (or explain that the FarmDeployer is disjunct from application
deployment but rather only concerned with application distribution;
where? To the location where the application deployer is watching, of
course). Shall I post a documentation enhancement request?
  
  
Now, another question. Can I have multiple farm deployers, within the
same cluster definition, one for each virtual host?
  
  
Cheers,
  
e
  
  
On 01/giu/06, at 18:51GMT+02:00, Edoardo Causarano wrote:
  
  
  Hello list, I have a 3 node farm testbed.
Copying a distributable war (the

servlet-examples and jsp-examples demo apps with a distributable
/ tag in

the web.xml) to the war-listen directory of one of the members causes
the

following log:


INFO: check cluster wars at /srv/cluster01/war-listen

Jun 1, 2006 6:44:43 PM
org.apache.catalina.cluster.deploy.FarmWarDeployer

fileModified

INFO: Installing webapp[/jsp-examples]

from /srv/cluster01/war-deploy/jsp-examples.war

Jun 1, 2006 6:44:43 PM
org.apache.catalina.cluster.deploy.FarmWarDeployer

remove

INFO: Cluster wide remove of web app /jsp-examples


What could be the cause of this?

e


--Edoardo Causarano

Direzione Operazioni  Tecnologia

Area Sistemi


Laziomatica S.p.A.

Via Adelaide Bono Cairoli, 68

00145 Roma

mobile: ---

fisso: +39 0651689829

[EMAIL PROTECTED]

www.laziomatica.it


-

To start a new topic, e-mail: users@tomcat.apache.org

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]


  
  
  
-
  
To start a new topic, e-mail: users@tomcat.apache.org
  
To unsubscribe, e-mail: [EMAIL PROTECTED]
  
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
--No virus found in this incoming message.
  
Checked by AVG Free Edition.
  
Version: 7.1.394 / Virus Database: 268.8.0/353 - Release Date:
5/31/2006
  
  
  



-- 


Filip Hanik






Re: error when starting tomcat 4.1.27

2006-06-02 Thread Filip Hanik - Dev Lists
the user that the tomcat VM runs as, needs to have write permissions to 
the following file mentioned below


Filip


bhavik shah wrote:

Hi I have tomcat 4.1.27 server.
when ever i start the tomcat i saw a message below

Starting service Tomcat-Standalone

Apache Tomcat/4.1.27

DCTMINFO Documentum Java Method Server

DCTMINFO Docbase Names = 

DCTMINFO Host Names = 

DCTMINFO IP Addresses = 

DCTMINFO Java Method Dir = /java_methods

DCTMINFO DoMethod
CLASSPATH=$CLASSPATH:/java_methods/:/opt/docu/dev/dba/java_methods/mailmethod.jar 



CacheQueriesServlet initialized

DCTMINFO Documentum Java Method Server

DCTMINFO Docbase Names = 

DCTMINFO Host Names =

DCTMINFO IP Addresses = 

DCTMINFO Java Method Dir = /java_methods

DCTMINFO DoMethod
CLASSPATH=$CLASSPATH:/java_methods/:/opt/docu/dev/dba/java_methods/mailmethod.jar 



*log4j:ERROR setFile(null,true) call failed.*

java.io.FileNotFoundException:/log/fdk_server.log (Permission denied)

I dont know what does it mean

can anybody please help me

thanks

bhavik



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/354 - Release Date: 6/1/2006
  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Own implementation WebdavServlet

2006-06-02 Thread jeroen
I want to make my own implementation of
org.apache.catalina.servlets.WebdavServlet. I first wanted to make a
test by copying the contents of this class to a new class. Now there's a 
strange phenomenon: the ProxyDirContext
resources cannot be retrieved. It is retrieved from the contextAttribute
org.apache.catalina.resources, but I can't find where it is set. Can
anybody help me with this? Why is it the DefaultServlet, and its subclass
WebdavServlet can find it, but my own subclass with exactly the same code
can't? Has anybody successfully made an own implementation of WebDAV?

Jeroen

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Auto Reload Features by Tomcat

2006-06-02 Thread Richard Mixon
If I understand correctly, you are describing moving a src file
(ProfileServlet.java) under project/WEB-INF/src in your production Tomcat
webapps directory. I know that am not sure why you believe that Tomcat will
automatically compile your servlet source (I believe it will for a .jsp
file)

The context parameter reloadable is defined as:
  Set to true if you want Catalina to monitor classes in /WEB-INF/classes/
and /WEB-INF/lib
  for changes, and automatically reload the web application if a change is
detected. This feature
  is very useful during application development, but it requires significant
runtime overhead and
  is not recommended for use on deployed production applications. ...

It does not mention the source/src directory at all.

I assume you are on the most current version of Tomcat, 5.5 - but the
reloadable attribute was available in prior versions also.

 HTH - Richard
-Original Message-
From: ks.foong [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 1:52 AM
To: 'Tomcat Users List'
Subject: Auto Reload Features by Tomcat

Hi, I notice that starting from Tomcat 5 onwards; we can enjoy the benefit
of the Auto-reload features of it.

 

I personally have tried it with my Eclipse development. Each time I have
changed any servlet coding, the eclipse (or more specific, Tomcat) able to
detect the changes and Reload for itself.

 

But for my production, I am not sure how this is work. I have replaced my
servlet, ProfileServlet.java to the
[CATALINA_HOME]/webapps/project/WEB-INF/src/com/servlet folder. 

 

I login into my system; I didn't see any changes at all. 

 

So, any ideas how can is this reload features work in production machine? Do
I need to issues any command for this?

 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28 reaches OS open files limit

2006-06-02 Thread Edoardo Causarano

Hmm... I'll check. Thanks

e


2006/5/26, [EMAIL PROTECTED] [EMAIL PROTECTED]:


 I have a problem with some tomcat servers that regularly start thowing
 exceptions about too many open files (the stacktrace is in a network
socket
 aperture). One solution is increasing the ulimit but would disabling
http
 keepalives reduce the open file count?

Do you use Runtime.getProcess() anywhere?  That opens three file handles
that you have to close (stdin, stdout, stderr).   I ran into this
problem myself a while ago.

_M_



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Le montagne sono così: devi assecondarle anche se ti sputano in faccia fiele
e veleno.
Perdi se pensi di essere più forte.
Vinci se pensi che non c'è nessuna battaglia.
- Hans Kammerlander


How to make Axis use Tomcat's compiler?

2006-06-02 Thread Seak, Teng-Fong

Hello everybody,

   I don't know if this post would be considered off-topic, or maybe I 
should cross-post it since it's about Axis and Tomcat.


   I'm trying to use Web service in Tomcat, ie with Axis.  I've read 
and followed the install guide and user guide:

http://ws.apache.org/axis/java/install.html
http://ws.apache.org/axis/java/user-guide.html

   Everything's OK, except one thing, Axis needs tools.jar to compile 
JWS on the fly.  So, anyone knows if it's possible to make Axis use 
Tomcat's compiler and how?


   By the way, the docs for Axis are too old; they're still using 
Tomcat 4 as reference!  Furthermore, the docs just say Axis needs Java2, 
but no clear mention if JRE is enough. I mean, Tomcat only needs JRE 
whereas tools.jar could only be found in JDK.  So, JRE or JDK?


   TIA

   STF


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Jim Jagielski

IMO, if you need to move out of pure Java in your Java Web
Server to get acceptable performance, then why use it in
the first place? Plus, if you are concerned about the
security of Apache (cause it's nasty C) and therefore
want to use a Java Web Server, then using JNI means
you've left that warm and safe place, since you are
no longer safe in a pure Java environment.

Web Servers are web servers primarily, focused on
HTTP, compliance, speed and capability. Use the
right tool for the right job :)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat windows service terminated expectedly

2006-06-02 Thread Bill Tomlinson

We're running tomcat in standalone mode as a windows service. Every
once and a while tomcat crashes with no logs or errors. Just not
running anymore. The windows event log just says service terminated
unexpectedly. The tomcat service can be restarted without problems.
We haven't been able to determine any pattern to these failures,
either in time or in usage. And we can't reproduce it on demand.

We have two different installations, and both see this problem:
Installation 1:
Windows 2000 Server
Java 1.4.2
Tomcat 5.0.18
Installation 2:
Windows 2003 Server
Java 1.5.0
Tomcat 5.5.16

I realize that this isn't much to go on, and I apologize for that. But
what I'm really looking for is just some information about what we
could possibly be doing in our web application that would cause tomcat
to crash with no logs (aside from calling System.exit(), I did check
that).

Maybe if I present it as a challenge it will get someone's interest.
Challenge: write a servlet that crashes tomcat (running as a windows
service) without generating any logs!

I'm just looking for any hints about what areas I whould be looking into.

Thanks.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Remy Maucherat

On 6/2/06, Jim Jagielski [EMAIL PROTECTED] wrote:

IMO, if you need to move out of pure Java in your Java Web
Server to get acceptable performance, then why use it in
the first place? Plus, if you are concerned about the
security of Apache (cause it's nasty C) and therefore
want to use a Java Web Server, then using JNI means
you've left that warm and safe place, since you are
no longer safe in a pure Java environment.

Web Servers are web servers primarily, focused on
HTTP, compliance, speed and capability. Use the
right tool for the right job :)


We know what your company recommends, thank you very much :)

Do you also mean to imply that the network code in the JVM is not
native, and cannot have any security problem, etc ? Using APR replaces
that native code and uses the one from the ASF instead.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Inc
x

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Mladen Turk

Jim Jagielski wrote:


Web Servers are web servers primarily, focused on
HTTP, compliance, speed and capability. Use the
right tool for the right job :)



Agreed.
If you only need a web server, use a web server.
I think that the question is not whether to replace
the web server, but whether the web server is needed
for delivering the static content in cases where
there is already a Tomcat. In that case the APR can
be used.
With traditional Apache+mod_jk+Tomcat you have
tree points of failure; Apache, Tomcat and a connection
stack between them. With Tomcat+APR you have only two.
Because of the weak link rule, system will aways be
as stable as Tomcat is.

Just my 2 cents to this never ending kind of
discussions :)

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to hide the keystorePass at the server.xml

2006-06-02 Thread David Wall


Leon Rosenberg wrote:

On 6/2/06, Bill Barker [EMAIL PROTECTED] wrote:

TC 3.3.x had an optional module to do this.  It never got ported.

I generally agree with most of the people that say that this is the 
least of

your problems.  If you are usings a self-signed cert, then you are just
getting what you deserve.  Otherwise, you simply contact the CA and 
revoke
the cert:  At least this problem solved :).  Now, how to deal with 
the fact

that the hacker just uploaded 10,000 credit-card numbers, since my jdbc
password was in the clear :).


Actually you are not allowed to save credit card numbers unless you
are a certified payment provider (which implies major security
constraints).
Even a certified payment provider is not allowed to store cvc codes,
and without the codes the credit card numbers are useless. (amazon of
course is an exception to this rule...)
However, if you saving cc-numbers or bank accounts or any other
payment related data in your database unencrypted you belong in jail
:-)
But please feel free to tell us that you are doing one of the above,
so we know which sites to avoid :-)
Somewhat true, but nearly every site that collects payment information 
and charges at a later date stores that information until the card is 
actually processed, and many businesses do not charge the card until the 
product/service has been delivered. 

Furthermore, that simply begs the issue, since it could be SSN, 
salaries, student loan info, job histories, etc. that become vulnerable.  

I don't think there's much argument that allowing the option to manually 
enter the keystore password is a bad thing, just that protecting an SSL 
cert is only a small concern if your filesystem has been compromised.


David

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HTTP-less GenericServlets - Was: Socket Servlet using Tomcat 5.5.17

2006-06-02 Thread Juergen Weber
I have quite a similar problem as the original poster.

I'd like to write a router for CORBA messages that
should listen on a socket and forward the messages to
JMS. Same as the OP I would like to host the code in
Tomcat, to avoid having to handle all the threading
and socket issues and still more importantly, to not
have an additional process that would have to be
monitored.

I think, the Servlet API originally was designed to
support http-less Servlets, else the separation
between GenericServlet
HttpServlet would not make sense.

From the Servlet API doc:
Defines a generic, protocol-independent servlet. To
write an HTTP servlet GenericServlet for use on the
Web, extend HttpServlet instead.

So, the problem is, right now it seems that Tomcat
does not support GenericServlet, at least there is no
way to call them without a http header line. Or ist
there?

An easy way were to just define a special non-http
connector that listens on a separate port.

The option to just add a GET / HTTP/1.0 as was
suggested would not work as a CORBA client certainly
will not send that line.

Supporting http-less GenericServlets would open up
Tomcat to another class of applications.

Regards
Juergen


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TC 5.5.17 problem with multiple webapps using JCE provider and security manager - RESOLVED

2006-06-02 Thread David Wall
On reading more in the release notes 
(http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt), I figured 
I'd give the shared/lib idea a try.  I found that just by moving the 
BouncyCastle JCE jar into shared/lib and out of the WEB-INF/lib of the 
various webapps, all seems to work okay.


Note that when using a security manager, I had to add the following 
additional GRANTs before TC would actually start up, so these should 
probably be added to the default catalina.policy file in the 
distribution (under the default grant {} entry):


// Extra permission found by Yozons that need to be set for whatever reason
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina;
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.catalina.*;
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.jasper.compiler;
permission java.lang.RuntimePermission 
accessClassInPackage.org.apache.tomcat.util.net;


David

David Wall wrote:
Since upgrading from Tomcat from 5.5.9 to 5.5.17, I found that my two 
webapps that both need to use encryption via JCE providers are not 
working.  Only the first to load webapp works as it installs the 
provider just fine, but the other cannot and then fails.
It seems that a single JVM can only load the security providers once.  
When running tomcat with a security manager, it appears that the first 
webapp to initialize loads the provider successfully (says in slot 
7).  The second webapp tries to also load the provider, gets the 
routine error saying it was installed in slot -1, but now fails to be 
able to find the provider.
If I turn off the security manager in TC (no -security startup 
option), it works fine, even though the second to load still gets the 
-1 slot error installing the JCE provider.  This all worked fine 
under 5.5.9 with a security manager.


So, the problem appears to be with the security manager in 5.5.17 is 
not able to find the provider as it once could because it's been 
loaded into the JVM by another webapp.  At the bottom is the exception 
stack trace.


I am running Tomcat 5.5.17 with a security manager (started with 
-security) under RedHat Linux using BouncyCastle JCE 1.33 with JDK 1.5.


Thanks,
David


java.security.NoSuchAlgorithmException: class configured for 
SecretKeyFactory(provider: BC)cannot be found.

   at java.security.Provider$Service.getImplClass(Provider.java:1178)
   at java.security.Provider$Service.newInstance(Provider.java:1129)
   at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
   at javax.crypto.SunJCE_b.a(DashoA12275)
   at javax.crypto.SecretKeyFactory.getInstance(DashoA12275)
   at com.test.cryptotest.PbeUtil.init(PbeUtil.java:48)
   at com.test.BootService.init(BootService.java:62)
   at com.test.Context.loadSessionKeys(YoContext.java:547)
   at com.test.Context.init(YoContext.java:154)
   at com.test.Application.init(Application.java:825)
   at 
com.test.servlet.ContextListener.contextInitialized(ContextListener.java:38) 

   at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) 

   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) 

   at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:121)
   at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143) 


   at java.security.AccessController.doPrivileged(Native Method)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:737)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) 

   at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) 

   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) 

   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) 

   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 

Tomcat jkmanager

2006-06-02 Thread Leo Donahue - PLANDEVX
After reading this article:
http://tomcat.apache.org/connectors-doc/howto/workers.html
 
I still don't understand what a jkmanager is or does or why it allows
you to do this:
 
http://localhost/jkmanager  
 
and get some kind of page describing what appears to be load balancing
upon a default installation of Tomcat 5.0.28 with IIS 6.0.
 
I know that whatever jkmanager is, it is located in a custom
uriworkermap.properties file we use for our website.  The entry looks
like this:
 
 
# Mount jkstatus to /jkmanager
 
# For production servers you will need to
 
# secure the access to the /jkmanager url
 
#
 
/jkmanager=jkstatus
#END
 
 
 Secure access to the /jkmanager url...  ok, but where is it?  Secure
it via IIS or Tomcat?  


Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Bob Hall
Carlos,

The javadoc indicates that the methods are deprecated,
but it looks like you could use:

HttpSession mySess = request.getSession();

// getSessionContext() is deprecated
HttpSessionContext sessCtx =
mySess.getSessionContext();

// getSession(String) is deprecated
HttpSession otherSess =
sessCtx.getSession(otherSessId);

-Bob

--- Carlos Alonso Vega [EMAIL PROTECTED] wrote:

  Thanks for the reply. My problem is that the
 session info I need is not 
 of the session that makes the request. I need to
 check other sessions in 
 the same context.  I can use the request because it
 is in the same 
 context, so the manager is the same.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with the JRockit

2006-06-02 Thread Benjamin Chu
I hope to run the tomcat 5.0 with JRockit 5.0 R26.3.on a linux machine
and installed JRockit in the root directory
(/root/jrockit-R26-3.0-jdk1.5.0_06)
The following is the environment variables which I set:**


export JAVA_HOME=/root/jrockit-R26-3.0-jdk1.5.0_06
export JAVA_HOME
PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
export PATH
export
CLASSPATH=/root/jrockit-R26-3.0-jdk1.5.0_06/lib/tools.jar:/root/jrockit-R26-3.0-jdk1.5.0_06/jre/lib/rt.jar:./
export CLASSPATH=$CLASSPATH:/var/tomcat/common/lib/servlet-api.jar
export
CLASSPATH=$CLASSPATH:/var/tomcat/common/lib/mysql-connector-java-3.1.12-bin.jar
export CLASSPATH=$CLASSPATH:/root
export CATALINA_HOME=/var/tomcat
export CATALINA_HOME


However, when I start the tomcat (./startup.sh), I received the
following message:

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

I double checked the environment variables which I set and there is no
typo. The tomcat runs very well if I use Sun J2EESDK .
Is there something wrong with the configuration? Thank you very much!







Re: Realm Tag in webappnamecontext.xml

2006-06-02 Thread Mark Thomas
Marc Farrow wrote:
  auth-contraint/

And there is the problem. An empty auth-constraint allows
unauthenticated access as per SRV.12.8.1

An empty auth-constraint is not the same as an auth-constraint
that specifies no roles and therefore denies access to all as per
SRV.12.8.1.


Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JKMount with Tomcat and Access Restriction

2006-06-02 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem while deploying war

2006-06-02 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat jkmanager

2006-06-02 Thread Mark Thomas
Leo Donahue - PLANDEVX wrote:
 I still don't understand what a jkmanager is or does or why it allows
 you to do this:

jkmanager is part of isapi.dll

It intercepts requests to /jkmanager before they get to Tomcat and
responds to them.

 I know that whatever jkmanager is, it is located in a custom
 uriworkermap.properties file we use for our website.  The entry looks
 like this:

It isn't located here, it is configured here.

 Secure access to the /jkmanager url...  ok, but where is it?

It has to be secured via IIS as the requests don't get as far as Tomcat.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP-less GenericServlets - Was: Socket Servlet using Tomcat 5.5.17

2006-06-02 Thread Tim Funk
(My opinion)

The servlet spec really only works for http based things. Trying to fit
anything else in will morph into a ainful kludge.

There are other apache projects out there such as avalon (or whatever
subprojects it broke into) which is probably more suited to this task.

-Tim

Juergen Weber wrote:
 I have quite a similar problem as the original poster.
 
 I'd like to write a router for CORBA messages that
 should listen on a socket and forward the messages to
 JMS. Same as the OP I would like to host the code in
 Tomcat, to avoid having to handle all the threading
 and socket issues and still more importantly, to not
 have an additional process that would have to be
 monitored.
 
 I think, the Servlet API originally was designed to
 support http-less Servlets, else the separation
 between GenericServlet
 HttpServlet would not make sense.
 
From the Servlet API doc:
 Defines a generic, protocol-independent servlet. To
 write an HTTP servlet GenericServlet for use on the
 Web, extend HttpServlet instead.
 
 So, the problem is, right now it seems that Tomcat
 does not support GenericServlet, at least there is no
 way to call them without a http header line. Or ist
 there?
 
 An easy way were to just define a special non-http
 connector that listens on a separate port.
 
 The option to just add a GET / HTTP/1.0 as was
 suggested would not work as a CORBA client certainly
 will not send that line.
 
 Supporting http-less GenericServlets would open up
 Tomcat to another class of applications.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Eric Haszlakiewicz
On Fri, Jun 02, 2006 at 11:15:03AM +0200, Carlos Alonso Vega wrote:
 Bob,
 
 Thanks for the reply. My problem is that the session info I need is not 
 of the session that makes the request. I need to check other sessions in 
 the same context.  I can use the request because it is in the same 
 context, so the manager is the same.
 
 This servlet is called internally from the app, and checks if some 
 session exists. It is similar to the case of obtaining all active 
 sessions from one context using the manager inside the servlet code 
 (findSessions). If someone have this piece of code (or similar), it will 
 serve me.

To do something like that you need to do it yourself.  i.e. store a
HashTable in the application context, then add and remove sessions to
it when people login and logout, or at some other convinient time.
Of course, this assumes your app isn't running in a distributed environment.
If it is, then it's impossible to get a session object from a different
JVM.  (well, you could serialize it and transfer the data, but it won't
be the same object and it won't be useful for much other than extracting
some info)

eric

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Realm Tag in webappnamecontext.xml

2006-06-02 Thread Marc Farrow

Thanks Mark.  I did figure out my configuration problem!

On 6/2/06, Mark Thomas [EMAIL PROTECTED] wrote:


Marc Farrow wrote:
  auth-contraint/

And there is the problem. An empty auth-constraint allows
unauthenticated access as per SRV.12.8.1

An empty auth-constraint is not the same as an auth-constraint
that specifies no roles and therefore denies access to all as per
SRV.12.8.1.


Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Frank W. Zammetti
I may be wrong about this, but I thought that it was expressly forbidden 
by the servlet spec to be able to get arbitrary sessions.  That is, even 
if you store the session ID in some table, you wouldn't be able to get 
any session other than that associated with the current request.


Now, that refers to standards-compliant ways to do it... I'm sure most 
app servers give you their own way to pull it off... JMX pops to mind as 
a likely possibility.


(unless I'm wrong-LOL)

Frank

Eric Haszlakiewicz wrote:

On Fri, Jun 02, 2006 at 11:15:03AM +0200, Carlos Alonso Vega wrote:

Bob,

Thanks for the reply. My problem is that the session info I need is not 
of the session that makes the request. I need to check other sessions in 
the same context.  I can use the request because it is in the same 
context, so the manager is the same.


This servlet is called internally from the app, and checks if some 
session exists. It is similar to the case of obtaining all active 
sessions from one context using the manager inside the servlet code 
(findSessions). If someone have this piece of code (or similar), it will 
serve me.


To do something like that you need to do it yourself.  i.e. store a
HashTable in the application context, then add and remove sessions to
it when people login and logout, or at some other convinient time.
Of course, this assumes your app isn't running in a distributed environment.
If it is, then it's impossible to get a session object from a different
JVM.  (well, you could serialize it and transfer the data, but it won't
be the same object and it won't be useful for much other than extracting
some info)

eric

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



.



--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How can I modify the java.library.path in Tomcat?

2006-06-02 Thread Andi Heusser
Hi,

 

I have a web application where I need to load some 3rd party libraries DLLs)
and I would like to have these DLLs in a subdirectory in my app
(webapps/MyApp/WEB-INF/lib). However when I try to do a 'loadLibrary' it
fails to find them. I then noticed that the 'Tomcat/bin' directory is in
this path and if I copy the DLLs in there, then it works fine.

 

I've tried to set the system property inside my app in the static
initializer of the main class but that doesn't seem to work. I basically
tried to do the following:

  static{

String libPath = System.getProperty(java.library.path);

String myLibPath = System.getProperty(myapp.lib.path);
//env var set in PC's system variables (WinXP)

System.setProperty(java.library.path, libPath +
File.pathSeparator + myLibPath);

  }

 

I also looked through the Tomcat conf files but I couldn't find any place
where I could properly set or override the java.library.path.

 

Is there a way to set this in Tomcat or will I have to copy the DLLs into
Tomcat's bin directory?

 

Thanks.

Regards,

Andi

 



Re: How can I modify the java.library.path in Tomcat?

2006-06-02 Thread Wade Chandler
--- Andi Heusser [EMAIL PROTECTED] wrote:

 Hi,
 
  
 
 I have a web application where I need to load some
 3rd party libraries DLLs)
 and I would like to have these DLLs in a
 subdirectory in my app
 (webapps/MyApp/WEB-INF/lib). However when I try to
 do a 'loadLibrary' it
 fails to find them. I then noticed that the
 'Tomcat/bin' directory is in
 this path and if I copy the DLLs in there, then it
 works fine.
 
  
 
 I've tried to set the system property inside my app
 in the static
 initializer of the main class but that doesn't seem
 to work. I basically
 tried to do the following:
 
   static{
 
 String libPath =
 System.getProperty(java.library.path);
 
 String myLibPath =
 System.getProperty(myapp.lib.path);
 //env var set in PC's system variables (WinXP)
 
 System.setProperty(java.library.path,
 libPath +
 File.pathSeparator + myLibPath);
 
   }
 
  
 
 I also looked through the Tomcat conf files but I
 couldn't find any place
 where I could properly set or override the
 java.library.path.
 
  
 
 Is there a way to set this in Tomcat or will I have
 to copy the DLLs into
 Tomcat's bin directory?
 
  
 
 Thanks.
 
 Regards,
 
 Andi

I like finer control over loading native files.  I use
System.load instead.  You can get your web app path
from the Servlet API.  It makes it easier and you
don't have to make sure your library is on a path.

Wade

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ssl timeout length with jsse with tomcat 5.5

2006-06-02 Thread Jason Pendrey
I want to know how to control the length of time that an ssl connection 
timesout and a user needs to login again.  Right now its too short and I 
can't find anything in the server.xml ssl connector node that seems to 
change that. I'm using tomcat 5.5 with the latest jsse.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]