Re: Filter versus Valve

2009-02-12 Thread Kees de Kooter
Could you post the code of your valve and your filter? Please also not that a Valve is a tomcat specific thing i.e. not portable to other app servers. A Filter is part of the servlet spec and portable. On Thu, Feb 12, 2009 at 06:13, Jake Vang wrote: > I've been looking for a way to modify my re

Re: Display URL without port

2009-02-04 Thread Kees de Kooter
Dear Rhandir, Why are you asking this question again today? I already answered the exact same question with a solution similar to Gregor's yesterday. Please do not pollute this mailing list. Cheers, Kees de Kooter http://www.boplicity.net On Wed, Feb 4, 2009 at 11:14, wrote: > We a

Re: Setting a Different context path to webapp name

2009-02-04 Thread Kees de Kooter
In the context tag you need to add an attribute named docBase pointing to your warfile. Cheers, Kees de Kooter http://www.boplicity.net On Wed, Feb 4, 2009 at 11:05, James Hoare wrote: > > Hi, was hoping someone would help with the following. I have a webapp called > myApp.war bu

Re: java.lang.ClassNotFoundException when starting tomcat

2009-02-04 Thread Kees de Kooter
If I recall correctly Tomcat 5 and lower need a JDK to run, not a JRE. Cheers, Kees de Kooter http://www.boplicity.net On Wed, Feb 4, 2009 at 10:39, alex_m wrote: > > Hi! > > I have a RedHat server that with Tomcat5.5.18 and java (JRE) 1.6.0. When i > tries to start the tomcat

Re: Error, source unknown

2009-02-03 Thread Kees de Kooter
Apparently you already have something running that is using port 8080. The Digester error means that an xml file that is being loaded contains characters after the closing root tag. Cheers, Kees de Kooter http://www.boplicity.net 2009/2/3 Dave Pawson : > from catalina.out log. > > Fe

Re: Copy Apache

2009-02-03 Thread Kees de Kooter
What is the operating system? 2009/2/3 randhir.singh : > I have a requirement to migrate our application to a better configuration > server. For this, can I copy apache from the present server to the new > server? So, my question is whether we can just copy the apache folder to > the new server o

Re: Able to access URL without port

2009-02-03 Thread Kees de Kooter
You should configure mod_proxy in Apache for that. You basically proxy "no port" (is actually port 80) to your port 10080. The docs for mod_proxy can be found here: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html Cheers, Kees de Kooter http://www.boplicity.net On Tue, Feb 3, 200

Re: tomcat 5 and the JVM

2009-02-02 Thread Kees de Kooter
n your code. Cheers, Kees de Kooter http://www.boplicity.net On Mon, Feb 2, 2009 at 13:59, Ray Holme wrote: > I run tomcat 6 on Linux and have multiple applications in development > mode. From my testing I have discovered that a Java bean shared by all > applications and with ALL metho

Re: Why tomcat 6.0.18 looks for MySQL JDBC driver to be placed in CATALINA_HOME/lib folder?

2009-02-02 Thread Kees de Kooter
Hi Ramesh, Did you configure a JNDI datasource in tomcat? In that case the datasource exists "outside" your app. Cheers, Kees de Kooter http://www.boplicity.net On Mon, Feb 2, 2009 at 13:06, peterramesh wrote: > > Hi, > > On reading Tomcat help doc > http://tomcat.

Re: Tomcat 6 on Linux - session - DB connections and other shared resources

2009-02-02 Thread Kees de Kooter
Servlet filters are the best way to solve this. Where do you get stuck with filters? Cheers, Kees de Kooter http://www.boplicity.net On Sun, Feb 1, 2009 at 23:55, Ray Holme wrote: > I have a few web applications being moved to tomcat. They all share some > commonality - I use Firebi

Re: Tomcat configuration on IIS 7

2009-01-26 Thread Kees de Kooter
Hi Raffee, You should read http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html on how to setup the connection between IIS and tomcat. As you will see you have to configure the connection per website in IIS. Cheers, Kees de Kooter http://www.boplicity.net On Mon, Jan 26, 2009

Re: How to prevent direct ip address

2009-01-23 Thread Kees de Kooter
You could create two virtual hosts, one 'default' that displays some error page and one for your domain that displays the app. Kees On Fri, Jan 23, 2009 at 10:52, Jaakko Taipale wrote: > I have specified domain eg. www.myapp.com and I have tomcat running my > machine that have IP address 123.123

Re: PostgreSQL vs MySQL with Tomcat

2009-01-19 Thread Kees de Kooter
> the only really major difference I can think of is T-SQL stored procedures, > which have no counterpart in Postgres. PostgreSQL does have support for stored procedures, you can even choose from 4 languages out of the box and 3 more from addons: http://www.postgresql.org/download/products/4.html

Re: Help moving application from Windows to Linux

