Re: Tomcat 6 - How to make an application available at www.mydomain.com

2012-01-29 Thread Borut Hadžialić
Hi, the best way is to deploy your application to run inside tomcat without a context path - eg. to be available at http://localhost:8080/ instead of http://localhost:8080/myApplication and use your apache reverse proxying / virtual host as it is. Trying to strip application context in virtual

Re: Tomcat 6 - How to make an application available at www.mydomain.com

2012-01-29 Thread Borut Hadžialić
Just a small correction: 1. Make a file called ${catalina.base}/conf/Catalina/localhost/ROOT.xml that contains: instead of 1. Make a file called ${catalina.base}/conf/Catalina/localhost.ROOT.xml that contains: On 1/29/12, Borut Hadžialić borut.hadzia...@gmail.com wrote: Hi, the best way

Re: Simple Tomcat monitoring ?

2011-04-12 Thread Borut Hadžialić
I'm gonna try to make a guess here :) top - 08:20:02 up 72 days, 9:39, 4 users, load average: 6.83, 5.63, 3.16 Tasks: 265 total, 1 running, 264 sleeping, 0 stopped, 0 zombie Cpu(s): 0.2%us, 0.1%sy, 0.0%ni, 99.2%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 12328624k total,

Re: Simple Tomcat monitoring ?

2011-04-12 Thread Borut Hadžialić
, André Warnier a...@ice-sa.com wrote: Borut Hadžialić wrote: I'm gonna try to make a guess here :) top - 08:20:02 up 72 days,  9:39,  4 users,  load average: 6.83, 5.63, 3.16 Tasks: 265 total,   1 running, 264 sleeping,   0 stopped,   0 zombie Cpu(s):  0.2%us,  0.1%sy,  0.0%ni, 99.2%id,  0.5%wa

Re: Windows Authentication: Issue 49318 vs 47679

2011-03-29 Thread Borut Hadžialić
Would adding support for client credential delegation be out of scope for this implementation or not? Client credential delegation is when you use the spnego token construct a javax.security.auth.Subject instance that represents the client - which the server side application can use this to

Re: Windows Authentication: Issue 49318 vs 47679

2011-03-29 Thread Borut Hadžialić
Whoops, i reversed the condition of the if statement, it should be: //check if the credentials can be delegated if (context.getCredDelegState()) { ... } On Tue, Mar 29, 2011 at 9:47 PM, Borut Hadžialić borut.hadzia...@gmail.com wrote: Would adding support for client credential delegation be out

Re: Windows Authentication: Issue 49318 vs 47679

2011-03-29 Thread Borut Hadžialić
On Tue, Mar 29, 2011 at 9:57 PM, Mark Thomas ma...@apache.org wrote: It is in scope with the caveat - as always - that it depends on what the final implementation looks like. I do know (from debug logging) that right now tokens do not allow delegation. I suspect the hardest part of

Re: Windows Authentication: Issue 49318 vs 47679

2011-03-28 Thread Borut Hadžialić
Hellos Stefan, if you can't fix your problem with configuration and decide that you want to solve the problem by programming, then this might help you http://blog.springsource.com/2009/09/28/spring-security-kerberos/ After understanding that article a developer should be able to add a SPNEGO

Re: Tomcat 5.5.30 and Spring Framework

2011-03-12 Thread Borut Hadžialić
, but I didn't find anything that would prevent /jsp/**/*.htm requests from being sent to tomcat. Thanks, aurir_ On Fri, Mar 11, 2011 at 9:30 AM, Borut Hadžialić borut.hadzia...@gmail.com wrote: Do not put anything in $TOMCAT_HOME/conf/web.xml - leave that file as it is when you unpack

Re: Tomcat 5.5.30 and Spring Framework

2011-03-11 Thread Borut Hadžialić
: IOException parsing XML document from ServletContext resource [/WEB-INF/spring-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/spring-servlet.xml] Thanks, Aurir_ On Tue, Mar 8, 2011 at 2:47 AM, Borut Hadžialić borut.hadzia...@gmail.com

Re: Tomcat 5.5.30 and Spring Framework

2011-03-08 Thread Borut Hadžialić
The piece of xml you posted looks like something from $TOMCAT_HOME/conf/web.xml file. This file contains some default configuration that is applied to all web applications and you usually don't change it. What you need to find is the /WEB-INF directory of your web application. /WEB-INF directory

Re: Is it possible to configure 2 SSL connectors on one Tomcat instance?

2011-03-08 Thread Borut Hadžialić
Hi Nikko, I asume that you really want 2 connectors with 2 different key stores, not 2 different trust stores. If you have 2 ip addresses then its easy - define 2 connectors and use their address attribute to assign each connector one ip address. If you have only 1 ip address then you might

Re: Tomcat NTLM Authentication

2011-03-07 Thread Borut Hadžialić
Hi Hila, I have a similar requirement in my current project. End users (using browsers and java desktop apps) which work on windows workstations which are in a domain, must be able to log in the application without needing to type in username and password (using their windows credentials).

Re: Tomcat NTLM Authentication

2011-03-07 Thread Borut Hadžialić
One of the links I sent you was broken, the right link is: Oracle Jdbc connection with kerberos http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/clntsec.htm#CIHCIDHF Or just google for 'oracle jdbc kerberos' if they move the content again. On Mon, Mar 7, 2011 at 10:55 AM, Borut

Re: Tomcat NTLM Authentication

2011-03-07 Thread Borut Hadžialić
to the database (the sum of all the users rights). In the scheme below, that is not true : each user connects to the database under his own user-id, so the database can decide who is allowed to do what, and can also keep track of who did what. Borut Hadžialić wrote: Hi Hila, I have a similar

