geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Geronimo Wiki] Update of "PetStore" by JacekLaskowski
Date Thu, 07 Jul 2005 22:05:57 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Geronimo Wiki" for change notification.

The following page has been changed by JacekLaskowski:
http://wiki.apache.org/geronimo/PetStore

The comment on the change is:
Less modifications to petstore.ear -thanks Jeremy for the info about Geronimo DD

------------------------------------------------------------------------------
  == Deploying PetStore ==
  
   {{{
- It's still a work in progress
+ It's still a work in progress - current issue: javax.ejb.NoSuchObjectLocalException when
setting a value of a CMP field
  }}}
  
  Before going on, please keep in mind that {{{"whom ever wrote petstore should be hunted
down..."}}}. It's been said during one IRC session and I couldn't resist to include it.
@@ -36, +36 @@

  Throughout the document the following variables are assumed to be set:
  
   * GERONIMO_HOME - the directory where Geronimo is installed or built, e.g. C:\projs\geronimo\modules\assembly\target\geronimo-1.0-SNAPSHOT
-  * PETSTORE_HOME - the directory where petstore.ear is unpacked, e.g. C:\projs\petstore\porting\petstore
+  * PETSTORE_EAR - the directory where petstore.ear is unpacked, e.g. C:\projs\petstore\porting\petstore
+  * PETSTORE_PLAN - the plan of PetStore EAR application (it's created during the deployment
process, see below)
  
-  1. Unpack petstore.ear (one of the files that constitute the application) to a directory
PETSTORE_HOME
+  1. Unpack petstore.ear (one of the files that constitute the application) to a directory
PETSTORE_EAR. 
  
-  1. Change the current working directory to PETSTORE_HOME.
+  1. Change the current working directory to PETSTORE_EAR.
+ 
+  1. Edit {{{META-INF/ejb-jar}}} of (TODO: add more information)
+ 
+  NOTE: Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error:
Duplicate key '' for key or unique constraint relationship-name-uniqueness@http://java.sun.com/xml/ns/j2ee]
  
   1. Edit {{{META-INF/application.xml}}} so that it looks like this:
  
@@ -86, +91 @@

  </application>
  }}}
  
