Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-13 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Johnny Kewl

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-13 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Johnny Kewl

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: David Kerber

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Johnny Kewl

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Johnny Kewl

How to get the context path during servlet load?

2007-10-13 Thread Zsolt Koppany
Hi, I want to make the application contextPath independent. Normally this is not a problem because I can use request.getContextPath() however I need to know the contextPath during startup: servlet servlet-namestartup/servlet-name servlet-class.../servlet-class

2 Tomcat

2007-10-13 Thread lissette
Hi! I would like to put to run two tomcat at the same time ( tomcat 5.5 and tomcat 5.0 jwsdp), Is it possible? I try to change the port of one tomcat (8080 for 8009) but do not working the two tomcat at time. Could someone help me? Thanks very much. -- View this message in context:

Re: 2 Tomcat

2007-10-13 Thread Markus Schönhaber
lissette wrote: I would like to put to run two tomcat at the same time ( tomcat 5.5 and tomcat 5.0 jwsdp), Is it possible? Yes. I try to change the port of one tomcat (8080 for 8009) but do not working the two tomcat at time. You have to make sure that *all* ports are different.

Re: How to get the context path during servlet load?

2007-10-13 Thread Pid
if you mean during the init() method: /* * (non-Javadoc) * @see javax.servlet.GenericServlet#init(javax.servlet.ServletConfig) */ @Override public void init(ServletConfig config) throws ServletException { // ServletContext context =

Re: Copying large files around

2007-10-13 Thread Pid
David Kerber wrote: What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what? I think that the NIO apis were

Re: Second webapp lib folder

2007-10-13 Thread Konstantin Kolinko
Russ, 1. I think that configuring /WEB-INF/lib2 is not possible. The spec has no provision for it. 2. You may place all these jars into shared jars folder in tomcat configuration, and exclude them from your war. In tomcat 5.5.x, the place is ${catalina.base}/shared/lib/ See

Re: Copying large files around

2007-10-13 Thread David Kerber
Pid wrote: David Kerber wrote: What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what? I think that

RE: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-13 Thread Caldarale, Charles R
From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: embedded Tomcat (5.5.23) application logging (java.util.logging) This java.util.logging.manager is part of Java, not Tomcat... So on the command line as Java starts it inits this... So I think even if this property is set as the

Re: Copying large files around

2007-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working on a utility function in my webapp that will periodically copy the database file from the db server to a backup server on the LAN. Uh cron and cp, anyone? You can even

Re: How to get the context path during servlet load?

2007-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, Pid wrote: ServletContext context = config.getServletContext(); String path = context.getContextPath(); I can't remember if this is the same thread (the original message has fallen off my list queue), but I thought the OP was

Re: Copying large files around

2007-10-13 Thread Jim Cox
On 10/13/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working on a utility function in my webapp that will periodically copy the database file from the db server to a

Re: Copying large files around

2007-10-13 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Let me give a bit more detail: I am working on a utility function in my webapp that will periodically copy the database file from the db server to a backup server on the LAN. Uh

Re: Copying large files around

2007-10-13 Thread PTS
Yes. It has AT (command line) and a scheduler (GUI). You can do a batch file and set it to run at a certain time, day and frequency. I had a client that I setup the dhcp service to stop, copy the database over to a backup directory and then restart the service in a batch file. Then I called it

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: David Kerber

Help with char encodings

2007-10-13 Thread Amnon Lahav
Hi , i have a site configured on every possible place to utf8 , when i use it on my computer everything runs ok beside a little problem where i had to use a file uploaded with commons.fileupload , there i used get with windows1255 but everything works on my computer when i uploaded the file to

Re: Copying large files around

2007-10-13 Thread Pid
David Kerber wrote: Pid wrote: David Kerber wrote: What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what?

Re: Does mod_jk copy memory b/w apache and tomcat (using linux, ajp13 worker)?

2007-10-13 Thread Moran Ben-David
Apache httpd and Tomcat do not share any memory, so there is not any explicit memory-copying going on. How do they share data? For example, when Tomcat creates an HTTP response containing 50k of HTML, I assume that data exists in Tomcat's memory space. How does that data move over to apache's

Re: Copying large files around

2007-10-13 Thread Martin Gainty
Sadly no cron (and sadly no .htaccess file available either) wrap the java %java_opts% -cp %classpath% classname in either a cmd or .bat On a 7 year old wintel box the application is called Task Scheduler where you want to select that cmd/bat Be sure to set sufficient security permissions to

Re: Copying large files around

2007-10-13 Thread David Kerber
Pid wrote: David Kerber wrote: Pid wrote: David Kerber wrote: What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large

Re: Copying large files around

2007-10-13 Thread David Kerber
Martin Gainty wrote: Sadly no cron (and sadly no .htaccess file available either) wrap the java %java_opts% -cp %classpath% classname in either a cmd or .bat On a 7 year old wintel box the application is called Task Scheduler where you want to select that cmd/bat Be sure to set sufficient

Re: [OT] mod_jk - no permission to access index file

2007-10-13 Thread Albert Greinoecker
exactly, that was it. thanks a lot! albert Is there anything interesting in httpd's error.log file? Symbolic link not allowed: /usr/share/tomcat6 There you go. You have Options FollowSymLinks listed for /usr/share/tomcat6/webapps/my_app, but not for either / or /usr/share or something

Re: Copying large files around

2007-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Kerber wrote: Does Windows 2003 server have a version of cron? Yes, it's called the Microsoft Task Scheduler. I've never used it. :( And building it into my webapp lets all the configuration be done from the same interface..

Tomcat 5.5.25, SSL and invalid keystore format

2007-10-13 Thread Werner Schalk
Hello, I am trying to setup SSL in my Tomcat 5.5.25 (on Debian Linux) and thus downloaded a binary version of Tomcat from the Tomcat website. Now I tried to create a keystore: # keytool -genkey -v -keyalg RSA The server.xml is as follows: Connector port=8443 maxHttpHeaderSize=8192

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-13 Thread Carl Mosca
I really appreciate the timeliness of all the responses and the theory behind how and when logging is configured and initialized has been explained really well. However I'm not so sure I have explained where I actually am very well. I have been able to configure Java logging via the command line

RE: Copying large files around

2007-10-13 Thread Peter Crowther
From: David Kerber [mailto:[EMAIL PROTECTED] What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what? If

Re: Copying large files around

2007-10-13 Thread Bill Barker
Seconding Peter's comments: It is extremely unlikely that you can beat the Windows tools for this sort of thing (been there, done that). Also, if your webapp isn't physically on one or the other boxes (as Peter said, preferably the reciever), then you are pretty much guaranteed to lose. That

Re: Copying large files around

2007-10-13 Thread David Kerber
Peter Crowther wrote: From: David Kerber [mailto:[EMAIL PROTECTED] What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[]

Re: Copying large files around

2007-10-13 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: David Kerber