Re: Running an external application from a Java servletenvironment

2002-05-07 Thread Larry Meadors
I presume you are trying to run the code on the server? If so, I did it (with winamp) by creating a play list then calling this: Runtime.getRuntime().exec(mp3PlayerPath + " " + tmp.getAbsolutePath()); I suspect that the WiMP has a similar type of command line that would do the same thing.

Re: Appending to TOMCAT's class path

2002-05-07 Thread Larry Meadors
Why not put your source in the WEB-INF/classes directory of your context or put them in any other directory, and use ant to build and have it build the classes into that directory? Larry >>> [EMAIL PROTECTED] 05/07/02 10:12AM >>> Does anyone have a solution other than having to make a new jar f

Re: Classpath problems with Tomcat4 and RedHat 7.2

2002-05-07 Thread Larry Meadors
Do you have a CATALINA_HOME environment variable set? That might cause this... >>> [EMAIL PROTECTED] 05/07/02 09:21AM >>> I am having problems reading a resource file I placed in /var/tomcat4/common/lib. I also tried placing it in /var/tomcat4/common/classes. I wrote a small JSP which lists th

Re: turn off directory listing

2002-05-06 Thread Larry Meadors
Nope, but you can in your web.xml. ;-) Look at the default one, it has pretty decent comments on how to do it. Larry >>> [EMAIL PROTECTED] 05/06/02 01:45PM >>> is there a way in the server.xml file to turn off directory listing? -dave

RE: Memory Leak of JDBC Drive

2002-05-06 Thread Larry Meadors
Thanks for the heads-up! We have a similar environment (JDK 1.3.1, tomcat 4.0.1, SQL 7 / WinNT4, JNetDirect driver) and I have asked the guy who takes care of it if he is having similar problems. I will follow up when I know more - maybe we can drive towards the solution from different direct

Re: java.lang.NoClassDefFoundError-Con't find the Class in thesame package?

2002-05-03 Thread Larry Meadors
Case sensitivity. Try this instead: //_composer = new com.fis.Controller.Composer(..., ...); # ERROR LINE _composer = new com.fis.controller.Composer(..., ...); # ERROR LINE Larry >>> [EMAIL PROTECTED] 05/03/02 03:52PM >>> I've put a class struecture into Tomcat4_home/webapps/jds/W

Re: Easy One

2002-05-03 Thread Larry Meadors
Use the reloadable attribute: Larry >>> [EMAIL PROTECTED] 05/03/02 02:44PM >>> My problem is during development I don't want to stop and start Tomcat each time I change a class file.

RE: Log the amount of time taken to complete a request...

2002-05-03 Thread Larry Meadors
Thanks! >>> [EMAIL PROTECTED] 05/03/02 11:15AM >>> On the Tomcat site: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Where might a guy find the meanings of those values and a

Re: Hot To Prevent Directory Listing with Tomcat 4.0.3

2002-05-03 Thread Larry Meadors
Search for "listings" in the default $CATALINA_HOME/conf/web.xml that comes with tomcat. The comments (line 35 in my version) are pretty clear on the options. Larry >>> [EMAIL PROTECTED] 05/03/02 10:59AM >>> I was hoping that someone could tell me how to stop Directory Listings with Tomcat 4

RE: Log the amount of time taken to complete a request...

2002-05-03 Thread Larry Meadors
Where might a guy find the meanings of those values and any others that are available? I am guessing... h = host l = Hmm, no clue here. u = user t = time request was made r = request s = response (200=ok, 404=not found, etc) b = size in bytes Larry >>> [EMAIL PROTECTED] 05/03/02 10:44AM

Re: JSP's GzippedOutputStream

2002-05-02 Thread Larry Meadors
I do not think so. The JSPWriter is not able to send a byte array (something I found while trying to output a pdf 2 weeks ago...the hard way). It converts byte values to char values which are double bytes in java. Your byte array may look like this {01 02 03}, but the JSPWriter sends out some

Re: How to add a throw exception to a servlet

2002-05-02 Thread Larry Meadors
You can wrap almost any exception in a ServletException and rethrow it that way. The ServletException class allows you to call one of four constructors: 1) <> 2) String 3) String, Throwable 4) Throwable === try{ //some code here that may throw a SQLException... }catch(SQLExcepti

Re: org.apache.jasper.JasperException: Unable to compile classfor JSP

2002-02-18 Thread Larry Meadors
Probably the wrong servlet.jar. I would look there first... >>> [EMAIL PROTECTED] 02/18/02 01:07PM >>> Running a web application on Tomcat 3.3 and trying to move to Tomcat 4.0.2 and now get these errors. org.apache.jasper.JasperException: Unable to compile class for JSP C:\ApacheTomcat\jakart

Re: Compilation error with ant...

2002-02-14 Thread Larry Meadors
Javadoc is complaining because it cannot find the source referenced by the @see tag (in this case the java.lang.Runtime class). It will still create the javadocs, it just will not create the links to the classes that it cannot find. I dealt with this by unzipping the src.jar that comes with the

Re: I can't stand the "UnsatisfiedLinkErrors" anymore withTomcat 4.0.1!

2002-02-12 Thread Larry Meadors
>>Can the class loader used to load the classes in the web app load native libraries... I think that classes in the web app can call native methods, but I am by no stretch of the imagination an expert on this. When I ran the Oracle OCI JDBC driver (which uses native code) it worked in the WEB-INF/

Class reloading in tomcat 3.2.1 - a theory, and one simpleyes/no question...

2001-05-22 Thread Larry Meadors
OK, here is what I am seeing. If I create a simple bean, like this: --- public class Test implements java.io.Serializable { protected String fullName; public String getFullName(){ return fullName; };

javadt with tomcat?

2001-04-20 Thread Larry Meadors
Is it possible to use something like javadt to debug running servlets on a remote machine running tomcat? If so, how? Larry

Possibly OT: Struts questions

2001-04-09 Thread Larry Meadors
I know, I know, I know! Please no flames! This is the tomcat-user list, but I figured this would be a good place to start. Are people using struts now? How stable is it? Is it nearly complete? Within 3 months? 6 months? 12 months? How does struts relate to Cocoon? Competing or complimentary

Re: Internal Servlet Error

2001-04-07 Thread Larry Meadors
Where is the class relative to the jsp? Recheck the docs. I'm not 100% sure, but I think it needs to be in the Web-inf\classes directory under the web app's document root or in your system's classpath. Larry >>> [EMAIL PROTECTED] 04/07/01 10:45AM >>> Hello, I am using Tomcat 3.2 with Window

<    1   2   3