Exexting threads in Tomcat
Hi All, I am using JSF framework for my project. I don't know if Tomcat is restcting me or JSF framework is restricting me. But I am unable to create and execute threads either in my JSF pages or my managed beans. I have created and exected threads successfully in this http://www.mystudentapartments.com There I have used normal JSPs But I am facing problem on this in my current project. Please help Thanks Sudhakar
Executing threads in Tomcat
Hi All, I am using JSF framework for my project. I don't know if Tomcat is restcting me or JSF framework is restricting me. But I am unable to create and execute threads either in my JSF pages or my managed beans. I have created and exected threads successfully in this http://www.mystudentapartments.com There I have used normal JSPs But I am facing problem on this in my current project. Please help Thanks Sudhakar
Can I call My thread class in JSP/Java Bean??
Hi All, Can I call thread classes in my JSP or Java Bean classes?? The reason why I am asking is, I have a situation in which if a person registers as a consumer, then a mail shud be sent to providers that who matches the consumers requirements There is a possinbilty of sending more than 100 mails at an instance. So after successful registration by consumer, I don't want to put the consumer in wait mode, So I have created a thread class and I am trying to send the mail in the thread class But the problem is although I called thread.start method, my run method is not invoking. I thought there could be a problem with my code and tested with standalone java class. In standalone class I am able to send the mail. So, I don't know why tomcat is rejecting the My thread execution. Any Ideas?? here is my code // calling the thread jiya.general.results.MailThread mailThread =new jiya.general.results.MailThread(); mailThread.start(); //sending the mail private void sendMail() throws JiyaException { JiyaMailComponent jmc=new JiyaMailComponent(); jmc.setServer(192.12.0.91); jmc.setUser([EMAIL PROTECTED]); jmc.setPassword(a); jmc.setFromAddress([EMAIL PROTECTED]); jmc.setContentType(text/plain); jmc.setTo([EMAIL PROTECTED]); jmc.setSubject(Some Subject); jmc.setBody(test body); jmc.send(); } //this is inner class of My main class class MailThread extends Thread implements Runnable { public MailThread() { log(Entered here at mail thread execution); // here I am to see the log info in log file } public void run() { try{ sendMail(); //not coming to this stage } catch(Exception ex) { throw new RuntimeException(ex); } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception initializing TldLocationsCache: zip file closed
Hi All, What is this Bug?? Exception initializing TldLocationsCache: zip file closed This exception wasn't logged till yesterday. What ever the log messages I have in my Java classess, I am not able to see them and find the above specified error in log file. I am using tomcat 4.3.2 and my JSP programming is using Sun RI implementation of JSF Framework Thanks Sudhakar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set the user created tld in web.xml??
This is what I have taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd version=2.0 tlib-version0.1/tlib-version jsp-version1.2/jsp-version short-namea/short-name urihttp://www.jiyaJobs.com//uri display-nameJiya Library/display-name description The AddOns Tag Library is a tag library containing JavaServer Faces component+renderer custom actions. It contains no dependencies on any other APIs and libraries except for the following standard APIs: * JavaServer Faces (version 1.0 or later) * JavaServer Pages (JSP) (version 1.2 or later) * Servlet (version 2.3 or later) /description /taglib Am I missing anything?? On 7/12/05, Tim Funk [EMAIL PROTECTED] wrote: It looks like your tld file is missing the uri element. For example: taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd version=2.0 ... urihttp://www.jiyaJobs.com//uri ... /taglib Also be sure the tag file is in /WEB-INF/ -Tim IndianAtTech wrote: Hi All, I am facing a problem in setting the user created tld file in web.xml If I don't specify anything in web.xml I am getting below error Exception Handler Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error. Exception Details: org.apache.jasper.JasperException This absolute uri (http://www.jiyaJobs.com/) cannot be resolved in either web.xml or the jar files deployed with this application Possible Source of Error: Class Name: org.apache.jasper.compiler.DefaultErrorHandler File Name: DefaultErrorHandler.java Method Name: jspError Line Number: 105 Source not available. Information regarding the location of the exception can be identified using the exception stack trace below. Stack Trace: org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159) org.apache.jasper.compiler.JspDocumentParser.addCustomTagLibraries(JspDocumentParser.java:459) org.apache.jasper.compiler.JspDocumentParser.startElement(JspDocumentParser.java:189) org.apache.xerces.parsers.AbstractSAXParser.startElement( Unknown Source ) org.apache.xerces.impl.dtd.XMLDTDValidator.startElement( Unknown Source ) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( Unknown Source ) org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook( Unknown Source ) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( Unknown Source ) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument( Unknown Source ) org.apache.xerces.parsers.XML11Configuration.parse( Unknown Source ) org.apache.xerces.parsers.XML11Configuration.parse( Unknown Source ) org.apache.xerces.parsers.XMLParser.parse( Unknown Source ) org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source ) javax.xml.parsers.SAXParser.parse(SAXParser.java:345) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:156) org.apache.jasper.compiler.ParserController.parse(ParserController.java:193) org.apache.jasper.compiler.ParserController.parse(ParserController.java:153) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227) org.apache.jasper.compiler.Compiler.compile(Compiler.java:369) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221) com.sun.faces.lifecycle.LifecycleImpl.render
How to set the user created tld in web.xml??
Hi All, I am facing a problem in setting the user created tld file in web.xml If I don't specify anything in web.xml I am getting below error Exception Handler Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error. Exception Details: org.apache.jasper.JasperException This absolute uri (http://www.jiyaJobs.com/) cannot be resolved in either web.xml or the jar files deployed with this application Possible Source of Error: Class Name: org.apache.jasper.compiler.DefaultErrorHandler File Name: DefaultErrorHandler.java Method Name: jspError Line Number: 105 Source not available. Information regarding the location of the exception can be identified using the exception stack trace below. Stack Trace: org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159) org.apache.jasper.compiler.JspDocumentParser.addCustomTagLibraries(JspDocumentParser.java:459) org.apache.jasper.compiler.JspDocumentParser.startElement(JspDocumentParser.java:189) org.apache.xerces.parsers.AbstractSAXParser.startElement( Unknown Source ) org.apache.xerces.impl.dtd.XMLDTDValidator.startElement( Unknown Source ) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( Unknown Source ) org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook( Unknown Source ) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( Unknown Source ) org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument( Unknown Source ) org.apache.xerces.parsers.XML11Configuration.parse( Unknown Source ) org.apache.xerces.parsers.XML11Configuration.parse( Unknown Source ) org.apache.xerces.parsers.XMLParser.parse( Unknown Source ) org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source ) javax.xml.parsers.SAXParser.parse(SAXParser.java:345) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:156) org.apache.jasper.compiler.ParserController.parse(ParserController.java:193) org.apache.jasper.compiler.ParserController.parse(ParserController.java:153) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227) org.apache.jasper.compiler.Compiler.compile(Compiler.java:369) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)