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

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

  • 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\ error: package javax.servlet.http does not exist
    [javac] import javax.servlet.http.HttpSessionBindingEvent; ***/

    help please :cry:

    REM: i download the code source from (VERSION 1.12.3)

  • 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!


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

  • Hi,

    thank you for answering!

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

    HTTP Status 500 -

    type Exception report
    description The server encountered an internal error () that prevented it from fulfilling this request.
    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

    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 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, 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 :



    -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!


  • There's not really an error message there beyond, "there was an error", so it's hard to say. I'd suggest looking for differences between the "test" deployment and the "mango" deployment.

  • OK, I'll try to figure it out.

    Thank you very much!


  • Hi again,

    I'm analysing Mango source code. I don't know how JSP pages are connected.

    For example: the first page is login.jsp (in WEB-INF/jsp/). When user clicks on Log in button,
    what is the next jsp page that will be shown to him?

    Where can I define navigation rules?

    In JSF there is a file faces-config.xml where navigation rules are defined (start JSP page, servlet which checks username and password, and the next JSP page).

    I imported Mango source code in Eclipse as General/Existing Project into Workspace.

    P.S. I opened new topic about it, Programming in Mango.

    Thank you very much!


  • @craig said:

    I do the following:

    1. make sure you have eclipse release which includes the web tools project.
    2. unpack mango source in a directory called "myMangoBranch" inside the eclipse workspace directory
    3. Do File->New->Other, choose "Dynamic Web project" from under "Web"
    4. Make Project name "myMangoBranch" (must match existing directory name)
    5. I don't have to change any other options on the new dynamic web project dialog, target runtime is apache tomcat 6.0 (you may have to add a target runtime), so I hit next.
    6. Source folders on the build path i leave as "src" and default output folder I leave as build/classes, so i hit next
    7. Content Directory I change from "WebContent" to war. Hit finish!

    In accordance with the above steps.I build the project,but I meet fatal error:

    Exception sending context initialized event to listener instance of class
    java.util.MissingResourceException: Can't find bundle for base name env, locale zh_CN
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at com.serotonin.util.PropertiesUtils.<init>(
    at com.serotonin.util.PropertiesUtils.<init>(
    at org.apache.catalina.core.StandardContext.listenerStart(
    at org.apache.catalina.core.StandardContext.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardHost.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardEngine.start(
    at org.apache.catalina.core.StandardService.start(
    at org.apache.catalina.core.StandardServer.start(
    at org.apache.catalina.startup.Catalina.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(
    at org.apache.catalina.startup.Bootstrap.main(
    2012-11-26 10:07:22 org.apache.catalina.core.StandardContext start

    I need help.Could someone helps me.Thank you!!

  • Hi all
    i followed all the steps told by craig.
    But it showed error Eclipse that the myMangoBranch directory already exists (and suggests to use import existing project). & if i import the project cannot be run properly using tomcat..
    Can anyone help please?