Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question Analytics repository information

More
11 Feb 2015 23:48 #1 by mdahlman
Analytics repository information was created by mdahlman
Where does Analytics store the repository information?

According to Semarchy DI documentation, the answer is this: Define a SEMARCHY_DI_WEBAPP_HOME environment variable, pointing to the folder into which Semarchy Convergence for DI Analytics will store its parameters and repository information.

But for me this is not working. I cannot figure out if it's a Stambia Analytics bug, a Semarchy packaging bug, or if it's user error by me.
  1. I set SEMARCHY_DI_WEBAPP_HOME to /home/tomcat/webapp_home
  2. I tested this in Tomcat by calling System.getenv(). I see this: SEMARCHY_DI_WEBAPP_HOME=/home/tomcat/webapp_home
  3. It shouldn't be a permissions issue. The TOMCAT_USER is tomcat. The user tomcat has full access to /home/tomcat/webapp_home
  4. But... when I define a new repository called DemoRepository in Analytics, nothing is created in /home/tomcat/webapp_home
  5. To try to make sure that it's not just a packaging issue, I also set STAMBIA_WEBAPP_HOME=/home/tomcat/webapp_home
  6. I can find the information on disk in tomcat's cache:
    sudo find / -name "DemoRepository*"
    /var/cache/tomcat7/work/Catalina/localhost/semarchy-di-analytics/eclipse/workspace/.metadata/.plugins/com.indy.ui.resource/.semarchyDiWebApp/repositories/files/DemoRepository.repository
    but I cannot get it persisted anywhere that I can manage it.

I'm using Semarchy Convergence for DI Analytics version 3.0.0 GA.

Is there something else I need to do? I'd like to persist my repository metadata somewhere that I can manage it.
More
12 Feb 2015 18:01 #2 by Thomas BLETON
Replied by Thomas BLETON on topic Analytics repository information
Hi Matt,

I think you did it the right way.
Normally, setting STAMBIA_WEBAPP_HOME tells analytics to store repos in this actual directory.
Can you tell us what version of Stambia Analytics is packaged ?
More
12 Feb 2015 18:32 #3 by mdahlman
Replied by mdahlman on topic Analytics repository information
I don't see a way to get that information in the Analytics GUI. I see only "Semarchy Convergence for DI Analytics version 3.0.0 GA".

But I think this .jar name may contain the answer:
./WEB-INF/plugins/com.indy.ui.analytics.application_2.0.7.20130522_084013.jar

If that's not good enough... where should I check the version number?
More
13 Feb 2015 15:40 - 13 Feb 2015 15:40 #4 by Thomas BLETON
Replied by Thomas BLETON on topic Analytics repository information
Hmmm this one is not discriminant.
What do you have in WEB-INF\features ?
Edit : especially the com.indy.analytics.feature_**** ?
Last edit: 13 Feb 2015 15:40 by Thomas BLETON.
More
13 Feb 2015 17:38 - 13 Feb 2015 23:47 #5 by mdahlman
Replied by mdahlman on topic Analytics repository information
There is no subfolder called "features". Here is everything. I'll edit the post later to remove the extra junk that isn't helpful.

./WEB-INF/jboss-web.xml
./WEB-INF/lib
./WEB-INF/lib/org.eclipse.equinox.servletbridge_1.2.200.v20120912-130548.jar
./WEB-INF/launch.ini
./WEB-INF/web.xml
./WEB-INF/configuration
./WEB-INF/configuration/config.ini
./WEB-INF/.eclipseproduct
./WEB-INF/plugins
./WEB-INF/plugins/com.indy.ui.common_1.0.0.20130522_084013.jar
./WEB-INF/plugins/org.eclipse.help_3.6.0.v20120912-134126.jar
./WEB-INF/plugins/org.eclipse.emf.rap.common.ui_2.7.0.v20120917-0436.jar
./WEB-INF/plugins/com.indy.ui.sessionRuntime_1.0.0.20130321_165050.jar
...
Last edit: 13 Feb 2015 23:47 by mdahlman.
More
13 Feb 2015 17:55 #6 by Thomas BLETON
Replied by Thomas BLETON on topic Analytics repository information
Please open the jar named "./WEB-INF/plugins/com.indy.ui.common.ext_1.0.0.201411190659.jar"
Open the file \src\com\indy\ui\common\messages\analytics.properties

The expected variable name is indicated at the line starting with "Analytics_WebappPathEnvVar=........"

By default, in the Semarchy build that we supply, it is set to "SEMARCHY_WEBAPP_HOME", not "SEMARCHY_DI_WEBAPP_HOME".
So, unless this was changed when packaging Semarchy Convergence for DI Analytics, you should be using "SEMARCHY_WEBAPP_HOME".

Let me know how it goes
More
13 Feb 2015 21:47 #7 by mdahlman
Replied by mdahlman on topic Analytics repository information
Bingo!
When I extract and view that file I see this line:
Analytics_WebappPathEnvVar=SEMARCHY_DI_ANALYTICS_WEBAPP_HOME

This does not match our docs which read:
Define a SEMARCHY_DI_WEBAPP_HOME environment variable...

Once I changed my environment variable to match what is REALLY inside the .jar, then my repository metadata immediately shows up as expected.

Thanks for you help. I'll be sure to have some strong words with FX.