Re: Performance problem with Tomcat?

2007-02-15 Thread Zack Grafton
Zack Michal Glowacki wrote: That is right, only for the first time, even 10-12 secs, but later maximum 2. Thanks for all help, Michal - Original Message - From: "Zack Grafton" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, February 15, 2007 5

Re: Jsp gest 404 error

2007-02-15 Thread Zack Grafton
ain. joao -Original Message----- From: Zack Grafton [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 8:26 AM To: Tomcat Users List Subject: Re: Jsp gest 404 error Hello Again, Every web application requires a WEB-INF/web.xml file. If that file isn't there, Tomcat won't tre

Re: Performance problem with Tomcat?

2007-02-15 Thread Zack Grafton
Michal, Your JSP files will be compiled regardless the first time they are accessed. If you try refreshing the page, or loading it in a different browser, you might notice a speed up. You can also precompile your JSP files and that should also speed up the first access. Please let us know

Re: Cannot save file to Apache Tomcat server

2007-02-15 Thread Zack Grafton
Hello Your problem might stem from two issues that I can see. One, in ServletIdea.java you're output stream is trying to open C://. I'm no expert, but you might want to try a single forward slash. Java should convert the single forward slashes to single backslashes for you. The other issu

Re: Jsp gest 404 error

2007-02-15 Thread Zack Grafton
ge somepage.jsp, for example, shows up. I am not sure at all what the problem is. And I don't know if this helps me, but is there a way to log the errors so that I can at least try to figure out what's wrong ? -----Original Message- From: Zack Grafton [mailto:[EMAIL PROTECTED] Sent: Wed

Re: Jsp gest 404 error

2007-02-14 Thread Zack Grafton
Hello, Everything in the WEB-INF directory isn't directly accessible; meaning, if you type in something like http://localhost:8080/myapp/WEB-INF/index.jsp, you will get a 404 error. Where you should place them is entirely dependent on you. You can write controller servlets and use a Request

Re: A Howto for Tomcat 6.0.9, mod_jk, apache 2.2 load balancing + session replication

2007-02-13 Thread Zack Grafton
Sriram, If you would like some google indexed webspace to post this howto, let me know. Zack Sriram Narayanan wrote: Hi all: I just got this working, so I thought of posting a small howto for the list :) An apache instance (httpd) that se

Re: meanings of "-lapr-0 -lgcc -lc -lsocket -lnsl" in Makefile while building nsapi_redirector.so

2007-01-30 Thread Zack Grafton
Maulik, In the line: LD_SHAREDCMD=ld -G -fPIC -lapr-0 -lgcc -lc -lsocket -lnsl I can't tell which one is bold, but anyway, that line specifies which linker command to use, and the -l options specify the loading of a library. You should check the man page for 'ld'. And in the line: CC_CMD= g

Re: User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not useable.

2007-01-23 Thread Zack Grafton
The reason they don't load the classes where ever they may be found is because different web apps may be using different versions of the API. This could provide inconsistencies that could cause applications to fail unexpectedly, or cause errors more abstract than most developers would want to

Re: Tomcat and jdbc over MS SQL Server

2007-01-19 Thread Zack Grafton
Hi, It is possible, there are 2 different methods. The JDBC-ODBC bridge, here's a link on the subject http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html And, depending on your version of SQL Server you could use the one provided by Microsoft, For SQL Server 2000 http://

Re: tomcat in the embedded device

2007-01-17 Thread Zack Grafton
Peter Crowther wrote: From: Vamshidhar Palkonda [mailto:[EMAIL PROTECTED] Space is not a problem on the device. The device will be running Linux. One other reason is why I am thinking of tomcat is I am familiar with Java but not C,C++. We are starting from the scratch. And there are not many

Re: Applet does not send request to servlet

2007-01-17 Thread Zack Grafton
I would have to agree with the attachment capability of this mailing list. Zack Andre Prasetya wrote: i think attachments are disabled... On 1/17/07, Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote: Hi, I already solve the problem of loading my applet in the web browser. Thank you to all.

Re: Cannot load applet on web browser

2007-01-16 Thread Zack Grafton
I totally agree with Vacuum Joe on his point at getting familiar with Tomcat. As well, I believe the applet tag is considered deprecated with most of the newer versions of Java. There is a program in the bin folder under your Java installation directory called HtmlConverter. This program wil

Re: Questions about JSP programming

2007-01-15 Thread Zack Grafton
Rashmi Rubdi wrote: I replied about the same time Zack replied, didn't know he was taking care of this. From you recent reply, by compilation do you mean JSPC pre-compilation? Or on the fly compile? Because I do get this error with on the fly compile (didn't try JSPC): org.apache.jasper.Jaspe

Re: Questions about JSP programming

2007-01-14 Thread Zack Grafton
Xuekun Hu wrote: Zack, thanks for replying. Xuekun, The reason why you are probably getting a file size thats one byte larger than expected is that the JSP processor doesn't remove any whitespace after it includes the other pages content. For example, <%@ include page="request.getParameter("f

Re: Questions about JSP programming

2007-01-14 Thread Zack Grafton
ts not working? My guess would almost be that the machine is running out of memory because it is storing the contents of the file in memory. That's just a guess though. Zack Grafton - To start a new topic, e-mail

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Zack Grafton
hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Zack Grafton
hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Zack Grafton
hui zhang wrote: Zack Grafton wrote: hui zhang wrote: Hi Everybody, Now I am trying to launch an external application, for example, "top" ,in my web application, and killing it by PID after a while. But when I execute Runtime.getRuntime.exec("top") in my JSP page or

Re: Runtime.getRuntime.exec() problem

2007-01-14 Thread Zack Grafton
ecuting commands from applets and such. Another thing might be user permissions as well. You could try executing the command and redirecting the output to a file and parsing the file instead. Zack Grafton - To start a new t