(28)No space left on device: mod_jk: could not create jk_log_lock

2007-09-03 Thread Frank.Mensch
Hello,

tomorrow i had the problem, that my Apache (Apache/2.2.4 (Unix) mod_ssl/2.2.4 
OpenSSL/0.9.8d mod_jk/1.2.25) didn't start up. In the error.log of the Apache 
the following error message can be found:

[Sun Sep 02 11:20:30 2007] [crit] (28)No space left on device: mod_jk: could 
not create jk_log_lock
Configuration Failed

Disk space definitely wasn't the problem, i checked the available space by 
executing df and every partition had at least 25% available free disk space.

/dev/sda3  3076316   2224224852092  73% /
tmpfs   517592 8517584   1% /dev/shm
/dev/sda1   530088 41692488396   8% /boot
/dev/sda5   409580 58016351564  15% /tmp
/dev/sda6   530088100712429376  19% /var/log
/dev/sdb1 18425928622312  17803616   4% /piro

I tried to start the Apache again, but it still didn't come up. After rebooting 
the complete server, the problem was gone and the Apache started up as always.

Does anybody have a tip, what could have been the problem? Are similiar 
problems known? Maybe the Apache has problems handling with semaphores? A 
similar problem was known in Apache 2.053, but up to now Apache 2.24 didn't 
have any problems yet.

Thanks in advance for your reply!

Greetz
Frank


webapp getting encryption information

2007-09-03 Thread Christian Andersson
I'm sorry that I'm asking this directly without havinge done that much
research on this matter, but I'm hard pressed on time, and I'm currently
traveling so I have a very limited access to the net.

my question is as follows

I have an webapplication that the users are connecting to via https.
IS it possble for this webappto get information about the encryption
protocol (ssl2/ssl3/tls/etc...) and algoritms
(TLS_RSA_WITH_RC4_128_MD5/TLS_RSA_WITH_RC4_128_SHA/etc) used?

I'm currently looking at securing a website with different grades of
security depending on the type of connection (for example you need RSA
with 256bit key to access some parts but other parts you only need
3DES), so the the less secure connection, the less information/options
will be provided.



-- 
Christian Andersson - [EMAIL PROTECTED]

Configuration and Collaboration for OpenOffice.org
Open Framework Systems AS http://www.ofs.no

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

Differentiate Tomcat 6.x with Tomcat 5.x

2007-09-03 Thread MOHD SUFIAN BIN ZAKARIAH ZAKARIAH
Hello
   
  I have something question about Tomcat version. I want to know that Tomcat 
6.x have difference with Tomcat 5.x and other. Can give explaination about 
function both of Tomcat.
   
  Thank you for all cooperation.

   
-
Bosan dengan spam? Mel Yahoo! memiliki perlindungan spam yang terbaik
http://my.mail.yahoo.com/

Differentiate Tomcat 6.x with Tomcat 5.x

2007-09-03 Thread MOHD SUFIAN BIN ZAKARIAH ZAKARIAH
Hello
   
  I have something question about Tomcat version. I want to know that Tomcat 
6.x have difference with Tomcat 5.x and other. Can give explaination about 
function both of Tomcat.
   
  Thank you for all cooperation.

   
-
Bosan dengan spam? Mel Yahoo! memiliki perlindungan spam yang terbaik
http://my.mail.yahoo.com/

Re: webapp getting encryption information

2007-09-03 Thread David Delbecq
Hi,

if you want parts to be accessible only with RSA, this part must use a
SSL certificate that accepts only RSA. This has to be decided when
generating certificates. So your different security levels must use
different certificates. One way to do this is to create different
connectors (different ips or different ports) that use different
certificates. You can then control, on each connector, which webapps are
accessible. Am sorry, but i don't think j2ee specs provides anything
else than transport-guarantee which can only take NONE, INTEGRAL or
CONFIDENTIAL so you will probably have to split your application in
several webapps on several ports/domains...



En l'instant précis du 03/09/07 09:42, Christian Andersson s'exprimait
en ces termes:
 I'm sorry that I'm asking this directly without havinge done that much
 research on this matter, but I'm hard pressed on time, and I'm currently
 traveling so I have a very limited access to the net.

 my question is as follows

 I have an webapplication that the users are connecting to via https.
 IS it possble for this webappto get information about the encryption
 protocol (ssl2/ssl3/tls/etc...) and algoritms
 (TLS_RSA_WITH_RC4_128_MD5/TLS_RSA_WITH_RC4_128_SHA/etc) used?

 I'm currently looking at securing a website with different grades of
 security depending on the type of connection (for example you need RSA
 with 256bit key to access some parts but other parts you only need
 3DES), so the the less secure connection, the less information/options
 will be provided.



   
 

 -
 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://www.noooxml.org/


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



Differentiate Tomcat 6.x with Tomcat 5.x

2007-09-03 Thread MOHD SUFIAN BIN ZAKARIAH ZAKARIAH

  Hello
   
  I have something question about Tomcat version. I want to know that Tomcat 
6.x have difference with Tomcat 5.x and other. Can give explaination about 
function both of Tomcat.
   
  Thank you for all cooperation.

-
  
   
-
Bosan dengan spam? Mel Yahoo! memiliki perlindungan spam yang terbaik
http://my.mail.yahoo.com/

RE: How to profile Tomcat with Rational Purify?

2007-09-03 Thread Hitesh Raghav
Thanks Filip and Peter for valuable suggestions.

I'll try and share the details in case of new findings


Thanks,
-Hitesh

 

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 31, 2007 8:12 PM
To: Tomcat Users List
Subject: Re: How to profile Tomcat with Rational Purify?

Tomcat is just another java application, nothing special at all.
What I do, when I get tools for Java, is that I modify
catalina.sh/catalina.bat to instead of execute the Java command, I
prefix it with the echo  command, so that is spits out the command
line that I am running.
Then I would take that command line with its arguments and put in
Purify, and voila, you should be good to go

