Installation problem

2006-12-27
2013-04-25
  • OpenVMS sysmgr
    OpenVMS sysmgr
    2006-12-27

    I'm trying to start yawebmail on
    OpenVMS
    Tomcat 5.5.9
    Java 1.4.2
    but I get the error ateached below when I try to access the url
    http://mysite:8080/yawebmail/

    Could you help me ?

    Thanks,
    Franz

    HTTP Status 500 -

    --------------------------------------------------------------------------------

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java)
        org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java)
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java)
        org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java)
        java.lang.Thread.run(Thread.java:534)

    root cause

    java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.
    A typical config looks like this;
    <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>

        javax.faces.FactoryFinder.getFactory(FactoryFinder.java)
        javax.faces.webapp.FacesServlet.init(FacesServlet.java)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java)
        org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java)
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java)
        org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java)
        java.lang.Thread.run(Thread.java:534)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.

    --------------------------------------------------------------------------------

    Apache Tomcat/5.5.9

     
    • Stephan Sann
      Stephan Sann
      2006-12-28

      Sounds like you have a general problem with MyFaces. Does the MyFaces Examples Application (Examples Application) work?

      What does the server-logfile (catalina.out) say?

       
      • OpenVMS sysmgr
        OpenVMS sysmgr
        2006-12-28

        I'm a novice to the Tomcat world.
        Here is what I can say:
        - Application examples included in Tomcat distribution work fine
        (you could test them at mx2.isti.cnr.it:8080 )
        - I have downloaded the MyFaces examples from Apache.org site.
          Such examples don't work.
        - I have no log files (the directory tomcat/logs is empty)

        Thank you.
        Franz_

         
        • Stephan Sann
          Stephan Sann
          2006-12-28

          > I have no log files (the directory tomcat/logs is empty)

          Do this:

          /path/to/tomcat/bin/shutdown.sh

          as root:
          chown -R #insert-tomcat-user-here#:#insert-tomcat-user-group-here# /path/to/tomcat

          as tomcat-user:
          /path/to/tomcat/bin/startup.sh

          in your browser:
          http://localhost:8080/yawebmail

          When the exception occurs again, check

          /path/to/tomcat/logs/catalina.out

           
    • Hi
      I'm new to this project, yesterday we (franz_ and I ) tried to reinstall the yawebmail war on OpenVms and all now runs smoothly.
      thank you this is a very nice piece of software.
      What we missed before was the javamail jar and the activation jar, maybe you have to say it somewhere in the documentation.
      Now we 've tried to stress your application, and we found some issues:

      one regarding a memory  error. In fact  when we display a mail your program try to download all the message in memory, and when we have a very huge message tomcat gives a memory error (we tried with a 45 MByte attachment). We can solve this placing in catalina.bat an Xmx512m option
      But  what happen if we have more than one user connected at the same moment? Maybe we have to develop some other solution.

      Another issue is the lack of logout button.

      Another is the representation of html mail that are not displayed online with html, but we have a not so visible button at the end of the page.

      Another is the absence of pages to look for (for example if I access a mailbox with 1000 messages I have to wait to download all headers, this is time consuming) would be better a paginating view of the subjects of messages.

      Thank you for your effort in doing this kind of software
      Greetings

      Paolo Marcheschi

       
      • Stephan Sann
        Stephan Sann
        2007-02-27

        Hi Paolo,

        thank you for your suggestions.

        > What we missed before was the javamail jar and the activation jar

        This must be a configuration issue with your tomcat. Both JARs are
        included in the WAR-file and should be used automaticly.

        > In fact when we display a mail your program try to download all the
        > message in memory

        This is the default javamail-behavior when you want to fetch a
        message. I think working around this would mean a lot of programming
        (but didn't took a closer look till now).

        > We can solve this placing in catalina.bat an Xmx512m option

        I already pointed that out in the FAQs:

        http://yawebmail.sourceforge.net/faq.html#java-heap-space

        > But what happen if we have more than one user connected at the same moment?

        I think that such large mails should be an exception and that there
        shoud not be several users opening such large mails at the same time.

        But if you are the manager of Gmail an plan to use yawebmail as the webmail-
        interface for your users in the future you shoud consider adding more memory
        to your server :-)

        > Maybe we have to develop some other solution

        Feel free to do so. Please inform me, if you got something.

        > Another issue is the lack of logout button.

        That's one of the next things I'll do. It will be in the next version
        comming march 2007.

        > Another is the representation of html mail that are not displayed online
        > with html, but we have a not so visible button at the end of the page.

        Hm... - if there are multiple presentations, a big note is displayed at
        the top of the page with the links to each presentation. If the mail is
        in HTML only, the link will be at the top of the page, too!??

        > Another is the absence of pages to look for (for example if I access a
        > mailbox with 1000 messages I have to wait to download all headers, this
        > is time consuming) would be better a paginating view of the subjects of
        > messages.

        Exactly what I think. One TODO on the big TODO-list...

        Bests
        Stephan

         
    • Stephan Sann
      Stephan Sann
      2007-03-23

      The new version of yawebmail (0.9.7) now has a logout-button ;-)

       
      • Thank you
        For your reply
        We  will try it as soon as possible

        Bye
        Paolo