Re: Tomcat j2sdk and image

2005-05-02 Thread Trond G. Ziarkowski
Hi, do you have a graphics environment when running under Solaris? If not then that would be my guess to a reason why it's not working, since you have a graphics environment when running under W2K. Try adding -Djava.awt.headless=true to your commandline when starting tomcat. If this doesn't do

Re: out of memory error

2005-04-26 Thread Trond G. Ziarkowski
Speaking of disk space, I ran out of it today because my cron job to delete my log files didn't work. Ooopppsss ;) Trond Mark Benussi wrote: : ) Yes Matt good point. For future reference if anyone is seeing any disk full issues then they do not have a big enough hard disk... Original

Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Trond G. Ziarkowski
Hi, try removing the [R] from your RewriteRule. If you read up on the mod_rewrite docs, you should see that the [R] flag is causing the redirect. Trond PAlvin wrote: I'm currently using Tomcat 4. When someone goes to my site, say, www.site.com, I'd like it run a servlet for the home page

Re: Tomcat 5 + Apache SOAP?

2005-04-23 Thread Trond G. Ziarkowski
I also would recommend Axis, but if you put the jar files in common/lib you will not be able to reload your app. At least that happened to me with axis 1.1 under 5.0.28... That also breaks the rule that the app should be as self-contained as possible to make it as portable as possible. Trond

Re: Plain text mime-mapping and IE

2005-04-19 Thread Trond G. Ziarkowski
Hi Tim, try serving the file through a servlet or jsp, or use a filter mapped to *.las and *.dat, and use response.setHeader(Content-Disposition, inline; filename=file.txt), and response.setContentType(text/plain). Works for me... Trond Tim Sodergren wrote: Hello Group, First time user. I am

Re: Tomcat 5.5.x returns wrong value for request.getRequestURI()

2005-04-15 Thread Trond G. Ziarkowski
Hi, pretty sure isn't always good enough ;) To get the uri that forwarded to the jsp you need to use %=request.getAttribute(javax.servlet.forward.request_uri)%. Check out the servlet 2.4 spec section 8.4 for more info. Trond Yaakov Chaikin wrote: Hi, Using Tomcat 5.5.7 (tried Tomcat 5.5.9 with

Re: Memory Leak Solved

2005-04-15 Thread Trond G. Ziarkowski
Hi, don't know if you are using it, but there's also a known issue with 5.0.28 and 'swallowOutput' in the Context element. After I turned it off, I haven't gotten any out of memory errors... Trond sysdba wrote: We have struggled with a memory leak in 5.0.28/5.0.30 for months. There have been

Re: RES: Memory Leak Solved

2005-04-15 Thread Trond G. Ziarkowski
to this known issue? -Mensagem original- De: Trond G. Ziarkowski [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 15 de abril de 2005 11:08 Para: Tomcat Users List Assunto: Re: Memory Leak Solved Hi, don't know if you are using it, but there's also a known issue with 5.0.28

Re: TC 5.5 and commons-dbcp

2005-04-13 Thread Trond G. Ziarkowski
Hi Robert, the JNDI resource configuration has changed in 5.5. Check out the docs for an example: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html. Also Tomcat 5.5 has changed the commons-dbcp-x.x.x.jar to naming-factory-dbcp.jar. And the

Re: How to check whether session has expired or not

2005-04-11 Thread Trond G. Ziarkowski
Hi, there was a long discussion on this topic a while ago. Search the archives for 'detect expired session'. Trond ajay kumar wrote: Hi Friends I am developing e-commerce based web applications,I want to check whether user session has expired, so that i will display Your session has

jsvc restart trouble

2005-04-11 Thread Trond G. Ziarkowski
Hi all, I'm using tomcat 5.5.7 with latest jsvc from cvs. In my development environment I frequently run into the java.lang.OutOfMemoryError: PermGen space because of many reloads of my app. To restart Tomcat I issue 'kill -s SIGHUP $PID'. This works well when Tomcat is running normally, but

Re: apache + jakarta tomcat twice a time?

2005-04-06 Thread Trond G. Ziarkowski
Hi, not sure I understand your question (twice a time?). If you are wondering if you can have them both running at the same time the answer is yes. To have Tomcat and Apache work together you need mod_jk or mod_proxy. mod_jk can be found here: http://jakarta.apache.org/tomcat/connectors-doc/

Re: symlink in a webapp

2005-04-04 Thread Trond G. Ziarkowski
Hi, http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Look for the allowLinking attribute... Trond || Guillaume Lederrey wrote: Hello ! I'm trying to have a symlink in one of my webapp. Something like : myApp/ +- WEB-INF/ +- myOtherDir - symlink to somewhere else Tomcat

Re: Tomcat -- port 80 for Linux

2005-03-30 Thread Trond G. Ziarkowski
Hi, I would suggest using jsvc as it seems that many people are struggling with mod_jk / mod_proxy. Be sure to use latest version from cvs though, not the one that comes with Tomcat, to save you some trouble with restarting etc. (at least with 5.0.28). Trond Jury Levykin wrote: Hello! I use

Re: Where to download the Compatibility Package for running Tomcat 5.5 with 1.4 jdk?

2005-03-29 Thread Trond G. Ziarkowski
Hi, they are available for download with the other downloads here http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi. Named 5.5.X Compat tar.gz/zip. Trond David wrote: Dear Members, On the documentation there is a comment about downloading the Compatibility Package in order to run

Re: Using JDBC with 5.5.x

2005-03-29 Thread Trond G. Ziarkowski
Hi, the way to define JNDI Datasources has changed from 5.0.x to 5.5.x. Check out the docs http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html Trond Martin Dubuc wrote: I am having some problems using JDBC with 5.5.x releases. I can use JDBC with 5.0.28, but as

Re: Source code for Servlet.jar

2005-03-22 Thread Trond G. Ziarkowski
Hi, the source code for servlet.jar is part of the tomcat source release. - Trond Rajaneesh wrote: Hi All, Where do I find the source code for the servlet.jar? Disclaimer This message is not an official communication of SLK Software. The sender of this message is neither acting as an agent nor in

Re: Default password

2005-03-18 Thread Trond G. Ziarkowski
Hi, there is no default login/passwd. You have to edit $CATALINA_HOME/conf/tomcat-users.xml and add: role rolename=manager/ role rolename=admin/ user username=myuser password=mypass roles=manager, admin/ - Trond samsher khan wrote: What is the default login for tomcat 5.0.30 tomcat admin and

Re: Thanks Trond

2005-03-18 Thread Trond G. Ziarkowski
Hi, at office I am using tomcat 5.0.25. In that server my jsp's are running but when I try to run servlet in IE the browser tell me download the war file instead of executing it. How do you deploy your war file? I'm guessing that you have not used the manager since you could not login? The only

Re: Tomcat cant handel pressing F5 a couled of times

2005-03-04 Thread Trond G. Ziarkowski
Hi, I can press F5 until my finger goes sore, and still tomcat is running smooth. Seems to me that you have a problem in your app. Trond Martyn Hiemstra wrote: Hi All I beleive I may have found a major flaw in Tomcat 4, 5.0 and 5.5 I have created a numerous amount of applications and deployed

Re: JSP-Servlet tutorial

2005-03-03 Thread Trond G. Ziarkowski
Hi, TheServerSide.com has a free pdf which should cover the jsp/servlet part. You can download it from here: http://www.theserverside.com/books/addisonwesley/ServletsJSP/index.tss For jdbc I would recommend the jdbc tutorial from Sun. Trond Venkat Radha Venkataramanan wrote: Can somebody direct

Re: error-page directive

2005-03-01 Thread Trond G. Ziarkowski
Hi, Have you tried to move your the error-page directive to between the welcome-file-list and taglib directives. Seem to remember this happening to me some time ago as well. Trond !-- The Usual Welcome File List -- welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list

Re: error-page directive

2005-03-01 Thread Trond G. Ziarkowski
Hi, the order does matter, and the order is specified in the dtd that you are using for your webapp. Trond Ian van der Neut wrote: On Tue, 1 Mar 2005 10:41:36 +0100, Ian van der Neut [EMAIL PROTECTED] wrote: On Tue, 01 Mar 2005 10:32:42 +0100, Trond G. Ziarkowski [EMAIL PROTECTED] wrote

Re: Very Straneg problem with MySQL-Connector

2005-02-24 Thread Trond G. Ziarkowski
Hi, your ploblem is most likely debian related. In debian mysql has a config parameter skip-networking which denies tcp connections to mysql. Make sure this setting is not set, and that you grant your user access from 127.0.0.1 not localhost because when using localhost mysql expects the user

Cookies in Tomcat 5.5.7

2005-02-16 Thread Trond G. Ziarkowski
Hi all! I'm making a filter that checks that my cookies are set, and sets them if they are missing. Code for setting cookie: String path = request.getContextPath(); cookie = new Cookie(name, value); cookie.setPath(path); logger.debug(Setting cookie: +

Re: Cookies in Tomcat 5.5.7

2005-02-16 Thread Trond G. Ziarkowski
to you. It omits path and expiration. -Tim Trond G. Ziarkowski wrote: Hi all! I'm making a filter that checks that my cookies are set, and sets them if they are missing. Code for setting cookie: String path = request.getContextPath(); cookie = new Cookie(name, value

Re: commons-logging logger instances - how to initialize in replicated session objects

2005-02-12 Thread Trond G. Ziarkowski
Hi, I'm maybe stepping out of my territory here, but I think that static members are not serialized/deserialized. To re-initialize your static logger maybe you should try to implement the readObject(java.io.ObjectInputStream in) method from the java.io.Serializable interface something like

Tomcat 5.5.7 compiler settings

2005-02-11 Thread Trond G. Ziarkowski
Hi all! I have just upgraded from 5.0.28 to 5.5.7. My only problem is that Tomcat can't compile some of my jsps that are using features found in jdk1.5 (auto-boxing). I have tried adding: init-param param-namecompilerSourceVM/param-name

Re: Memory leak in tomcat 5.0.28

2005-02-07 Thread Trond G. Ziarkowski
Thank you Robert!! Just wanna say thanks alot for sharing all your findings with the rest of us. I start my tomcat 5.0.28 server with -ms252m -mx512m and it was running for about 3-4 days before i got the OutOfMemoryError. Since i removed the swallowOutput from my context, my server has'nt been

Re: Restart-On-Failure for Tomcat?

2005-02-06 Thread Trond G. Ziarkowski
Hi! Someone mentioned on this list a while ago that Java Service Wrapper is capable of doing this. Haven't tested it myself but you can check it out at http://wrapper.tanukisoftware.org/ Trond Robert McIntosh wrote: Hi, I'm supporting a web application running on Apache (2.0x) /Tomcat(5.0.x) w/

Using SSL for selected pages only

2005-02-03 Thread Trond G. Ziarkowski
Hi all! I have setup a security-constraint in my web.xml: security-constraint web-resource-collection web-resource-nameUserHome/web-resource-name url-pattern/home/*/url-pattern /web-resource-collection user-data-constraint

Re: Tomcat 5 - Datasource Connection Pooling

2005-01-24 Thread Trond G. Ziarkowski
Hi! 1)My problem is my working directory is different. I use ant to create war file and then i manually stop the server - delete existing war file / existing directory (This is due to some Win TomCat problem .??..). Then i deploy it using TomCat Manager. It automatically creates META-INF file

Re: kaffe and tomcat 5.5.4

2005-01-02 Thread Trond G. Ziarkowski
Hi, Perhaps there is another way to run tomcat 5.54 on port 80 as an unprivileged user in linux? thank you, Ryan Harris Try wrapper.sourceforge.net. Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Where do I set the -server option?

2004-12-30 Thread Trond G. Ziarkowski
Hi, from your next post (alternatives to jsvc) I assume you are using jsvc. Run jsvc -help to see that it has a -jvm option. Here all available jvms should be listed as well. On my debian box it did not find my jvm.cfg, so I could not use the -jvm option. To see where it tries to locate your

Re: Where do I set the -server option?

2004-12-30 Thread Trond G. Ziarkowski
Hi again Michael, Does anyone have actually _use_ jsvc and the -server parameter? As you might have figured out, I'm using it, but I'm using it with tomcat 5.0.28. And as you also should have figured by now, the option when using jsvc is -jvm server. Trond

Re: Session restart replication when using jsvc

2004-12-30 Thread Trond G. Ziarkowski
Thanks Bill! I checked out the latest sources from CVS and now it works correctly. Thanks also to Wade for lots of good input. Regards Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Where do I set the -server option?

2004-12-30 Thread Trond G. Ziarkowski
Hi Michael -jvm JVM name use a specific Java Virtual Machine. Available JVMs: 'null' It says null because jsvc cannot find your jvm.cfg file. On my system i ran jsvc -debug -help to find out where it was looking for it. I found that jsvc was expecting to find my jvm.cfg

Session restart replication when using jsvc

2004-12-29 Thread Trond G. Ziarkowski
Hi all! I recently switched from using Tomcat 5.0.28/jk2/Apache2 to running tomcat standalone using jsvc. This works great for me except for one thing; Sessions are not replicated when I restart tomcat. To stop Tomcat I'm using 'kill -9 `cat /var/run/jsvc.pid`'. When Tomcat is stopped this way

Re: Session restart replication when using jsvc

2004-12-29 Thread Trond G. Ziarkowski
Hi Wolfgang! by using signal 9 you give Tomcat no chance to perform any further action. Maybe you omit -9 from your kill command. Thanks for the tip. Tried it, but same results. Trond - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [OT] Java developer friendly Linux distro

2004-12-21 Thread Trond G. Ziarkowski
Hi! Linux dont have a good text editor in which I can run Ant builds That's where you are wrong my friend. Try jEdit from www.jedit.org. It is made in Java and runs on any platform, and it has several plugins capable of running Ant builds. A great editor in my opinion. Trond

Re: access log question

2004-12-13 Thread Trond G. Ziarkowski
Running linux? webalizer $CATALINA_HOME/logs/acces_log.`date +%F`.txt should do the trick Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: access log question

2004-12-13 Thread Trond G. Ziarkowski
Hi! so combined is just more information? Yes. so i guess webalizer knows how to deal with that format also right? I suggest you read up on webalizer's docs to find out which log formats it supports, but the answer is yes. what i currently have is seperate accesslog files created by tomcat

Re: Session timeout

2004-12-07 Thread Trond G. Ziarkowski
How about trying? Put this inside your web-app in web.xml session-config session-timeout10/session-timeout /session-config The number within the session-timeout element must be expressed in minutes. Works for me with the StandardManager, in tomcat 5 Trond Freddy Villalba A. wrote: Hi everybody,

Re: Migrating from Apache2/JK2 to Tomcat standalone

2004-12-06 Thread Trond G. Ziarkowski
Hi! 3) In Apache I'm using some aliases to serve images stored outside my appbase from inside my webapp (Alias /myapp/alias /path/outside/appbase). I've implemented this by creating context xml files for all my aliases with appBase=/path/outside/appbase path=/myapp/alias. Again, is this the

Re: Migrating from Apache2/JK2 to Tomcat standalone

2004-12-05 Thread Trond G. Ziarkowski
Hi! What's your hardware? In development I have a Dell PowerEdge something 2.4 Xeon, 512MB RAM, for production I have an IBM something 2.8 Xeon, 1GB RAM Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Migrating from Apache2/JK2 to Tomcat standalone

2004-12-03 Thread Trond G. Ziarkowski
Hi all! I'm migrating from Apache2/JK2/Tomcat 5.0.28 to Tomcat standalone (don't need php anymore), and have some questions regarding the matter. 1) Since Tomcat now will be serving all the static content as well, will it require more threads than when only serving dynamic content? 2) In

Re: Migrating from Apache2/JK2 to Tomcat standalone

2004-12-03 Thread Trond G. Ziarkowski
Thanks for your replies Allistair :) 2) In Apache I'm using mod_rewrite to rewrite requests to mydomain.com/ to mydomain.com/myapp. I've implemented this behaviour by using response.sendRedirect in a scriptlet in the index.jsp of my ROOT app. Is this the preferred way of doing this?

Axis and Tomcat

2004-12-01 Thread Trond G. Ziarkowski
Hi, I use axis to connect to some webservices from my webapp. If the axis jar files are in WEB-INF/lib I can reload my app and everything is fine. But when I moved them to CATALINA_HOME/common/lib to shrink the size of my war file I get a NullPointerException (stack trace follows) when the

Re: Axis and Tomcat

2004-12-01 Thread Trond G. Ziarkowski
BTW, I am using Axis 1.1 and Tomcat 5.0.28 Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Axis and Tomcat

2004-12-01 Thread Trond G. Ziarkowski
Thanks Yoav, I have tried shared/lib as well, and the result is the same. I don't *have* to do it, it's just that my connection to the server is so slow so I wanted to save time when uploading new versions ;) Trond - To

Re: Axis and Tomcat

2004-12-01 Thread Trond G. Ziarkowski
Hi, Perhaps for development you can use an unpacked WAR, set reloadable=true, and only upload the relevant classes/jars as needed, instead of the whole WAR... I have this setup in dev environment, but I make weekly releases to the production server, sometimes twice a week depending on how many

[OT] Which webframework to use?

2004-11-29 Thread Trond G. Ziarkowski
Hi all! Obviously I'm way off topic here, but I'm posting this anyway. I started developing JSP/Servlets using Tomcat 6 months ago. At the time I started developing my app I wasn't much aware of MVC and frameworks to help me with that, so I have developed everything from scratch. Lately I have

JDBC transactions using MySQL / DBCP in Tomcat 5.0.28

2004-11-16 Thread Trond G. Ziarkowski
Hi all! In my webapp I do two db inserts into two different tables. If the second one fails I want to rollback the first one. My code is something like the following: Connection con = gotten from jndi DataSource DBBean db = new DBBean(con); try { con.setAutoCommit(false); Object o =

Re: JSP fragments file extension and the jasper2 ant task

2004-11-12 Thread Trond G. Ziarkowski
Hey Jim, thanks for the tip. This works when the jspf files are compiled in tomcat, but the jasper2 ant task does nothing with them... Trond Ziarkowski, You may want to try adding the following to your web.xml servlet-mapping servlet-namejsp/servlet-name

JSP fragments file extension and the jasper2 ant task

2004-11-11 Thread Trond G. Ziarkowski
Hi all! The J2EE 1.4 tutorial says: The recommended file extension for the source file of a JSP page is |.jsp|. The page can be composed of a top file that includes other files that contain either a complete JSP page or a fragment of a JSP page. The recommended extension for the source file of

Apache / Tomcat restart

2004-11-02 Thread Trond G. Ziarkowski
Hello all! I'm running a webapp with apache 2, tomcat 5 and jk2 under debian. The system is running fine for about a week or so. Then some strange small things start to happen. The webapp loads new pages put doesn't show them in a browser, all GET requests are ok, but POST requests are not

Re: Apache / Tomcat restart

2004-11-02 Thread Trond G. Ziarkowski
Hi Shapira, the reason for running apache / jk2 is that we are running other things on the same server using php. Haven't tried to make php run inside tomcat, never even checked to see if it is possible. The php stuff existed before we started using tomcat so the natural approach for us was to

Active connections in db pool

2004-10-29 Thread Trond G. Ziarkowski
Is there a way of finding out how many commections which are currently active when using a db connection pool? I got this error message in my logs: Cannot get a connection, pool exhausted. When I increased the number of mxActive the error message of course disappeared. I tripled the number of

Stability problems using Apache / Tomcat / jk2

2004-10-20 Thread Trond G. Ziarkowski
System: Debian testing i386 jdk1.5.0 Tomcat 5.0.28 - CATALINA_OPTS -ms64m -mx128m Apache 2.0.52-1 libapache-mod-jk2 2.0.4-3 MySQL 4.0.21-7 mysql-connector-java-3.0.15-ga Tomcat is running a service called Tomcat-Apache, an engine called Apache with a host called localhost. localhost has the