java - javax.servlet.unavailablexception on jwebmail launch -


i'm having trouble on using popular jwebmail (or java webmail) jar on both tomcat 5.5 , 6.

i trying make work on tomcat 6, , have put javamail jar on lib folder of tomcat found somewhere advised, still cannot make run.

i got error:

jul 22, 2013 10:28:54 org.apache.catalina.core.standardwrappervalve invoke severe: excepción de reserva de espacio para servlet webmail javax.servlet.unavailableexception     @ net.wastl.webmail.server.webmailserver.initstorage(unknown source)     @ net.wastl.webmail.server.webmailserver.doinit(unknown source)     @ net.wastl.webmail.server.webmailservlet.init(unknown source)     @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1213)     @ org.apache.catalina.core.standardwrapper.allocate(standardwrapper.java:827)     @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:129)     @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:191)     @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:127)     @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:103)     @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109)     @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:293)     @ org.apache.coyote.http11.http11processor.process(http11processor.java:861)     @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:606)     @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:489)     @ java.lang.thread.run(unknown source) 

but have last javax mail jar oracle website. there no net.wastl.webmail.server.webmailserver class in there maybe missing else , don't find post around solved

thanks in advance

edit:

i found code, must inside war classes, exception seems rising, still don't understand happening there

protected void initstorage() { /* storage api */     try {         class storage_api=class.forname(config.getproperty("webmail.storage"));          class[] tmp=new class[1];         tmp[0]=class.forname("net.wastl.webmail.server.webmailserver");         constructor cons=storage_api.getconstructor(tmp);          object[] sargs=new object[1];         sargs[0]=this;          storage=(storage)cons.newinstance(sargs);      } catch(invocationtargetexception e) {         throwable t=e.gettargetexception();         system.err.println("nested exception: ");         t.printstacktrace();         system.err.println("fatal error. not initialize. exiting now!");         system.exit(1);     } catch(exception e) {         e.printstacktrace();         system.err.println("fatal error. not initialize. exiting now!");         system.exit(1);     } } 

you getting unavailableexception servlet webmail. because (temporarely or permanently) unavailable. reason bad configuration of servlet.

you check configuration of servlet in web.xml file. check tomcat logs hints cause.

note in earlier servlet specifications (2.3 , lower think) order of elements in web.xml matters.

also note oracle's javamail ist not same jwebmail. not expect find classes using there.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -