Problem on running my java program on tomcat: there is no IMAP provider
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vijay_subramaniam
Posted On:   Monday, January 27, 2003 06:03 PM

Hi.. i am trying to develop an email application software using java servlet and jsp. I am a new user to the java world. i have configured my tomcat and when place my webmail.class under CATALINA_HOME/webapps/ROOT/WEB-INF/classes/siswamail and other jsp files under CATALINA_HOME/webapps/ROOT. When i tried to login from my login.jsp i got error message like stated below..It is stated that there is no IMAP provider.. but i thought sendmail should do this to me.I am developing this under linux and sendmail is currently running on my pc.. Any help regarding this error message??? root causes: java.lang.reflect.InvocationTargetException atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) atsun.reflect.NativeMetho   More>>

Hi.. i am trying to develop an email application software using java servlet and jsp. I am a new user to the java world. i have configured my tomcat and when place my webmail.class under CATALINA_HOME/webapps/ROOT/WEB-INF/classes/siswamail and other jsp files under CATALINA_HOME/webapps/ROOT.
When i tried to login from my login.jsp i got error message like stated below..It is stated that there is no IMAP provider.. but i thought sendmail should do this to me.I am developing this under linux and sendmail is currently running on my pc.. Any help regarding this error message???


root causes:
java.lang.reflect.InvocationTargetException
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
atorg.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:270)
atorg.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:220)
at org.apache.jsp.mail_jsp._jspService(mail_jsp.java:69) atorg.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
atorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) atorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
atorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
atorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
atorg.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
atorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
atorg.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
atorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
atorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
atorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
atorg.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
atorg.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
atorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
Caused by: javax.mail.NoSuchProviderException: No provider for IMAP
at javax.mail.Session.getProvider(Session.java:289)
at javax.mail.Session.getStore(Session.java:363)
at javax.mail.Session.getStore(Session.java:343)
at siswamail.webmail.connect(webmail.java:90)
at siswamail.webmail.setPassword(webmail.java:78)
... 42 more

   <<Less

Re: Problem on running my java program on tomcat: there is no IMAP provider

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, January 28, 2003 06:47 AM

Where is the "mail.jar" file? (containing the JavaMail API, including the "provider" for IMAP)



Also if you are going to read a mailbox using IMAP, you need an IMAP server, which is not the same as Sendmail. Sendmail is just the SMTP server for sending outgoing messages. You could just keep a local message store yourself without an IMAP or POP server, and just use your Sendmail for sending outgoing messages.

About | Sitemap | Contact