Re: Can we use Tomcat web server?

2010-10-26 Thread Borut Hadžialić
Hi, what would stop you from using Tomcat to host your application in production? Apache Tomcat is licensed under Apache 2.0 license meaning you can (practically) do whatever you want with it. And its being successfully used in production for many years in large number of installations. Take a

Re: apache 2 + tomcat 6 virtualhost question

2010-05-26 Thread Borut Hadžialić
Hi Patricio, try this: 1. Redeploy your app in tomcat so it shows at http://mydomain:8080/ instead of http://mydomain:8080/myapp How you do this depends on how you deployed the app in the first place - a) if you deployed a myapp.war and use autodeploy, then rename it to ROOT.war and redeploy it

Re: apache 2 + tomcat 6 virtualhost question

2010-05-26 Thread Borut Hadžialić
Small mistake - put worker.myapp.port=8009 instead of worker.myapp.port=8109 (port needs to be the same as the one in tomcat's conf/server.xml Connector port=8009 protocol=AJP/1.3 .. ) On Thu, May 27, 2010 at 12:31 AM, Borut Hadžialić borut.hadzia...@gmail.com wrote: Hi Patricio, try

Re: apache 2 + tomcat 6 virtualhost question

2010-05-26 Thread Borut Hadžialić
In that case you can have one tomcat instance per application. Each application can run inside its own tomcat process and have different ajp port, mod_jk worker and apache virtual host. On Thu, May 27, 2010 at 1:29 AM, Bithost Ltda. bithost.ch...@gmail.com wrote: El 26-05-10 18:31, Borut

Re: Putting APACHE in front of a stand-alone Tomcat Server

2010-05-17 Thread Borut Hadžialić
Take a look at http://tomcat.apache.org/connectors-doc/ I think you can also use apache mod_proxy. On Mon, May 17, 2010 at 1:36 PM, Stephen . marr...@hotmail.com wrote: Hi all, just a quick question. I am currently using a stand-alone Tomcat Server to run an application. However, I plan

Re: Putting APACHE in front of a stand-alone Tomcat Server

2010-05-17 Thread Borut Hadžialić
On Mon, May 17, 2010 at 1:58 PM, Stephen . marr...@hotmail.com wrote: Hi, thanks for your response. However, I would need some more explanation. Exactly where and how would I implement those Tomcat Connectors ? Apparently, all I have is the Tomcat engine itself. So, what I need is an

Re: IP-based virtual hosting with Tomcat(6)

2009-08-03 Thread Borut Hadžialić
Maybe this will be helpfull to you? http://www.openssl.org/docs/apps/x509v3_config.html#Subject_Alternative_Name_ I am not sure how well that extension is supported in browsers and other ssl clients, or can you get a CA to sign a certificate that contains these extensions. But, I wouldn't be

Re: Did anyone had problems with JspWriter in Tomcat 5.5.17?

2007-07-26 Thread Borut Hadžialić
I found the cause of the problem. Tomcat's implementation of javax.servlet.http.HttpServlet implements the doGet method like this: protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { NoBodyResponse response = new

Did anyone had problems with JspWriter in Tomcat 5.5.17?

2007-07-16 Thread Borut Hadžialić
Hi list, I have spent last 15 working hours trying to figure out the cause of a strange bug. Home page on one of our web sites sometimes gets generated with no content - as a blank page, the response buffer having size 0. We use caching filter (modified CachingFilter from Ehcache 1.3.0) which

Re: Did anyone had problems with JspWriter in Tomcat 5.5.17?

2007-07-16 Thread Borut Hadžialić
I forgot to write information about our environment: Os: Red Hat 4.1 (Linux 2.6.9-42.EL) on i386 Jvm: Sun's Java HotSpot(TM) Client VM version 1.5.0_07-b03 Tomcat 5.5.17 We also use Spring, Informix db, iBatis, Jsp (tiles) and Ehcache 1.3.0 We have made 5 sites for now with these same

Re: Did anyone had problems with JspWriter in Tomcat 5.5.17?

2007-07-16 Thread Borut Hadžialić
from standard Java API, copied and imported into Ehcache. On 7/16/07, rpr_listas [EMAIL PROTECTED] wrote: Hello, Borut. Are you sure that there are no other thread writing in the cache at this moment? How do you prevent this case? Best regards. Ricardo Borut Hadžialić escribió: Hi list, I

Re: Did anyone had problems with JspWriter in Tomcat 5.5.17?

2007-07-16 Thread Borut Hadžialić
The problem seem to happen before writing to the cache. Jsps write to response wrapper's buffer.. well, when they do page gets generated fine, when they don't we get a blank home page served and put in the cache. On 7/16/07, rpr_listas [EMAIL PROTECTED] wrote: Hello, Borut. Are you sure that

Re: Tomcat as a Standalone server

2007-02-13 Thread Borut Hadžialić
Buy the domain 'application.com'. After you buy it you will be able to specify the ip address of the name server responsible for resolving host names ending with 'application.com'. Install a name server on your server, and register its ip address as responsible for 'application.com' (you do that

Re: Tomcat 5.5 class loader question.

2006-08-23 Thread Borut Hadžialić
Why would Catalina classloader need to see application specific jar files? On 8/23/06, Mark Thomas [EMAIL PROTECTED] wrote: Borut Hadžialić wrote: However, when we move those Jira dependencies from $CATALINA_HOME/common/lib/ to $CATALINA_BASE/shared/lib/ Jira starup fails - it throws several