Filip

Peter Crowther wrote:
 From: Hitesh Raghav [mailto:[EMAIL PROTECTED]
 What are the steps for profiling a web server (i.e. Tomcat)?
 

 Broadly the same as those for profiling any other app: decide what you

 want to measure, set up the instrumentation, run, analyse results.  In

 your case, the instrumentation is Purify.

 The likely reason you got no answers the first time you posted this is

 that nobody on the list has ever profiled Tomcat using Purify.  I 
 suspect you're on your own here!

   - Peter

 -
 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: Differentiate Tomcat 6.x with Tomcat 5.x

2007-09-03 Thread Gerhardus.Geldenhuis
Hi
This webpage should answer most of your questions,

http://tomcat.apache.org/whichversion.html

Regards 

 -Original Message-
 From: MOHD SUFIAN BIN ZAKARIAH ZAKARIAH 
 [mailto:[EMAIL PROTECTED] 
 Sent: 03 September 2007 10:09
 To: users@tomcat.apache.org
 Subject: Differentiate Tomcat 6.x with Tomcat 5.x
 
 
   Hello

   I have something question about Tomcat version. I want to 
 know that Tomcat 6.x have difference with Tomcat 5.x and 
 other. Can give explaination about function both of Tomcat.

   Thank you for all cooperation.
 
 -
   

 -
 Bosan dengan spam? Mel Yahoo! memiliki perlindungan spam yang 
 terbaik http://my.mail.yahoo.com/
 

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

-
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: (28)No space left on device: mod_jk: could not create jk_log_lock

2007-09-03 Thread Rainer Jung

[EMAIL PROTECTED] wrote:

Hello,

tomorrow i had the problem, that my Apache (Apache/2.2.4 (Unix)
mod_ssl/2.2.4 OpenSSL/0.9.8d mod_jk/1.2.25) didn't start up. In the
error.log of the Apache the following error message can be found:

[Sun Sep 02 11:20:30 2007] [crit] (28)No space left on device:
mod_jk: could not create jk_log_lock Configuration Failed

Disk space definitely wasn't the problem, i checked the available
space by executing df and every partition had at least 25%
available free disk space.

/dev/sda3  3076316   2224224852092  73% / tmpfs
517592 8517584   1% /dev/shm /dev/sda1
530088 41692488396   8% /boot /dev/sda5   409580
58016351564  15% /tmp /dev/sda6   530088100712
429376  19% /var/log /dev/sdb1 18425928622312
17803616   4% /piro

I tried to start the Apache again, but it still didn't come up. After
rebooting the complete server, the problem was gone and the Apache
started up as always.

Does anybody have a tip, what could have been the problem? Are
similiar problems known? Maybe the Apache has problems handling with
semaphores? A similar problem was known in Apache 2.053, but up to
now Apache 2.24 didn't have any problems yet.


Which platform do you use?

The message means, that apr_global_mutex_create() wasn't successful. We 
(mod_jk) call it for a lock type of APR_LOCK_DEFAULT. This automatically 
maps to one of


APR_LOCK_FCNTL, /** fcntl() */
APR_LOCK_FLOCK, /** flock() */
APR_LOCK_SYSVSEM,   /** System V Semaphores */
APR_LOCK_PROC_PTHREAD,  /** POSIX pthread process-based locking */
APR_LOCK_POSIXSEM,  /** POSIX semaphore process-based locking */

So what's the default for your platform?

The general preference is (APR 1.2 used in Apache httpd 2.2):

- flock
- sysvsem
- fcntl
- pthread
- posix semaphore

To find out, what was detected as available during your Apache httpd or 
APR build, you need to check the header file apr.h, which gets generated 
when building apr resp. httpd. The following command shows you the 
available locking methods:


$ grep SERIALIZE apr.h
#define APR_USE_FLOCK_SERIALIZE   0
#define APR_USE_SYSVSEM_SERIALIZE 0
#define APR_USE_POSIXSEM_SERIALIZE0
#define APR_USE_FCNTL_SERIALIZE   1
#define APR_USE_PROC_PTHREAD_SERIALIZE0
#define APR_USE_PTHREAD_SERIALIZE 1
#define APR_HAS_FLOCK_SERIALIZE   0
#define APR_HAS_SYSVSEM_SERIALIZE 1
#define APR_HAS_POSIXSEM_SERIALIZE1
#define APR_HAS_FCNTL_SERIALIZE   1
#define APR_HAS_PROC_PTHREAD_SERIALIZE1

So this platform supports (HAS) all of them apart from flock, but it 
will only use fcntl and pthread. Since fcntl has higher general 
preference it will be the default.


You could also find out this by using:

$ ./httpd -V|grep SERIALIZE
 -D APR_USE_FCNTL_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

Now that you know the method used, you could check the man pages of the 
call, to find out possible reasons for error 28.


Hope that makes sense to you.


Thanks in advance for your reply!

Greetz Frank


Regards,

Rainer

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



Noob needs help with a webservice wich uses resources located in a folder

2007-09-03 Thread Tomás Tormo

Hi

 I'm quite noob about tomcat topic. I'm using tomcat 5.028 in Ubuntu 
6.10 and I would like to find an anwer to my question about web services 
because i'm not able to solve it. I've written a java applicattion wich 
uses a wrapper to communicate with an applicattion written in C, wich is 
the core of my applicattion. Both the wrapper and the core are third 
party applicattions, and because of that i don't have the source code, I 
just have the API.


The third party sent me an example application wich uses the core. And, 
as I could see in the script wich lauches the application, this folder 
should be added to the classpath in order to be able to be located by 
the wrapper applicattion. The documentation of the wrapper just says 
that this folder has to exist with an specific name.


My problem is that my applicattion works fine launched from shell (it 
founds the folder and uses the core perfectly) but it doesn't work as a 
webservice. It is not able to find the resource folder (let's call it 
cfg). As I can see in the catalina log, the application tries to load 
the resources (via ClassLoader I guess) and then launches an exception 
saying that is not able to find it. The client  gets a HTTPErrorCode0.


I've tried a lot of ways to solve it: I tried to launch tomcat with the 
classpath modified from the shell itself(making it point to the folder), 
tried to export the classpath from startup.sh script, tried to export 
the classpath from catalina.sh script, tried to modify the CATALINA_OPTS 
variable, tried to put the folder in both lib and classes folders of the 
webservice folder... but nothing worked.


Please.. could you help me to solve this problem? I think I've tried all 
the options that came to my mind (except declaring a resource in 
server.xml file, altought I don't know If this wrapper uses JNDI to 
access to the resource..).I hope I explained myself well.  As I think 
you can see, I'm quite noob with tomcat, so please don't be so hard with 
your answers... :'-p


Thank you very much!

-
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: Load Balancing Tomcat 5.0.X, hardware or software?

2007-09-03 Thread bajistaman

Many Thanks for your comments, I have everything working now using a HW load
balancer but the ssl is being managed by every node just because the guys
from networks think that we need to upgrade the current HW Load Balancer to
be able to support it and that is not going to happen soon.

Johann
-- 
View this message in context: 
http://www.nabble.com/Load-Balancing-Tomcat-5.0.X%2C-hardware-or-software--tf4354748.html#a12460977
Sent from the Tomcat - User mailing list archive 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: Problems with SSL-enabled Tomcat 5.5

2007-09-03 Thread bajistaman

I have the same problem than you Werner, everything looks fine but the
browser is unable to verify the identity of my site. Firefox says:
a) Or the browser doesn't recognize the CA that is supporting the cert.
b) Or the cert is uncomplete because of a wrong server configuration.
c) Or the site is pretending to be something that is not

