Making it work on Tomcat6?

nhano yup
  • nhano yup

    nhano yup - 2013-07-22

    I'm having some trouble on using the popular jWebmail (or Java Webmail) jar on both tomcat 5.5 and 6.

    I am currently trying to make it work on Tomcat 6, and I have put the javamail jar on the lib folder of tomcat as I found somewhere advised, but still cannot make it to run.

    I got this error:

    jul 22, 2013 10:28:54 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Excepción de reserva de espacio para servlet WebMail
        at net.wastl.webmail.server.WebMailServer.initStorage(Unknown Source)
        at net.wastl.webmail.server.WebMailServer.doInit(Unknown Source)
        at net.wastl.webmail.server.WebMailServlet.init(Unknown Source)
        at org.apache.catalina.core.StandardWrapper.loadServlet(
        at org.apache.catalina.core.StandardWrapper.allocate(
        at org.apache.catalina.core.StandardWrapperValve.invoke(
        at org.apache.catalina.core.StandardContextValve.invoke(
        at org.apache.catalina.core.StandardHostValve.invoke(
        at org.apache.catalina.valves.ErrorReportValve.invoke(
        at org.apache.catalina.core.StandardEngineValve.invoke(
        at org.apache.catalina.connector.CoyoteAdapter.service(
        at org.apache.coyote.http11.Http11Processor.process(
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
        at Source)

    but I do have the last javax mail jar from Oracle website. There is no net.wastl.webmail.server.WebMailServer class in there so maybe I am missing something else and I don't find any post around where it is already solved

    I found this code, that must be inside the war classes, where the exception seems to be rising, but still don't understand what is happening there

    protected void initStorage() {
    /* Storage API */
        try {
            Class storage_api=Class.forName(config.getProperty(""));
            Class[] tmp=new Class[1];
            Constructor cons=storage_api.getConstructor(tmp);
            Object[] sargs=new Object[1];
        } catch(InvocationTargetException e) {
            Throwable t=e.getTargetException();
            System.err.println("Nested exception: ");
            System.err.println("Fatal error. Could not initialize. Exiting now!");
        } catch(Exception e) {
            System.err.println("Fatal error. Could not initialize. Exiting now!");

    thanks in advance

  • Blaine Simpson

    Blaine Simpson - 2013-07-22

    Looks like a classpath visibility problem, but can't tell visibility to what without the full stack trace. Rebuild the war with debugging so that the stack trace will report the source code file and line number where the exception is being thrown.

  • nhano yup

    nhano yup - 2013-07-23

    Easy to say :) not my code! I am also trying this but I face some problems with an ivy sentence...


    I've been totally unable to run it in a Windows. In a linux deploys and works just fine


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks