RE: PJA Library, BootClasspath, Configuring JVM -- Tomcat 4.x and JDK1.3
Hi Carlos, I run Tomcat with PJA on a headless Linux server. You just need to add the extra java parameters to the CATALINA_OPTS variable in your catalina.sh script: for your environment it would be: CATALINA_OPTS=-Xbootclasspath/a:/home/libs/pja.jar \ -Dawt.toolkit=com.eteks.awt.PJAToolkit \ -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \ -Djava.awt.fonts=$JAVA_HOME/jre/lib/fonts/ (assuming that $JAVA_HOME contains the location of your JDK installation directory) Hope this helps, Best Regards, Chris Newland -Original Message- From: Carlos [mailto:[EMAIL PROTECTED]] Sent: 18 June 2002 15:48 To: Tomcat-User (E-mail) Subject: PJA Library, BootClasspath, Configuring JVM -- Tomcat 4.x and JDK1.3 Hi Forum, Is there a way to setup the BootClasspath of Tomcat and to configure the JVM (JDK1.3) to execute with modified system properties?I am trying to use PJA libraries in Tomcat 4.x. This library enables Linux to manage pdf files but it needs some configuration extras. The library requires the following to run a class anmed uTest: For instance, if we want to execute the uTest class and the PJA library is under the /home/libs directory: Java -Xbootclasspath/a:/home/libs/pja.jar -Dawt.toolkit=com.eteks.awt.PJAToolkit -Djava.awt.graphicsenv = com.eteks.java2d.PJAGraphicsEnvironment uTest In other words, the pja.jar must be added to the BootClasspath and the JVM must execute the class with custom system properties. Thanks in advance for your help Carlos -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: error 404
Hi, Did you restart Apache after you started Tomcat? Regards, Chris -Original Message- From: Yunce Gunawan [mailto:[EMAIL PROTECTED]] Sent: 03 April 2002 13:22 To: Tomcat Users List Subject: error 404 hi all, i have added this charakters to my configuration on httpd.conf IfModule mod_webapp.c WebAppConnection conn warp picard:8080 WebAppDeploy tomcat conn / WebAppDeploy cocoon conn /cocoon WebAppInfo /webapp-info /IfModule and than on my browser i always see this error. WebApp: Error 404 (File: wa_request.c Line: 205) Web-application not yet deployed can anybody help me ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 100% cpu on one of two processor
Hi, There is a known memory leak in javac (used to compile the JSP pages). This could be causing your Java VM to use up nearly all of its memory and start to perform heavy garbage collection. If you use the -Xms and -Xmx JVM switches (to set the initial and maximum heap sizes respectively) then your server should run for longer but will eventually run out of memory if it is compiling a lot of JSPs. I think it is possible to use a different compiler (such as Jikes or Pizza). e.g. java -Xms64M -Xmx256M classname (or as much memory as you want to allocate) You can set the Tomcat JVM sizes using (in catalina.sh) (this is for Tomcat 4) CATALINA_OPTS= -Xms64M -Xmx256M Hope this helps, Best Regards, Chris Newland -Original Message- From: Guillaume Radenkovic [mailto:[EMAIL PROTECTED]] Sent: 14 March 2002 15:36 To: [EMAIL PROTECTED] Subject: 100% cpu on one of two processor My configuration : Linux Redhat 7.1 Tomcat 3.2.4 PostgreSQL 7.0.x Sometimes, after some time, when JSP compiles on the server, this on can't display the page and on of the two cpu going to 100%. This happens on any JSP page . Need help ! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
multiple mod_webapp connections?
Hi All, I would like to set up multiple tomcat 4.0.1 instances (each running a cocoon webapp) all behind a single Apache server and use mod_webapp to connect between a URL path and a specific tomcat instance. E.g. http://www.server.com/foo --- localhost:8080/cocoon (first tomcat instance) http://www.server.com/bar --- localhost:8081/cocoon (second tomcat instance) I've suceeded in getting the apache-mod_webapp-tomcat process to work fine with 1 instance of tomcat, but I don't know how to configure Apache to support 2 mod_webapp connectors. I can't find any information about this in the docs so I was wondering if it is even possible? Has anybody suceeded in this configuration? Thanks, Chris -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Repost: Can't get it working: TC4.0.x + warp + Apache 1.3.20 + SuSE Linux 7.3
Hi Peter, Have you tried building mod_webapp from source? I'm using Tomcat 4.0.1 + Apache 1.3.22 + Cocoon 2.0 final. I downloaded webapp-module-1.0.1-tc401-src.tar.gz from the jakarta site and built from source then copied mod_webapp.so into my apache/libexec directory and added *only* the following line to the bottom of my httpd.conf: -- Include conf/warp.conf -- I also copied the updated warp.jar (built from the java source in webapp-module-1.0.1-tc401-src.tar.gz) into my tomcat/server/lib directory (you need to make sure that your warp.jar matches your mod_webapp.so version) my warp.conf file (in my apache/conf dir) contains: -- LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c ServerName 127.0.0.1 Port 80 WebAppConnection warpConnection warp 127.0.0.1:8008 WebAppDeploy cocoon warpConnection /cocoon AddHandler default-handler .gif .jpeg -- I did not have to change my tomcat/conf/server.xml file at all to enable mod_webapp. Hope this helps, Best Regards, Chris Newland On Wednesday 16 January 2002 12:07, you wrote: Forgive me that I repost my message from several days ago, then posted with the subject WARP / mod_webapp not working --- help needed! but the urgency of the problem is increasing, now. Therefore I would kindly ask (anyone of) you, to have a look at the log files at the end of this message? Maybe that gives you a hint, why my configuration ain't working. I suppose that only the log file apache_log is really relevant. However, I'm unable to guess myself from the log file what's wrong. BTW: If I specify http://MyHost.de/example I get a Not found error, while with http://MyHost.de/examples/ the result is a blank page. ?!?!? In standalone mode, ie when I specify port 8080, everythings working. So thanks again, for taking the time. Peter Bär -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: security issue: tomcat on port 80
Hi, There are security implications for running *any* server process on *any* port that is accessible by the public internet. To run a server on UNIX/Linux on a port number of less than 1024 requires root privileges. I would strongly recommend you do *NOT* run Tomcat as the root user since if the server was compromised (by a buffer overflow attack for instance) then the attacker would have root access to the entire machine. I personally run Tomcat behind an Apache web server (which runs on port 80 on a restricted user account) and use mod_webapp to connect the two. Get a book on UNIX system administration and do some web searches, there's plenty of information out there. Hope this helps, Chris -Original Message- From: E B [mailto:[EMAIL PROTECTED]] Sent: 06 December 2001 09:55 To: Tomcat Users List Subject: security issue: tomcat on port 80 How safe is it to have tomcat listening on port 80 running on a RH6.2, which is on the internet ? Did anybody face any security problems ever ? Nokia 5510 looks weird sounds great. Go to http://uk.promotions.yahoo.com/nokia/ discover and win it! The competition ends 16 th of December 2001. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: newbiew question : memory usage
Hi Karl, From my understanding (I'd welcome any corrections): -Xms is the initial size of the JVM heap (the pool of memory available for allocation as variables/objects) -Xmx is a hard limit on the maximum size of the JVM heap. When an object needs to be created the JVM requests memory from its heap. If the current heap usage is near to the current limit then garbage collection may be attempted to free memory. If this doesn't free enough then the heap limit will grow towards the Xmx value. Once the heap size is at the Xmx value and an allocation request occurs, garbage collection will be attempted and if this fails to free enough memory to satisy the allocation then the JVM will throw an OutOfMemory runtime exception. AFAIK the JVM will not allow the heap to grow past the Xmx value (this is a good thing IMHO as it will stop the JVM from taking over the whole machine). I've had problems myself with running out of memory on a 2GByte machine and my solution was to optimize my own code to free resources as soon as possible and to explicity run finalize() and gc(). Hope this helps and I'd be interested if you find any tips on optimizing server-side JVM memory usage. Best Regards, Chris On Friday 30 November 2001 12:57, you wrote: hi, i am running into problems with my tomcat-3.2.3 installation; i have set my TOMCAT_OPTS to -Xms64M -Xmx512M but i am still running out of memory on my server with 2gb with memory. when tomcat is spawning new threads it is restricted to the -Xmx value? or can it eat more memory than stated from the TOMCAT_OPS? mvh karl oie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Hinding information from the URL (during the request)
Hi Mike, Your form method is GET right? The HTTP GET method of passing parameters works by appending them to the form target URL. If you change the form method to POST then they will be sent as POSTDATA with the request for the target and will not appear in the browser URL. See the HTTP spec for more details. HTH, Chris On Thursday 29 November 2001 05:49, you wrote: I have a simple form that sets a page up so a user can query a DB, the beginning of the page is a form where the user enters their user name and password The password is hidden as the user types BUT When they submit the query all connection data (including the password!) is displayed in the address bar of the browser. How do I stop from passing the information in the address bar (or at least how do I hide it??)?? TIA Mike -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2.3 Memory Exception running on HP-UX 11
Hi Mike, If you are not explicitly setting the JVM initial heap size and maximum heap size then they will take the default values which are quite small (64MByte max I think?). If you want the JVM to use more of the system's memory then start it up using the switches: -Xms initial heap size -Xmx maximum heap size (This is for the Sun 1.3 JVM, but I expect the HP JVM has an equivalent) so for 100MB initial heap, 150MB maximum heap you would change your startup script to override the defaults: java -Xms100M -Xmx150M classname In catalina.sh (Tomcat 4) there is an environment variable CATALINA_OPTS that will add extra parameters to the java command so I just set CATALINA_OPTS= -Xms500M -Xmx1000M. There may be a similar option in Tomcat 3.2.3. Hope this helps, Chris -Original Message- From: Michael S. Ricker [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 16:01 To: [EMAIL PROTECTED] Subject: Tomcat 3.2.3 Memory Exception running on HP-UX 11 Hello, Attempted to make 5 simultaneous connections to Tomcat 3.2.3 on HP-UX 11 and received the following exception. Tomcat is being run with HP Java 1.3 without any specific command line parameters. The HP server had 200mb real/300mb virtual memory free when monitoring with the top command. Any suggestions to prevent this exception? 2001-11-29 16:39:54 - ThreadPool: Caught exception executing org.apache.tomcat.service.TcpWorkerThread@dc81fb1e, terminating thread - java.lang.OutOfMemoryError: can't create another thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.ThreadPool$ControlRunnable.init(ThreadPool.java, Compiled Code)at org.apache.tomcat.util.ThreadPool.openThreads(ThreadPool.java, Compiled Code) at org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Unknown Source) Mike -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]