So still trying to find what is wrong. 
BTW, my CA gives an intermediate cert that I didn't use because agentbob's
tip didn't say anything about it. Maybe I need to install as part of the
process just as the CA website says. Did you have to install the
intermediate one?

Thanks,

Johann

-- 
View this message in context: 
http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12461106
Sent from the Tomcat - User mailing list archive 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]



a problem of tomcat5 start

2007-09-03 Thread inputx

in opensuse10.2, i use command service tomcat5 start to start tomcat,
screen display done but i can't access http://lcalhost:8080

/var/log/tomcat5/base/start.log is 
/usr/bin/build-classpath: error: could not find mx4j/mx4j-impl Java
extension for this JVM 
/usr/bin/build-classpath: error: All specified jars were not found 
/usr/bin/build-classpath: error: could not find mx4j/mx4j-jmx Java extension
for this JVM 
/usr/bin/build-classpath: error: All specified jars were not found 
Using CATALINA_BASE: /srv/www/tomcat5/base/ 
Using CATALINA_HOME: /usr/share/tomcat5 
Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp 
Using JAVA_HOME: /usr/lib/jvm/java 

/var/log/tomcat5/base/catalina.out is
Due to new licensing guidelines mandated by the Apache Software 
Foundation Board of Directors, a JMX implementation can no longer 
be distributed with the Apache Tomcat binaries. As a result, you 
must download a JMX 1.2 implementation (such as the Sun Reference 
Implementation) and copy the JAR containing the API and implementation of
the JMX specification to: 
${catalina.home}/bin/jmx.jar
i sure i use jvm1.2 who can tell me where problem is? thanks
-- 
View this message in context: 
http://www.nabble.com/a-problem-of-tomcat5-start-tf4372024.html#a12461245
Sent from the Tomcat - User mailing list archive 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: a problem of tomcat5 start

2007-09-03 Thread Peter Boughton
 i sure i use jvm1.2 who can tell me where problem is?
Are you getting your acronyms mixed up?
JMX is not JVM

The errors are saying they can't find the JMX jar file and you need to
download it and put it in the bin directory.

If you definitely have a valid /usr/share/tomcat5/bin/jmx.jar file then the
error is wrong, but if you don't have the file then you need to get it.

I think you can download the Sun version they mentioned from here:
http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/download.jsp



On 9/3/07, inputx [EMAIL PROTECTED] wrote:


 in opensuse10.2, i use command service tomcat5 start to start tomcat,
 screen display done but i can't access http://lcalhost:8080

 /var/log/tomcat5/base/start.log is
 /usr/bin/build-classpath: error: could not find mx4j/mx4j-impl Java
 extension for this JVM
 /usr/bin/build-classpath: error: All specified jars were not found
 /usr/bin/build-classpath: error: could not find mx4j/mx4j-jmx Java
 extension
 for this JVM
 /usr/bin/build-classpath: error: All specified jars were not found
 Using CATALINA_BASE: /srv/www/tomcat5/base/
 Using CATALINA_HOME: /usr/share/tomcat5
 Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp
 Using JAVA_HOME: /usr/lib/jvm/java

 /var/log/tomcat5/base/catalina.out is
 Due to new licensing guidelines mandated by the Apache Software
 Foundation Board of Directors, a JMX implementation can no longer
 be distributed with the Apache Tomcat binaries. As a result, you
 must download a JMX 1.2 implementation (such as the Sun Reference
 Implementation) and copy the JAR containing the API and implementation of
 the JMX specification to:
 ${catalina.home}/bin/jmx.jar
 i sure i use jvm1.2 who can tell me where problem is? thanks
 --
 View this message in context:
 http://www.nabble.com/a-problem-of-tomcat5-start-tf4372024.html#a12461245
 Sent from the Tomcat - User mailing list archive 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]




-- 
\ \
Peter Boughton
blog.bpsite.net
/ /


Re: a problem of tomcat5 start

2007-09-03 Thread inputx

thanks, but i sre have a file jmx.jar in the /usr/share/tomcat5/bin/  but i
also download JMX 1.2.1 Reference Implementation copy jmxri.jar and
jmxtools.jar to the /usr/share/tomcat5/bin/. 
but problem also exist.

