Re: Tomcat 6.0 in Eclipse

2009-03-17 Thread Ingmar Lötzsch
I downloaded apache-tomcat-6.0.16 and ran the startup.bat. I could see the page display at http://localhost:8080/ Later, I configured the same in eclipse 3.4 and started the tomcat using eclipse.Eclipse started the tomcat with no exception. However, when I go to the page at http://localhost:8080/

Re: Variable returning context name

2009-01-28 Thread Ingmar Lötzsch
> is there an tomcat (5.5x) variable which gives back the context name such > as webappRoot returns the path to the webapp!? > I plan to use this to specify an logfile such as > log4j.appender.logfile.File=${log.dir}/${contextnamevariable}_test.log I'am using ServletContext.getContextPath() insid

Re: PostgreSQL vs MySQL with Tomcat

2009-01-16 Thread Ingmar Lötzsch
Some comments (and answers to Christopher and Rusty) on PostgreSQL: In 2004 our team decided to use PostgreSQL instead of the well-known MySQL (current version 4). The main reasons where - real referential integrity - real transactions - support for UTF-8 enoding - better compliance with the SQL

Re: how to invalidate old sessions when new user access appl on same machine

2008-12-19 Thread Ingmar Lötzsch
Hello, you can use the Sevlet API. First call invalidate() on the actual HttpSession instance and then getSession(true) on the request object (HttpServletRequest) to start a new session. Nicolas Romantzoff schrieb: > Thats a problem in your server code... > > Session is binded to a connection (b

Re: Log4j Date/time logging

2008-08-19 Thread Ingmar Lötzsch
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout ## see PatternLayout ## %d{ISO8601} = -MM-dd HH:mm:ss,SSS ## %d{ABSOLUTE} = HH:mm:ss,SSS ## %-5p = level, left aligned, minimum 5 characters ## %c{1} = last part of the name of the logger ## %m = message ## %n = newline (platform dep

Re: JSF implementation selection

2008-05-09 Thread Ingmar Lötzsch
Is it possible to use Icefaces and Tomahawk together? Thank you Ingmar Praful Sinha schrieb: Icefaces provides you a functionality of ajax embedded in it. But Myfaces did not. You can also you tomahawk for more enhanced tag lib. Any trouble can contact me on [EMAIL PROTECTED] Praful Sinha.

Re: where to put config file in a webapp

2008-04-02 Thread Ingmar Lötzsch
I forgot to change line 113: old version Object[][] contents = resources.toArray(new Object[0][0]); new version Object[][] contents = resources.toArray(emptyObjectArray); Ingmar - To start a new topic, e-mail: users@tomcat.apac

Re: where to put config file in a webapp

2008-04-02 Thread Ingmar Lötzsch
You also can use ResourceBundle (if you need only Strings) or ListResourceBundle. 1. ResourceBundle Save your configuration in com.x.y.z.MyConfig.properties (or in the default package) In your Java class type ResourceBundle bundle = ResourceBundle.getBundle("com.x.y.z.MyConfig"); (= ResourceBund