Tomcat5 Service.

2006-04-02 Thread Gohil, Jayesh
> Hi, > > I am using Tomcat5.0.28.I have jdk j2sdk1.4.2_07.For some specific reason I > want to create Tomcat5 service manually.I want this service to be an > automatic type.As there are two ways to achieve this. > > 1) Just call "service.bat install" from catalina home\bin.I am able to create

Re: tools.jar not in CP (Tomcat 5.5.15)

2006-04-02 Thread Martin Schulz
yes, I understand that Tomcat 5.5 uses the JDT compiler (by default). Nonetheless, the doc still says that tools.jar is loaded - and of course, if Tomcat is running under a JRE, it will not be there (ok, fix the documentation). I, that is the external jar using the javac, will use the default

Re: What is the best way to send back a file as http response?

2006-04-02 Thread Mike Sabroff
You can Kanishka Liyanage wrote: Why cannot you forward your response to the file URL if the file is available within the web application directory. response.sendRedirect("File Location"); Otherwise you can use the servlet output stream Good Luck -Kanishka --- Meryl Silverburgh <[EMAIL PR

mod_jk Connector: version question

2006-04-02 Thread Paul Smith
I notice here: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/ That there are various 'stable' versions for certain O/S. In particular I notice that mod_jk 1.2.15 is considered stable for Solaris and w32 but not Linux. Any reason? We've done a lot of performance testing w

Re: What is the best way to send back a file as http response?

2006-04-02 Thread Kanishka Liyanage
Why cannot you forward your response to the file URL if the file is available within the web application directory. response.sendRedirect("File Location"); Otherwise you can use the servlet output stream Good Luck -Kanishka --- Meryl Silverburgh <[EMAIL PROTECTED]> wrote: > Hi all, > > Can

Re: tools.jar not in CP (Tomcat 5.5.15)

2006-04-02 Thread Markus Schönhaber
Martin Schulz wrote: > My webapps needs to access the javac compiler classes from tools.jar. > > This appears to work on dev environment on Windows, but it doesn't > in a deployment environment: > Solaris 9 > JDK 1.5.0_06 > > The app hits a java.lang.ClassNotFoundException: com.sun.tools.javac.Main

Re: tools.jar not in CP (Tomcat 5.5.15)

2006-04-02 Thread Leon Rosenberg
as far as I know the 5.5 branch doesn't use the sun's java compiler anymore but uses the jdt compiler from eclipse. Therefor it could just take your systems jre (each jdk contains a jre) and add the jdt compiler to the classpath. Which classloader do you use to access the javac? leon On 4/2/06,

Re: tools.jar not in CP (Tomcat 5.5.15)

2006-04-02 Thread Martin Schulz
did I mention that I use the JDK 1.5.0_06... the tools.jar is well in $JAVA_HOME/lib. Any deeper ideas anybody? Martin Larry Meadors wrote: Sounds like you may have a JRE instead of a JDK. >From a command like do: cd $JAVA_HOME find -iname javac You should see one listed as './bin/javac'

Re: What is the best way to send back a file as http response?

2006-04-02 Thread Leon Rosenberg
Are we talking about big files? Otherwise just read it at once and write it through a bufferedoutputstream. leon On 4/2/06, Meryl Silverburgh <[EMAIL PROTECTED]> wrote: > Hi all, > > Can you please tell me what is the best way to send back a file as > http response in a Servlet? > Should I use NI

Re: How to use shared directory

2006-04-02 Thread Amar
Hi, I had checked my tomcat and i am having mail.jar and activation.jar file in only shared/lib not in common/lib. and when this is case tomcat is not picking up these libraries. but when i keep in webapps/myapplication/WEB-ING/lib then its work. Help required regards -- amar On 01/04/06, Farr

What is the best way to send back a file as http response?

2006-04-02 Thread Meryl Silverburgh
Hi all, Can you please tell me what is the best way to send back a file as http response in a Servlet? Should I use NIO? Or I just use the normal, open the file, read it a chuck at a time and write that to the servlet output stream? Thank you.

RE: Re: How can I configure Tomcat to call init() of Servlet?

2006-04-02 Thread Thomas Bolding
True, but if you need a general initialization mechanism look into servlet context listeners Regards Thomas -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Konrad Billewicz Sent: 2. april 2006 01:07 To: users@tomcat.apache.org Subject: Re: How can I configure Tomcat t

Re: PHP Servlet Fails in Tomcat 5.5.15-SOLVED

2006-04-02 Thread lhommesc
I am getting this same exception due to a request URI for a non existent file. I am using Tomcat 5.5.15 and PHP 4.4.2 When this exception occurs, I also get a JVM dump do the zend engine. # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xa889aa94,