Peter Boughton wrote:
 
 i sure i use jvm1.2 who can tell me where problem is?
 Are you getting your acronyms mixed up?
 JMX is not JVM
 
 The errors are saying they can't find the JMX jar file and you need to
 download it and put it in the bin directory.
 
 If you definitely have a valid /usr/share/tomcat5/bin/jmx.jar file then
 the
 error is wrong, but if you don't have the file then you need to get it.
 
 I think you can download the Sun version they mentioned from here:
 http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/download.jsp
 
 
 
 On 9/3/07, inputx [EMAIL PROTECTED] wrote:


 in opensuse10.2, i use command service tomcat5 start to start tomcat,
 screen display done but i can't access http://lcalhost:8080

 /var/log/tomcat5/base/start.log is
 /usr/bin/build-classpath: error: could not find mx4j/mx4j-impl Java
 extension for this JVM
 /usr/bin/build-classpath: error: All specified jars were not found
 /usr/bin/build-classpath: error: could not find mx4j/mx4j-jmx Java
 extension
 for this JVM
 /usr/bin/build-classpath: error: All specified jars were not found
 Using CATALINA_BASE: /srv/www/tomcat5/base/
 Using CATALINA_HOME: /usr/share/tomcat5
 Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp
 Using JAVA_HOME: /usr/lib/jvm/java

 /var/log/tomcat5/base/catalina.out is
 Due to new licensing guidelines mandated by the Apache Software
 Foundation Board of Directors, a JMX implementation can no longer
 be distributed with the Apache Tomcat binaries. As a result, you
 must download a JMX 1.2 implementation (such as the Sun Reference
 Implementation) and copy the JAR containing the API and implementation of
 the JMX specification to:
 ${catalina.home}/bin/jmx.jar
 i sure i use jvm1.2 who can tell me where problem is? thanks
 --
 View this message in context:
 http://www.nabble.com/a-problem-of-tomcat5-start-tf4372024.html#a12461245
 Sent from the Tomcat - User mailing list archive 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]


 
 
 -- 
 \ \
 Peter Boughton
 blog.bpsite.net
 / /
 
 

-- 
View this message in context: 
http://www.nabble.com/a-problem-of-tomcat5-start-tf4372024.html#a12461954
Sent from the Tomcat - User mailing list archive 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: a problem of tomcat5 start

2007-09-03 Thread Hassan Schroeder
On 9/3/07, inputx [EMAIL PROTECTED] wrote:

 in opensuse10.2, i use command service tomcat5 start to start tomcat,
 screen display done but i can't access http://lcalhost:8080

Check your JVM with `java -version`; if it's the Gnu version, download
a working JVM from java.sun.com and set your PATH appropriately.

If you're using a SuSE-packaged version of Tomcat, get rid of it and
install one downloaded from tomcat.apache.org.

HTH,
-- 
Hassan Schroeder  [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]



Use converter for bean property inside normal html tag

2007-09-03 Thread Trumml

I'd like to use the DateTimeConverter inside the following tr tag (for the
bean property diagnoseDatum):
tr onmouseover=Tip('Erfasst am: ${diagnose.diagnoseDatum}')

How can I achieve this? I've registered my own converter but it is only
applied if I use a jsf tag (e.g. h:outputText...)
converter
  converter-for-classjava.util.Date/converter-for-class
  converter-class
at.co.systema.web.utils.jsf.component.CustomDateTimeConverter
  /converter-class
/converter

-- 
View this message in context: 
http://www.nabble.com/Use-converter-for-bean-property-inside-normal-html-tag-tf4372376.html#a12462250
Sent from the Tomcat - User mailing list archive 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: Use converter for bean property inside normal html tag

2007-09-03 Thread Len Popp
converter and DateTimeConverter are features of JSF, so perhaps this
isn't the best place to ask about them.

But if I wanted to do this without JSF, I can think of a couple of ways:

1. Add a property to your bean, ${diagnose.diagnoseDatumAsString}, to
return the date as a String (using DateFormat).

2. Define a custom JSP tag to format dates, e.g. mytags:date
date=${diagnose.diagnoseDatum}/
-- 
Len

On 9/3/07, Trumml [EMAIL PROTECTED] wrote:

 I'd like to use the DateTimeConverter inside the following tr tag (for the
 bean property diagnoseDatum):
 tr onmouseover=Tip('Erfasst am: ${diagnose.diagnoseDatum}')

 How can I achieve this? I've registered my own converter but it is only
 applied if I use a jsf tag (e.g. h:outputText...)
 converter
   converter-for-classjava.util.Date/converter-for-class
   converter-class
 at.co.systema.web.utils.jsf.component.CustomDateTimeConverter
   /converter-class
 /converter

 --
 View this message in context: 
 http://www.nabble.com/Use-converter-for-bean-property-inside-normal-html-tag-tf4372376.html#a12462250
 Sent from the Tomcat - User mailing list archive 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]



-
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: Problems with SSL-enabled Tomcat 5.5

2007-09-03 Thread Werner Schalk

Hi,

I tried with the Intermediate Cert as well but then I had the same problems 
(see below). Take a look at the
comments on AgentBob's website, one is mentioning putting all certs together 
to make this work.
At least for me it didn't and what I ended up doing was buying a new 
certificate unfortunately.

Please let me know if you have another solution.

Bye,
Werner

- Original Message - 
From: bajistaman [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, September 03, 2007 2:42 PM
Subject: Re: Problems with SSL-enabled Tomcat 5.5




I have the same problem than you Werner, everything looks fine but the
browser is unable to verify the identity of my site. Firefox says:
a) Or the browser doesn't recognize the CA that is supporting the cert.
b) Or the cert is uncomplete because of a wrong server configuration.
c) Or the site is pretending to be something that is not

So still trying to find what is wrong.
BTW, my CA gives an intermediate cert that I didn't use because agentbob's
tip didn't say anything about it. Maybe I need to install as part of the
process just as the CA website says. Did you have to install the
intermediate one?