2009-01-05 Thread Kees de Kooter
Apache and tomcat work exactly the same on both windows and linux. What config elements are you looking for? Cheers, Kees de Kooter http://www.boplicity.net On Mon, Jan 5, 2009 at 04:35, Don Whitehead wrote: > Greetings all. > > > > I am a novice Tomcat/Apache admin, being mor

Re: JPA/Hibernate persistence and MySQL connection timeout

2008-12-29 Thread Kees de Kooter
Hi Ken, Take a look at this page: http://www.hibernate.org/hib_docs/entitymanager/reference/en/html/configuration.html As you can see the datasource is obtained using JNDI: java:/DefaultDS Cheers, Kees de Kooter http://www.boplicity.net On Mon, Dec 29, 2008 at 14:41, Ken Bowen wrote: > K

Re: Tomcat 6, log4j and security manager

2008-12-29 Thread Kees de Kooter
In WEB-INF/classes of your application. On Mon, Dec 29, 2008 at 12:37, Korobitsyn Roman wrote: > Hello Kees, > > And where should I put log4j.properties in that case? > > Roman > > KdK> It usually means that the log4j properties file cannot be found on the > KdK> classpath. > > KdK> Kees > > >

Re: Tomcat 6, log4j and security manager

2008-12-29 Thread Kees de Kooter
It usually means that the log4j properties file cannot be found on the classpath. Kees On Mon, Dec 29, 2008 at 11:44, Korobitsyn Roman wrote: > Hello! > > I use > Win XP > JDK 1.5.0_13 > Tomcat 6.0.16 > Log4J 1.2.14 > > I set up logging as described on > http://tomcat.apache.org/tomcat-6.0

Re: JPA/Hibernate persistence and MySQL connection timeout

2008-12-29 Thread Kees de Kooter
Why don't u use the existing datasources for JPA (instead of setting the hibernate.connection properties)? Kees On Mon, Dec 29, 2008 at 00:50, Ken Bowen wrote: > Hi All, > > I'm using: Tomcat 6.0.18; Mysql 5.0.51a; Java 1.5; Hibernate 3.2; (no > spring) > > MyApp utilizes five (5) distinct mys

Re: Recurrent OutOfMemoryError during Eclipse publish operation to test environment

2008-12-18 Thread Kees de Kooter
Did you try doubling the permsize? -XX:PermSize=256m Cheers, Kees de Kooter http://www.boplicity.net On Thu, Dec 18, 2008 at 11:38, bemmi wrote: > > Hi, > > I'm using Tomcat 6.0.18, Eclipse 3.3.2 and JDK 1.5.0_14. I've created a > test server using my Tomcat install

Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-16 Thread Kees de Kooter
You can use apache's mod_proxy module for this: http://httpd.apache.org/docs/2.0/mod/mod_proxy.html. Cheers, Kees de Kooter On Tue, Dec 16, 2008 at 12:26, TiredMan wrote: > > Hi. Gentlemen, I have a mission, but I have no idea how to do it. > > I have: > 1. A server with

Re: How to setup Authentication for Tomcat integrated with IIS

2008-12-15 Thread Kees de Kooter
In that case you need to use NTLM authentication. You might want to take a look at this: http://jcifs.samba.org/src/docs/ntlmhttpauth.html On Mon, Dec 15, 2008 at 15:37, mcarter19 wrote: > > Hi, > I am basically a noob when it comes to Tomcat so I hope someone can help me > out. I have a tomca

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread Kees de Kooter
Did you try to access the manager application at http://localhost:8080/manager/html? If that works your tomcat is running fine. I suggest you read up on building and packaging java web applications. You can deploy your .war files using this manager application. On Thu, Dec 11, 2008 at 11:51, B

Re: Tomcat resources

2008-12-09 Thread Kees de Kooter
Is this some would-be turing machine babbling away or is there are genuine question here? On Wed, Dec 10, 2008 at 00:31, tomkitten <[EMAIL PROTECTED]> wrote: > > I would like a web application to read in some data from a text file (I tried > using .class.getResourceAsStream). I am not sure how t

Re: SSL/Apache and Proxy

2008-12-08 Thread Kees de Kooter
Could you post your apache proxy configuration? On Mon, Dec 8, 2008 at 15:38, Doctor Khumalo <[EMAIL PROTECTED]> wrote: > > Anyone know anything about this or will my post be ignored? > > > >> From: [EMAIL PROTECTED] >> To: users@tomcat.apache.org >> Subject: RE: SSL/Apache and Proxy >> Date: Fr

Re: Login config

2008-12-04 Thread Kees de Kooter
> I installed a tomcat 5.5.27 with an application and I configure the > web.xml of the application by introducing a security constraint and a > login config with a form. My login page is not in the security > directory. So when I launch Tomcat and I access to my application with > restriction, the

Re: Pointing domain to a context in tomcat

2008-12-04 Thread Kees de Kooter
On Thu, Dec 4, 2008 at 08:32, nitingupta183 <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have recently started using Apache web server with Tomcat. I need to have > something like this: > > www.mydomain.com maps to something like www.mydomain.com:8080/mycontext > > With the help of mod_jk i am now