Clear Build Instructions

Hi, 

Can someone please provide some clear build inscructions to compile SCADABR from source?

I'm looking through the source and there are many many folders. I'm not sure where to look and what I should be building from. 

I will be building this in Eclipse. 

Hello,

1 - Checkout the branches/rbautomacao-fsgv code,

2 - Add seroUtils.jar to WebContent/WEB-INF/lib folder

3 - Configure Build Path, Java6 JDK and Tomcat6 Runtime

Profit!

In branches, there are some other codes of paralel works (Java7, Oracle integration, JSF restructure and some fancy things...). Sorry for the lack of Documentation, but we lack time =]

Hope you understand.

 

Thanks. 

This was the branch I was looking at. I got it compiled OK, however tomcat doesn't want to start it. Do I need to create the database first? The error I am getting is below. 

The reason I am looking at the code is because I installed ScadaBR using the installer, however polling wasn't working in the watchlists for serial modbus. We would also get an error sometimes (but not every time) enabling or disabling a datasource. 

 

Jan 26, 2014 1:33:58 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jan 26, 2014 1:33:58 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.serotonin.mango.MangoContextListener
java.lang.IllegalArgumentException: No enum const class com.serotonin.mango.db.DatabaseAccess$DatabaseType.${DB.TYPE}
at java.lang.Enum.valueOf(Enum.java:196)
at com.serotonin.mango.db.DatabaseAccess$DatabaseType.valueOf(DatabaseAccess.java:47)
at com.serotonin.mango.db.DatabaseAccess.createDatabaseAccess(DatabaseAccess.java:78)
at com.serotonin.mango.MangoContextListener.databaseInitialize(MangoContextListener.java:369)
at com.serotonin.mango.MangoContextListener.contextInitialized(MangoContextListener.java:101)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Jan 26, 2014 1:33:58 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext

Yup, you got it!

You either have to point ScadaBR to a Derby folder DB or a MySQL DB in the WEB-INF/classes/env.properties folder - examples are provided in the files.

Regards,

1. get source from sf.net

svn checkout http://svn.code.sf.net/p/scadabr/code/trunk scadabr-code

3. next

cd scadabr-code/scadabr/scadabr/

4. next

mvn eclipse:eclipse

5. next

mvn clean build

6. eclipse:  File->Import->Existing Projects into Workspace->Brose ..scada-code/scadabr/scadabr

7. next

 Finish


 

i have follow the steps in "very simple".

step 5 "mvn clean build" not work, only mvn clean.

after import the project in eclpise, i have the error:

Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\legacy\seroUtils-mango\1.12.4\seroUtils-mango-1.12.4.jar' Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\scadabr-core\1.1.0-SNAPSHOT\scadabr-core-1.1.0-SNAPSHOT.jar'
Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\scadabr-deprecated\1.1.0-SNAPSHOT\scadabr-deprecated-1.1.0-SNAPSHOT.jar'
 
Hot wo fix it

i have follow the steps in "very simple".

 

after import into eclipse, i have some errors:

Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\legacy\seroUtils-mango\1.12.4\seroUtils-mango-1.12.4.jar' Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\scadabr-core\1.1.0-SNAPSHOT\scadabr-core-1.1.0-SNAPSHOT.jar'
Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\scadabr-deprecated\1.1.0-SNAPSHOT\scadabr-deprecated-1.1.0-SNAPSHOT.jar'
 
how to fix it?

i have follow the steps in "very simple".

 

after import into eclipse, i have some errors:

Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\legacy\seroUtils-mango\1.12.4\seroUtils-mango-1.12.4.jar' Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\scadabr-core\1.1.0-SNAPSHOT\scadabr-core-1.1.0-SNAPSHOT.jar'
Project 'scadabr' is missing required library: 'C:\Users\Administrator\.m2\repository\br\org\scadabr\scadabr-deprecated\1.1.0-SNAPSHOT\scadabr-deprecated-1.1.0-SNAPSHOT.jar'
 
how to fix it?