Thanks,

Johann

--
View this message in context: 
http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12461106

Sent from the Tomcat - User mailing list archive 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] 



-
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: Problems with SSL-enabled Tomcat 5.5

2007-09-03 Thread Hassan Schroeder
On 9/3/07, Werner Schalk [EMAIL PROTECTED] wrote:

 ... what I ended up doing was buying a new certificate

Your CA wouldn't let you submit a new CSR and re-issue the cert??
That's surprising.

-- 
Hassan Schroeder  [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: Problems with SSL-enabled Tomcat 5.5

2007-09-03 Thread bajistaman

So what you did was to create a new private key, CSR and then just follow the
instructions from your CA and everything worked?

Thanks,

Johann
-- 
View this message in context: 
http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12463871
Sent from the Tomcat - User mailing list archive 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: a problem of tomcat5 start

2007-09-03 Thread bajistaman

Did you replace the JVM for the SUN's?
I had many problems using the Red Hat packaged tomcat and without installing
tomcat again it worked fine just replacing the JVM. If you look at the
following post The Solution maybe It could help you.

http://www.nabble.com/Tomcat-5-%2B-Red-Hat-Linux.-Exception-trying-to-load-keystore-tf4312574.html#a12278436

Johann
-- 
View this message in context: 
http://www.nabble.com/a-problem-of-tomcat5-start-tf4372024.html#a12464313
Sent from the Tomcat - User mailing list archive 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: Noob needs help with a webservice wich uses resources located in a folder

2007-09-03 Thread PTS
If my quick read of your problem is correct, (only works when run from 
command line) then I would venture to say that you may have a rights issue. 
Who owns the app? By default Tomcat starts from the scripts as owner tomcat 
where as from the command line it is running as you (root or some admin 
level). Try chown and chgrp the app to tomcat and see if that helps.


No even moving it into the folder does not give Tomcat the rights to access 
it. You could also change the access rights but I would be careful there as 
letting anyone execute code is not a good thing, but chgrp to tomcat and 
group executable would work. Just make sure you understand what the 
implications of the changes you make are, even on ownership and group 
membership.


Doug


- Original Message - 
From: Tomás Tormo [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, September 03, 2007 7:09 AM
Subject: Noob needs help with a webservice wich uses resources located in a 
folder




Hi

 I'm quite noob about tomcat topic. I'm using tomcat 5.028 in Ubuntu 6.10 
and I would like to find an anwer to my question about web services 
because i'm not able to solve it. I've written a java applicattion wich 
uses a wrapper to communicate with an applicattion written in C, wich is 
the core of my applicattion. Both the wrapper and the core are third 
party applicattions, and because of that i don't have the source code, I 
just have the API.


The third party sent me an example application wich uses the core. And, as 
I could see in the script wich lauches the application, this folder should 
be added to the classpath in order to be able to be located by the wrapper 
applicattion. The documentation of the wrapper just says that this folder 
has to exist with an specific name.


My problem is that my applicattion works fine launched from shell (it 
founds the folder and uses the core perfectly) but it doesn't work as a 
webservice. It is not able to find the resource folder (let's call it 
cfg). As I can see in the catalina log, the application tries to load 
the resources (via ClassLoader I guess) and then launches an exception 
saying that is not able to find it. The client  gets a HTTPErrorCode0.


I've tried a lot of ways to solve it: I tried to launch tomcat with the 
classpath modified from the shell itself(making it point to the folder), 
tried to export the classpath from startup.sh script, tried to export the 
classpath from catalina.sh script, tried to modify the CATALINA_OPTS 
variable, tried to put the folder in both lib and classes folders of the 
webservice folder... but nothing worked.


Please.. could you help me to solve this problem? I think I've tried all 
the options that came to my mind (except declaring a resource in 
server.xml file, altought I don't know If this wrapper uses JNDI to access 
to the resource..).I hope I explained myself well.  As I think you can 
see, I'm quite noob with tomcat, so please don't be so hard with your 
answers... :'-p


Thank you very much!

-
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]



Problem with accents on redeploy

2007-09-03 Thread Gabriel Belingueres
Hi,

When we redeploy an application (using the manager webapp) all the
accents in the jsp pages are changed for other characters. If we
shutdown and the startup the Tomcat server the problem dissapears (all
jsp pages are shown ok with their accents)

Our configuration:
Tomcat 5.5.9
JDK 1.5.0_05
Solaris 10 sparc.

Regards,
Gabriel

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



Timeout on form authentication

2007-09-03 Thread Peter Coppens

Tomcat fans,

I was wondering whether anyone has found an elegant way (or has pointers to
information on how) to deal with a timeout on the login form (form based
authentication).

Ideally I would want to hide this completely from the user using whatever
coding is needed. If that can't be achieved I am ok by redisplaying the
login page with some kind of timeout/retry message.

Many thanks indeed!

Peter
-- 
View this message in context: 
http://www.nabble.com/Timeout-on-form-authentication-tf4373678.html#a12466628
Sent from the Tomcat - User mailing list archive 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: Problem with accents on redeploy

2007-09-03 Thread Mark Thomas
Gabriel Belingueres wrote:
 Hi,
 
 When we redeploy an application (using the manager webapp) all the
 accents in the jsp pages are changed for other characters. If we
 shutdown and the startup the Tomcat server the problem dissapears (all
 jsp pages are shown ok with their accents)

Can you provide a simple JSP that demonstrates the problem on a clean
Tomcat 5 install?

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: Timeout on form authentication

2007-09-03 Thread Mark Thomas
Peter Coppens wrote:

I haven't tried any of this...

 Ideally I would want to hide this completely from the user using whatever
 coding is needed.
This would be a custom authenticator. You should be able to use
org.apache.catalina.authenticator.FormAuthenticator as the basis for this.

 If that can't be achieved I am ok by redisplaying the
 login page with some kind of timeout/retry message.

A custom 408 error page should do the trick for this.

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: Problems with SSL-enabled Tomcat 5.5

2007-09-03 Thread bajistaman

Ok, now it is working, I was missing the root cert.

I generated a script that did all the work:

JAVA_HOME=/usr/java/latest
export JAVA_HOME

PATH=$JAVA_HOME/bin:$PATH
export PATH

THE_NAME=www.dummy.org
export THE_NAME

rm /root/.keystore
rm /usr/share/tomcat5/.keystore

openssl pkcs8 -topk8 -nocrypt -in ${THE_NAME}_key.pem -inform PEM -out
${THE_NAME}_key.der -outform DER

openssl x509 -in rootCA_cer.pem -inform PEM -out rootCA_cer.der -outform DER

openssl x509 -in intermediateCA_cer.pem -inform PEM -out
intermediateCA_cer.der -outform DER

openssl x509 -in ${THE_NAME}_cer.pem -inform PEM -out ${THE_NAME}_cer.der
-outform DER

cat ${THE_NAME}_cer.der intermediateCA_cer.der rootCA_cer.der 
${THE_NAME}_all_cer.der

javac *.java

java ImportKey ${THE_NAME}_key.der ${THE_NAME}_all_cer.der

cp /root/keystore.ImportKey /root/.keystore

cp /root/.keystore /usr/share/tomcat5/.keystore

keytool -keypass changeit -storepass changeit -list
-- 
View this message in context: 
http://www.nabble.com/Problems-with-SSL-enabled-Tomcat-5.5-tf4349872.html#a12467259
Sent from the Tomcat - User mailing list archive 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: Timeout on form authentication

2007-09-03 Thread Peter Coppens

Thanks for your time/answers. 

 Ideally I would want to hide this completely from the user using whatever
 coding is needed.
This would be a custom authenticator. You should be able to use
org.apache.catalina.authenticator.FormAuthenticator as the basis for this.
Does not look like to be a 4 hour job :(

 If that can't be achieved I am ok by redisplaying the
 login page with some kind of timeout/retry message.

A custom 408 error page should do the trick for this.
Could I redirect from within that page to a protected resource and would
Tomcat then restart the authentication procedure? How could I get hold of
the URL for which the original login was started, as that is where I would
want to redirect to.


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]




-- 
View this message in context: 
http://www.nabble.com/Timeout-on-form-authentication-tf4373678.html#a12467483
Sent from the Tomcat - User mailing list archive 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]



NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
I've had some problems loading servlets, so I tried a basic HelloWorld just
to make sure everything was working.

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

servlet-api.jar is in $CATALINA_HOME/lib just like it's supposed to be.  All
of the example JSPs and servlets work fine.

Does anyone know what I might be doing wrong?

Apache Tomcat 6.0.14
Java 1.6.0_02-b05

Here's my HelloServlet.java:
@home:~/dev/tomcat/webapps$ cat
HelloServlet/WEB-INF/classes/mypackage/HelloServlet.java
package mypackage;

import javax.servlet.http.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.*;
import java.io.*;

public class HelloServlet extends HttpServlet
{
public void doGet( HttpServletRequest req, HttpServletResponse resp
)
throws ServletException, IOException
{
PrintWriter writer = resp.getWriter();
writer.println( lt;h1Hello Worldlt;/h1 );
}
}

Here's my web.xml:
@home:~/dev/tomcat/webapps$ cat HelloServlet/WEB-INF/web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-nameHelloServlet/servlet-name
servlet-classmypackage.HelloServlet/servlet-class
/servlet

servlet-mapping
servlet-nameHelloServlet/servlet-name
url-pattern/helloservlet/*/url-pattern
/servlet-mapping
/web-app

Thank you,
-- Ghodmode


Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread David Delbecq
Check you didn't add servlet-api to your webapp classpath. The 
servlet-api must *not* be present in WEB-INF/lib

Ghodmode a écrit :

I've had some problems loading servlets, so I tried a basic HelloWorld just
to make sure everything was working.

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

servlet-api.jar is in $CATALINA_HOME/lib just like it's supposed to be.  All
of the example JSPs and servlets work fine.

Does anyone know what I might be doing wrong?

Apache Tomcat 6.0.14
Java 1.6.0_02-b05

Here's my HelloServlet.java:
@home:~/dev/tomcat/webapps$ cat
HelloServlet/WEB-INF/classes/mypackage/HelloServlet.java
package mypackage;

import javax.servlet.http.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.*;
import java.io.*;

public class HelloServlet extends HttpServlet
{
public void doGet( HttpServletRequest req, HttpServletResponse resp
)
throws ServletException, IOException
{
PrintWriter writer = resp.getWriter();
writer.println( lt;h1Hello Worldlt;/h1 );
}
}

Here's my web.xml:
@home:~/dev/tomcat/webapps$ cat HelloServlet/WEB-INF/web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-nameHelloServlet/servlet-name
servlet-classmypackage.HelloServlet/servlet-class
/servlet

servlet-mapping
servlet-nameHelloServlet/servlet-name
url-pattern/helloservlet/*/url-pattern
/servlet-mapping
/web-app

Thank you,
-- Ghodmode

  


-
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: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
Thanks for your reply David.

For this servlet there's nothing in WEB-INF/lib.  If it was a standalone
Java app, I guess the CLASSPATH would definitely be the first thing to
check.  Is there a way to check the classpath that a servlet is using when
it's executed by Tomcat's VM?

Thank you,
Vince

