• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Building Mango in Eclipse

    Development general discussion
    13
    42
    48.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Andras
      last edited by

      Regarding your problem to access the manager: did you check that the manager role was assigned to the user with which you tried to access the manager ?

      In conf/tomcat-users.xml you should have something like

      <tomcat-users>
      <role rolename="manager"/>
      <user username="manager" password="manager" roles="manager"/>
      </tomcat-users>

      to be able to access http://localhost:8080/manager/html with user manager

      1 Reply Last reply Reply Quote 0
      • M
        mmn666
        last edited by

        Hi Andras,

        in my tomcat-users.xml i have this

        <tomcat-users>

        <role rolename="tomcat"/>
        <role rolename="role1"/>
        <role rolename="manager"/>
        <user username="tomcat" password="tomcat" roles="tomcat"/>
        <user username="manager" password="manager" roles="tomcat,manager"/>
        <user username="both" password="tomcat" roles="tomcat,role1"/>
        <user username="role1" password="tomcat" roles="role1"/>

        </tomcat-users>

        and in my build.properties i have

        tomcat.home=/home/mario/Programas/apache-tomcat-6.0.20
        tomcat.manager.url=http://localhost:8080/manager
        tomcat.manager.username=manager
        tomcat.manager.password=manager
        tomcat.hostname=webapps/ROOT

        App name and app path are separated to accomodate root deployments. (i.e. 'ROOT' vs. '/')

        tomcat.appdir=mango
        tomcat.apppath=/mango

        and when i run the build.xml to createConfigFiles

        Buildfile: /home/mario/workspace7/SuperMango/build.xml
        createConfigFiles:
        [copy] Copying 1 file to /home/mario/workspace7/SuperMango/build/WEB-INF/classes
        [copy] Copying 1 file to /home/mario/workspace7/SuperMango/build/WEB-INF/classes
        BUILD SUCCESSFUL
        Total time: 466 milliseconds

        but when i run to deploy[default]

        Buildfile: /home/mario/workspace7/SuperMango/build.xml
        compile:
        static:
        build:
        copy:
        [copy] Copying 2797 files to /home/mario/Programas/apache-tomcat-6.0.20/webapps/ROOT/mango

        BUILD FAILED
        /home/mario/workspace7/SuperMango/build.xml:117: Failed to copy /home/mario/workspace7/SuperMango/build/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class to /home/mario/Programas/apache-tomcat-6.0.20/webapps/ROOT/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class due to java.io.FileNotFoundException /home/mario/Programas/apache-tomcat-6.0.20/webapps/ROOT/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class (No such file or directory)

        Total time: 2 seconds

        other thing i observe is the fact when i started tomcat by the eclipse, i can't access the "http://localhost:8080/" , returning a HTTP Status 404

        but when i started the tomcat by console like root, i can access the homepage of tomcat("http://localhost:8080/") and "http://localhost:8080/manager/html" normally

        sorry my ignorance...
        and thanks for your patience

        regards,
        Mario

        1 Reply Last reply Reply Quote 0
        • M
          mlohbihler
          last edited by

          Hi Mario,

          If you're going to have a context path of "mango", then your hostname should not include "ROOT". Try changing the following build.properties value:

          tomcat.hostname=webapps

          Best regards,
          Matthew

          1 Reply Last reply Reply Quote 0
          • M
            mmn666
            last edited by

            Hi mlohbihler,

            i changed to

            tomcat.hostname=webapps

            but don't have any effect...

            Buildfile: /home/mario/workspace7/SuperMango/build.xml
            compile:
            static:
            build:
            copy:
            [copy] Copying 2797 files to /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango

            BUILD FAILED
            /home/mario/workspace7/SuperMango/build.xml:117: Failed to copy /home/mario/workspace7/SuperMango/build/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class to /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class due to java.io.FileNotFoundException /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/WorkItem.class (No such file or directory)

            Total time: 3 seconds

            sorry my ignorance...
            and thanks for your patience

            regards,
            Mario

            1 Reply Last reply Reply Quote 0
            • M
              mlohbihler
              last edited by

              Maybe a silly question, but can you say how much of this path actually exists:
              /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango/WEB-INF/classes/com/serotonin/mango/rt/maint/work/

              Best regards,
              Matthew

              1 Reply Last reply Reply Quote 0
              • M
                mmn666
                last edited by

                Hi,

                maybe is not a silly question hehehehe

                only this is real

                /home/mario/Programas/apache-tomcat-6.0.20/webapps/

                sorry my ignorance...
                and thanks for your patience

                regards,
                Mario

                1 Reply Last reply Reply Quote 0
                • M
                  mlohbihler
                  last edited by

                  Incidentally, i strongly recommend changing the password in your tomcat-users file. There is a known crawler that looks for unprotected Tomcat instances and uses the manager to upload and start applications.

                  Best regards,
                  Matthew

                  1 Reply Last reply Reply Quote 0
                  • M
                    mlohbihler
                    last edited by

                    That comment above was for all forum users, not just Mario.

                    So, Mario, are you sure the user under which the build is running has permissions to write to the "webapps" directory?

                    Best regards,
                    Matthew

                    1 Reply Last reply Reply Quote 0
                    • M
                      mmn666
                      last edited by

                      Hi mlohbihler,

                      i change the permission and works now i have the folder

                      /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango

                      and the build is ok

                      Buildfile: /home/mario/workspace7/SuperMango/build.xml
                      compile:
                      static:
                      build:
                      copy:
                      [copy] Copying 2797 files to /home/mario/Programas/apache-tomcat-6.0.20/webapps/mango
                      deploy:
                      BUILD SUCCESSFUL
                      Total time: 26 seconds

                      :)

                      now i will try access http://localhost:8080/mango
                      right?

                      sorry my ignorance...
                      and thanks for your patience

                      regards,
                      Mario

                      1 Reply Last reply Reply Quote 0
                      • M
                        mlohbihler
                        last edited by

                        Sure, give it a try.

                        Best regards,
                        Matthew

                        1 Reply Last reply Reply Quote 0
                        • M
                          mmn666
                          last edited by

                          Hi,

                          i try access http://localhost:8080/mango/(http://localhost:8080/mango/login.htm) and i have a error report

                          com.serotonin.web.dwr.LocalizableMessageConverter.convertOutbound(LocalizableMessageConverter.java:25)

                          and like in topic
                          http://mango.serotoninsoftware.com/forum/posts/list/345.page

                          the problem is my browser the firefox,when i desativated a plugin... ...works!!!

                          thank you very much...
                          hartelijk dank

                          sorry my ignorance...
                          and thanks for your patience

                          best regards,
                          Mario

                          1 Reply Last reply Reply Quote 0
                          • M
                            mlohbihler
                            last edited by

                            You're using 1.8.1? That problem should have been fixed.

                            Give this jar file a try, but keep the old one just in case it all goes horribly wrong.

                            Attachment: download link

                            Best regards,
                            Matthew

                            1 Reply Last reply Reply Quote 0
                            • J
                              Jay
                              last edited by

                              Hi all,

                              I'm having a problem running/compiling mango using eclipse, and was wondering if someone here might know what I did wrong...

                              I've followed all the steps described by Andras to build the project in Eclipse, including "add external jar" to add the following jars from ${tomcat.home}/lib

                              servlet-api
                              jsp-api

                              When I try to build, I get several compile errors starting with

                              [javac] C:\Dev\testing\workspace\Mango\src\com\serotonin\mango\vo\User.java:26: package javax.servlet.http does not exist
                              [javac] import javax.servlet.http.HttpSessionBindingEvent;
                              

                              Finally, I copied the files

                              servlet-api.jar and
                              jsp-api.jar

                              into ...war\WEB-INF\lib.

                              Then the build process successfully compiles and copies files to Tomcat's webapps folder. In fact, it does this even if I remove the "external jars" servlet-api and jsp-api from classpath (using eclipse)!

                              However, when I try to run the application, it returns a HTTP Status 500 page with a null pointer exception in javax.servlet.http.HttpServlet.service

                              org.apache.jasper.JasperException: java.lang.NullPointerException
                              org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:536)
                              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)
                              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
                              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
                              javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                              I suspect this is related to the servlet-api jar.

                              Anyone have any suggestions...?

                              Jay

                              1 Reply Last reply Reply Quote 0
                              • J
                                jmo
                                last edited by

                                I'm having the same problem...
                                I'll work on it more tonight or tomorrow and see what happens...

                                1 Reply Last reply Reply Quote 0
                                • L
                                  lordportux
                                  last edited by

                                  hello team!

                                  I´m trying to build mango source 1.12.4 and I got the next error:

                                  > [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\DataSourceVO.java:434: error: name has private access in DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.head.name", from.name, name);
                                  [javac]                                                                                    ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\DataSourceVO.java:435: error: xid has private access in DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "common.xid", from.xid, xid);
                                  [javac]                                                                              ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\DataSourceVO.java:436: error: enabled has private access in DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "common.enabled", from.enabled, enabled);
                                  [javac]                                                                                  ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\br\org\scadabr\vo\dataSource\dnp3\Dnp3DataSourceVO.java:164: error: rbePeriodType has private access in Dnp3DataSourceVO
                                  [javac]         AuditEventType.maybeAddPeriodChangeMessage(list, "dsEdit.dnp3.rbePeriod", from.rbePeriodType,
                                  [javac]                                                                                       ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\br\org\scadabr\vo\dataSource\dnp3\Dnp3DataSourceVO.java:165: error: rbePollPeriods has private access in Dnp3DataSourceVO
                                  [javac]                 from.rbePollPeriods, rbePeriodType, rbePollPeriods);
                                  [javac]                     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\br\org\scadabr\vo\dataSource\dnp3\Dnp3DataSourceVO.java:166: error: synchPeriods has private access in Dnp3DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.dnp3.synchPeriod", from.synchPeriods, synchPeriods);
                                  [javac]                                                                                           ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\br\org\scadabr\vo\dataSource\dnp3\Dnp3DataSourceVO.java:167: error: staticPollPeriods has private access in Dnp3DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.dnp3.staticPeriod", from.staticPollPeriods,
                                  [javac]                                                                                            ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\br\org\scadabr\vo\dataSource\dnp3\Dnp3DataSourceVO.java:169: error: sourceAddress has private access in Dnp3DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.dnp3.sourceAddress", from.sourceAddress,
                                  [javac]                                                                                             ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\br\org\scadabr\vo\dataSource\dnp3\Dnp3DataSourceVO.java:171: error: slaveAddress has private access in Dnp3DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.dnp3.slaveAddress", from.slaveAddress, slaveAddress);
                                  [javac]                                                                                            ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\br\org\scadabr\vo\dataSource\dnp3\Dnp3DataSourceVO.java:172: error: retries has private access in Dnp3DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.dnp3.retries", from.retries, retries);
                                  [javac]                                                                                       ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\br\org\scadabr\vo\dataSource\dnp3\Dnp3DataSourceVO.java:173: error: retries has private access in Dnp3DataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.modbus.retries", from.retries, retries);
                                  [javac]                                                                                         ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:207: error: updatePeriodType has private access in ModbusDataSourceVO
                                  [javac]         AuditEventType.maybeAddPeriodChangeMessage(list, "dsEdit.updatePeriod", from.updatePeriodType,
                                  [javac]                                                                                     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:208: error: updatePeriods has private access in ModbusDataSourceVO
                                  [javac]                 from.updatePeriods, updatePeriodType, updatePeriods);
                                  [javac]                     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:209: error: quantize has private access in ModbusDataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.quantize", from.quantize, quantize);
                                  [javac]                                                                                   ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:210: error: timeout has private access in ModbusDataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.modbus.timeout", from.timeout, timeout);
                                  [javac]                                                                                         ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:211: error: retries has private access in ModbusDataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.modbus.retries", from.retries, retries);
                                  [javac]                                                                                         ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:212: error: contiguousBatches has private access in ModbusDataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.modbus.contiguousBatches", from.contiguousBatches,
                                  [javac]                                                                                                   ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:215: error: createSlaveMonitorPoints has private access in ModbusDataSourceVO
                                  [javac]                 from.createSlaveMonitorPoints, createSlaveMonitorPoints);
                                  [javac]                     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:216: error: maxReadBitCount has private access in ModbusDataSourceVO
                                  [javac]         AuditEventType.maybeAddPropertyChangeMessage(list, "dsEdit.modbus.maxReadBitCount", from.maxReadBitCount,
                                  [javac]                                                                                                 ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:219: error: maxReadRegisterCount has private access in ModbusDataSourceVO
                                  [javac]                 from.maxReadRegisterCount, maxReadRegisterCount);
                                  [javac]                     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\vo\dataSource\modbus\ModbusDataSourceVO.java:221: error: maxWriteRegisterCount has private access in ModbusDataSourceVO
                                  [javac]                 from.maxWriteRegisterCount, maxWriteRegisterCount);
                                  [javac]                     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:35: error: DummyServletContext is not abstract and does not override abstract method getJspConfigDescriptor() in ServletContext
                                  [javac] public class DummyServletContext implements ServletContext {
                                  [javac]        ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:54: error: getAttributeNames() in DummyServletContext cannot implement getAttributeNames() in ServletContext
                                  [javac]     public Enumeration<?> getAttributeNames() {
                                  [javac]                           ^
                                  [javac]   return type Enumeration<?> is not compatible with Enumeration<String>
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:77: error: getInitParameterNames() in DummyServletContext cannot implement getInitParameterNames() in ServletContext
                                  [javac]     public Enumeration<?> getInitParameterNames() {
                                  [javac]                           ^
                                  [javac]   return type Enumeration<?> is not compatible with Enumeration<String>
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:155: error: getServletNames() in DummyServletContext cannot implement getServletNames() in ServletContext
                                  [javac]     public Enumeration<?> getServletNames() {
                                  [javac]                           ^
                                  [javac]   return type Enumeration<?> is not compatible with Enumeration<String>
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:161: error: getServlets() in DummyServletContext cannot implement getServlets() in ServletContext
                                  [javac]     public Enumeration<?> getServlets() {
                                  [javac]                           ^
                                  [javac]   return type Enumeration<?> is not compatible with Enumeration<Servlet>
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:131: error: getResourcePaths(String) in DummyServletContext cannot implement getResourcePaths(String) in ServletContext
                                  [javac]     public Set<?> getResourcePaths(String arg0) {
                                  [javac]                   ^
                                  [javac]   return type Set<?> is not compatible with Set<String>
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:53: error: method does not override or implement a method from a supertype
                                  [javac]     @Override
                                  [javac]     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:76: error: method does not override or implement a method from a supertype
                                  [javac]     @Override
                                  [javac]     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:130: error: method does not override or implement a method from a supertype
                                  [javac]     @Override
                                  [javac]     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:154: error: method does not override or implement a method from a supertype
                                  [javac]     @Override
                                  [javac]     ^
                                  [javac] C:\Users\Lordportux\workspace\myMangoBranch\src\com\serotonin\mango\util\test\DummyServletContext.java:160: error: method does not override or implement a method from a supertype
                                  [javac]     @Override
                                  [javac]     ^
                                  [javac] Note: Some input files use or override a deprecated API.
                                  [javac] Note: Recompile with -Xlint:deprecation for details.
                                  [javac] 32 errors
                                  

                                  what's the problem? :(

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    johnparker16
                                    last edited by

                                    In addition, i suggest modifying the code in your tomcat-users computer file. There is a known crawler that looks for credit card Tomcat circumstances and uses the administrator to publish and start programs.

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      chahin
                                      last edited by

                                      Hi,
                                      am trying to run th build.xml file but i found some Error :shock: :

                                      for example : /*** Compiling 616 source files to C:\workspace-pfe\mango\build\WEB-INF\classes
                                      [javac] C:\workspace-pfe\mango\src\com\serotonin\mango\vo\User.java:26: error: package javax.servlet.http does not exist
                                      [javac] import javax.servlet.http.HttpSessionBindingEvent; ***/

                                      help please :cry:

                                      REM: i download the code source from http://sourceforge.net/projects/scadabr/files/Software/mango-src/mango-source-1.12.3.zip/download (VERSION 1.12.3)

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        Dusan
                                        last edited by

                                        Hi,

                                        I had similar problem with javax.servlet.http.... I resolved it with adding all libraries in the project. Right click on the project/Build Path/Configure Build Path/Choose Java Build Path on the left and add all .jar files from war/WEB-INF/lib.
                                        That should be ok.

                                        I have another problem:
                                        My build is successful, but I can't see it in my browser. I copy files from webapps/test to webapps/ROOT, but http://localhost:8080/ returnes error. Please, help!

                                        Thank you very much!

                                        Dusan

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          mlohbihler
                                          last edited by

                                          Can you provide some more details on the nature of the error? Is there anything in the Tomcat log?

                                          Best regards,
                                          Matthew

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            Dusan
                                            last edited by

                                            Hi,

                                            thank you for answering!

                                            http://localhost:8080/test returnes this:


                                            HTTP Status 500 -

                                            type Exception report
                                            message
                                            description The server encountered an internal error () that prevented it from fulfilling this request.
                                            exception
                                            org.apache.jasper.JasperException: Unable to compile class for JSP:

                                            An error occurred at line: 22 in the generated java file
                                            The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

                                            Stacktrace:
                                            org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
                                            org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
                                            org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
                                            org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
                                            org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
                                            org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
                                            org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
                                            org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
                                            org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
                                            org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
                                            javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                                            note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.

                                            Apache Tomcat/6.0.35

                                            http://localhost:8080/mango works (folder mango contains extracted mango-1.13.0.zip downloaded from Mango Website).
                                            .................................................................................................................................
                                            I built it as Andreas did (on the first page). That is:

                                            -get Eclipse IDE for Java EE Developers
                                            -get Mango source code, unpack it
                                            -add empty subdirectories lib, src_gen and src_test to Mango source
                                            -add RXTXcomm.jar in lib directory
                                            -in file build.properties, edit tomcat.home to point at the tomcat location on your system.
                                            C:/Program Files/Apache Software Foundation/Tomcat 6.0
                                            -get axis-ant.jar and put it into the WEB-INF/lib directory
                                            -In Eclipse choose import->general and browse to the mango source
                                            -I used "add jar" to add these jars in war/WEB-INF/lib :

                                            modbus4J
                                            seroUtils
                                            common-httputils
                                            quartz
                                            bacnet4J
                                            commons-codec
                                            joda-time

                                            servlet-api
                                            jsp-api

                                            -I added the rest of .jar files

                                            -right-click build.xml in the project explorer and choose run as->2(3).ant-build...
                                            choose the createconfigfiles target
                                            -right-click build.xml again and again choose run as->2(3).ant-build...
                                            choose the default deploy

                                            The newly built Mango is now copied to the tomcat webapps/test directory
                                            ..............................................................................................................................

                                            I don't think it is connected to the problem, but I see WARNING signs on several packages in src folder (in Eclipse).
                                            Also, I see "C:\Documents and Settings\Administrator\Desktop\mango-source-1.12.4\build.xml:82: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds" in console, after building it.

                                            Thank you very much!

                                            Dusan

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post