RE: db jars in common/lib and shared/lib
Yes, finally it worked, Thanks for all who supported this. thanks Kasim -Original Message- From: Hadole, Nishant IN BOM SISL [mailto:nishant.had...@siemens.com] Sent: 10 December 2009 13:25 To: 'Tomcat Users List'; Mohammad, Hammad Kasim Bekur Subject: RE: db jars in common/lib and shared/lib Try following changes in catalina.properties (Avoid spaces) common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1 8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/ lib/*.jar,${catalina.home}/test/lib,${catalina.home}/test/lib/*.jar With best regards, Nishant Hadole -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: Thursday, 10 December, 2009 12:39 PM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib I have found from tomcat wiki page http://wiki.apache.org/tomcat/HowTo it says that: How do I add JARs or classes to the common classloader without adding them to $CATALINA_HOME/common/lib? Edit the file catalina.properties under $CATALINA_BASE/conf; there is a property called common.loader to which you can add additional paths to find JARs or classes for the common classloader. Now I have added another property as: common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1 8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/ lib/*.jar, ${catalina.home}/test/lib/*.jar and created a directory called apache-tomcat-5.5.27\test\lib, I have restarted tomcat server, still I get the same error. Any reason why? many thanks Kasim -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: 10 December 2009 12:14 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Hi, My application is having a restriction that I cannot change or add jars to common/lib, is there anyway I can create a new directory which is equalent to common/lib? What additional changes I need to make for adding another directory? Since If I open I can find tomcat/common/lib, server/lib, shared/lib. All are having its own libraries, I need to add another directory called test/lib and put my db jars, so that when server startup it should identify the db jars from test/lib instead of common lib. many thanks Kasim ext: 34632 Mobile: 9663763720 Skype: kasim.bekur -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: 10 December 2009 10:04 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Can you please provide a link from apache or good site to have justification? many thanks Kasim -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: 09 December 2009 23:36 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Dang it... the db drivers need to be located in common/lib if being used as a source for a connection pool... Sorry for the mistake... -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: Wednesday, December 09, 2009 12:04 PM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Kasim.. did you see Mark's note??? If you are using the connection pool under Tomcat, then the DB drivers need to be located in shared. -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: Wednesday, December 09, 2009 8:14 AM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib It verified and it as given as shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li b/*.jar many thanks Kasim -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 09 December 2009 19:39 To: Tomcat Users List Subject: Re: db jars in common/lib and shared/lib Joseph Morgan wrote: > Mohammad, > > Look in your Tomcat/conf/catalina.properties file. Within there you'll > find a "shared.loader=" line, and I suspect it is empty. You'll likely > want to enter a value there, such as > "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar" Nope. That is Tomcat 6. The OP is using 5.5.x Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be p
RE: db jars in common/lib and shared/lib
I have found from tomcat wiki page http://wiki.apache.org/tomcat/HowTo it says that: How do I add JARs or classes to the common classloader without adding them to $CATALINA_HOME/common/lib? Edit the file catalina.properties under $CATALINA_BASE/conf; there is a property called common.loader to which you can add additional paths to find JARs or classes for the common classloader. Now I have added another property as: common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1 8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/ lib/*.jar, ${catalina.home}/test/lib/*.jar and created a directory called apache-tomcat-5.5.27\test\lib, I have restarted tomcat server, still I get the same error. Any reason why? many thanks Kasim -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: 10 December 2009 12:14 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Hi, My application is having a restriction that I cannot change or add jars to common/lib, is there anyway I can create a new directory which is equalent to common/lib? What additional changes I need to make for adding another directory? Since If I open I can find tomcat/common/lib, server/lib, shared/lib. All are having its own libraries, I need to add another directory called test/lib and put my db jars, so that when server startup it should identify the db jars from test/lib instead of common lib. many thanks Kasim ext: 34632 Mobile: 9663763720 Skype: kasim.bekur -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: 10 December 2009 10:04 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Can you please provide a link from apache or good site to have justification? many thanks Kasim -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: 09 December 2009 23:36 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Dang it... the db drivers need to be located in common/lib if being used as a source for a connection pool... Sorry for the mistake... -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: Wednesday, December 09, 2009 12:04 PM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Kasim.. did you see Mark's note??? If you are using the connection pool under Tomcat, then the DB drivers need to be located in shared. -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: Wednesday, December 09, 2009 8:14 AM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib It verified and it as given as shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li b/*.jar many thanks Kasim -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 09 December 2009 19:39 To: Tomcat Users List Subject: Re: db jars in common/lib and shared/lib Joseph Morgan wrote: > Mohammad, > > Look in your Tomcat/conf/catalina.properties file. Within there you'll > find a "shared.loader=" line, and I suspect it is empty. You'll likely > want to enter a value there, such as > "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar" Nope. That is Tomcat 6. The OP is using 5.5.x Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or
RE: db jars in common/lib and shared/lib
Hi, My application is having a restriction that I cannot change or add jars to common/lib, is there anyway I can create a new directory which is equalent to common/lib? What additional changes I need to make for adding another directory? Since If I open I can find tomcat/common/lib, server/lib, shared/lib. All are having its own libraries, I need to add another directory called test/lib and put my db jars, so that when server startup it should identify the db jars from test/lib instead of common lib. many thanks Kasim ext: 34632 Mobile: 9663763720 Skype: kasim.bekur -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: 10 December 2009 10:04 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Can you please provide a link from apache or good site to have justification? many thanks Kasim -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: 09 December 2009 23:36 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Dang it... the db drivers need to be located in common/lib if being used as a source for a connection pool... Sorry for the mistake... -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: Wednesday, December 09, 2009 12:04 PM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Kasim.. did you see Mark's note??? If you are using the connection pool under Tomcat, then the DB drivers need to be located in shared. -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: Wednesday, December 09, 2009 8:14 AM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib It verified and it as given as shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li b/*.jar many thanks Kasim -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 09 December 2009 19:39 To: Tomcat Users List Subject: Re: db jars in common/lib and shared/lib Joseph Morgan wrote: > Mohammad, > > Look in your Tomcat/conf/catalina.properties file. Within there you'll > find a "shared.loader=" line, and I suspect it is empty. You'll likely > want to enter a value there, such as > "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar" Nope. That is Tomcat 6. The OP is using 5.5.x Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: db jars in common/lib and shared/lib
Can you please provide a link from apache or good site to have justification? many thanks Kasim -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: 09 December 2009 23:36 To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Dang it... the db drivers need to be located in common/lib if being used as a source for a connection pool... Sorry for the mistake... -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: Wednesday, December 09, 2009 12:04 PM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib Kasim.. did you see Mark's note??? If you are using the connection pool under Tomcat, then the DB drivers need to be located in shared. -Original Message- From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] Sent: Wednesday, December 09, 2009 8:14 AM To: Tomcat Users List Subject: RE: db jars in common/lib and shared/lib It verified and it as given as shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li b/*.jar many thanks Kasim -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 09 December 2009 19:39 To: Tomcat Users List Subject: Re: db jars in common/lib and shared/lib Joseph Morgan wrote: > Mohammad, > > Look in your Tomcat/conf/catalina.properties file. Within there you'll > find a "shared.loader=" line, and I suspect it is empty. You'll likely > want to enter a value there, such as > "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar" Nope. That is Tomcat 6. The OP is using 5.5.x Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: db jars in common/lib and shared/lib
It verified and it as given as shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li b/*.jar many thanks Kasim -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: 09 December 2009 19:39 To: Tomcat Users List Subject: Re: db jars in common/lib and shared/lib Joseph Morgan wrote: > Mohammad, > > Look in your Tomcat/conf/catalina.properties file. Within there you'll > find a "shared.loader=" line, and I suspect it is empty. You'll likely > want to enter a value there, such as > "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar" Nope. That is Tomcat 6. The OP is using 5.5.x Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: db jars in common/lib and shared/lib
Tomcat: apache-tomcat-5.5.27 OS: Windows NT. Ant: 1.7 Not from OS, downloaded version. many thanks Kasim -Original Message- From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Sent: 09 December 2009 19:07 To: Tomcat Users List Subject: Re: db jars in common/lib and shared/lib 2009/12/9 Mohammad, Hammad Kasim Bekur > I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and > db2jcc_license_cu.jar ) in tomcat/common/lib, and started ant target to > run the tomcat, server started up properly. > > Now I have removed these jar from common/lib and put under shared/lib, > server throws an error saying couldnot load the driver. > > Can you please let me know why it is working when it is in common/lib > and why it is not working when it is in shared/lib directory? > > It would help to have a few more details about your setup: Operating system? Tomcat version? The locations to put files have changed over the years. Is this Tomcat installed from http://tomcat.apache.org or is it a repackaged version that came with your operating system? - Peter "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
db jars in common/lib and shared/lib
Hi, I have placed my db jars(ie db2jcc.jar, db2jcc_javax.jar and db2jcc_license_cu.jar ) in tomcat/common/lib, and started ant target to run the tomcat, server started up properly. Now I have removed these jar from common/lib and put under shared/lib, server throws an error saying couldnot load the driver. Can you please let me know why it is working when it is in common/lib and why it is not working when it is in shared/lib directory? many thanks Kasim "Misys" is the trade name for Misys plc (registered in England and Wales). Registration Number: 01360027. Registered office: One Kingdom Street, London W2 6BL, United Kingdom. For a list of Misys group operating companies please go to http://www.misys.com/corp/About_Us/misys_operating_companies.html. This email and any attachments have been scanned for known viruses using multiple scanners. This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person. This email does not constitute the commencement of legal relations between you and Misys plc. Please refer to the executed contract between you and the relevant member of the Misys group for the identity of the contracting party with which you are dealing.
Re: tomcat server start up without looking dependency jars
Hi thanks a lot for your response and valuable inputs. I want to avoid looking of that classes during server startup, my requirement is, specified classes/properties should lookup only when my war file deployed. many thanks, Kasim From: Jorge Medina To: Tomcat Users List Sent: Sat, December 5, 2009 8:03:30 PM Subject: Re: tomcat server start up without looking dependency jars hi Ahmed, JAR files are not "loaded" by Tomcat. A jar file is just a container of classes, the classes are loaded by the JVM when the code makes reference to them. If you specify a on your context.xml, then Tomcat will look for those classes (the driverClassName), but that does not mean that a connection to the database is established at that point in time. It only means that the driver has been loaded. Your application is responsible to ask for a connection whenever it wishes. On Sat, Dec 5, 2009 at 7:17 AM, ahmed kasim wrote: > Hi, > > I have few jars which need to get loaded only when the war file is getting > loaded or when the request comes, to be more clear I have some jar which is > having connection to DB, if I specify in my context.xml file it is getting > loaded when the server getting started up initially, so I want to avoid this > and make it when my war file gets loaded the db connection should get > loaded. > > driverClassName="com.ibm.db2.jcc.DB2Driver" > url="jdbc:db2://localhost:5/SPARK" username="db2admin" > password="d...@dmin" maxActive="20" maxIdle="10" maxWait="-1"/> > > I have three jar file specified for Resource , if i place jar file it is > getting loaded and server starts up looking for connection with db. > > How can I avoid server starting time look up and make it available only > when I deploy the war file. > > many thanks, > Kasim > > >
tomcat server start up without looking dependency jars
Hi, I have few jars which need to get loaded only when the war file is getting loaded or when the request comes, to be more clear I have some jar which is having connection to DB, if I specify in my context.xml file it is getting loaded when the server getting started up initially, so I want to avoid this and make it when my war file gets loaded the db connection should get loaded. I have three jar file specified for Resource , if i place jar file it is getting loaded and server starts up looking for connection with db. How can I avoid server starting time look up and make it available only when I deploy the war file. many thanks, Kasim
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
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: 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: 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: 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: 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
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
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
RE: Hellp me Don't know whats the problem
Yes -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, March 23, 2006 5:34 PM To: Tomcat Users List Subject: RE: Hellp me Don't know whats the problem Does your WEB-INF/classes folder have the class stationname.class i.e in the default package? And then is it imported with a page directive in the JSP? -Original Message- From: Kasim [mailto:[EMAIL PROTECTED] Sent: 23 March 2006 12:04 To: Tomcat Users List Subject: RE: Hellp me Don't know whats the problem This is the code generating the problem Southern Command function show(this_layer) { this_layer.style.visibility='visible'; } function hide(this_layer) { this_layer.style.visibility='hidden'; } function make_bold(x) { x.style.fontSize='11px'; } function make_normal(x) { x.style.fontSize='10px'; } function openwindow(stationcode) { window.close(); window.open('station_index.jsp?stationcode='+stationcode, 'Station', 'resizable=yes,scrollbars=no,toolbar=yes,status=yes,dependant=no') } div.for_layer1 { z-index:2; visibility:hidden; position:absolute; top:120px; left:155px; } table.for_layer1 { border:2px solid #99; color:#FF; font-family:arial; font-size:10px; cursor:hand; background-color:"#ced6ff" } tr.for_layer1 { background-color:"#BB3D00"; } div.for_layer2 { z-index:2; visibility:hidden; position:absolute; top:150px; left:155px; } table.for_layer2 { border:2px solid #006600; color:#FF; font-family:arial; font-size:10px; cursor:hand; background-color:"#ced6ff"; } tr.for_layer2 { background-color:"#006600"; } div.for_layer3 { z-index:2; visibility:hidden; position:absolute; top:90px; left:155px; } table.for_layer3 { border:2px solid #663399; color:#FF; font-family:arial; font-size:10px; cursor:hand; background-color:"#ced6ff"; } tr.for_layer3 { background-color:"#99"; } div.for_layer4 { z-index:2; visibility:hidden; position:absolute; top:205px; left:155px; } table.for_layer4 { border:2px solid #FF0033; color:#FF; font-family:arial; font-size:10px; cursor:hand; background-color:"#FF"; } tr.for_layer4 { background-color:"#990033"; } <% Vector chennailist=station.getData("chennai"); Vector jaipurlist=station.getData("jaipur"); Vector hyderabadlist=station.getData("hyderabad"); Vector punelist=station.getData("pune"); %> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hellp me Don't know whats the problem
This is the code generating the problem Southern Command function show(this_layer) { this_layer.style.visibility='visible'; } function hide(this_layer) { this_layer.style.visibility='hidden'; } function make_bold(x) { x.style.fontSize='11px'; } function make_normal(x) { x.style.fontSize='10px'; } function openwindow(stationcode) { window.close(); window.open('station_index.jsp?stationcode='+stationcode, 'Station', 'resizable=yes,scrollbars=no,toolbar=yes,status=yes,dependant=no') } div.for_layer1 { z-index:2; visibility:hidden; position:absolute; top:120px; left:155px; } table.for_layer1 { border:2px solid #99; color:#FF; font-family:arial; font-size:10px; cursor:hand; background-color:"#ced6ff" } tr.for_layer1 { background-color:"#BB3D00"; } div.for_layer2 { z-index:2; visibility:hidden; position:absolute; top:150px; left:155px; } table.for_layer2 { border:2px solid #006600; color:#FF; font-family:arial; font-size:10px; cursor:hand; background-color:"#ced6ff"; } tr.for_layer2 { background-color:"#006600"; } div.for_layer3 { z-index:2; visibility:hidden; position:absolute; top:90px; left:155px; } table.for_layer3 { border:2px solid #663399; color:#FF; font-family:arial; font-size:10px; cursor:hand; background-color:"#ced6ff"; } tr.for_layer3 { background-color:"#99"; } div.for_layer4 { z-index:2; visibility:hidden; position:absolute; top:205px; left:155px; } table.for_layer4 { border:2px solid #FF0033; color:#FF; font-family:arial; font-size:10px; cursor:hand; background-color:"#FF"; } tr.for_layer4 { background-color:"#990033"; } <% Vector chennailist=station.getData("chennai"); Vector jaipurlist=station.getData("jaipur"); Vector hyderabadlist=station.getData("hyderabad"); Vector punelist=station.getData("pune"); %> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hellp me Don't know whats the problem
I am facing following problem while executing my project. Please suggest me the solution.I am using Tomcat 5.0 and Mysql in backend Here stationname is a bean type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /view_main.jsp Generated servlet error: stationname cannot be resolved to a type An error occurred at line: 4 in the jsp file: /view_main.jsp Generated servlet error: stationname cannot be resolved to a type An error occurred at line: 4 in the jsp file: /view_main.jsp Generated servlet error: stationname cannot be resolved to a type An error occurred at line: 142 in the jsp file: /view_main.jsp Generated servlet error: Vector cannot be resolved to a type An error occurred at line: 142 in the jsp file: /view_main.jsp Generated servlet error: Vector cannot be resolved to a type An error occurred at line: 142 in the jsp file: /view_main.jsp Generated servlet error: Vector cannot be resolved to a type An error occurred at line: 142 in the jsp file: /view_main.jsp Generated servlet error: Vector cannot be resolved to a type org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra pper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 75) 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) root cause org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /view_main.jsp Generated servlet error: stationname cannot be resolved to a type An error occurred at line: 4 in the jsp file: /view_main.jsp Generated servlet error: stationname cannot be resolved to a type An error occurred at line: 4 in the jsp file: /view_main.jsp Generated servlet error: stationname cannot be resolved to a type An error occurred at line: 142 in the jsp file: /view_main.jsp Generated servlet error: Vector cannot be resolved to a type An error occurred at line: 142 in the jsp file: /view_main.jsp Generated servlet error: Vector cannot be resolved to a type An error occurred at line: 142 in the jsp file: /view_main.jsp Generated servlet error: Vector cannot be resolved to a type An error occurred at line: 142 in the jsp file: /view_main.jsp Generated servlet error: Vector cannot be resolved to a type org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409) org.apache.jasper.compiler.Compiler.compile(Compiler.java:297) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 63) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 03) 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) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs. Apache Tomcat/5.5.15 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem
Assalamoalikum Dear this is due to the variable which you wants to prints its value but value is not yet assigned. So check out the variables defined in your jsp page or servlet.Generally some variables value depends on the request .We extract the parameter from request object and assigned that value to variables defined locally and then process those variables but while processing (eg parsing the value of variable) the variable such exception rises. So please check out the value of variables before processing it.I hope this will help you to clear the bug which you face frequently... -Original Message- From: Rameez [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 01, 2006 6:19 PM To: users@tomcat.apache.org Subject: problem Does anyone know why the following could occur? It happens not infrequently with our software. This happens in Tomcat 4. Thanks in advance for any help. regards, Rameez java.lang.NullPointerException at org.apache.coyote.tomcat4.CoyoteRequestFacade.setAttribute(CoyoteRequestFaca de.java:234) at com.itanetworks.spammarshall.webfront.servlet.helper.AdminWorker._$41797(Adm inWorker.java:2669) at com.itanetworks.spammarshall.webfront.servlet.helper.AdminWorker.processRequ est(AdminWorker.java:4298) at com.itanetworks.spammarshall.webfront.servlet.FrontController._$42178(FrontC ontroller.java:55) at com.itanetworks.spammarshall.webfront.servlet.FrontController.doGet(FrontCon troller.java:33) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..j ava:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..j ava:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:595) --- STATEMENT OF CONFIDENTIALITY This email is intended for the addressee only and may contain information that is privileged and confidential. If you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If this email has been sent to you in error, please notify us immediately. ---
RE: regarding tomcat port no
Default port it uses 8080 .In order to change your tomcat port setting you have to modify in server.xml which reside at /conf Change the port no there and save it and restart the tomcat server.After restarting the server new port is going to be used Default port for http request is 80 so better to set that port provided other services (http) is not using it -Original Message- From: bhavik shah [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 12:05 AM To: users@tomcat.apache.org Subject: regarding tomcat port no Hi, in my system we installed the tomcat on unix system which can be used through different port I forget those port noHow should I know which port no is excesssing tomcat thanks bhavik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: configuration of Apache.
Hello dear The solution for your problem is ... Put all your jsp pages at \webapps\ROOT Modify the existing web.xml present at \webapps\ROOT\web-inf for your application.If you are using only jsp then there is no need to add web.xml but if you are using servlets then put the following lines in it.Suppose you have myServlet.class in classes folder then put the following lines at web.xml myServlet /myServlet myServlet /callingName now fire the url as as http://xx.xx.xx.xx:8080/callingName -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, February 25, 2006 7:53 PM To: users@tomcat.apache.org Subject: configuration of Apache. Importance: High Hi, I recently went in for hosting on a windows platform with jsp. The url for the jsp server i got was http://xx.xx.xx.xx:8080/username/index.jsp . I was told that i will have to use this url only or my jsp files will not execute. Though the files are placed in the root of the webserver. i will have to use the url with the username if i want my jsp to execute. please let me know the required changes so that i will be able to execute my jsp files with the url being displayed as http://xx.xx.xx.xx:8080/index.jsp . i.e without the username in the url. Since i have also installed Apache and know it can be done. Details : Apache Tomcat/4.1.31 Windows 2003 IIS 5.0 Thanks N.Mathew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with tomcat
when ever i am calling the jsp page Instead of it its code is been opening in notepad.So can any body tell me the solution - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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)
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