On 9/4/07, David Delbecq [EMAIL PROTECTED] wrote:

 Check you didn't add servlet-api to your webapp classpath. The
 servlet-api must *not* be present in WEB-INF/lib
 Ghodmode a écrit :
  I've had some problems loading servlets, so I tried a basic HelloWorld
 just
  to make sure everything was working.
 
  java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
 
  servlet-api.jar is in $CATALINA_HOME/lib just like it's supposed to
 be.  All
  of the example JSPs and servlets work fine.
 
  Does anyone know what I might be doing wrong?
 
  Apache Tomcat 6.0.14
  Java 1.6.0_02-b05
 
  Here's my HelloServlet.java:
  @home:~/dev/tomcat/webapps$ cat
  HelloServlet/WEB-INF/classes/mypackage/HelloServlet.java
  package mypackage;
 
  import javax.servlet.http.*;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.*;
  import java.io.*;
 
  public class HelloServlet extends HttpServlet
  {
  public void doGet( HttpServletRequest req, HttpServletResponse
 resp
  )
  throws ServletException, IOException
  {
  PrintWriter writer = resp.getWriter();
  writer.println( lt;h1Hello Worldlt;/h1 );
  }
  }
 
  Here's my web.xml:
  @home:~/dev/tomcat/webapps$ cat HelloServlet/WEB-INF/web.xml
  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE web-app PUBLIC
 -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
  servlet
  servlet-nameHelloServlet/servlet-name
  servlet-classmypackage.HelloServlet/servlet-class
  /servlet
 
  servlet-mapping
  servlet-nameHelloServlet/servlet-name
  url-pattern/helloservlet/*/url-pattern
  /servlet-mapping
  /web-app
 
  Thank you,
  -- Ghodmode
 
 

 -
 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: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Martin Gainty
Is servlet-api.jar in $CATALINA_HOME/common/lib

M--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Ghodmode [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, September 03, 2007 4:49 PM
Subject: NoClassDefFoundError: javax/servlet/http/HttpServlet


 I've had some problems loading servlets, so I tried a basic HelloWorld just
 to make sure everything was working.
 
 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
 
 servlet-api.jar is in $CATALINA_HOME/lib just like it's supposed to be.  All
 of the example JSPs and servlets work fine.
 
 Does anyone know what I might be doing wrong?
 
 Apache Tomcat 6.0.14
 Java 1.6.0_02-b05
 
 Here's my HelloServlet.java:
 @home:~/dev/tomcat/webapps$ cat
 HelloServlet/WEB-INF/classes/mypackage/HelloServlet.java
 package mypackage;
 
 import javax.servlet.http.*;
 import javax.servlet.http.HttpServlet;
 import javax.servlet.*;
 import java.io.*;
 
 public class HelloServlet extends HttpServlet
 {
public void doGet( HttpServletRequest req, HttpServletResponse resp
 )
throws ServletException, IOException
{
PrintWriter writer = resp.getWriter();
writer.println( lt;h1Hello Worldlt;/h1 );
}
 }
 
 Here's my web.xml:
 @home:~/dev/tomcat/webapps$ cat HelloServlet/WEB-INF/web.xml
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
servlet
servlet-nameHelloServlet/servlet-name
servlet-classmypackage.HelloServlet/servlet-class
/servlet
 
servlet-mapping
servlet-nameHelloServlet/servlet-name
url-pattern/helloservlet/*/url-pattern
/servlet-mapping
 /web-app
 
 Thank you,
 -- Ghodmode


Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
On 9/4/07, Martin Gainty [EMAIL PROTECTED] wrote:

 Is servlet-api.jar in $CATALINA_HOME/common/lib


I've see reference to it on some forums, but there's no common directory
in my Tomcat installation.

-- Vince


RE: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Subject: Re: NoClassDefFoundError: javax/servlet/http/HttpServlet
 
 Is servlet-api.jar in $CATALINA_HOME/common/lib

As clearly stated by the OP, he's using Tomcat 6 and servlet-api.jar is
in $CATALINA-HOME/lib, exactly where it's supposed to be.
$CATALINA_HOME/common/lib is used only on older versions of Tomcat.

David D already pointed out the likely cause of the problem.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Caldarale, Charles R
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Subject: Re: NoClassDefFoundError: javax/servlet/http/HttpServlet
 
 Check also it's neither in shared/lib and that there is no CLASSPATH 
 defined (tomcat handles all by itself classpath).

There wouldn't be a shared/lib, since this is Tomcat 6 (unless
catalina.properties has been modified).  If there's an IDE being used,
it could easily have set CLASSPATH or put the servlet-api.jar in an
inappropriate place, as you suggested.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
On 9/4/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

 ...


David D already pointed out the likely cause of the problem.

 - Chuck


Unfortunately, David's idea wasn't a solution for me.  There aren't any
files in my WEB-INF/lib directory.

I only created this HelloServlet to eliminate other possible causes of this
problem with more complex servlets.

One detail that I forgot to mention is that if I only add one web
application, it works fine.  There's only a problem when I add more than one
application to the webapps directory.  Because of this, it occurred to me
that I might somehow be causing a conflict with how I am putting the web
apps in there.  However, the problem even occurs when I have two identical
HelloServlet classes which differ only in the name of the subdirectory to
the webapps folder and the name of their class.

When I try to set this up, I stop Tomcat, build the directory, compile the
class (javac -cp
~/dev/tomcat/lib/servlet-api.jarmypackage/HelloServlet.java), and
start Tomcat again.  When I do this, one
always works and the others fail.

I'm not using WAR files.  I'm just putting all of the files in the necessary
locations already exploded.  Is this significant?

Thank you,
Vince


RE: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Caldarale, Charles R
 From: Ghodmode [mailto:[EMAIL PROTECTED] 
 Subject: Re: NoClassDefFoundError: javax/servlet/http/HttpServlet
 
 I'm not using WAR files.  I'm just putting all of the files 
 in the necessary locations already exploded.  Is this significant?

Perhaps.  Exactly what is your structure under webapps?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NoClassDefFoundError: javax/servlet/http/HttpServlet

2007-09-03 Thread Ghodmode
On 9/4/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: David Delbecq [mailto:[EMAIL PROTECTED]
  Subject: Re: NoClassDefFoundError: javax/servlet/http/HttpServlet
 
  Check also it's neither in shared/lib and that there is no CLASSPATH
  defined (tomcat handles all by itself classpath).

 There wouldn't be a shared/lib, since this is Tomcat 6 (unless
 catalina.properties has been modified).  If there's an IDE being used,
 it could easily have set CLASSPATH or put the servlet-api.jar in an
 inappropriate place, as you suggested.

 - Chuck

 Confirmed... I don't have a shared directory.

I don't have the CLASSPATH environment variable set.

I haven't modified catalina.properties.

I was trying to use Eclipse, but that has so far proved to have more
challenges than benefits.  So, I stopped.

Just to make sure I had a clean environment, I removed my tomcat directory
and untarred it again and I guess that must have fixed something.  Now, the
problem has at least changed.  All of the copies of HelloServlet work, but
the application I which I need to run still generates the
NoClassDefFoundError.

More to come... with a new subject line :)

