Help me
I am getting following error * org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: Only a type can be imported. org.apache.commons.fileupload.DiskFileUpload resolves to a package Generated servlet error: Only a type can be imported. org.apache.commons.fileupload.FileItem resolves to a package An error occurred at line: 12 in the jsp file: /ProcessFileUpload.jsp Generated servlet error: DiskFileUpload cannot be resolved to a type An error occurred at line: 12 in the jsp file: /ProcessFileUpload.jsp Generated servlet error: DiskFileUpload cannot be resolved to a type An error occurred at line: 12 in the jsp file: /ProcessFileUpload.jsp Generated servlet error: FileItem cannot be resolved to a type An error occurred at line: 12 in the jsp file: /ProcessFileUpload.jsp Generated servlet error: FileItem cannot be resolved to a type WHEN I AM COMPILING THE A JSP FILE(REQESTING THE JSP FILE THROUGH BROWSER) IN JSP I IMPORTED FOLLOWINGS <%@ page import="org.apache.commons.fileupload.DiskFileUpload"%> <%@ page import="org.apache.commons.fileupload.FileItem"%> <%@ page import="java.util.List"%> <%@ page import="java.util.Iterator"%> <%@ page import="java.io.File"%> sO PLEASE HELP ME TO GET IT WORK.IS THIS ERROR IS DUE TO CLASS PATH.IF YES THEN PLS SUGGEST ME WHAT PATH I SET FOR IT
Re: Help me
The problem was for package called org.apache.common.fileupload but when I put the jar file for above package in the C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib directory still it causes differnet error.The error now is... root cause javax.servlet.ServletException: org/apache/commons/io/output/DeferredFileOutputStream org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.ProcessFileUpload_jsp._jspService(org.apache.jsp.ProcessFileUpload_jsp:93) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Birt problem
Can any body tell me how to call BIRT reports from servlet/jsp. I already created a project in eclipse for BIRT report project but don't know how to deploy it on server (Tomcat 4.1) If any body know about it then please let me know as early as possible Thanks for support -- Mir Kasim Ali
How to notify user ...
Hi every body I want to configure my tomcat server for sending sms to the concerned person when ever server goes down.Please tell me If any body has done the same. -- Mir Kasim Ali
Re: flushing system.out
Can u tell me which OS ure using and what version of Tomcat On 6/16/06, Nishant Deshpande <[EMAIL PROTECTED]> wrote: i'm printing stuff out to system.out in tomcat, but it doesn't get flushed till the end of the request. (i've tried system.out.flush()) has anyone got solutions to this problem? i'm not sure if its a tomcat problem or some OS / jvm thing... thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mir Kasim Ali
Re: Problem to download a file from 2 browsers at the time
Better u give the link to file and enter the mime type xls application/vnd.ms-excel In \conf\web.xml and Restart the server Hope this will work On 6/20/06, Rajeev N. Jha <[EMAIL PROTECTED]> wrote: Look at the code, look at the loops, You are trying to download some 105 MB files !!! nombre is like 15 bytes at least (a) either you wait for a real long time (b) or you set the content-length in advance (c) or better still try with small numbers for (int l=0;l<30;l++){ for (int k=0;k<25;k++){ HTH - Rajeev. password password wrote: > I have tried in others browsers and the result is the same. The files > are download but incomplets. And while the JSP continues executing the > code, a don't understand. > > > */"Rajeev N. Jha" <[EMAIL PROTECTED]>/* escribió: > > password password wrote: > > I have this JSP that download an excel file. > > It works fine if I use only one browser at the same time. > > The problem is when I try to do this but from 2 browsers at the > same time, (for example in a same computer). From each browser I > can download a part of the file but not the complete file. > > It seems the browsers are sharing the bandwidth and when it > starts to download a file the other stops. > > > from IE there is some limitation that you can only open 2 concurrent > connections to one domain. > > Thanks > > - Rajeev > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y móviles desde 1 céntimo por minuto. > http://es.voice.yahoo.com > < http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/ > ----- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mir Kasim Ali
Re: Problem to download a file from 2 browsers at the time
Better u give the link to file and enter the mime type xls application/vnd.ms-excel In \conf\web.xml and Restart the server Hope this will work On 6/20/06, password password <[EMAIL PROTECTED]> wrote: I have this JSP that download an excel file. It works fine if I use only one browser at the same time. The problem is when I try to do this but from 2 browsers at the same time, (for example in a same computer). From each browser I can download a part of the file but not the complete file. It seems the browsers are sharing the bandwidth and when it starts to download a file the other stops. I have look the logs, and I saw the file has downloaded to the computer and while the jsp is working. I don't undestand why the file has finished to download and while the jsp is still executing. Can you help me please? do anybody try this JSP and tell me if the result is the same as me? Why is it happening this? --JSP --- <[EMAIL PROTECTED] contentType="application/vnd.ms-excel"%> <%@ page language="java" import="java.io.*"%> <%@ page language="java" import="java.util.*"%> <% Date fecha = new Date(); java.sql.Date fechaSQL = new java.sql.Date(fecha.getTime()); Calendar calendario = Calendar.getInstance(); calendario.setTime(fecha); // fecha es el Date de antes. String strHour = String.valueOf( calendario.get(Calendar.HOUR) ); String strMinute = String.valueOf( calendario.get(Calendar.MINUTE) ); String strSecond = String.valueOf( calendario.get(Calendar.SECOND) ); String nombre = "FILE" + strHour + strMinute + strSecond + ".xls"; System.out.println( " IN OF " + nombre ); response.setContentType( "application/x-download" ); response.setHeader("Content-type","application/vnd.ms-excel"); response.setHeader("Content-Disposition","attachment; filename=\"" + nombre + "\""); System.out.println( nombre + " START" ); for (int l=0;l<3;l++){ System.out.println( nombre + " " + l ); for (int k=0;k<250;k++){ out.write(nombre + " : ("+ l + "," + k + ")" + "\t" ); } out.write("\n"); } System.out.println( nombre + " END" ); %> - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com -- Mir Kasim Ali
Re: J2EE option missing in Eclipse environment for Servlet.
Yes I too have same proble.If sombody have any solution regarding Eclipse 3.2 please suggeset ASAP But in 3.1 you can install plugins for J2EE available at MYECLIPSE.. On 1/4/07, athula bogoda <[EMAIL PROTECTED]> wrote: Hi all, I install eclipse 3.2 with Tomcat 5.0 to run servlets under J2EE. I follow the steps as displayed in the demo by following link. http://mirror.yoxos-eclipse-distribution.de/eclipse.org/technology/phoenix/demos/install-wtp/install-wtp.html But in "Open Perspective" J2EE option is not available. Also "Dinamic web Project" option also not available. What's the wrong on it. Please help me. Thanks, Athula. Send instant messages to your online friends http://uk.messenger.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mir Kasim Ali Software Consultant WOIL-GTEC,Pune Desk No ..:: 020-66056181 Mobile No..::+919423424146
Re: J2EE option missing in Eclipse environment for Servlet.
Thanks its working On 1/4/07, Kristian Rink <[EMAIL PROTECTED]> wrote: athula bogoda schrieb: > I install eclipse 3.2 with Tomcat 5.0 to run servlets > under J2EE. [...] > But in "Open Perspective" J2EE option is not > available. Also "Dinamic web Project" option also not > available. > What's the wrong on it. Did you try to run eclipse -clean after installing the plugins? Did you recieve any error messages while goin' through the installation procedure? Cheers & best, Kristian PS: As this appears to be a tomcat mailing list and this issue is inherently an Eclise one, the eclise newsgroups probably would be a better place to get helpful answers. ;) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mir Kasim Ali Software Consultant WOIL-GTEC,Pune Desk No ..:: 020-66056181 Mobile No..::+919423424146
Re: how to make a scheduled event on tomcat
I all ready Implemented QUARTZ 1.5.2 in my J2EE project so I f u need help on Quartz then I may help u On 2/2/07, Bob Hall <[EMAIL PROTECTED]> wrote: --- Gaurav Kushwaha <[EMAIL PROTECTED]> wrote: > I would like to have a method that will run > every-so-often. Lets say once in > 2 weeks. How do I do that in Tomcat ? > > Thanks, > Gaurav Singh Kushwaha Gaurav, Take a look at quartz: "Quartz is an open source, job scheduler for integration with stand-alone java applications and full-scale J2EE applications. Advanced features include clustering and participation in container managed transactions." <https://quartz.dev.java.net/> -Bob Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mir Kasim Ali Software Consultant WOIL-GTEC,Pune Desk No ..:: 020-66056181 Mobile No..::+919423424146