-  1. Create {{{META-INF/geronimo-application.xml}}}:
+  1. Create {{{petstore-plan.xml}}} (Wiki doesn't like such huge XML files, so it's to be
added to Geronimo repository)
+ 
+  1. Copy {{{GERONIMO_HOME\repository\activemq\rars\activemq-ra-3.1-SNAPSHOT.rar}}} into
PETSTORE_EAR
+ 
+  1. Copy {{{GERONIMO_HOME\repository\geronimo\rars\geronimo-derby-connector-1.0-SNAPSHOT.rar}}}
into PETSTORE_EAR
+ 
+  1. Deploy PETSTORE_EAR
  
   {{{
+ $ java -jar bin/deployer.jar --user system --password manager distribute PETSTORE_EAR PETSTORE_PLAN
+ 23:24:59,493 INFO  [LocalConfigStore:config-store/] Loaded Configuration geronimo.config:name="org/apache/geronimo/J2EEDeployer"
+ 23:25:00,325 INFO  [Configuration] Started configuration org/apache/geronimo/J2EEDeployer
+ 23:25:00,655 INFO  [SecurityServiceImpl] JACC factory registered
+ 23:25:03,429 INFO  [LocalConfigStore:config-store/] Loaded Configuration geronimo.config:name="org/apache/geronimo/SystemDatabase"
+ 23:25:03,439 INFO  [LocalConfigStore:config-store/] Loaded Configuration geronimo.config:name="org/apache/geronimo/Server"
+ 23:25:03,449 INFO  [LocalConfigStore:config-store/] Loaded Configuration geronimo.config:name="org/apache/geronimo/System"
+ 23:25:03,539 INFO  [Configuration] Started configuration org/apache/geronimo/System
+ 23:25:04,391 INFO  [Configuration] Started configuration org/apache/geronimo/Server
+ 23:25:04,621 INFO  [Configuration] Started configuration org/apache/geronimo/SystemDatabase
+ 23:25:10,309 INFO  [Configuration] Stopping configuration org/apache/geronimo/SystemDatabase
+ 23:25:10,419 INFO  [Configuration] Stopping configuration org/apache/geronimo/Server
+ 23:25:10,700 INFO  [Configuration] Stopping configuration org/apache/geronimo/System
+ 23:25:11,080 INFO  [LocalConfigStore:config-store/] Installed configuration petstore in
location 25
+ Distributed petstore
+ 23:25:11,090 INFO  [Configuration] Stopping configuration org/apache/geronimo/J2EEDeployer
+ 23:25:11,140 INFO  [Configuration] Stopping configuration org/apache/geronimo/DeployerSystem
+ 23:25:11,150 INFO  [BasicKernel] Starting kernel shutdown
+ 23:25:11,150 INFO  [BasicKernel] Kernel shutdown complete
- <application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application" parentId="org/apache/geronimo/SystemDatabase"
configId="petstore">
-   <module>
-     <ejb>petstore-ejb.jar</ejb>
-     <alt-dd>petstore-ejb.xml</alt-dd>
-   </module>
-   <module>
-     <ejb>customer-ejb.jar</ejb>
-     <alt-dd>customer-ejb.xml</alt-dd>
-   </module>
-   <module>
-     <ejb>asyncsender-ejb.jar</ejb>
-     <alt-dd>asyncsender-ejb.xml</alt-dd>
-   </module>
-   <module>
-     <ejb>cart-ejb.jar</ejb>
-     <alt-dd>cart-ejb.xml</alt-dd>
-   </module>
-   <module>
-     <ejb>signon-ejb.jar</ejb>
-     <alt-dd>signon-ejb.xml</alt-dd>
-   </module>
-   <module>
-     <ejb>uidgen-ejb.jar</ejb>
-     <alt-dd>uidgen-ejb.xml</alt-dd>
-   </module>
-   <module>
-     <ejb>catalog-ejb.jar</ejb>
-     <alt-dd>catalog-ejb.xml</alt-dd>
-   </module>
-   <module>
-     <web>petstore.war</web>
-     <alt-dd>petstore.xml</alt-dd>
-   </module>
-   <module>
-     <connector>geronimo-derby-connector-1.0-SNAPSHOT.rar</connector>
-     <alt-dd>derby-connector.xml</alt-dd>
-   </module>
-   <module>
-     <connector>activemq-ra-3.1-SNAPSHOT.rar</connector>
-     <alt-dd>jms-connector.xml</alt-dd>
-   </module>
- </application>
  }}}
  
