| Author |
Message |
|
|
Hi people,
I'm trying to figure out how email event handling functions.
I want Mango to send me email when user logs in. And it works.
I configure it in Event handlers/System events/User login.
Where is the code that is activated when user logs in? That code should check what event handlers are configured and send email.
Of course, it's not all code in one file, but can you tell me where to start?
Thank you very much
Dusan
|
 |
|
|
I realized that Eclipse creates scadabrDB somewhere in workspace, so when I copy it to Tomcat/bin, it works. Thank you!
2. I always used phpMyAdmin (on Wamp server) for sql databases monitoring. Can I connect Mango with phpMyAdmin somehow?
Thank you very much
Dusan
|
 |
|
|
Ok. Now, I am completely confused.
First to say, I use ScadaBR, so some urls are different.
I set Tomcat Runtime Environment in Eclipse, so I can run Mango inside Eclipse.
As I understood, Mango use only Deby database.
1. When I run Mango inside Eclipse, and for example add new user, where I can access (Derby) database
to see new user parameters? Where is database located?
Thank you very much
Dusan
|
 |
|
|
|
And also, could explain me briefly why there are two databases? When are they used?
|
 |
|
|
This is content of src/env.properties:
#db.type=mysql
#db.url=jdbc:mysql://localhost/scadabr
#db.username=root
#db.password=
#db.pool.maxActive=10
#db.pool.maxIdle=10
db.type=derby
db.url=~/../../bin/scadabrDB
db.username=
db.password=
convert.db.type=
convert.db.url=
convert.db.username=
convert.db.password=
api.authentication=disabled
api.username=admin
api.password=admin
#security.hashAlgorithm=NONE
grove.url=http://mango.serotoninsoftware.com/servlet
What do I have to change?
Thank you very much
Dusan
|
 |
|
|
Hi,
when I deploy project on Tomcat, and access it in Web browser, the watchlist is empty,
although I created data points in Eclipse (when run it on Tomcat Runtime Environment).
Any idea?
Thank you very much,
Dusan
|
 |
|
|
Hi people,
I need someone to explain me the following:
I downloaded Mango M2M Binaries from http://mango.serotoninsoftware.com/download.jsp.
I need source code of Mango which will after building produce the same binaries as the ones I downloaded from http://mango.serotoninsoftware.com/download.jsp.
However, I read on the forum that such source code doesn't exists.
The only source code I can find is here http://mango.serotoninsoftware.com/forum/posts/list/979.page#4180 (developed by ScadaBR).
If I build this source code (mango 1.12.3 or mango 1.12.4), will it produce the same application as the one on http://mango.serotoninsoftware.com/download.jsp ?
Thank you very much!
Dusan
|
 |
|
|
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!
Dusan
|
 |
|
|
Hi,
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.
Thank you very much!
Dusan
|
 |
|
|
OK, I'll try to figure it out.
Thank you very much!
Dusan
|
 |
|
|
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:32
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
|
 |
|
|
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
|
 |
|
|
|
Where did you find programable source code? I need whole Mango code in order to make new web pages.
|
 |
|
|
Thank you for answering!
What should I pay attention on? I don't understand.
|
 |
|
|
Hi,
I've got a task to make a Website (in Java language) that would display data points (graphically or however).
How can I connect my Website with Mango (because the Website should display data points values collected by Mango) ?
Where (in Mango folders) should I write a code for the Website? How it works?
Thank you very much!
Dusan
|
 |
|
|