Re: German character problem
Hi Andreas, just add -Dfile.encoding=ISO-8859-1 to the JAVA_OPTS --- JAVA_OPTS=-Dfile.encoding=ISO-8859-1 export JAVA_OPTS $CATALINA_HOME/bin/catalina.sh run --- On Fri, 19 Jul 2002, Andreas Schlegel wrote: [...] All specific german characters (ä, ö, ü, ß, ...) return to the Client (Browser) only as 'ß'. If we send a native request to the database by psql, we havn't the problem. [...] ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Question about upgrading Tomcat
Hi, Context context = ((ServletContextFacade) conf.getServletContext()). getRealContext(); .. conf.getServletContext().getRealPath(/my/path/to/the/config/file.xyz); resolves names relative to your context. This is part of the servlet spec. ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How do I Hide version specific information
mail.NoSuchExplainingContentException at task.reading.MailReader(MailReader.java:42) ;-) Anyway .. what version specific information of what you want to hide .. from whom ? On Thu, 18 Jul 2002, Kevin Passey wrote: Thanks Kevin Passey -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.7 Beta / jsp:include
Hi, I have a problem that has materialised after we upgraded our development web server to tomcat 4.1.7. the jsp:include tag is ignored no errors are generated and the page is simply not loaded/included. I had a similar problem when upgrading to jasper2 (which is the JSP compiler included in 4.1.7). This was, when the included files were addressed relatively. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10711 (fix included) Ah, by the way: make sure, that you remove all the stuff found in the work/ subdirectory of your tomcat installation .. ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Cobranding - Share Controller, Split View
Hi, I know I can treat the servlets as a separate webapp and deploy them to each separate host, but if I do this, will they be able to access the different configuration ( context-param and JNDI resources ) specified in the each ROOT context's web.xml? What about having the same servlet referenced more than once in the same web.xml with different init-params ? Consider you have Servlet com.codemagi.FooServlet, then you could do servlet servlet-name com.gargelmarf.FooServlet /servlet-name servlet-class com.codemagi.FooServlet /servlet-class init-param param-namebrandType/param-name param-value1/param-value /init-param {...} /servlet servlet servlet-name com.foobaz.FooServlet /servlet-name servlet-class com.codemagi.FooServlet /servlet-class init-param param-namebrandType/param-name param-value2/param-value /init-param {...} /servlet -- All these servlets can be accessed from the same context, but have different names. The servlet com.codemagi.FooServlet reads the init-param to determine the brand. If you access: /mycontext/servlet/com.gargelmarf.FooServlet /mycontext/servlet/com.foobaz.FooServlet all that is called are two different instances of com.codemagi.FooServlet, sharing the same context but with different init-params. Probably this is the easiest way to do it. ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: setenv.sh
Hi, In my Linux machine, it doesn't have the setenv.sh inside $TOMCAT/bin directory. How can I set up setenv.sh inside Tomcat? Is there any online reference site which I can refer to? You don't need to. Everything is done already in catalina.sh; so if you call '$CATALINA_HOME/bin/catalina.sh run' (or start/stop ..) all Classpath's etc. are set up correclty. You can pass additional parameters in the CATALINA_OPTS or JAVA_OPTS environment variables. Regards, Johnny. ciao, Henner. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Performance question
Hi Sean, My problem is that my sys admin person who needs to deploy this system on a production box is concerned that Tomcat cannot be performant enough to satisfy the high volume of requests on the server. He is convinced that Tomcat is loaded every time anyone accesses the html, even if they do not access the servlets themselves. No, tomcat is already started. The tomcat process is running, waiting for requests. Each requests is passed to an already spawned and waiting thread. So handling a request is pretty fast. Tomcat behaves like a normal webserver in this regard: started and waiting for requests. Even the servlets inside Tomcat are started once at startup and then are reused on every request in a separate thread. HTML-serving is just another servlet in tomcat, that just reads a file and passes it to the servlet output stream. I assume your admin compares tomcat to CGI-programs. CGI-progams (mostly written in Perl, thus often referred to as CGI-script) are started every time a request goes to them; this indeed is not good for performance, especially for scripts that need to start-up a huge interpreter that needs to parse its script first. One more point. These servlets must be in a secure environment. They use a Thawte certificate for security. I thought Tomcat could be configured to use a secure certificate fairly simply, but he says otherwise. Yes. Anyway I'd suggest to always use Apache as the frontend (handling as well the SSL stuff) and then connect tomcat with AJP12/13 to the apache. ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Garbage in Context Attributes
Hi, I am not familiar with the example you mention, but the contents of your attributes is not garbage. The WELCOME_FILES contains a String array. The resources contains a class named org.apache.naming.resource.ProxyDirContext. ..and toString() (which is called implicitly if you try to println() an arbitrary objet) returns these kind of strings. context.getAttributeNames(): context.getAttribute(org.apache.catalina.WELCOME_FILES): [Ljava.lang.String;@baa466 context.getAttribute(org.apache.catalina.resources): org.apache.naming.resources.ProxyDirContext@7f409c ciao, -hen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]