Thank you for your help :)

-- Vince


NoClassDefFoundError, Tomcat isn't seeing JARs in webapps/appname/lib?

2007-09-03 Thread Ghodmode
This is related to my previous email thread, but slightly different
circumstances.

Apache Tomcat 6.0.14
Java 1.6.0_02-b05
Wicket 1.3.0-beta3

I'm trying to run a Wicket application and it's not working.  I'm getting a
NoClassDefFoundError:

java.lang.NoClassDefFoundError:
org/apache/wicket/protocol/http/WebApplication

I think I must be misunderstanding something basic about Tomcat web
application deployment.

So, I create a basic HelloWorld type servlet to try and troubleshoot the
problem.

I've double- and triple-checked the package against the documentation and
even verified it by listing the contents of the JAR with unzip.

What am I doing wrong?

The Wicket JAR file and two of its dependencies are in WEB-INF/lib:
@home:~/dev/tomcat/webapps/HelloWicket/WEB-INF/classes$ ls -ltr ../lib
total 1648
-rw-r--r-- 1 vince vince 1657246 2007-09-04 10:00 wicket-1.3.0-beta3.jar
-rw-r--r-- 1 vince vince7449 2007-09-04 10:00 slf4j-simple-1.4.3.jar
-rw-r--r-- 1 vince vince   15345 2007-09-04 10:00 slf4j-api-1.4.3.jar


Here's my web.xml:
@home:~/dev/tomcat/webapps/HelloWicket/WEB-INF$ cat web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
context-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/context-param

servlet
servlet-nameHelloWicket/servlet-name
servlet-classorg.apache.wicket.protocol.http.WicketServlet
/servlet-class
init-param
param-nameapplicationClassName/param-name
param-valuemypackage.HelloWicketApp/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-nameHelloWicket/servlet-name
url-pattern/helloWicket/*/url-pattern
/servlet-mapping
/web-app

Here's the layout of my servlet's directory:
@home:~/dev/tomcat/webapps/HelloWicket$ ls -ltrR
.:
total 8
-rw-r--r-- 1 vince vince   44 2007-09-04 10:00 index.html
drwxr-xr-x 4 vince vince 4096 2007-09-04 10:27 WEB-INF

./WEB-INF:
total 12
drwxr-xr-x 2 vince vince 4096 2007-09-04 10:00 lib
drwxr-xr-x 3 vince vince 4096 2007-09-04 10:05 classes
-rwxr-xr-x 1 vince vince  755 2007-09-04 10:08 web.xml

./WEB-INF/lib:
total 1648
-rw-r--r-- 1 vince vince 1657246 2007-09-04 10:00 wicket-1.3.0-beta3.jar
-rw-r--r-- 1 vince vince7449 2007-09-04 10:00 slf4j-simple-1.4.3.jar
-rw-r--r-- 1 vince vince   15345 2007-09-04 10:00 slf4j-api-1.4.3.jar

./WEB-INF/classes:
total 8
-rw-r--r-- 1 vince vince  601 2007-09-04 10:04 HelloWicket.html
drwxr-xr-x 2 vince vince 4096 2007-09-04 10:20 mypackage

./WEB-INF/classes/mypackage:
total 16
-rw-r--r-- 1 vince vince 238 2007-09-04 10:06 HelloWicket.java
-rw-r--r-- 1 vince vince 192 2007-09-04 10:20 HelloWicketApp.java
-rw-r--r-- 1 vince vince 468 2007-09-04 10:20 HelloWicket.class
-rw-r--r-- 1 vince vince 347 2007-09-04 10:20 HelloWicketApp.class


Thank you,
Vince


Re: webapp getting encryption information

2007-09-03 Thread Bill Barker

Christian Andersson [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 I'm sorry that I'm asking this directly without havinge done that much
 research on this matter, but I'm hard pressed on time, and I'm currently
 traveling so I have a very limited access to the net.

 my question is as follows

 I have an webapplication that the users are connecting to via https.
 IS it possble for this webappto get information about the encryption
 protocol (ssl2/ssl3/tls/etc...) and algoritms
 (TLS_RSA_WITH_RC4_128_MD5/TLS_RSA_WITH_RC4_128_SHA/etc) used?


String cipher = 
(String)request.getAttribute(javax.servlet.request.cipher_suite);

is probably what you are looking for.

 I'm currently looking at securing a website with different grades of
 security depending on the type of connection (for example you need RSA
 with 256bit key to access some parts but other parts you only need
 3DES), so the the less secure connection, the less information/options
 will be provided.



 -- 
 Christian Andersson - [EMAIL PROTECTED]

 Configuration and Collaboration for OpenOffice.org
 Open Framework Systems AS http://www.ofs.no







 -
 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]



Does the Connector SSLCertificateFile attribute support URIs?

2007-09-03 Thread Ole Ersoy

Hi,

Does anyone know if the SSLCertificateFile attribute of the connector element 
supports URIs?  So for instance if there were 10 hosts for example.com and each 
host wanted to share the same certificate and private key they could do 
something like:

SSLCertificateFile = http://shared/host/tomcat.crt
SSLCertificateKeyFile = http://shared/secured/internal/host/tomcat.key

Thanks,
- Ole


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