Availability of a resource in a realm

2012-04-17 Thread Osipov, Michael
Hi folks, I have a resource declared in my context.xml (not a resource link). I want to retrieve that resource as soon as possible in my realm. I tried start() and init() but it seems like that at this time the InitialContext is not available. So at what time can I expect the context being

Re: PLZ help: i've issue with SSL TOMCAT

2012-04-17 Thread Igor Cicimov
On Tue, Apr 17, 2012 at 8:51 PM, amine20 amin...@hotmail.com wrote: hi i'm new in tomcat/apache environement, i've succes to add ssl to apache2 using openssl, but i've tried to do the same in tomcat but unfortunatly doesn't WORK. this is an explanation of what i have did: Step 1.Create a

Thank you

2012-04-17 Thread Debabratta Jena
Thank you sir for your reply I resolved my problem. Thanks and regards -- debabratta jena - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Using ServletContainerInitializer for 2.5 applications

2012-04-17 Thread Violeta Georgieva
Ok I understood. Thanks 2012/4/12 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 4/12/12 8:58 AM, ma...@apache.org wrote: If you want to use Servlet 3.0 features then you need to declare 3.0 in the web.xml. +1 Since the spec

adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi, I am setting up a reverse proxy configuration where all requests whose path starts with '/apps/' should be proxied by Apache to Tomcat. This IMO has 2 benefits: it makes it possible to reserve proxying to only the '/apps/' part of the URI space, and to use only a single proxy rule for

Re: Fail to load keystore type JKS with path C:\apache-tomcat-7.0.26-windows-x86\apache-tomcat-7.0.26\${user.home}

2012-04-17 Thread Daniel Mikusa
- Original Message - Hello sir, I am using tomcat 7.0.26 on windows. I have read the manual SSL Configuration HOW-TO to configure SSL for my web application. I create the .keystore file which reside on my home directory which is C:\Users\debabrattaj\.keystore. Coding for my

Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-17 Thread maria petrova
Hi, We’ve embedded Tomcat 7.0.26 in our product and we are currently trying to cover Servlet 3.0 CTS with it. We’ve encountered the following problem with one of the tests. Though the version of the web deployment descriptor of the test application is 2.5, there is a servlet annotated with

Re: PLZ help: i've issue with SSL TOMCAT

2012-04-17 Thread amine20
i thank i need some file *.jar to add in /tomcat6/webapps/cas/WEB-INF/lib? i m wrong ?? -- View this message in context: http://tomcat.10.n6.nabble.com/PLZ-help-i-ve-issue-with-SSL-TOMCAT-tp4889811p4890173.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-17 Thread Daniel Mikusa
- Original Message - As the 2 test wars were not correctly attached to my previous mail, I'm attaching them in a zip archive now. You cannot attach files to the list. The list will automatically strip the attachments. Dan Regards, Maria На 17 април 2012, 15:48, maria

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/17 ron.vandenbranden@home ron.vandenbran...@kantl.be: So far, so good. Yet, I am struggling with the Tomcat side of this approach: finding a way to add a global path prefix for requests to Tomcat apps. The closest I got was this:    1. don't touch the physical location of the Tomcat

Re: Availability of a resource in a realm

2012-04-17 Thread Konstantin Kolinko
2012/4/17 Osipov, Michael michael.osi...@siemens.com: Hi folks, I have a resource declared in my context.xml (not a resource link). I want to retrieve that resource as soon as possible in my realm. I tried start() and init() but it seems like that at this time the InitialContext is not

Problem with deployment of a WAR file from Manager

2012-04-17 Thread James Lampert
We are having a very frustrating error on one customer box, with a Tomcat version and a WAR file that are working perfectly elsewhere. That same WAR file runs perfectly on this same box, if expanded from the command line. Can anybody here shed any light on this? -- James H. H. Lampert

Re: Problem with deployment of a WAR file from Manager

2012-04-17 Thread Konstantin Kolinko
2012/4/17 James Lampert jam...@touchtonecorp.com: We are having a very frustrating error on one customer box, with a Tomcat version and a WAR file that are working perfectly elsewhere. That same WAR file runs perfectly on this same box, if expanded from the command line. Can anybody here

JasperException: The value for the useBean class ___ attribute is invalid

2012-04-17 Thread Chris Patterson
Hello, pls help with the following issue: My JSP calls a Java Bean and works OK for both versions, Tomcat 5.5 and Tomcat 7.1 My problem is when I move that same JSP to a sub-directory, then I get the 500 error: org.apache.jasper.JasperException: /StrBean.jsp(26,0) The value for the useBean

Re: Problem with deployment of a WAR file from Manager

2012-04-17 Thread James Lampert
Konstantin Kolinko wrote: . . . In essence it checks that File.getCanonicalPath() of (webapp root directory + archive entry) is as expected. at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:122) My colleague at the next desk found this:

In webapp, sending multipart email with Javamail : noname attachment instead of message

2012-04-17 Thread Jacques Desodt
Hi, I try to send a Multipart email in a simple java method, using Javamail. When i use the method in a local java app, everything is fine. When i use the same method in a webapp hosted by Tomcat, i got no message, but a file noname in attachment. Here is the method : public void

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Pid
On 17/04/2012 13:25, ron.vandenbranden@home wrote: Hi, I am setting up a reverse proxy configuration where all requests whose path starts with '/apps/' should be proxied by Apache to Tomcat. This IMO has 2 benefits: it makes it possible to reserve proxying to only the '/apps/' part of the

