Re: SFSB clustering - how to try it?
On Feb 24, 2008, at 6:36 PM, Jacek Laskowski wrote: On Sun, Feb 24, 2008 at 2:51 AM, Gianny Damour <[EMAIL PROTECTED]> wrote: We have now some basic support for SFSB clustering. If you would like to give it a try then here are some instructions. Great! It's so simple from a user perspective to try it out. Should we put it in the wiki? Good idea. http://cwiki.apache.org/GMOxDEV/test-drive-geronimo-ejb-clustering.html -David
[BUILD] 2.2: Failed for Revision: 630715
Geronimo Revision: 630715 built with tests included See the full build-2100.log file at http://geronimo.apache.org/maven/server/binaries/trunk/20080224/build-2100.log See the unit test reports at http://geronimo.apache.org/maven/server/binaries/trunk/20080224/unit-test-reports [INFO] [tools:copy-legal-files {execution: install-legal-files}] [INFO] Created dir: /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes/META-INF [INFO] Copying 2 files to /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes/META-INF [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 1 source file to /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [tools:verify-legal-files {execution: verify-legal-files}] [INFO] Checking legal files in: geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/geronimo-mejb-2.2-SNAPSHOT.jar to /home/geronimo/.m2/repository/org/apache/geronimo/plugins/geronimo-mejb/2.2-SNAPSHOT/geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [INFO] Building Geronimo Plugins, MEJB :: Config [INFO]task-segment: [install] [INFO] [INFO] [enforcer:enforce {execution: default}] [INFO] [tools:copy-legal-files {execution: install-legal-files}] [INFO] Created dir: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/classes/META-INF [INFO] Copying 2 files to /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/classes/META-INF [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [car:validate-configuration] [INFO] [car:prepare-plan] [INFO] Generated: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/resources/META-INF/plan.xml [INFO] [car:package] Downloading: http://download.java.net/maven/1//org.apache.geronimo.components/jars/geronimo-connector-2.1.jar Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://tomcat.apache.org/dev/dist/m2-repository/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://svn.apache.org/repos/asf/openejb/repo//org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://repo1.maven.org/maven2/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar 98K downloaded Downloading: http://download.java.net/maven/1//xerces/jars/xercesImpl-2.8.0.jar Downloading: http://people.apache.org/repo/m2-incubating-repository//xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar Downloading: http://people.apache.org/repo/m2-snapshot-repository/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar 1178K downloaded [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from apache-snapshots [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from codehaus-snapshots [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from apache.snapshots [INFO] Packaging module configuration: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/resources/META-INF/plan.xml [INFO] Started deployer: org.apache.geronimo.framework/geronimo-gbean-deployer/2.2-SNAPSHOT/car [INFO] Started deployer: org.apache.geronimo.configs/openejb-deployer/2.2-SNAPSHOT/car [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/openejb/jee/EjbReference [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/openejb/jee/EjbReference at org.apache.openejb.config.AnnotationDeployer.(AnnotationDeployer.java:157) at org.apache.openejb.config.ConfigurationFactory.(ConfigurationFactory.java:166) at org.apache.openejb.config.ConfigurationFactory.(ConfigurationFactory.java:110) at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.configureApplication
[jira] Commented: (GERONIMO-3875) Enabling authentication for Derby renders DB Viewer portlet unusable for all db's except SystemDatabase
[ https://issues.apache.org/jira/browse/GERONIMO-3875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571996#action_12571996 ] David Jencks commented on GERONIMO-3875: I've never understood the thinking behind the DB viewer portlet. I've always wanted it to use the database pools running in the server rather than connecting to the database directly. So I would prefer it if the only way to look at a database was through a running database pool. In any case perhaps if we keep the current option of direct connection we could have a choice between direct connection or selecting from an existing pool? I haven't looked at your patch. I would think that selecting the connection manager or MCF name would avoid ambiguity. with this approach would we be able to work with non-derby databases? > Enabling authentication for Derby renders DB Viewer portlet unusable for all > db's except SystemDatabase > --- > > Key: GERONIMO-3875 > URL: https://issues.apache.org/jira/browse/GERONIMO-3875 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: console >Affects Versions: 2.1, 2.1.1, 2.2 > Environment: Win XP, G 2.1 Tomcat >Reporter: Vamsavardhana Reddy >Assignee: Vamsavardhana Reddy > Fix For: 2.1.1, 2.2 > > Attachments: GERONIMO-3875.patch > > > After enabling authentication for Derby, I am noticing that DB Viewer > portlet is unable to work with any database other that SystemDatabase. > listTables.jsp has the following code: > {code} > <%-- Datasource --%> > > <%-- Create the connection manually --%> >var="ds" > driver="org.apache.derby.jdbc.EmbeddedDriver" > url="jdbc:derby:${db};create=true" > user="" > password="" > /> > > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[BUILD] 2.1: Failed for Revision: 630657
Geronimo Revision: 630657 built with tests included See the full build-1400.log file at http://geronimo.apache.org/maven/server/binaries/2.1/20080224/build-1400.log Download the binaries from http://geronimo.apache.org/maven/server/binaries/2.1/20080224 [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 30 minutes 26 seconds [INFO] Finished at: Sun Feb 24 14:48:55 EST 2008 [INFO] Final Memory: 304M/999M [INFO] TESTSUITE RESULTS (Failures only) = See detailed results at http://geronimo.apache.org/maven/server/testsuite/ResultsSummary.html Assembly: tomcat = See the full test.log file at http://geronimo.apache.org/maven/server/binaries/2.1/20080224/logs-1400-tomcat/test.log Assembly: jetty = See the full test.log file at http://geronimo.apache.org/maven/server/binaries/2.1/20080224/logs-1400-jetty/test.log [INFO] Running console-testsuite.advance-test [INFO] Tests run: 13, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 77.536 sec <<< FAILURE!
[BUILD] 2.2: Failed for Revision: 630665
Geronimo Revision: 630665 built with tests included See the full build-1500.log file at http://geronimo.apache.org/maven/server/binaries/trunk/20080224/build-1500.log See the unit test reports at http://geronimo.apache.org/maven/server/binaries/trunk/20080224/unit-test-reports [INFO] [tools:copy-legal-files {execution: install-legal-files}] [INFO] Created dir: /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes/META-INF [INFO] Copying 2 files to /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes/META-INF [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 1 source file to /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [tools:verify-legal-files {execution: verify-legal-files}] [INFO] Checking legal files in: geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/geronimo-mejb-2.2-SNAPSHOT.jar to /home/geronimo/.m2/repository/org/apache/geronimo/plugins/geronimo-mejb/2.2-SNAPSHOT/geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [INFO] Building Geronimo Plugins, MEJB :: Config [INFO]task-segment: [install] [INFO] [INFO] [enforcer:enforce {execution: default}] [INFO] [tools:copy-legal-files {execution: install-legal-files}] [INFO] Created dir: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/classes/META-INF [INFO] Copying 2 files to /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/classes/META-INF [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [car:validate-configuration] [INFO] [car:prepare-plan] [INFO] Generated: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/resources/META-INF/plan.xml [INFO] [car:package] Downloading: http://download.java.net/maven/1//xerces/jars/xercesImpl-2.8.0.jar Downloading: http://people.apache.org/repo/m2-incubating-repository//xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar Downloading: http://people.apache.org/repo/m2-snapshot-repository/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar 1178K downloaded Downloading: http://download.java.net/maven/1//org.apache.geronimo.components/jars/geronimo-connector-2.1.jar Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://tomcat.apache.org/dev/dist/m2-repository/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://svn.apache.org/repos/asf/openejb/repo//org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://repo1.maven.org/maven2/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar 98K downloaded [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from apache-snapshots [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from codehaus-snapshots [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from apache.snapshots [INFO] Packaging module configuration: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/resources/META-INF/plan.xml [INFO] Started deployer: org.apache.geronimo.framework/geronimo-gbean-deployer/2.2-SNAPSHOT/car [INFO] Started deployer: org.apache.geronimo.configs/openejb-deployer/2.2-SNAPSHOT/car [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/openejb/jee/EjbReference [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/openejb/jee/EjbReference at org.apache.openejb.config.AnnotationDeployer.(AnnotationDeployer.java:157) at org.apache.openejb.config.ConfigurationFactory.(ConfigurationFactory.java:166) at org.apache.openejb.config.ConfigurationFactory.(ConfigurationFactory.java:110) at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.configureApplication
[jira] Updated: (GERONIMO-3875) Enabling authentication for Derby renders DB Viewer portlet unusable for all db's except SystemDatabase
[ https://issues.apache.org/jira/browse/GERONIMO-3875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vamsavardhana Reddy updated GERONIMO-3875: -- Attachment: GERONIMO-3875.patch GERONIMO-3875.patch: Crude implementation of Option1 from above. Patch created against branches\2.1. Comments? Suggestions?? > Enabling authentication for Derby renders DB Viewer portlet unusable for all > db's except SystemDatabase > --- > > Key: GERONIMO-3875 > URL: https://issues.apache.org/jira/browse/GERONIMO-3875 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: console >Affects Versions: 2.1, 2.1.1, 2.2 > Environment: Win XP, G 2.1 Tomcat >Reporter: Vamsavardhana Reddy >Assignee: Vamsavardhana Reddy > Fix For: 2.1.1, 2.2 > > Attachments: GERONIMO-3875.patch > > > After enabling authentication for Derby, I am noticing that DB Viewer > portlet is unable to work with any database other that SystemDatabase. > listTables.jsp has the following code: > {code} > <%-- Datasource --%> > > <%-- Create the connection manually --%> >var="ds" > driver="org.apache.derby.jdbc.EmbeddedDriver" > url="jdbc:derby:${db};create=true" > user="" > password="" > /> > > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (GERONIMO-3875) Enabling authentication for Derby renders DB Viewer portlet unusable for all db's except SystemDatabase
[ https://issues.apache.org/jira/browse/GERONIMO-3875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571930#action_12571930 ] Vamsavardhana Reddy commented on GERONIMO-3875: --- Option 1: We can search in the connection pools to see if we can obtain a data source matching the database name. Will not work for creating new databases from console. Will not work for databases with no associated DatabasePools. May not work properly if there is more than one Database Pool with same database name. Option 2: Require the user to enter credentials for db authentication, say once per session. > Enabling authentication for Derby renders DB Viewer portlet unusable for all > db's except SystemDatabase > --- > > Key: GERONIMO-3875 > URL: https://issues.apache.org/jira/browse/GERONIMO-3875 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: console >Affects Versions: 2.1, 2.1.1, 2.2 > Environment: Win XP, G 2.1 Tomcat >Reporter: Vamsavardhana Reddy >Assignee: Vamsavardhana Reddy > Fix For: 2.1.1, 2.2 > > > After enabling authentication for Derby, I am noticing that DB Viewer > portlet is unable to work with any database other that SystemDatabase. > listTables.jsp has the following code: > {code} > <%-- Datasource --%> > > <%-- Create the connection manually --%> >var="ds" > driver="org.apache.derby.jdbc.EmbeddedDriver" > url="jdbc:derby:${db};create=true" > user="" > password="" > /> > > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (GERONIMO-3875) Enabling authentication for Derby renders DB Viewer portlet unusable for all db's except SystemDatabase
Enabling authentication for Derby renders DB Viewer portlet unusable for all db's except SystemDatabase --- Key: GERONIMO-3875 URL: https://issues.apache.org/jira/browse/GERONIMO-3875 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: console Affects Versions: 2.1, 2.1.1, 2.2 Environment: Win XP, G 2.1 Tomcat Reporter: Vamsavardhana Reddy Assignee: Vamsavardhana Reddy Fix For: 2.1.1, 2.2 After enabling authentication for Derby, I am noticing that DB Viewer portlet is unable to work with any database other that SystemDatabase. listTables.jsp has the following code: {code} <%-- Datasource --%> <%-- Create the connection manually --%> {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[BUILD] 2.2: Failed for Revision: 630624
Geronimo Revision: 630624 built with tests included See the full build-0900.log file at http://geronimo.apache.org/maven/server/binaries/trunk/20080224/build-0900.log See the unit test reports at http://geronimo.apache.org/maven/server/binaries/trunk/20080224/unit-test-reports [INFO] [tools:copy-legal-files {execution: install-legal-files}] [INFO] Created dir: /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes/META-INF [INFO] Copying 2 files to /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes/META-INF [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 1 source file to /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [tools:verify-legal-files {execution: verify-legal-files}] [INFO] Checking legal files in: geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/geronimo/geronimo/trunk/plugins/mejb/geronimo-mejb/target/geronimo-mejb-2.2-SNAPSHOT.jar to /home/geronimo/.m2/repository/org/apache/geronimo/plugins/geronimo-mejb/2.2-SNAPSHOT/geronimo-mejb-2.2-SNAPSHOT.jar [INFO] [INFO] Building Geronimo Plugins, MEJB :: Config [INFO]task-segment: [install] [INFO] [INFO] [enforcer:enforce {execution: default}] [INFO] [tools:copy-legal-files {execution: install-legal-files}] [INFO] Created dir: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/classes/META-INF [INFO] Copying 2 files to /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/classes/META-INF [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [car:validate-configuration] [INFO] [car:prepare-plan] [INFO] Generated: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/resources/META-INF/plan.xml [INFO] [car:package] Downloading: http://download.java.net/maven/1//xerces/jars/xercesImpl-2.8.0.jar Downloading: http://people.apache.org/repo/m2-incubating-repository//xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar Downloading: http://people.apache.org/repo/m2-snapshot-repository/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.8.0/xercesImpl-2.8.0.jar 1178K downloaded Downloading: http://download.java.net/maven/1//org.apache.geronimo.components/jars/geronimo-connector-2.1.jar Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://people.apache.org/repo/m2-incubating-repository/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://tomcat.apache.org/dev/dist/m2-repository/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://svn.apache.org/repos/asf/openejb/repo//org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar Downloading: http://repo1.maven.org/maven2/org/apache/geronimo/components/geronimo-connector/2.1/geronimo-connector-2.1.jar 98K downloaded [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from apache-snapshots [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from codehaus-snapshots [INFO] snapshot org.apache.geronimo.plugins:geronimo-mejb:2.2-SNAPSHOT: checking for updates from apache.snapshots [INFO] Packaging module configuration: /home/geronimo/geronimo/trunk/plugins/mejb/mejb/target/resources/META-INF/plan.xml [INFO] Started deployer: org.apache.geronimo.framework/geronimo-gbean-deployer/2.2-SNAPSHOT/car [INFO] Started deployer: org.apache.geronimo.configs/openejb-deployer/2.2-SNAPSHOT/car [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/openejb/jee/EjbReference [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/openejb/jee/EjbReference at org.apache.openejb.config.AnnotationDeployer.(AnnotationDeployer.java:157) at org.apache.openejb.config.ConfigurationFactory.(ConfigurationFactory.java:166) at org.apache.openejb.config.ConfigurationFactory.(ConfigurationFactory.java:110) at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.configureApplication
SFSB clustering - how to try it?
Hi, We have now some basic support for SFSB clustering. If you would like to give it a try then here are some instructions. 1. Create a clustered EJB module. * SFSBs must implement Serializable even if they are EJB3 SFSBs. * In the geronimo-openejb DD, include the 'openejb-clustering-wadi' element. I have done some testing with an OpenEJB example, namely CounterImpl, that you can co from https://svn.apache.org/repos/asf/openejb/trunk/ openejb3/examples/simple-stateful. Note that you need to update CounterImpl so that it implements Serializable. And here is the geronimo-opejnejb.xml plan I am using: http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0"; xmlns:wadi="http://geronimo.apache.org/xml/ns/openejb-clustering- wadi-1.2"> org.codehaus.wadi wadi-openejb 2.0-SNAPSHOT jar false 2. Deploy clustering EJB Module 3. Create and start an additional Geronimo Server * To create another instance, say NODE2, you can execute the following commands from the Geronimo install dir: mkdir NODE2 cp -r var NODE2 perl -pi -e 's/PortOffset=0/PortOffset=1/' NODE2/var/config/config- substitutions.properties perl -pi -e 's/clusterNodeName=NODE/clusterNodeName=NODE2/' NODE2/var/ config/config-substitutions.properties * To start this instance, within gshell type: geronimo/start-server -G server.name=NODE2 -b 4. Test the clustered SFSBs If you are also using CounterImpl, then you can use this snippet: Properties properties = new Properties(); properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory"); properties.setProperty(Context.PROVIDER_URL, "ejbd:// 0.0.0.0:4201"); InitialContext remoteContext = new InitialContext(properties); CounterRemote counterRemote = (CounterRemote) remoteContext.lookup("CounterImplRemote"); int cpt = counterRemote.increment(); System.out.println(cpt); cpt = counterRemote.increment(); System.out.println(cpt); cpt = counterRemote.increment(); System.out.println(cpt); To actually trial the clustering: 1. put a breakpoint on the last increment; 2. kill -9 the 'default' Geronimo Server 3. continue your debug session. 3 should be printed. This is a test demonstrating replication. Thanks, Gianny
[BUILD] 2.2: Failed for Revision: 630601
Geronimo Revision: 630601 built with tests included See the full build-0300.log file at http://geronimo.apache.org/maven/server/binaries/trunk/20080224/build-0300.log See the unit test reports at http://geronimo.apache.org/maven/server/binaries/trunk/20080224/unit-test-reports [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Compiling 1 source file to /home/geronimo/geronimo/trunk/plugins/webservices/geronimo-webservices-builder/target/test-classes [INFO] [surefire:test] [WARNING] Component returned which is not the same manager. Ignored. [EMAIL PROTECTED] [WARNING] Component returned which is not the same manager. Ignored. [EMAIL PROTECTED] [WARNING] Component returned which is not the same manager. Ignored. [EMAIL PROTECTED] [INFO] Surefire report directory: /home/geronimo/geronimo/trunk/plugins/webservices/geronimo-webservices-builder/target/surefire-reports --- T E S T S --- Running org.apache.geronimo.webservices.builder.ParsingTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.677 sec Results : Tests run: 7, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar] [INFO] Building jar: /home/geronimo/geronimo/trunk/plugins/webservices/geronimo-webservices-builder/target/geronimo-webservices-builder-2.2-SNAPSHOT.jar [INFO] [tools:verify-legal-files {execution: verify-legal-files}] [INFO] Checking legal files in: geronimo-webservices-builder-2.2-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/geronimo/geronimo/trunk/plugins/webservices/geronimo-webservices-builder/target/geronimo-webservices-builder-2.2-SNAPSHOT.jar to /home/geronimo/.m2/repository/org/apache/geronimo/modules/geronimo-webservices-builder/2.2-SNAPSHOT/geronimo-webservices-builder-2.2-SNAPSHOT.jar [INFO] [INFO] Building Geronimo Plugins, OpenEJB :: Builder [INFO]task-segment: [install] [INFO] [INFO] [enforcer:enforce {execution: default}] [INFO] [xmlbeans:xmlbeans {execution: default}] Time to build schema type system: 0.064 seconds Time to generate code: 0.061 seconds Time to compile code: 2.258 seconds [INFO] [tools:copy-legal-files {execution: install-legal-files}] [INFO] Created dir: /home/geronimo/geronimo/trunk/plugins/openejb/geronimo-openejb-builder/target/classes/META-INF [INFO] Copying 2 files to /home/geronimo/geronimo/trunk/plugins/openejb/geronimo-openejb-builder/target/classes/META-INF [INFO] [buildsupport:copy-xmlbeans-schemas {execution: default}] [INFO] Created dir: /home/geronimo/geronimo/trunk/plugins/openejb/geronimo-openejb-builder/target/clover/classes [INFO] Copying 32 files to /home/geronimo/geronimo/trunk/plugins/openejb/geronimo-openejb-builder/target/clover/classes [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 9 source files to /home/geronimo/geronimo/trunk/plugins/openejb/geronimo-openejb-builder/target/classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure /home/geronimo/geronimo/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java:[632,52] cannot find symbol symbol : constructor ConfigurationFactory(boolean,org.apache.openejb.config.ConfigurationFactory.Chain,org.apache.openejb.assembler.classic.OpenEjbConfiguration) location: class org.apache.openejb.config.ConfigurationFactory /home/geronimo/geronimo/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java:[632,52] cannot find symbol symbol : constructor ConfigurationFactory(boolean,org.apache.openejb.config.ConfigurationFactory.Chain,org.apache.openejb.assembler.classic.OpenEjbConfiguration) location: class org.apache.openejb.config.ConfigurationFactory [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Compilation failure /home/geronimo/geronimo/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java:[632,52] cannot find symbol symbol : constructor ConfigurationFactory(boolean,org.apache.openejb.config.ConfigurationFactory.Chain,org.apache.openejb.assembler.classic.OpenEjbConfiguration) location: class org.apache.openejb.config.ConfigurationFactory at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle