Menu

how to install LibrePlan on windows

2012-01-13
2012-11-26
  • Nobody/Anonymous

    hi,I install libreplan on windows, I download libreplan.war
    tomcat 6.0
    jdk1.6
    error:

    严重: Error configuring application listener of class org.libreplan.web.LoggingConfiguration
    java.lang.ClassNotFoundException: org.libreplan.web.LoggingConfiguration
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4148)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    log4j:WARN Continuable parsing error 89 and column 23
    log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,appender*,(category|logger)*,root?,categoryFactory?)".
    2012-1-13 14:10:40 org.apache.catalina.core.StandardContext listenerStart
    严重: Error configuring application listener of class org.libreplan.web.bootstrap.BootstrapListener
    java.lang.ClassNotFoundException: org.libreplan.web.bootstrap.BootstrapListener
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4148)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    2012-1-13 14:10:40 org.apache.catalina.core.StandardContext listenerStart
    严重: Skipped installing application listeners due to previous error(s)
    2012-1-13 14:10:40 org.apache.catalina.core.StandardContext start
    严重: Error listenerStart
    2012-1-13 14:10:40 org.apache.catalina.core.StandardContext start
    严重: Context [/libreplan] startup failed due to previous errors
    2012-1-13 14:10:40 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: The web application [/libreplan] appears to have started a thread named [Dispatcher-Thread-1] but has failed to stop it. This is very likely to create a memory leak.
    2012-1-13 14:10:40 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: The web application [/libreplan] appears to have started a thread named [Dispatcher-Thread-2] but has failed to stop it. This is very likely to create a memory leak.
    2012-1-13 14:10:40 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: The web application [/libreplan] appears to have started a thread named [Dispatcher-Thread-3] but has failed to stop it. This is very likely to create a memory leak.
    2012-1-13 14:10:41 org.apache.catalina.startup.HostConfig deployDescriptor
    
     
  • Nobody/Anonymous

    Hi,

    in the stacktrace you have included,  the problem seems that the Apache Tomcat is not able to find and load the class  org.libreplan.web.LoggingConfiguration.

    Currenlty, none of the community members has worked in trying to run LibrePlan on Windows because our target platform has been in GNU/Linux.

    In any case, appart from the error that you comment, I guess that there will be another some other issues. I
    am going to comment in a general way two approaches to try to deploy LibrePlan in WIndows:

    A) Install LibrePlan from the war file.

    This is the procedure that you have tried.

    The war file is the application already compiled (it has the bytecode of
    the Java classes). Steps for the installation would be:

       1.- Install the Postgresql or MySQL as database to use.
       2.- Create a database for the application.
       3.- Install a servlet container (Apache Tomcat, Jetty, …)
       4.- Download the war file with the application
       5.- Configure the database connection through the servlet container.
    For instance, if you use Tomcat and as database Postgresql with data:

         * database name: libreplan-db
         * user: libreplan
         * password: libreplan

    you should configure a context like this:

    <Context antiJARLocking="true" path=""> <Resource
    name="jdbc/libreplan-ds" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000" username="libreplan"
    password="libreplan" driverClassName="org.postgresql.Driver"
    url="jdbc:postgresql://localhost/libreplan-db"/> 
    </Context>
    

    With this method you will be able to have the application working with
    all its features, except the printing system. The printing system uses
    the CutyCapt  application and, currently, we have it configured and
    tested only in GNU/Linux. You would have to try to configure this
    application in windows.

    B) Install compiling the source code in the repository

    In this case, it is needed to configure an environment to compile the
    application. Main things needed are:

       * Git. It is the version control system used by the project.
       * Maven. Compiling system.

    Through this second method, however, there are two topics that it will
    be needed to configure:

       * Internationalization. LibrePlan depends on Perl and GNU/Linux.
       * Help. Help is generated from ReStructuredText  files and several
    tools are used: GNU make, latex, rst2html…

    All this will allow generate the .war file of the method A) and, from
    this point, you should continue with the steps explained in this first
    method.

    As last thing, I would like to finish the message saying that you have
    more information about the compiling process in the HACKING  and
    INSTALL files of the project.

    Regards.

    http://sourceforge.net/projects/navalplan/files/LibrePlan/libreplan_1.2.0.war/download
    http://cutycapt.sourceforge.net/
    http://en.wikipedia.org/wiki/ReStructuredText
    http://www.libreplan.org/INSTALL.html
    http://www.libreplan.org/HACKING.html

     
  • Nobody/Anonymous

    Hi Nobody,

    I also would like to install LibrePlan on Windows. Did you succeeded with the explanations ?

    Regards,
    Olivier

     

Log in to post a comment.