Re: Why @WebServlet annotation is not processed when web.xml is version 2.5?

2012-04-17 Thread Pid
On 17/04/2012 13:48, maria petrova wrote: Hi, We’ve embedded Tomcat 7.0.26 in our product and we are currently trying to cover Servlet 3.0 CTS with it. We’ve encountered the following problem with one of the tests. Though the version of the web deployment descriptor of the test

Re: PLZ help: i've issue with SSL TOMCAT

2012-04-17 Thread Pid
On 17/04/2012 13:54, amine20 wrote: i thank i need some file *.jar to add in /tomcat6/webapps/cas/WEB-INF/lib? i m wrong ?? Yes, you're wrong. Read Igor's email again. You've put the keystore in the /root directory which should not be accessible to Tomcat. Move it to tomcat/conf and

Re: Fail to load keystore type JKS with path C:\apache-tomcat-7.0.26-windows-x86\apache-tomcat-7.0.26\${user.home}

2012-04-17 Thread Pid
On 17/04/2012 13:25, Daniel Mikusa wrote: - Original Message - Hello sir, I am using tomcat 7.0.26 on windows. I have read the manual SSL Configuration HOW-TO to configure SSL for my web application. I create the .keystore file which reside on my home directory which is

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi Pid, Thanks for your suggestion. On 17/04/2012 21:16, Pid wrote: From the docs: ProxyPass/mirror/foo/ http://backend.example.com/ ProxyPassReverse /mirror/foo/ http://backend.example.com/ http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse ProxyPassReverse

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread shahrzad mirmorad
On Apr 18, 2012 12:43 AM, ron.vandenbranden@home ron.vandenbran...@kantl.be wrote: Hi Pid, Thanks for your suggestion. On 17/04/2012 21:16, Pid wrote: From the docs: ProxyPass/mirror/foo/ http://backend.example.com/ ProxyPassReverse /mirror/foo/ http://backend.example.com/

Generating a Keystore

2012-04-17 Thread Victoria Johnson - Kio
Hello, I am having problems generating a keystore, this is my first time configuring a server, let alone Tomcat. The text on Apache is really confusing me about setting up SSL on Tomcat, what do I do with this command %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA Please advise.

Re: Generating a Keystore

2012-04-17 Thread James Lampert
Victoria Johnson - Kio wrote: The text on Apache is really confusing me about setting up SSL on Tomcat, what do I do with this command %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA Well, first you need to be sure you're NOT running this on an AS/400. For some reason, Keytool

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi Konstantin, Many thanks for your excellent suggestion. Sorry, I forgot to mention that I'm running Tomcat-7.0.27, so that should work. On 17/04/2012 17:27, Konstantin Kolinko wrote: I would not comment on the Apache HTTP server configuration. Just on the quoted part above. You have not

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/18 ron.vandenbranden@home ron.vandenbran...@kantl.be: Hi Konstantin, Many thanks for your excellent suggestion. Sorry, I forgot to mention that I'm running Tomcat-7.0.27, so that should work. On 17/04/2012 17:27, Konstantin Kolinko wrote: I would not comment on the Apache HTTP

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi, On 17/04/2012 22:49, Konstantin Kolinko wrote: No. It is Cocoon that is broken. There is File - URL conversion somewhere that does not encode characters properly, and '#' should be %-encoded if it is in an URL. Last time it was discussed on this list was several years ago. Either it is a

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/17 ron.vandenbranden@home ron.vandenbran...@kantl.be:    2. change ${CATALINA.HOME}/conf/server.xml as follows:    Host name=localhost  appBase=webapps unpackWARs=true autoDeploy=false deployOnStartup=false      Context path=/apps/my_app docBase=/my_app/ reloadable=true/    /Host

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread ron.vandenbranden@home
Hi, Sorry if I'm being a bit dense, but could I check if I'm understanding correctly? I can't get it working with your suggestions. On 18/04/2012 0:04, Konstantin Kolinko wrote: 2012/4/17 ron.vandenbranden@homeron.vandenbran...@kantl.be: 2. change ${CATALINA.HOME}/conf/server.xml as

RE: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Caldarale, Charles R
From: ron.vandenbranden@home [mailto:ron.vandenbran...@kantl.be] Subject: Re: adding a global URI prefix for Tomcat web apps I have my webapps located at F:\tomcatApps (so outside of the catalina tree), where 'my_app' lives in a folder named 'apps#my_app'. So I'm specifying this in

Re: adding a global URI prefix for Tomcat web apps

2012-04-17 Thread Konstantin Kolinko
2012/4/18 ron.vandenbranden@home ron.vandenbran...@kantl.be: Hi, Sorry if I'm being a bit dense, but could I check if I'm understanding correctly? I can't get it working with your suggestions. On 18/04/2012 0:04, Konstantin Kolinko wrote: 2012/4/17

Re: In webapp, sending multipart email with Javamail : noname attachment instead of message

2012-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacques, On 4/17/12 12:45 PM, Jacques Desodt wrote: I try to send a Multipart email in a simple java method, using Javamail. When i use the method in a local java app, everything is fine. When i use the same method in a webapp hosted by Tomcat, i

RE: Generating a Keystore

2012-04-17 Thread Jatin Parikh
Hi Victoria, Change the path at the command line till it reach to the folder bin, after follow the instruction to generate the keystore. Like c:\program files\java\.\bin Thanks Best Regards, Jatin Parikh Sr. Chemist -Original Message- From: Victoria Johnson - Kio