+  1. Run PetStore: java -jar bin/server.jar -v petstore
- Note: The file configures alternate Geronimo deployment descriptors so that we don't have
to modify any jars. These deployment descriptors configure Geronimo resources which are mapped
to the virtual ones defined in ejb-jar.xml's, e.g. JNDI name of an EJB, CMP mapping, etc.
- 
-  1. Create {{{petstore-ejb.xml}}}:
  
   {{{
- <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
configId="catalog-ejb">
-   <enterprise-beans>
-     <session>
-       <ejb-name>CatalogEJB</ejb-name>
-       <naming:resource-ref>
-         <naming:ref-name>jdbc/CatalogDB</naming:ref-name>
-         <naming:resource-link>DerbyDatasource</naming:resource-link>
-       </naming:resource-ref>
-       <naming:resource-ref>
-         <naming:ref-name>url/CatalogDAOSQLURL</naming:ref-name>
-         <naming:url>http://localhost:8080/petstore/CatalogDAOSQL.xml</naming:url>
-       </naming:resource-ref>
-     </session>
-   </enterprise-beans>
- </openejb-jar>
- }}}
- 
-  1. Create {{{customer-ejb.xml}}}:
- 
- ...to be added later because Wiki doesn't like it yet...
- 
-  1. Create {{{asyncsender-ejb.xml}}}:
- 
-  {{{
- <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
configId="catalog-ejb">
-   <enterprise-beans>
-     <session>
-       <ejb-name>AsyncSenderEJB</ejb-name>
-       <naming:resource-ref>
-         <naming:ref-name>jms/QueueConnectionFactory</naming:ref-name>
-         <naming:resource-link>QueueConnectionFactory</naming:resource-link>
-       </naming:resource-ref>
-       <naming:resource-env-ref>
-         <naming:ref-name>jms/AsyncSenderQueue</naming:ref-name>
-         <naming:message-destination-link>AsyncSenderQueue</naming:message-destination-link>
-       </naming:resource-env-ref>
-     </session>
-   </enterprise-beans>
- </openejb-jar>
- }}}
- 
-  1. Create {{{cart-ejb.xml}}}:
- 
-  {{{
- <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
configId="catalog-ejb">
-   <enterprise-beans>
-     <session>
-       <ejb-name>CatalogEJB</ejb-name>
-       <naming:resource-ref>
-         <naming:ref-name>jdbc/CatalogDB</naming:ref-name>
-         <naming:resource-link>DerbyDatasource</naming:resource-link>
-       </naming:resource-ref>
-       <naming:resource-ref>
-         <naming:ref-name>url/CatalogDAOSQLURL</naming:ref-name>
-         <naming:url>http://localhost:8080/petstore/CatalogDAOSQL.xml</naming:url>
-       </naming:resource-ref>
-     </session>
-   </enterprise-beans>
- </openejb-jar>
- }}}
- 
-  1. Create {{{signon-ejb.xml}}}:
- 
-  {{{
- <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
configId="catalog-ejb">
-   <naming:cmp-connection-factory>
-     <naming:resource-link>DerbyDatasource</naming:resource-link>
-   </naming:cmp-connection-factory>
-   <enterprise-beans>
-     <entity>
-       <ejb-name>UserEJB</ejb-name>
-       <table-name>USERS</table-name>
-       <cmp-field-mapping>
-         <cmp-field-name>password</cmp-field-name>
-         <table-column>password</table-column>
-       </cmp-field-mapping>
-       <cmp-field-mapping>
-         <cmp-field-name>userName</cmp-field-name>
-         <table-column>userName</table-column>
-       </cmp-field-mapping>
-     </entity>
-   </enterprise-beans>
- </openejb-jar>
- }}}
- 
-  1. Create {{{uidgen-ejb.xml}}}:
- 
-  {{{
- <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
configId="uidgen-ejb">
-   <naming:cmp-connection-factory>
-     <naming:resource-link>DerbyDatasource</naming:resource-link>
-   </naming:cmp-connection-factory>
-   <enterprise-beans>
-     <entity>
-       <ejb-name>CounterEJB</ejb-name>
-       <table-name>COUNTER</table-name>
-       <cmp-field-mapping>
-         <!-- Would be better when the filed named field-name -->
-         <cmp-field-name>counter</cmp-field-name>
-         <table-column>COUNTER</table-column>
-       </cmp-field-mapping>
-       <cmp-field-mapping>
-         <cmp-field-name>name</cmp-field-name>
-         <table-column>NAME</table-column>
-       </cmp-field-mapping>
-     </entity>
-   </enterprise-beans>
- </openejb-jar>
- }}}
- 
-  1. Create {{{catalog-ejb.xml}}}:
- 
-  {{{
- <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
configId="catalog-ejb">
-   <enterprise-beans>
-     <session>
-       <ejb-name>CatalogEJB</ejb-name>
-       <naming:resource-ref>
-         <naming:ref-name>jdbc/CatalogDB</naming:ref-name>
-         <naming:resource-link>DerbyDatasource</naming:resource-link>
-       </naming:resource-ref>
-       <naming:resource-ref>
-         <naming:ref-name>url/CatalogDAOSQLURL</naming:ref-name>
-         <naming:url>http://localhost:8080/petstore/CatalogDAOSQL.xml</naming:url>
-       </naming:resource-ref>
-     </session>
-   </enterprise-beans>
- </openejb-jar>
- }}}
- 
-  1. Create {{{petstore.xml}}}:
- 
-  {{{
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app xmlns="http://geronimo.apache.org/xml/ns/web/jetty" xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
configId="petstore-war">
-       <context-priority-classloader>false</context-priority-classloader>
-       <naming:ejb-local-ref>
-         <naming:ref-name>ShoppingControllerEJB</naming:ref-name>
-         <naming:ejb-link>#ShoppingControllerEJB</naming:ejb-link>
-       </naming:ejb-local-ref>
-       <naming:resource-ref>
-         <naming:ref-name>jdbc/CatalogDB</naming:ref-name>
-         <naming:resource-link>DerbyDatasource</naming:resource-link>
-       </naming:resource-ref>
-       <naming:resource-ref>
-         <naming:ref-name>url/CatalogDAOSQLURL</naming:ref-name>
-         <naming:url>http://localhost:8080/petstore/CatalogDAOSQL.xml</naming:url>
-       </naming:resource-ref>
- </web-app>
- }}}
- 
-  1. Create {{{derby-connector.xml}}}:
- 
-  {{{
- <?xml version="1.0" encoding="UTF-8"?>
- <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector" version="1.5" parentId="org/apache/geronimo/SystemDatabase"
configId="petstore/derby">
-   <resourceadapter>
-     <outbound-resourceadapter>
-       <connection-definition>
-         <connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
-         <connectiondefinition-instance>
-           <name>DerbyDatasource</name>
-           <config-property-setting name="UserName">petstore</config-property-setting>
-           <config-property-setting name="Password">petstore</config-property-setting>
-           <config-property-setting name="DatabaseName">PetStoreDatabase</config-property-setting>
-           <config-property-setting name="CreateDatabase">create</config-property-setting>
-           <connectionmanager>
-             <xa-transaction>
-               <transaction-caching/>
-             </xa-transaction>
-             <single-pool>
-               <max-size>10</max-size>
-               <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
-               <match-one/>
-             </single-pool>
-           </connectionmanager>
-         </connectiondefinition-instance>
-       </connection-definition>
-     </outbound-resourceadapter>
-   </resourceadapter>
- </connector>
- }}}
- 
-  1. Create {{{jms-connector.xml}}}:
- 
-  {{{
- <?xml version="1.0" encoding="UTF-8"?>
- <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector" version="1.5" configId="petstore-jms">
-   <dependency>
-     <uri>activemq/jars/activemq-core-3.1-SNAPSHOT.jar</uri>
-   </dependency>
-   <resourceadapter>
-     <resourceadapter-instance>
-       <resourceadapter-name>PetStore JMS Resources</resourceadapter-name>
-       <config-property-setting name="ServerUrl">tcp://localhost:61616</config-property-setting>
-       <config-property-setting name="UserName">geronimo</config-property-setting>
-       <config-property-setting name="Password">geronimo</config-property-setting>
-       <workmanager>
-         <gbean-link>DefaultWorkManager</gbean-link>
-       </workmanager>
-     </resourceadapter-instance>
-     <outbound-resourceadapter>
-       <connection-definition>
-         <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
-         <connectiondefinition-instance>
-           <name>QueueConnectionFactory</name>
-           <implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
-           <implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
-           <connectionmanager>
-             <xa-transaction>
-               <transaction-caching/>
-             </xa-transaction>
-             <single-pool>
-               <max-size>10</max-size>
-               <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
-               <match-one/>
-             </single-pool>
-           </connectionmanager>
-           <global-jndi-name>jms/ConnectionFactoryLocalTx</global-jndi-name>
-           <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
-         </connectiondefinition-instance>
-       </connection-definition>
-     </outbound-resourceadapter>
-   </resourceadapter>
-   <adminobject>
-     <adminobject-interface>javax.jms.Queue</adminobject-interface>
-     <adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</adminobject-class>
-     <adminobject-instance>
-       <message-destination-name>AsyncSenderQueue</message-destination-name>
-       <config-property-setting name="PhysicalName">AsyncSenderQueue</config-property-setting>
-     </adminobject-instance>
-   </adminobject>
- </connector>
- }}}
- 
-  1. Copy {{{GERONIMO_HOME\repository\activemq\rars\activemq-ra-3.1-SNAPSHOT.rar}}} into
PETSTORE_HOME
- 
-  1. Copy {{{GERONIMO_HOME\repository\geronimo\rars\geronimo-derby-connector-1.0-SNAPSHOT.rar}}}
into PETSTORE_HOME
- 
-  1. Deploy PETSTORE_HOME: java -jar bin/deployer.jar distribute PETSTORE_HOME
- 
-  {{{
- $ java -jar bin/deployer.jar distribute c\:/projs/petstore/porting/petstore
- 22:19:45,148 INFO  [LocalConfigStore:config-store/] Loaded Configuration geronimo.config:name="org/apache/geronimo/J2EEDeployer"
- 22:19:45,829 INFO  [Configuration] Started configuration org/apache/geronimo/J2EEDeployer
- 22:19:46,149 INFO  [SecurityServiceImpl] JACC factory registered
- 22:19:48,703 INFO  [LocalConfigStore:config-store/] Loaded Configuration geronimo.config:name="org/apache/geronimo/SystemDatabase"
- 22:19:48,713 INFO  [LocalConfigStore:config-store/] Loaded Configuration geronimo.config:name="org/apache/geronimo/Server"
- 22:19:48,723 INFO  [LocalConfigStore:config-store/] Loaded Configuration geronimo.config:name="org/apache/geronimo/System"
- 22:19:48,803 INFO  [Configuration] Started configuration org/apache/geronimo/System
- 22:19:49,324 INFO  [Configuration] Started configuration org/apache/geronimo/Server
- 22:19:49,614 INFO  [Configuration] Started configuration org/apache/geronimo/SystemDatabase
- 22:19:55,002 INFO  [Configuration] Stopping configuration org/apache/geronimo/SystemDatabase
- 22:19:55,172 INFO  [Configuration] Stopping configuration org/apache/geronimo/Server
- 22:19:55,312 INFO  [Configuration] Stopping configuration org/apache/geronimo/System
- 22:19:55,913 INFO  [LocalConfigStore:config-store/] Installed configuration petstore in
location 92
- Distributed petstore
- 22:19:55,923 INFO  [Configuration] Stopping configuration org/apache/geronimo/J2EEDeployer
- 22:19:56,134 INFO  [Configuration] Stopping configuration org/apache/geronimo/DeployerSystem
- 22:19:56,134 INFO  [BasicKernel] Starting kernel shutdown
- 22:19:56,134 INFO  [BasicKernel] Kernel shutdown complete
- }}}
- 
-  1. Run PetStore: java -jar bin/server.jar petstore
- 
-  {{{
- $ java -jar bin/server.jar petstore
+ $ java -jar bin/server.jar -v petstore
+ Booting Geronimo Kernel (in Java 1.4.2_08)...
- 22:20:44,854 INFO  [Daemon] Server startup begun
+ 23:27:49,218 INFO  [Daemon] Server startup begun
- 22:20:44,864 INFO  [Daemon] java.endorsed.dirs=c:\apps\j2sdk15\jre\lib\endorsed;C:\projs\geronimo\modules\assembly\target\geronimo-1.0-SNAPSHOT\lib\endorsed
+ 23:27:49,458 INFO  [MBeanServerFactory] Created MBeanServer with ID: 1479feb:104f3327daa:-8000:xxx:1
- 22:20:45,004 INFO  [BasicKernel] Starting boot
+ 23:27:49,468 INFO  [BasicKernel] Starting boot
- 22:20:45,174 INFO  [BasicKernel] Booted
+ 23:27:49,648 INFO  [BasicKernel] Booted
- 22:20:45,384 INFO  [Configuration] Started configuration org/apache/geronimo/System
+ 23:27:49,828 INFO  [Configuration] Started configuration org/apache/geronimo/System
- 22:20:45,495 INFO  [ReadOnlyRepository] Repository root is file:/C:/projs/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/
+ 23:27:49,939 INFO  [ReadOnlyRepository] Repository root is file:/C:/projs/geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT/repository/
- 22:20:45,695 INFO  [RMIRegistryService] Started RMI Registry on port 1099
+ 23:27:50,179 INFO  [RMIRegistryService] Started RMI Registry on port 1099
- 22:20:45,725 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="petstore"
+ 23:27:50,209 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="petstore"
- 22:20:45,785 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/SystemDatabase"
+ 23:27:50,219 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/SystemDatabase"
- 22:20:45,795 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/Server"
+ 23:27:50,229 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="org/apache/geronimo/Server"
- 22:20:46,426 INFO  [Configuration] Started configuration org/apache/geronimo/Server
+ 23:27:50,940 INFO  [Configuration] Started configuration org/apache/geronimo/Server
- 22:20:46,786 INFO  [HttpServer] Statistics on = false for org.apache.geronimo.jetty.JettyServer@8dcd5d
+ 23:27:51,331 INFO  [HttpServer] Statistics on = false for org.apache.geronimo.jetty.JettyServer@1add463
- 22:20:46,786 INFO  [HttpServer] Version Jetty/5.1.4rc0
+ 23:27:51,331 INFO  [HttpServer] Version Jetty/5.1.4rc0
- 22:20:46,796 INFO  [Container] Started org.apache.geronimo.jetty.JettyServer@8dcd5d
+ 23:27:51,331 INFO  [Container] Started org.apache.geronimo.jetty.JettyServer@1add463
- 22:20:46,857 INFO  [SocketListener] Started SocketListener on 0.0.0.0:8080
+ 23:27:51,451 INFO  [SocketListener] Started SocketListener on 0.0.0.0:8080
- 22:20:46,927 INFO  [SecurityServiceImpl] JACC factory registered
+ 23:27:51,491 INFO  [SecurityServiceImpl] JACC factory registered
- 22:20:47,037 INFO  [HOWLLog] Initiating transaction manager recovery
+ 23:27:51,531 INFO  [HOWLLog] Initiating transaction manager recovery
- 22:20:47,107 WARN  [HOWLLog] Received unexpected log record: org.objectweb.howl.log.xa.XALogRecord@d0357a
- 22:20:47,107 INFO  [HOWLLog] In doubt transactions recovered from log
+ 23:27:51,631 INFO  [HOWLLog] In doubt transactions recovered from log
- 22:20:47,127 INFO  [GeronimoLoginConfiguration] Added Application Configuration Entry geronimo-properties-realm
+ 23:27:51,651 INFO  [GeronimoLoginConfiguration] Added Application Configuration Entry geronimo-properties-realm
- 22:20:47,127 INFO  [GeronimoLoginConfiguration] Added Application Configuration Entry JMX
+ 23:27:51,651 INFO  [GeronimoLoginConfiguration] Added Application Configuration Entry JMX
- 22:20:47,127 INFO  [GeronimoLoginConfiguration] Installed Geronimo login configuration
+ 23:27:51,691 INFO  [GeronimoLoginConfiguration] Installed Geronimo login configuration
- 22:20:47,157 INFO  [Credential] Checking Resource aliases
+ 23:27:51,891 INFO  [Credential] Checking Resource aliases
- 22:20:47,578 INFO  [SslListener] SslListener.needClientAuth=false
+ 23:27:52,292 INFO  [SslListener] SslListener.needClientAuth=false
- 22:20:47,578 INFO  [SocketListener] Started SocketListener on 0.0.0.0:8443
+ 23:27:52,292 INFO  [SocketListener] Started SocketListener on 0.0.0.0:8443
+ 23:27:52,582 INFO  [RMIConnectorServer] RMIConnectorServer started at: service:jmx:rmi://localhost/jndi/rmi:/JMXConnector
- 22:20:47,758 INFO  [server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JMXService]
Started JMXConnector s
+ 23:27:52,582 INFO  [server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JMXService]
Started JMXConnector service:jmx:rmi://localhost/jndi/rmi:/JMXConnector
- ervice:jmx:rmi://localhost/jndi/rmi:/JMXConnector
- 22:20:48,148 INFO  [Configuration] Started configuration org/apache/geronimo/SystemDatabase
+ 23:27:52,993 INFO  [Configuration] Started configuration org/apache/geronimo/SystemDatabase
- 22:20:48,789 INFO  [DerbySystem] Started in C:\projs\geronimo\modules\assembly\target\geronimo-1.0-SNAPSHOT\var\derby
+ 23:27:54,075 INFO  [DerbySystem] Started in C:\projs\geronimo\modules\assembly\target\geronimo-1.0-SNAPSHOT\var\derby
- 22:20:50,632 INFO  [DerbyNetwork] Started on host localhost:1527
+ 23:27:56,328 INFO  [DerbyNetwork] Started on host localhost:1527
- 22:20:52,735 INFO  [Configuration] Started configuration petstore
+ 23:27:58,381 INFO  [Configuration] Started configuration petstore
- 22:20:52,795 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=asyncsender-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeTyp
+ 23:27:58,441 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=asyncsender-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=AsyncSenderEJB'
started
- e=StatelessSessionBean,name=AsyncSenderEJB' started
- 22:20:52,835 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=E
+ 23:27:58,481 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=ProfileEJB'
started
- ntityBean,name=ProfileEJB' started
- 22:20:53,236 INFO  [Container] Started org.mortbay.jetty.servlet.WebApplicationHandler@1117681
+ 23:27:58,751 INFO  [Container] Started org.mortbay.jetty.servlet.WebApplicationHandler@1444986
- 22:20:53,236 INFO  [/petstore] JSR154 unwrappedDispatchSupported=true
+ 23:27:58,751 INFO  [/petstore] JSR154 unwrappedDispatchSupported=true
- 22:20:53,236 INFO  [JettyWebAppContext] JettyWebAppContext started
+ 23:27:58,751 INFO  [JettyWebAppContext] JettyWebAppContext started
- 22:20:53,236 INFO  [Container] Started WebApplicationContext[/petstore,PetStoreWAR]
+ 23:27:58,751 INFO  [Container] Started WebApplicationContext[/petstore,PetStoreWAR]
- 22:20:53,366 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=CreditCardEJB'
started
+ 23:27:58,881 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=CreditCardEJB'
started
- 22:20:53,426 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=AccountEJB'
started
+ 23:27:58,911 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=AccountEJB'
started
- 22:20:53,446 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=petstore-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatefulSessionBean,name=ShoppingControllerEJB'
started
+ 23:27:58,942 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=petstore-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatefulSessionBean,name=ShoppingControllerEJB'
started
- 22:20:53,476 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=CustomerEJB'
started
+ 23:27:58,962 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=CustomerEJB'
started
- 22:20:53,546 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=AddressEJB'
started
+ 23:27:59,062 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=AddressEJB'
started
- 22:20:53,566 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=petstore-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatefulSessionBean,name=ShoppingClientFacadeEJB'
started
+ 23:27:59,082 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=petstore-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatefulSessionBean,name=ShoppingClientFacadeEJB'
started
- 22:20:53,626 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=catalog-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=CatalogEJB'
started
+ 23:27:59,142 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=catalog-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=CatalogEJB'
started
- 22:20:53,646 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=uidgen-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=UniqueIdGeneratorEJB'
started
+ 23:27:59,152 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=uidgen-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=UniqueIdGeneratorEJB'
started
- 22:20:53,666 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=signon-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=SignOnEJB'
started
+ 23:27:59,172 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=signon-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatelessSessionBean,name=SignOnEJB'
started
- 22:20:53,696 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=signon-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=UserEJB'
started
+ 23:27:59,202 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=signon-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=UserEJB'
started
- 22:20:54,087 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=cart-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatefulSessionBean,name=ShoppingCartEJB'
started
+ 23:27:59,602 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=cart-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=StatefulSessionBean,name=ShoppingCartEJB'
started
- 22:20:54,287 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=uidgen-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=CounterEJB'
started
+ 23:28:00,053 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=uidgen-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=CounterEJB'
started
- 22:20:54,327 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=ContactInfoEJB'
started
+ 23:28:00,083 INFO  [GenericEJBContainer] GenericEJBContainer 'geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=ContactInfoEJB'
started
+ Geronimo startup complete
- 22:20:54,397 INFO  [Daemon] Server startup completed
+ 23:28:00,364 INFO  [Daemon] Server startup completed
  }}}
  
   1. Connect to Derby database (via Network Server) and execute the DDLs:
@@ -468, +187 @@

  ij> connect 'PetStoreDatabase;create=true';
  ij> create table USERS (password varchar(255), userName varchar(255));
  ij> create table CUSTOMER_EJB_SEQUENCE_TABLE (ID INTEGER NOT NULL GENERATED ALWAYS AS
IDENTITY (START WITH 1, INCREMENT BY 1), dummy integer);
- ij> create table ADDRESSES (id integer, zipCode varchar(255), state varchar(255), streetName2
varchar(255), streetName1 varchar(255), country varchar(255), city varchar(255));
+ ij> create table ADDRESSES (ID INTEGER NOT NULL, zipCode varchar(255), state varchar(255),
streetName2 varchar(255), streetName1 varchar(255), country varchar(255), city varchar(255));
  ij> disconnect;
  ij> exit;
  }}}
  
   1. Point the browser of your choice to http://localhost:8080/petstore/ and select any URL
- it will start the process of populating the database.
+ 
+  1. To be continued...
  
  = Getting Petstore 1.1.2 to work on Apache Geronimo =
  

Mime
View raw message