Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cosmos-dev] RE: COSMOS eclipsecon07 Demo Instructions

Title: RE: COSMOS eclipsecon07 Demo Instructions

Everything's working for me now. I checked in a fix for the hardcoded path to the topology file. Don't have access to TPTP, but here's a patch for them as well - working on the zip right now. Thanks to Sheldon and Marius for getting me synched up!

Patch:

### Eclipse Workspace Patch 1.0
#P org.eclipse.tptp.platform.models
Index: src-dms/org/eclipse/tptp/platform/internal/dms/log/impl/RDBLogDataStoreManager.java
===================================================================
RCS file: /cvsroot/tptp/platform/org.eclipse.tptp.platform.models/src-dms/org/eclipse/tptp/platform/internal/dms/log/impl/RDBLogDataStoreManager.java,v
retrieving revision 1.9
diff -u -r1.9 RDBLogDataStoreManager.java
--- src-dms/org/eclipse/tptp/platform/internal/dms/log/impl/RDBLogDataStoreManager.java 11 Feb 2007 07:31:54 -0000      1.9
+++ src-dms/org/eclipse/tptp/platform/internal/dms/log/impl/RDBLogDataStoreManager.java 22 Feb 2007 02:12:15 -0000
@@ -50,6 +50,18 @@
        public final static String protocol = "log:";
        IDataSource dataSource;
        IDataAccessController dataAccessController;
+      
+       private static String JDBC_DRIVER_LOCATION;
+      
+       static {
+               JDBC_DRIVER_LOCATION = "file:/c:/COSMOS-Demo-EclipseCon2007/derby/db-derby-10.2.2.0-bin/lib/derbyclient.jar";
+               String propFile = System.getProperty("cosmos.demo.directory");
+               if(propFile != null) {
+                       propFile = propFile.replace('\\', '/');
+                       JDBC_DRIVER_LOCATION = "file:/"+propFile+"WEB-INF/lib/derbyclient.jar";
+               }
+       }
+      

        public RDBLogDataStoreManager(IDataAccessController dataAccessController,
                        IDataSource dataSource) {
@@ -62,7 +74,7 @@
                                jdbcHelper.setDriver("org.apache.derby.jdbc.ClientDriver");
                                jdbcHelper.setProtocol("jdbc:derby:");
                                jdbcHelper
-                                               .setURLString("file:/c:/COSMOS-Demo-EclipseCon2007/derby/db-derby-10.2.2.0-bin/lib/derbyclient.jar");
+                                               .setURLString(JDBC_DRIVER_LOCATION);
       
                                // TODO parse the data source an push it into the properties
                                Properties p = new Properties();
Index: src-dms/org/eclipse/tptp/platform/internal/dms/statistical/impl/RDBStatisticalDataStoreManager.java
===================================================================
RCS file: /cvsroot/tptp/platform/org.eclipse.tptp.platform.models/src-dms/org/eclipse/tptp/platform/internal/dms/statistical/impl/RDBStatisticalDataStoreManager.java,v
retrieving revision 1.1
diff -u -r1.1 RDBStatisticalDataStoreManager.java
--- src-dms/org/eclipse/tptp/platform/internal/dms/statistical/impl/RDBStatisticalDataStoreManager.java 11 Feb 2007 07:30:48 -0000      1.1
+++ src-dms/org/eclipse/tptp/platform/internal/dms/statistical/impl/RDBStatisticalDataStoreManager.java 22 Feb 2007 02:12:15 -0000
@@ -52,6 +52,18 @@
        public final static String protocol = "statistical:";
        IDataSource dataSource;
        IDataAccessController dataAccessController;
+      
+       private static String JDBC_DRIVER_LOCATION;
+      
+       static {
+               JDBC_DRIVER_LOCATION = "file:/c:/COSMOS-Demo-EclipseCon2007/derby/db-derby-10.2.2.0-bin/lib/derbyclient.jar";
+               String propFile = System.getProperty("cosmos.demo.directory");
+               if(propFile != null) {
+                       propFile = propFile.replace('\\', '/');
+                       JDBC_DRIVER_LOCATION = "file:/"+propFile+"WEB-INF/lib/derbyclient.jar";
+               }
+       }
+      

        public RDBStatisticalDataStoreManager(IDataAccessController dataAccessController,
                        IDataSource dataSource) {
@@ -64,7 +76,7 @@
                                jdbcHelper.setDriver("org.apache.derby.jdbc.ClientDriver");
                                jdbcHelper.setProtocol("jdbc:derby:");
                                jdbcHelper
-                                               .setURLString("file:/c:/COSMOS-Demo-EclipseCon2007/derby/db-derby-10.2.2.0-bin/lib/derbyclient.jar");
+                                               .setURLString(JDBC_DRIVER_LOCATION);
       
                                // TODO parse the data source an push it into the properties
                                Properties p = new Properties();


-----Original Message-----
From: Sheldon Lee-Loy [mailto:sleeloy@xxxxxxxxxx]
Sent: Wed 2/21/2007 8:12 PM
To: cthomas@xxxxxxxxxxxxxxxxxxxxxxxx; Hubert H Leung; weitzelm@xxxxxxxxxx; Marius Slavescu; cosmos-dev@xxxxxxxxxxx; Vsevolod Sandomirskiy; peter.dorfman@xxxxxxxxxx; Hawkins, Joel
Subject: COSMOS eclipsecon07 Demo Instructions

Hi All,

Here are the instructions to run the COSMOS eclipsecon demo.    Let me
know if you have any problems running the demo.  Note: there are some hard
coded paths that have to be modified.  We are currently making
modifications to make this configuration much easier.

Download
=========
SUN JRE 1.5
Eclipse 3.2.1 -
http://fullmoon.torolab.ibm.com/downloads/drops/R-3.2.1-200609210945/download.php?dropFile=eclipse-SDK-3.2.1-win32.zip
EMF 2.2.1 -
http://download.eclipse.org/modeling/emf/emf/downloads/drops/2.2.1/R200609210005/emf-sdo-xsd-SDK-2.2.1.zip
GEF 3.2 -
http://download.eclipse.org/tools/gef/downloads/drops/R-3.2.1-200609211617/GEF-runtime-3.2.1.zip
BIRT 2.1.1 -
http://download.eclipse.org/birt/downloads/drops/R-R1-2_1_1-200609260959/birt-report-framework-2_1_1.zip
TPTP 4.4 -
http://www.eclipse.org/downloads/download.php?file=/tptp/4.4.0/dev/TPTP-4.4.0-200702210100/tptp.platform.runtime-TPTP-4.4.0-200702210100.zip
Download Derby - 10.2.2.0 -
http://mirror.cc.columbia.edu/pub/software/apache/db/derby/db-derby-10.2.2.0/db-derby-10.2.2.0-bin.zip
Download sample database -
http://wiki.eclipse.org/images/0/0f/COSMOS-EclipseCon2007Demo-log_stat-sample-Apache_Derby-db.zip

Checkout from CVS
=================
Host: dev.eclipse.org
Repository: /cvsroot/tptp
Module: platform/org.eclipse.tptp.platform.models

Host: dev.eclipse.org
Repository: /cvsroot/technology
Module:org.eclipse.cosmos/examples/eclipseCon07/org.eclipse.cosmos.examples.eclipsecon07.repository


Host: dev.eclipse.org
Repository: /cvsroot/technology
Module:org.eclipse.cosmos/examples/eclipseCon07/org.eclipse.cosmos.examples.eclipsecon07.reports.oda


Host: dev.eclipse.org
Repository: /cvsroot/technology
Module:org.eclipse.cosmos/examples/eclipseCon07/org.eclipse.cosmos.examples.eclipsecon07.reports.templates


Steps to run
=============
1. Start up eclipse.
2. Open
org.eclipse.cosmos.examples.eclipsecon07.reports.oda\src\org\eclipse\cosmos\dr\reports\oda\ResourcesDataAccessor.java
3. Modify the following line to point to the correct xml file location.
        private static String SML_RESOURCES_FOLDER =
"file:///c|/COSMOS-Demo-EclipseCon2007/eclipse/demo/org.eclipse.cosmos.examples.eclipsecon07.repository/topologies/";

4. Open
org.eclipse.tptp.platform.models\src-dms\org\eclipse\tptp\platform\internal\dms\log\impl\RDBLogDataStoreManager.java
5. Modify the following line to point to the correct derby jar file
location.

jdbcHelper.setURLString("file:/c:/COSMOS-Demo-EclipseCon2007/derby/db-derby-10.2.2.0-bin/lib/derbyclient.jar");

6. Open
org.eclipse.tptp.platform.models\src-dms\org\eclipse\tptp\platform\internal\dms\statistical\impl\RDBStatisticalDataStoreManager.java
7. Modify the following line to point to the correct derby jar file
location.

jdbcHelper.setURLString("file:/c:/COSMOS-Demo-EclipseCon2007/derby/db-derby-10.2.2.0-bin/lib/derbyclient.jar");

8. unzip sample data under %DERBY_INSTALL%\frameworks\NetworkServer\bin
9. Run
%DERBY_INSTALL%\frameworks\NetworkServer\bin\setNetworkServerCP.bat.
Note: you will need to modify the script to point to the DERBY_INSTALL
directory
10. Run
%DERBY_INSTALL%\frameworks\NetworkServer\bin\startNetworkServer.bat.
Note: you will need to modify the script to point to the DERBY_INSTALL
directory
11. In your eclipse workspace expand to:
org.eclipse.cosmos.examples.eclipsecon07.reports.templates > templates
12. Open cosmos-nodes.rptdesign in the Report Editor.
13. Click the "Preview" tab in the Report Editor.  At this point you
should be able to navigate the topology and view the properties pages.
14.  Click on the "Production" Link.  Then click the "Properties" link on
"Machine 1".  At this point there should be a statistical link on the
Properties report.  This will open the statistical report.
15.  Go back to the root report.  Click on the "Production" Link. Then
click the "Machine 2" link.  Then click the "Properties" link
on"WindowServer1".   At this point there should be a Top 10 link on the
Properties report.  This will open the Top 10 report.

Thanks,

Sheldon


The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

Back to the top