6 Replies Latest reply on Jan 27, 2005 2:12 PM by Amit Basu

    insert-after-ejb-post-create is broken is unknown-pk is used

    Luiz-Otavio Zorzella Newbie

      When I use INDENTITY keys plus the insert-after-ejb-post-create, the
      latter tag is simply ignored by jboss.

      You see, I have created a CMP/CMR bean to map a table that has both:

      * IDENTITY columns as PKs (i.e. DB-generated auto-incremented int) and

      * NOT NULL constraints on its foreign keys

      For the IDENTITY, I'm using these tags (all XDoclet-generated) in
      jbosscmp-jdbc.xml:

      <unknown-pk>
       <unknown-pk-class>java.lang.Integer</unknown-pk-class>
       <column-name>attribute_key</column-name>
       <jdbc-type>INTEGER</jdbc-type>
       <sql-type>int</sql-type>
       <auto-increment/>
       </unknown-pk>
       <entity-command name="mssql-fetch-key" class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCSQLServerCreateCommand">
       <attribute name="pk-sql">select @@IDENTITY</attribute>
       </entity-command>
      


      As for the NOT NULL foreign key constraint I'm using these in jboss.xml:

      <entity>
       <ejb-name>AttributeBean</ejb-name>
       <local-jndi-name>epiphany/AttributeBean</local-jndi-name>
       <configuration-name>INSERT after ejbPostCreate Container</configuration-name>
       <method-attributes>
       </method-attributes>
       </entity>
      
      [...]
      
       <container-configuration extends="Standard CMP 2.x EntityBean">
       <container-name>INSERT after ejbPostCreate Container</container-name>
       <insert-after-ejb-post-create>true</insert-after-ejb-post-create>
       </container-configuration>
      


      Note: NOT NULL FKs are a problem for CMR because the relationship is
      established only at ejbPostCreate, thus the INSERT command at
      ejbCreate tries to insert a NULL at the FK column.

      Both of these work correctly, if used alone. I.e. if I change my model
      to not use INDENTITY columns, the insert-after-ejb-post-create
      works. Converselly, if I drop the NOT NULL constraint of the foreign
      key, things also work fine.

      But, as I said, if I try to use both things at once, it seems that the
      insert-after-ejb-post-create is ignored, as I see the same error
      message as if I hadn't used the insert-after-ejb-post-create tag:

      Cannot insert the value NULL into column 'attribute_key', table 'mltest.dbo.attribute'; column does not allow nulls. INSERT fails.


      Am I missing something? Is it really broke? Is there any way to work
      these two issues out?

      jboss-4.0.0, EJB 2.0 spec

      Thanks in advance,

      Zorzella


        • 1. DefaultDS not bound Oracle JBoss-3.0.1RC1
          Amit Basu Newbie

          I am having problems getting the oracle-service.xml file working correctly. I have modified the oracle-service.xml file as below and placed it into the deploy directory (the myHost, mySid, myUsername, and myPassword's are all correct in my true deployment). It appears to load correctly (see server.log below). I also update the standardjaws.xml to use the Oracle8 type mapping (still pointing to the DefaultDS binding). A simple client application (and also an entity bean) cannot refence java:/DefaultDS, it claims that DefaultDS is not bound. Any suggestions?

          >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>..
          oracle-service.xml:
          <?xml version="1.0" encoding="UTF-8"?>

          <!-- ===================================================================== -->
          <!-- -->
          <!-- JBoss Server Configuration -->
          <!-- -->
          <!-- ===================================================================== -->



          <!-- ==================================================================== -->
          <!-- ConnectionManager setup for Oracle dbs -->
          <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
          <!-- Thanks to Steven Coy -->
          <!-- ==================================================================== -->




          <!-- Include a login module configuration named OracleDbRealm.
          Update your login-conf.xml, here is an example for a
          ConfiguredIdentityLoginModule:

          <application-policy name = "OracleDbRealm">

          <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
          <module-option name = "principal">yourprincipal</module-option>
          <module-option name = "userName">yourusername</module-option>
          <module-option name = "password">yourpassword</module-option>
          <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS</module-option>
          </login-module>

          </application-policy>

          NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the
          module-option name = "managedConnectionFactoryName"
          must match the object name of the ConnectionManager you are configuring here.
          -->

          <!--uncomment out this line if you are using the OracleDbRealm above
          OracleDbRealm
          -->

          <depends optional-attribute-name="ManagedConnectionFactoryName">
          <!--embedded mbean-->


          DefaultDS



          <config-property name="ConnectionURL" type="java.lang.String">jdbc:oracle:thin:@"myHost":1521:"mySid"</config-property>
          <config-property name="DriverClass" type="java.lang.String">oracle.jdbc.driver.OracleDriver</config-property>
          <!--set these only if you want only default logins, not through JAAS -->
          <config-property name="UserName" type="java.lang.String">"myUserName"</config-property>
          <config-property name="Password" type="java.lang.String">"myPassword"</config-property>




          <!--Below here are advanced properties -->
          <!--hack-->
          <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper



          <depends optional-attribute-name="ManagedConnectionPool">
          <!--embedded mbean-->


          0
          50
          5000
          15
          <!--criteria indicates if Subject (from security domain) or app supplied
          parameters (such as from getConnection(user, pw)) are used to distinguish
          connections in the pool. Choices are
          ByContainerAndApplication (use both),
          ByContainer (use Subject),
          ByApplication (use app supplied params only),
          ByNothing (all connections are equivalent, usually if adapter supports
          reauthentication)-->
          ByContainer



          <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager

          <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager

          java:/TransactionManager

          <!--make the rar deploy! hack till better deployment-->
          jboss.jca:service=RARDeployer






          >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
          server.log
          2002-07-22 07:54:46,292 DEBUG [org.jboss.logging.Log4jService] Installed System.out adapter
          2002-07-22 07:54:46,292 DEBUG [org.jboss.logging.Log4jService] Installed System.err adapter
          2002-07-22 07:54:46,302 DEBUG [org.jboss.logging.Log4jService] Added ThrowableListener: org.jboss.logging.Log4jService$ThrowableListenerLoggingAdapter@fc6e42
          2002-07-22 07:54:46,302 INFO [org.jboss.logging.Log4jService] Started
          2002-07-22 07:54:46,302 INFO [org.jboss.web.WebService] Starting
          2002-07-22 07:54:46,312 DEBUG [org.jboss.web.WebServer] Started server: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8083]
          2002-07-22 07:54:46,312 INFO [org.jboss.web.WebService] Started webserver with address: null port: 8083
          2002-07-22 07:54:46,312 INFO [org.jboss.web.WebService] Codebase set to: http://cancer:8083/
          2002-07-22 07:54:46,312 INFO [org.jboss.web.WebService] Started
          2002-07-22 07:54:46,322 INFO [org.jboss.naming.NamingService] Starting
          2002-07-22 07:54:46,342 DEBUG [org.jboss.naming.NamingService] System.setProperty, key=java.naming.factory.initial, value=org.jnp.interfaces.NamingContextFactory
          2002-07-22 07:54:46,342 DEBUG [org.jboss.naming.NamingService] System.setProperty, key=java.naming.factory.url.pkgs, value=org.jboss.naming:org.jnp.interfaces
          2002-07-22 07:54:46,342 INFO [org.jboss.naming.NamingService] Starting jnp server
          2002-07-22 07:54:46,422 DEBUG [org.jboss.naming.NamingService] NamingServer stub: org.jnp.server.NamingServer_Stub[RemoteStub [ref: [endpoint:[192.168.0.44:2696](local),objID:[0]]]]
          2002-07-22 07:54:46,462 INFO [org.jboss.naming.NamingService] Started jnpPort=1099, rmiPort=0, backlog=50, bindAddress=null, Client SocketFactory=null, Server SocketFactory=null
          2002-07-22 07:54:46,472 DEBUG [org.jboss.naming.NamingService] InitialContext Environment:
          2002-07-22 07:54:46,472 DEBUG [org.jboss.naming.NamingService] key=java.naming.factory.initial, value=org.jnp.interfaces.NamingContextFactory
          2002-07-22 07:54:46,472 DEBUG [org.jboss.naming.NamingService] key=java.naming.factory.url.pkgs, value=org.jboss.naming:org.jnp.interfaces
          2002-07-22 07:54:46,482 INFO [org.jboss.naming.NamingService] Listening on port 1099
          2002-07-22 07:54:46,482 INFO [org.jboss.naming.NamingService] Started
          2002-07-22 07:54:46,492 INFO [org.jboss.naming.JNDIView] Starting
          2002-07-22 07:54:46,492 INFO [org.jboss.naming.JNDIView] Started
          2002-07-22 07:54:46,492 INFO [org.jboss.security.plugins.SecurityConfig] Starting
          2002-07-22 07:54:46,492 DEBUG [org.jboss.security.plugins.SecurityConfig] Installed JAAS Configuration service=jboss.security:service=XMLLoginConfig, config=org.jboss.security.auth.login.XMLLoginConfig@9bb25a
          2002-07-22 07:54:46,492 INFO [org.jboss.security.plugins.SecurityConfig] Started
          2002-07-22 07:54:46,492 DEBUG [org.jboss.security.auth.login.XMLLoginConfig] Loading xmlConfig=file:/E:/jboss-3.0.1RC1/server/default/conf/login-config.xml
          2002-07-22 07:54:46,542 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Starting
          2002-07-22 07:54:46,542 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] securityMgrCtxPath=java:/jaas
          2002-07-22 07:54:46,552 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] cachePolicyCtxPath=java:/timedCacheFactory
          2002-07-22 07:54:46,562 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@297ffb
          2002-07-22 07:54:46,562 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Started
          2002-07-22 07:54:46,562 DEBUG [org.jboss.system.ServiceController] Starting dependent components: [ObjectName: jboss:service=TransactionManager
          state: CREATED
          I Depend On: jboss:service=XidFactory

          Depends On Me: ]
          2002-07-22 07:54:46,562 INFO [org.jboss.tm.TransactionManagerService] Starting
          2002-07-22 07:54:46,623 INFO [org.jboss.tm.TransactionManagerService] Started
          2002-07-22 07:54:46,623 INFO [org.jboss.tm.usertx.server.ClientUserTransactionService] Starting
          2002-07-22 07:54:46,663 INFO [org.jboss.tm.usertx.server.ClientUserTransactionService] Started
          2002-07-22 07:54:46,673 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Starting
          2002-07-22 07:54:46,683 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Started
          2002-07-22 07:54:46,683 INFO [org.jboss.ejb.EJBDeployer] Starting
          2002-07-22 07:54:46,703 INFO [org.jboss.deployment.MainDeployer] Adding deployer: org.jboss.ejb.EJBDeployer@65a3c2
          2002-07-22 07:54:46,703 INFO [org.jboss.ejb.EJBDeployer] Started
          2002-07-22 07:54:46,703 INFO [org.jboss.deployment.EARDeployer] Starting
          2002-07-22 07:54:46,703 INFO [org.jboss.deployment.MainDeployer] Adding deployer: org.jboss.deployment.EARDeployer@e228bc
          2002-07-22 07:54:46,703 INFO [org.jboss.deployment.EARDeployer] Started
          2002-07-22 07:54:46,703 INFO [org.jboss.invocation.jrmp.server.JRMPInvoker] Starting
          2002-07-22 07:54:46,733 DEBUG [org.jboss.invocation.jrmp.server.JRMPInvoker] Bound JRMP invoker for JMX node
          2002-07-22 07:54:46,733 INFO [org.jboss.invocation.jrmp.server.JRMPInvoker] Started
          2002-07-22 07:54:46,733 INFO [org.jboss.invocation.local.LocalInvoker] Starting
          2002-07-22 07:54:46,733 DEBUG [org.jboss.invocation.local.LocalInvoker] Local invoker for JMX node started
          2002-07-22 07:54:46,733 INFO [org.jboss.invocation.local.LocalInvoker] Started
          2002-07-22 07:54:46,733 INFO [org.jboss.deployment.scanner.URLDeploymentScanner] Starting
          2002-07-22 07:54:46,743 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:46,743 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:46,743 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:46,743 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@c05ffd{ url=file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/ }
          2002-07-22 07:54:46,743 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] Failed to update pkgs for cl=org.jboss.mx.loading.UnifiedClassLoader@c05ffd{ url=file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/ }
          2002-07-22 07:54:46,743 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@872380
          2002-07-22 07:54:46,783 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
          2002-07-22 07:54:46,793 DEBUG [org.jboss.deployment.MainDeployer] found 4 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:46,793 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.jboss.jetty.jar
          2002-07-22 07:54:46,793 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossweb.sar/org.jboss.jetty.jar/39.org.jboss.jetty.jar
          2002-07-22 07:54:46,793 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@de1b8a{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossweb.sar/org.jboss.jetty.jar/39.org.jboss.jetty.jar }
          2002-07-22 07:54:46,803 DEBUG [org.jboss.deployment.JARDeployer] no xmls found
          2002-07-22 07:54:46,803 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@32e13d
          2002-07-22 07:54:46,813 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.jboss.jetty.jar
          2002-07-22 07:54:46,813 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.jboss.jetty.jar
          2002-07-22 07:54:46,813 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jar
          2002-07-22 07:54:46,823 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jar/40.org.mortbay.jetty.jar
          2002-07-22 07:54:46,823 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@6f144c{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jar/40.org.mortbay.jetty.jar }
          2002-07-22 07:54:46,913 DEBUG [org.jboss.deployment.JARDeployer] no xmls found
          2002-07-22 07:54:46,913 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@32e13d
          2002-07-22 07:54:46,923 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jar
          2002-07-22 07:54:46,923 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jar
          2002-07-22 07:54:46,923 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.apache.jasper.jar
          2002-07-22 07:54:46,933 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossweb.sar/org.apache.jasper.jar/41.org.apache.jasper.jar
          2002-07-22 07:54:46,933 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@baa466{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossweb.sar/org.apache.jasper.jar/41.org.apache.jasper.jar }
          2002-07-22 07:54:47,113 DEBUG [org.jboss.deployment.JARDeployer] no xmls found
          2002-07-22 07:54:47,113 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@32e13d
          2002-07-22 07:54:47,123 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.apache.jasper.jar
          2002-07-22 07:54:47,123 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.apache.jasper.jar
          2002-07-22 07:54:47,123 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jmx.jar
          2002-07-22 07:54:47,123 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jmx.jar/42.org.mortbay.jetty.jmx.jar
          2002-07-22 07:54:47,123 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@ee6681{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jmx.jar/42.org.mortbay.jetty.jmx.jar }
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.JARDeployer] no xmls found
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@32e13d
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jmx.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jmx.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.jboss.jetty.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying org.jboss.jetty.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying org.mortbay.jetty.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.apache.jasper.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying org.apache.jasper.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jmx.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying org.mortbay.jetty.jmx.jar
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:47,133 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=12607485
          2002-07-22 07:54:47,143 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository skipping duplicate org.jboss.mx.loading.UnifiedClassLoader@c05ffd{ url=file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/ }
          2002-07-22 07:54:47,143 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.web:service=Jetty
          2002-07-22 07:54:47,143 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.jetty.JettyService
          2002-07-22 07:54:47,283 DEBUG [org.jboss.jetty.JettyService] connected JBoss and Jetty Log models
          2002-07-22 07:54:47,664 INFO [org.jboss.jetty.Jetty] Registered jboss.web:Jetty=0
          2002-07-22 07:54:47,684 INFO [org.jboss.jetty.Jetty] Registered jboss.web:Jetty=Debug
          2002-07-22 07:54:47,704 INFO [org.jboss.jetty.Jetty] Registered jboss.web:Jetty=Log
          2002-07-22 07:54:47,724 INFO [org.jboss.jetty.Jetty] Registered jboss.web:Jetty=Log,sink=0
          2002-07-22 07:54:47,724 DEBUG [org.jboss.jetty.JettyService] created MBean peers
          2002-07-22 07:54:47,724 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.web:service=Jetty
          2002-07-22 07:54:47,724 DEBUG [org.jboss.system.ServiceConfigurator] UnpackWars set to true in jboss.web:service=Jetty
          2002-07-22 07:54:47,724 DEBUG [org.jboss.jetty.JettyService] set UnpackWars to true
          2002-07-22 07:54:47,724 DEBUG [org.jboss.system.ServiceConfigurator] Java2ClassLoadingCompliance set to true in jboss.web:service=Jetty
          2002-07-22 07:54:47,724 DEBUG [org.jboss.jetty.JettyService] set Java2ClassLoadingCompliance to true
          2002-07-22 07:54:47,734 DEBUG [org.jboss.system.ServiceConfigurator] ConfigurationElement set to

          <!-- =========================================================== -->
          <!-- Add the listener -->
          <!-- The default port can be changed using: java -Djetty.port=80 -->
          <!-- =========================================================== -->





          5
          255
          30000
          10000
          5000
          5000




          <!-- ======================================================= -->
          <!-- Add the HTTP request log -->
          <!-- ======================================================= -->



          /yyyy_mm_dd.request.log

          90
          true
          true
          GMT



          <!-- ======================================================= -->
          <!-- New Distributed Session Manager -->
          <!-- ======================================================= -->

          <!--
          org.jboss.jetty.session.Manager
          org.jboss.jetty.session.LocalStore


          org.jboss.jetty.session.TypeCheckingInterceptor
          org.jboss.jetty.session.BindingInterceptor
          org.jboss.jetty.session.MarshallingInterceptor


          -->

          <!-- For testing DistributableHttpSessionManager with Watchdog -->
          <!--
          true
          -->

          <!-- ======================================================= -->
          <!-- Old Distributed Session Manager -->
          <!-- ======================================================= -->

          org.jboss.jetty.session.DistributedHttpSessionManager

          <!-- ======================================================= -->
          <!-- Uncomment and set at least the Keystore, Password and -->
          <!-- KeyPassword fields to configure an SSL listener -->
          <!-- ======================================================= -->
          <!--



          8443
          5
          255
          30000
          10000
          5000
          2000
          /etc/demokeystore
          dummy
          dummy



          -->
          in jboss.web:service=Jetty
          2002-07-22 07:54:47,734 DEBUG [org.jboss.jetty.JettyService] Saving Configuration to xml fragment
          2002-07-22 07:54:47,744 DEBUG [org.jboss.system.ServiceConfigurator] HttpSessionStorageStrategy set to org.jboss.jetty.session.ClusteredStore in jboss.web:service=Jetty
          2002-07-22 07:54:47,744 DEBUG [org.jboss.jetty.JettyService] set HttpSessionStorageStrategy to org.jboss.jetty.session.ClusteredStore
          2002-07-22 07:54:47,744 DEBUG [org.jboss.system.ServiceConfigurator] HttpSessionSnapshotFrequency set to never in jboss.web:service=Jetty
          2002-07-22 07:54:47,744 DEBUG [org.jboss.jetty.JettyService] set HttpSessionSnapshotFrequency to never
          2002-07-22 07:54:47,744 DEBUG [org.jboss.system.ServiceConfigurator] HttpSessionSnapshotNotificationPolicy set to neither in jboss.web:service=Jetty
          2002-07-22 07:54:47,744 DEBUG [org.jboss.jetty.JettyService] set HttpSessionSnapshotNotificationPolicy to neither
          2002-07-22 07:54:47,744 DEBUG [org.jboss.system.ServiceConfigurator] SubjectAttributeName set to j_subject in jboss.web:service=Jetty
          2002-07-22 07:54:47,744 DEBUG [org.jboss.jetty.JettyService] set SubjectAttributeName to j_subject
          2002-07-22 07:54:47,754 INFO [org.jboss.jetty.JettyService] Creating
          2002-07-22 07:54:47,814 DEBUG [org.jboss.jetty.Jetty] Passing xml config to jetty:


          <!-- =========================================================== -->
          <!-- Add the listener -->
          <!-- The default port can be changed using: java -Djetty.port=80 -->
          <!-- =========================================================== -->





          5
          255
          30000
          10000
          5000
          5000




          <!-- ======================================================= -->
          <!-- Add the HTTP request log -->
          <!-- ======================================================= -->



          /yyyy_mm_dd.request.log

          90
          true
          true
          GMT



          <!-- ======================================================= -->
          <!-- New Distributed Session Manager -->
          <!-- ======================================================= -->

          <!--
          org.jboss.jetty.session.Manager
          org.jboss.jetty.session.LocalStore


          org.jboss.jetty.session.TypeCheckingInterceptor
          org.jboss.jetty.session.BindingInterceptor
          org.jboss.jetty.session.MarshallingInterceptor


          -->

          <!-- For testing DistributableHttpSessionManager with Watchdog -->
          <!--
          true
          -->

          <!-- ======================================================= -->
          <!-- Old Distributed Session Manager -->
          <!-- ======================================================= -->

          org.jboss.jetty.session.DistributedHttpSessionManager

          <!-- ======================================================= -->
          <!-- Uncomment and set at least the Keystore, Password and -->
          <!-- KeyPassword fields to configure an SSL listener -->
          <!-- ======================================================= -->
          <!--



          8443
          5
          255
          30000
          10000
          5000
          2000
          /etc/demokeystore
          dummy
          dummy



          -->

          2002-07-22 07:54:48,035 INFO [org.jboss.jetty.Jetty] Registered jboss.web:Jetty=0,SocketListener=0
          2002-07-22 07:54:48,085 INFO [org.jboss.jetty.Jetty] Registered jboss.web:Jetty=0,NCSARequestLog=0
          2002-07-22 07:54:48,085 INFO [org.jboss.jetty.JettyService] Created
          2002-07-22 07:54:48,085 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying jbossweb.sar
          2002-07-22 07:54:48,085 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:48,085 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.jboss.jetty.jar
          2002-07-22 07:54:48,085 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: org.jboss.jetty.jar
          2002-07-22 07:54:48,085 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jar
          2002-07-22 07:54:48,085 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: org.mortbay.jetty.jar
          2002-07-22 07:54:48,085 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.apache.jasper.jar
          2002-07-22 07:54:48,095 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: org.apache.jasper.jar
          2002-07-22 07:54:48,095 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/org.mortbay.jetty.jmx.jar
          2002-07-22 07:54:48,095 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: org.mortbay.jetty.jmx.jar
          2002-07-22 07:54:48,095 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:48,095 INFO [org.jboss.jetty.JettyService] Starting
          2002-07-22 07:54:48,095 INFO [org.jboss.deployment.MainDeployer] Adding deployer: org.jboss.jetty.JettyService@d56b37
          2002-07-22 07:54:48,095 INFO [org.jboss.jetty.Jetty] Starting Jetty/4.0.4
          2002-07-22 07:54:48,115 INFO [org.jboss.jetty.Jetty] Started org.mortbay.http.NCSARequestLog@be16f5
          2002-07-22 07:54:48,135 INFO [org.jboss.jetty.Jetty] Started SocketListener on 0.0.0.0:8080
          2002-07-22 07:54:48,145 INFO [org.jboss.jetty.Jetty] Started org.jboss.jetty.Jetty@49d886
          2002-07-22 07:54:48,155 INFO [org.jboss.jetty.JettyService] Started
          2002-07-22 07:54:48,155 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: jbossweb.sar
          2002-07-22 07:54:48,155 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/
          2002-07-22 07:54:48,165 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/ -> file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossweb.sar/META-INF/jboss-service.xml
          2002-07-22 07:54:48,175 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,175 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,175 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jmx-ejb-connector-server.sar/43.jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,175 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@e1eea8{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jmx-ejb-connector-server.sar/43.jmx-ejb-connector-server.sar }
          2002-07-22 07:54:48,175 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@872380
          2002-07-22 07:54:48,195 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=14806696
          2002-07-22 07:54:48,205 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository skipping duplicate org.jboss.mx.loading.UnifiedClassLoader@e1eea8{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jmx-ejb-connector-server.sar/43.jmx-ejb-connector-server.sar }
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,205 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,205 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,215 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar -> file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-ejb-connector-server.sar
          2002-07-22 07:54:48,215 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,215 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,215 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jmx-rmi-adaptor.sar/44.jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,215 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@b02928{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jmx-rmi-adaptor.sar/44.jmx-rmi-adaptor.sar }
          2002-07-22 07:54:48,225 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@872380
          2002-07-22 07:54:48,235 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
          2002-07-22 07:54:48,235 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,235 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,235 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,245 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,245 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=11544872
          2002-07-22 07:54:48,245 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository skipping duplicate org.jboss.mx.loading.UnifiedClassLoader@b02928{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jmx-rmi-adaptor.sar/44.jmx-rmi-adaptor.sar }
          2002-07-22 07:54:48,245 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.jmx:type=Connector,name=RMI
          2002-07-22 07:54:48,245 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.jmx.adaptor.rmi.RMIAdaptorService
          2002-07-22 07:54:48,265 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.jmx:type=Connector,name=RMI
          2002-07-22 07:54:48,265 INFO [org.jboss.jmx.adaptor.rmi.RMIAdaptorService] Creating
          2002-07-22 07:54:48,265 INFO [org.jboss.jmx.adaptor.rmi.RMIAdaptorService] Created
          2002-07-22 07:54:48,265 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,265 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,265 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,265 INFO [org.jboss.jmx.adaptor.rmi.RMIAdaptorService] Starting
          2002-07-22 07:54:48,325 INFO [org.jboss.jmx.adaptor.rmi.RMIAdaptorService] Started
          2002-07-22 07:54:48,325 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,325 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,325 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar -> file:/E:/jboss-3.0.1RC1/server/default/deploy/jmx-rmi-adaptor.sar
          2002-07-22 07:54:48,325 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,325 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,325 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/counter-service.xml/45.counter-service.xml
          2002-07-22 07:54:48,325 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@61736e{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/counter-service.xml/45.counter-service.xml }
          2002-07-22 07:54:48,325 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@872380
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.SARDeployer] Found classpath element:
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.SARDeployer] Setting up classpath from raw codebase: lib
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.SARDeployer] codebase is file:/E:/jboss-3.0.1RC1/server/default/lib/
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.SARDeployer] archives are counter-plugin.jar
          2002-07-22 07:54:48,335 INFO [org.jboss.deployment.MainDeployer] Package: file:/E:/jboss-3.0.1RC1/server/default/lib/counter-plugin.jar is already deployed
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.SARDeployer] deployed classes for file:/E:/jboss-3.0.1RC1/server/default/lib/counter-plugin.jar
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,335 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=6386542
          2002-07-22 07:54:48,345 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository skipping duplicate org.jboss.mx.loading.UnifiedClassLoader@61736e{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/counter-service.xml/45.counter-service.xml }
          2002-07-22 07:54:48,345 DEBUG [org.jboss.system.ServiceCreator] About to create bean: :service=Counter
          2002-07-22 07:54:48,345 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.varia.counter.CounterService
          2002-07-22 07:54:48,355 DEBUG [org.jboss.system.ServiceCreator] Created bean: :service=Counter
          2002-07-22 07:54:48,355 INFO [org.jboss.varia.counter.CounterService] Creating
          2002-07-22 07:54:48,355 INFO [org.jboss.varia.counter.CounterService] Created
          2002-07-22 07:54:48,355 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying counter-service.xml
          2002-07-22 07:54:48,355 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,355 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,355 INFO [org.jboss.varia.counter.CounterService] Starting
          2002-07-22 07:54:48,365 INFO [org.jboss.varia.counter.CounterService] Started
          2002-07-22 07:54:48,365 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: counter-service.xml
          2002-07-22 07:54:48,365 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,365 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml -> file:/E:/jboss-3.0.1RC1/server/default/deploy/counter-service.xml
          2002-07-22 07:54:48,365 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,365 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,365 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/hsqldb-service.xml/46.hsqldb-service.xml
          2002-07-22 07:54:48,365 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@747fa2{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/hsqldb-service.xml/46.hsqldb-service.xml }
          2002-07-22 07:54:48,365 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@872380
          2002-07-22 07:54:48,375 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
          2002-07-22 07:54:48,375 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,375 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,375 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,375 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,375 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=7634850
          2002-07-22 07:54:48,385 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository skipping duplicate org.jboss.mx.loading.UnifiedClassLoader@747fa2{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/hsqldb-service.xml/46.hsqldb-service.xml }
          2002-07-22 07:54:48,385 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.jca:service=LocalTxCM,name=hsqldbDS
          2002-07-22 07:54:48,385 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.resource.connectionmanager.LocalTxConnectionManager
          2002-07-22 07:54:48,435 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.jca:service=LocalTxCM,name=hsqldbDS
          2002-07-22 07:54:48,435 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,435 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.resource.connectionmanager.RARDeployment
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceConfigurator] JndiName set to hsqldbDS in jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceConfigurator] ManagedConnectionFactoryProperties set to
          <config-property name="ConnectionURL" type="java.lang.String">jdbc:hsqldb:hsql://localhost:1476</config-property>
          <config-property name="DriverClass" type="java.lang.String">org.hsqldb.jdbcDriver</config-property>
          <config-property name="UserName" type="java.lang.String">sa</config-property>
          <config-property name="Password" type="java.lang.String" />
          in jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceController] recording that jboss.jca:service=LocalTxDS,name=hsqldbDS depends on jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceConfigurator] considering OldRarDeployment with object name jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceController] recording that jboss.jca:service=LocalTxDS,name=hsqldbDS depends on jboss:service=Hypersonic
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceConfigurator] considering with object name jboss:service=Hypersonic
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceController] recording that jboss.jca:service=LocalTxCM,name=hsqldbDS depends on jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceConfigurator] considering ManagedConnectionFactoryName with object name jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,465 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.resource.connectionmanager.JBossManagedConnectionPool
          2002-07-22 07:54:48,485 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,485 DEBUG [org.jboss.system.ServiceConfigurator] MinSize set to 0 in jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,485 DEBUG [org.jboss.system.ServiceConfigurator] MaxSize set to 50 in jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,485 DEBUG [org.jboss.system.ServiceConfigurator] BlockingTimeoutMillis set to 5000 in jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,485 DEBUG [org.jboss.system.ServiceConfigurator] IdleTimeoutMinutes set to 15 in jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,485 DEBUG [org.jboss.system.ServiceConfigurator] Criteria set to ByContainer in jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,485 DEBUG [org.jboss.system.ServiceController] recording that jboss.jca:service=LocalTxCM,name=hsqldbDS depends on jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceConfigurator] considering ManagedConnectionPool with object name jboss.jca:service=LocalTxPool,name=hsqldbDS
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceController] recording that jboss.jca:service=LocalTxCM,name=hsqldbDS depends on jboss.jca:service=CachedConnectionManager
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceConfigurator] considering CachedConnectionManager with object name jboss.jca:service=CachedConnectionManager
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceController] recording that jboss.jca:service=LocalTxCM,name=hsqldbDS depends on jboss.security:service=JaasSecurityManager
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceConfigurator] considering JaasSecurityManagerService with object name jboss.security:service=JaasSecurityManager
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceConfigurator] TransactionManager set to java:/TransactionManager in jboss.jca:service=LocalTxCM,name=hsqldbDS
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceController] recording that jboss.jca:service=LocalTxCM,name=hsqldbDS depends on jboss.jca:service=RARDeployer
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceConfigurator] considering with object name jboss.jca:service=RARDeployer
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss:service=Hypersonic
          2002-07-22 07:54:48,495 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.jdbc.HypersonicDatabase
          2002-07-22 07:54:48,505 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss:service=Hypersonic
          2002-07-22 07:54:48,505 DEBUG [org.jboss.system.ServiceConfigurator] Port set to 1476 in jboss:service=Hypersonic
          2002-07-22 07:54:48,515 DEBUG [org.jboss.system.ServiceConfigurator] Silent set to true in jboss:service=Hypersonic
          2002-07-22 07:54:48,515 DEBUG [org.jboss.system.ServiceConfigurator] Database set to default in jboss:service=Hypersonic
          2002-07-22 07:54:48,515 DEBUG [org.jboss.system.ServiceConfigurator] Trace set to false in jboss:service=Hypersonic
          2002-07-22 07:54:48,515 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.jca:service=LocalTxCM,name=hsqldbDS waiting on jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,515 WARN [org.jboss.system.ServiceController] jboss.jca:service=LocalTxDS,name=hsqldbDS does not implement any Service methods
          2002-07-22 07:54:48,515 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.jca:service=LocalTxDS,name=hsqldbDS waiting on jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
          2002-07-22 07:54:48,515 INFO [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Creating
          2002-07-22 07:54:48,515 INFO [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Created
          2002-07-22 07:54:48,515 DEBUG [org.jboss.system.ServiceController] Starting dependent components: [ObjectName: jboss.jca:service=LocalTxCM,name=hsqldbDS
          state: CONFIGURED
          I Depend On: jboss.jca:service=LocalTxDS,name=hsqldbDS
          jboss.jca:service=LocalTxPool,name=hsqldbDS
          jboss.jca:service=CachedConnectionManager
          jboss.security:service=JaasSecurityManager
          jboss.jca:service=RARDeployer

          Depends On Me: ]
          2002-07-22 07:54:48,515 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.jca:service=LocalTxCM,name=hsqldbDS waiting on jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,515 INFO [org.jboss.jdbc.HypersonicDatabase] Creating
          2002-07-22 07:54:48,515 INFO [org.jboss.jdbc.HypersonicDatabase] Created
          2002-07-22 07:54:48,515 DEBUG [org.jboss.system.ServiceController] Starting dependent components: [ObjectName: jboss.jca:service=LocalTxDS,name=hsqldbDS
          state: CONFIGURED
          I Depend On: jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
          jboss:service=Hypersonic

          Depends On Me: jboss.jca:service=LocalTxCM,name=hsqldbDS
          ]
          2002-07-22 07:54:48,515 WARN [org.jboss.system.ServiceController] jboss.jca:service=LocalTxDS,name=hsqldbDS does not implement any Service methods
          2002-07-22 07:54:48,525 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.jca:service=LocalTxDS,name=hsqldbDS waiting on jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
          2002-07-22 07:54:48,525 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying hsqldb-service.xml
          2002-07-22 07:54:48,525 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,525 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,525 DEBUG [org.jboss.system.ServiceController] waiting in start jboss.jca:service=LocalTxCM,name=hsqldbDS on jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,525 DEBUG [org.jboss.system.ServiceController] waiting in start jboss.jca:service=LocalTxDS,name=hsqldbDS on jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
          2002-07-22 07:54:48,525 INFO [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Starting
          2002-07-22 07:54:48,525 INFO [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Started
          2002-07-22 07:54:48,525 DEBUG [org.jboss.system.ServiceController] Starting dependent components: [ObjectName: jboss.jca:service=LocalTxCM,name=hsqldbDS
          state: CONFIGURED
          I Depend On: jboss.jca:service=LocalTxDS,name=hsqldbDS
          jboss.jca:service=LocalTxPool,name=hsqldbDS
          jboss.jca:service=CachedConnectionManager
          jboss.security:service=JaasSecurityManager
          jboss.jca:service=RARDeployer

          Depends On Me: ]
          2002-07-22 07:54:48,525 DEBUG [org.jboss.system.ServiceController] waiting in start jboss.jca:service=LocalTxCM,name=hsqldbDS on jboss.jca:service=LocalTxDS,name=hsqldbDS
          2002-07-22 07:54:48,525 INFO [org.jboss.jdbc.HypersonicDatabase] Starting
          2002-07-22 07:54:48,535 INFO [org.jboss.jdbc.HypersonicDatabase] Started
          2002-07-22 07:54:48,696 DEBUG [org.jboss.system.ServiceController] Starting dependent components: [ObjectName: jboss.jca:service=LocalTxDS,name=hsqldbDS
          state: CONFIGURED
          I Depend On: jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
          jboss:service=Hypersonic

          Depends On Me: jboss.jca:service=LocalTxCM,name=hsqldbDS
          ]
          2002-07-22 07:54:48,696 DEBUG [org.jboss.system.ServiceController] waiting in start jboss.jca:service=LocalTxDS,name=hsqldbDS on jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
          2002-07-22 07:54:48,696 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: hsqldb-service.xml
          2002-07-22 07:54:48,696 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,756 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml -> file:/E:/jboss-3.0.1RC1/server/default/deploy/hsqldb-service.xml
          2002-07-22 07:54:48,756 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossmq-destinations-service.xml
          2002-07-22 07:54:48,756 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossmq-destinations-service.xml
          2002-07-22 07:54:48,756 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossmq-destinations-service.xml/47.jbossmq-destinations-service.xml
          2002-07-22 07:54:48,756 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@1ae90c{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossmq-destinations-service.xml/47.jbossmq-destinations-service.xml }
          2002-07-22 07:54:48,756 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@872380
          2002-07-22 07:54:48,766 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
          2002-07-22 07:54:48,766 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossmq-destinations-service.xml
          2002-07-22 07:54:48,766 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossmq-destinations-service.xml
          2002-07-22 07:54:48,766 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossmq-destinations-service.xml
          2002-07-22 07:54:48,766 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/E:/jboss-3.0.1RC1/server/default/deploy/jbossmq-destinations-service.xml
          2002-07-22 07:54:48,766 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=1763596
          2002-07-22 07:54:48,776 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository skipping duplicate org.jboss.mx.loading.UnifiedClassLoader@1ae90c{ url=file:/E:/jboss-3.0.1RC1/server/default/tmp/deploy/server/default/deploy/jbossmq-destinations-service.xml/47.jbossmq-destinations-service.xml }
          2002-07-22 07:54:48,776 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.mq.destination:service=Topic,name=testTopic
          2002-07-22 07:54:48,776 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.mq.server.jmx.Topic
          2002-07-22 07:54:48,816 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.mq.destination:service=Topic,name=testTopic
          2002-07-22 07:54:48,816 DEBUG [org.jboss.system.ServiceController] recording that jboss.mq.destination:service=Topic,name=testTopic depends on jboss.mq:service=DestinationManager
          2002-07-22 07:54:48,816 DEBUG [org.jboss.system.ServiceConfigurator] considering DestinationManager with object name jboss.mq:service=DestinationManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceController] recording that jboss.mq.destination:service=Topic,name=testTopic depends on jboss.mq:service=SecurityManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceConfigurator] considering SecurityManager with object name jboss.mq:service=SecurityManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceConfigurator] SecurityConf set to



          in jboss.mq.destination:service=Topic,name=testTopic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.mq.server.jmx.Topic.testTopic] Setting securityConf:




          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.mq.destination:service=Topic,name=securedTopic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.mq.server.jmx.Topic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.mq.destination:service=Topic,name=securedTopic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceController] recording that jboss.mq.destination:service=Topic,name=securedTopic depends on jboss.mq:service=DestinationManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceConfigurator] considering DestinationManager with object name jboss.mq:service=DestinationManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceController] recording that jboss.mq.destination:service=Topic,name=securedTopic depends on jboss.mq:service=SecurityManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceConfigurator] considering SecurityManager with object name jboss.mq:service=SecurityManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceConfigurator] SecurityConf set to

          in jboss.mq.destination:service=Topic,name=securedTopic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.mq.server.jmx.Topic.securedTopic] Setting securityConf:


          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.mq.destination:service=Topic,name=testDurableTopic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.mq.server.jmx.Topic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.mq.destination:service=Topic,name=testDurableTopic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceController] recording that jboss.mq.destination:service=Topic,name=testDurableTopic depends on jboss.mq:service=DestinationManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceConfigurator] considering DestinationManager with object name jboss.mq:service=DestinationManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceController] recording that jboss.mq.destination:service=Topic,name=testDurableTopic depends on jboss.mq:service=SecurityManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceConfigurator] considering SecurityManager with object name jboss.mq:service=SecurityManager
          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceConfigurator] SecurityConf set to



          in jboss.mq.destination:service=Topic,name=testDurableTopic
          2002-07-22 07:54:48,826 DEBUG [org.jboss.mq.server.jmx.Topic.testDurableTopic] Setting securityConf:




          2002-07-22 07:54:48,826 DEBUG [org.jboss.system.ServiceCreator] Abo

          • 2. Re: insert-after-ejb-post-create is broken is unknown-pk is
            Alexey Loubyansky Master

            If primary key is generated at INSERT time and you use insert-after-ejb-post-create, this is really broken since (by the spec) the primary key value must be available after ejbCreate and before ejbPostCreate.
            You could use another key generating command that generates keys not at INSERT time.

            • 3. Re: insert-after-ejb-post-create is broken is unknown-pk is
              Luiz-Otavio Zorzella Newbie

              This is, indeed, a problem: does that mean spec prevents me from using IDENTITY PKs with NOT NULL foreign keys?

              So, is there any way to have the foreign key set at ejbCreate rather than ejbPostCreate (other than not use CMR)?

              Zorzella

              • 4. Re: insert-after-ejb-post-create is broken is unknown-pk is
                Amit Basu Newbie

                I had the same problem, and worked around like this:

                set the primary key in ejbCreate to some dummy value (that you know wont be there, like -1). keep using the custom config with insert-after... and also keep using your db generated PKs, so the actual insert will happen with the correct db generated PK.

                it works.

                • 5. Re: insert-after-ejb-post-create is broken is unknown-pk is
                  Amit Basu Newbie

                  Actually I got rid of the custom config with the insert-after- stuff, as a findAll would find the -1 PK'ed object as well (from the container's cache maybe ?). Downside - database constraints needed to be modified. They can always be reimposed thru EJB layer.

                  • 6. Re: insert-after-ejb-post-create is broken is unknown-pk is
                    Amit Basu Newbie

                    Summing up my findings here: (jboss-3.2.6, commit option A):
                    If u use insert-after-ejb-post-create, and set PK to dummy value, there is the following problem:
                    if entity A : entity B is a 1 : n relation, and on B, you do the above, A.getBs() will get one phantom entity (the one u put in with PK -1 at ejbCreate()). If you restarted the server and built the cache from DB, this problem wont be there. But CMR relation get being broken this way, insert-after-ejb-post-create usage becomes not dependable.