Hi Marc, upgraded to prod_03 and got following error by coping TestBean2 into the deploy folder (did not change anything on the bean). [Auto deploy] Auto deploy of file:/C:/jboss/deploy/TestBeans2.jar [Container factory] Deploying:file:/C:/jboss/deploy/TestBeans2.jar [Container factory] org.jboss.ejb.DeploymentException: Error in jboss.xml for Bean AllTypes: found i n jboss.xml but not in ejb-jar.xml [Container factory] at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData .java:282) [Container factory] at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:114) [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:396) [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:248) [Container factory] at java.lang.reflect.Method.invoke(Native Method) [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:286) [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:222) [Container factory] at java.lang.Thread.run(Thread.java:484) [Auto deploy] Deployment failed:file:/C:/jboss/deploy/TestBeans2.jar [Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy file:/C:/jboss/tmp/deploy/tmpejbja r41640.jar, Cause:org.jboss.ejb.DeploymentException: Error in jboss.xml for Bean AllTypes: found in jboss.xml but not in ejb-jar.xml [Auto deploy] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:752) [Auto deploy] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:248) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:286) [Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:222) [Auto deploy] at java.lang.Thread.run(Thread.java:484) Rob > ---------- > Von: marc fleury[SMTP:[EMAIL PROTECTED]] > Antwort an: jBoss > Gesendet: Donnerstag, 26. Oktober 2000 19:39 > An: jBoss > Betreff: RE: [jBoss-User] TestBeanClient (Strange behavior) > > please upgrade > > and let us know if you have that problem, the cache have been completely > rewritten > > marc > > > |-----Original Message----- > |From: [EMAIL PROTECTED] > |[mailto:[EMAIL PROTECTED]]On Behalf Of Wilke, Robert > |Sent: Thursday, October 26, 2000 3:28 AM > |To: [EMAIL PROTECTED] > |Subject: [jBoss-User] TestBeanClient (Strange behavior) > | > | > |I downloaded JBoss 2.0.Beta-Prod-01 and installed it in C:\jboss on NT4.0 > |using jdk1.3. > | > |Summary: > |1. Starting JBoss the very first time after installation - no problems. > |2. Starting TestBeanClient a couple times with the very first > |start of JBoss > |- no problems. > |2b. Shutting down JBoss. > |3. Starting JBoss the second, third, ... time after installation - no > |problems. > |4. Starting TestBeanClient - error occurs. > |(OUTPUTs see below) > | > | > |Thanks in advance, > |Rob Wilke. > | > | > |OUTPUT - 1. Starting JBoss the very first time after installation - no > |problems: > |------------------------------------------------------------------- > |--------- > |-------------------------------------------------- > |[Console logging] Logging started > |[Classpath] Added directory:file:/C:/jboss/log/ > |[Classpath] Added directory:file:/C:/jboss/tmp/ > |[Classpath] Added directory:file:/C:/jboss/db/ > |[Info] Java version: 1.3.0,Sun Microsystems Inc. > |[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc. > |[Info] System: Windows NT 4.0,x86 > |[Classpath] Added library:file:/C:/jboss/lib/ext/activation.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/awt.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/dynaserver.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/ejb.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/ejxeditor.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/ejxejb.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/ejxjaws.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/ejxjboss.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/hsql.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/idb.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/jboss.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/jdbc2_0-stdext.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/jmxtools.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/jndi.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/jnpserver.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/jpl-util-0_5b.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/jta-spec1_0_1.jar > |[Classpath] Added library:file:/C:/jboss/lib/ext/mail.jar > |[JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver > |[JDBC] Loaded JDBC-driver:jdbc.idbDriver > |[Webserver] Initializing > |[Webserver] Initialized > |[Hypersonic] Initializing > |[Hypersonic] Server 1.4 is running > |[Hypersonic] Database started > |[Hypersonic] Initialized > |[Naming] Initializing > |[Naming] Naming started on port 1099 > |[Naming] Initialized > |[Transaction manager] Initializing > |[Transaction manager] Initialized > |[Simple Realm Mapping] Initializing > |[Simple Realm Mapping] Initialized > |[Security manager] Initializing > |[Security manager] Initialized > |[DataSource] Initializing > |[DataSource] Connection pool for > |jdbc:idb:../conf/instantdb.properties bound > |to InstantDB > |InstantDB - Version 3.12 > |[DataSource] Copyright (c) 1997-1999 Instant Computer Solutions Ltd. > |[DataSource] Initialized > |[XADataSource] Initializing > |[XADataSource] Initialized > |[Container factory] Initializing > |[Container factory] Temporary directory set to:C:\jboss\tmp\deploy > |[Container factory] Previous deployments removed > |[Container factory] Initialized > |[Auto deploy] Watching C:\jboss\deploy > |[Auto deployer] Initializing > |[Auto deployer] Initialized > |[JMX RMI Adaptor] Initializing > |[JMX RMI Adaptor] Initialized > |[JMX RMI Connector] Initializing > |[JMX RMI Connector] Initialized > |[Configuration] Initializing > |[Configuration] Initialized > |[Configuration] MaxActiveClientCount set to 10 in Adaptor:name=html > |[Configuration] Port set to 8082 in Adaptor:name=html > |[Configuration] LibraryDirectory set to C:\jboss\bin in > |DefaultDomain:service=MLet > |[Configuration] URL set to jdbc:HypersonicSQL:hsql://localhost in > |DefaultDomain:service=XADataSource > |,name=Hypersonic > |[Configuration] GCMinIdleTime set to 1200000 in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] ShrinkPercent set to 0.33 in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] GCEnabled set to false in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] LoggingEnabled set to false in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] TimestampUsed set to false in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] Blocking set to false in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] GCInterval set to 120000 in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] InvalidateOnError set to false in > |DefaultDomain:service=XADataSource,name=Hypersonic > | > |[Configuration] JDBCUser set to sa in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] MinSize set to 0 in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] ShrinkMinIdleTime set to 600000 in > |DefaultDomain:service=XADataSource,name=Hypersoni > |c > |[Configuration] ShrinkingEnabled set to false in > |DefaultDomain:service=XADataSource,name=Hypersonic > |[Configuration] Format set to [{2}] {4} in > |DefaultDomain:service=Logging,type=Console > |[Configuration] Port set to 8083 in DefaultDomain:service=Webserver > |[Configuration] VerifyDeployments set to true in > |EJB:service=ContainerFactory > |[Naming] Starting > |[Naming] Started > |[Transaction manager] Starting > |[Transaction manager] Started > |[Hypersonic] Starting > |[Hypersonic] Started > |[DataSource] Starting > |[DataSource] Started > |[XADataSource] Starting > |[XADataSource] XA Connection pool Hypersonic bound to Hypersonic > |[XADataSource] Started > |[Container factory] Starting > |[Container factory] Started > |[Auto deployer] Starting > |[Auto deploy] Auto deploy of file:/C:/jboss/deploy/TestBeans.jar > |[Container factory] Deploying:file:/C:/jboss/deploy/TestBeans.jar > |[Container factory] C:\jboss\tmp\deploy > |[Container factory] Loading ejb-jar.xml : > |jar:file:/C:/jboss/tmp/deploy/tmpejbjar37282.jar!/META-INF > |/ejb-jar.xml > |[Container factory] Loading standardjboss.xml : > |jar:file:/C:/jboss/lib/ext/jboss.jar!/org/jboss/meta > |data/standardjboss.xml > |[Verifier] Verifying file:/C:/jboss/tmp/deploy/tmpejbjar37282.jar > |[Verifier] nextgen.EnterpriseEntity: The return type of an ejbCreate(...) > |method must be the entity > |bean's primary key type. > |[Verifier] nextgen.EnterpriseEntity: The return type of the > |ejbFindByPrimaryKey method must be the p > |rimary key type. > |[Verifier] nextgen.EnterpriseEntity: The ejbFindByPrimaryKey method must > be > |a single-object finder. > |[Verifier] nextgen.EnterpriseEntity: The finder method return type must > be > |either the entity bean's > |primary key type or an instance of the Enumeration or the Collection > |interface. > |[Verifier] nextgen.EntityBMP: For each ejbCreate(...) method, the entity > |bean class must define a ma > |tching ejbPostCreate(...) method. > |[Verifier] nextgen.EntityPK: The primary key class must override > equals(). > |[Verifier] Account: Verified. > |[Verifier] nextgen.StatelessSession: Verified. > |[Verifier] nextgen.StatefulSession: Verified. > |[Verifier] nextgen.TxSession: Verified. > |[Verifier] AccountManager: Verified. > |[Container factory] Deploying nextgen.EnterpriseEntity > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Deploying nextgen.EntityBMP > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Deploying nextgen.EntityPK > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Deploying Account > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Deploying nextgen.StatelessSession > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Deploying nextgen.StatefulSession > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Deploying nextgen.TxSession > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Deploying AccountManager > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Storing sessions for nextgen.StatefulSession > |in:database\nextgen.StatefulSession > | > |[Container factory] 0 old sessions removed > |[Container factory] Binding an EJBReference ejb/stateful > |[Container factory] Binding ejb/stateful to internal JNDI source: > |nextgen.StatefulSession > |[JAWS] Initializing JAWS plugin for nextgen.EntityPK > |[JAWS] Loading standardjaws.xml : > |jar:file:/C:/jboss/lib/ext/jboss.jar!/org/jboss/ejb/plugins/jaws/m > |etadata/standardjaws.xml > |[Container factory] Table 'nextgen_EntityPK' already exists! > |[Container factory] Binding an EJBReference Account > |[Container factory] Binding Account to internal JNDI source: Account > |[JAWS] Initializing JAWS plugin for Account > |[Container factory] Table 'Account' already exists! > |[JAWS] Initializing JAWS plugin for nextgen.EnterpriseEntity > |[Container factory] Table 'nextgen_EnterpriseEntity' already exists! > |[Container factory] Binding an EJBReference ejb/myEJBRef > |[Container factory] Binding ejb/myEJBRef to internal JNDI source: > |nextgen.StatelessSession > |[Container factory] java.lang.ClassNotFoundException: class > |org.jboss.security.EJBSecurityManagerDef > |aultImpl > |[Container factory] Using default DataSource:Hypersonic > |[Container factory] Bound nextgen.StatefulSession to > |nextgen.StatefulSession > |[Container factory] Bound nextgen.EntityPK to nextgen.EntityPK > |[Container factory] Bound AccountManager to AccountManager > |[Container factory] Bound Account to Account > |[Container factory] Bound nextgen.StatelessSession to > |nextgen.StatelessSession > |[Container factory] Bound nextgen.EnterpriseEntity to > |nextgen.EnterpriseEntity > |[Container factory] Bound nextgen.TxSession to nextgen.TxSession > |[Container factory] Bound nextgen.EntityBMP to nextgen.EntityBMP > |[Container factory] Deployed application: > |file:/C:/jboss/deploy/TestBeans.jar > |[Auto deploy] Auto deploy of file:/C:/jboss/deploy/TestBeans2.jar > |[Container factory] Deploying:file:/C:/jboss/deploy/TestBeans2.jar > |[Container factory] C:\jboss\tmp\deploy > |[Container factory] Loading ejb-jar.xml : > |jar:file:/C:/jboss/tmp/deploy/tmpejbjar37283.jar!/META-INF > |/ejb-jar.xml > |[Container factory] Loading standardjboss.xml : > |jar:file:/C:/jboss/lib/ext/jboss.jar!/org/jboss/meta > |data/standardjboss.xml > |[Container factory] > |jar:file:/C:/jboss/tmp/deploy/tmpejbjar37283.jar!/META-INF/jboss.xml > found. > |Over > |riding defaults > |[Verifier] Verifying file:/C:/jboss/tmp/deploy/tmpejbjar37283.jar > |[Verifier] AllTypes: Verified. > |[Container factory] Deploying AllTypes > |[Container factory] Container Invoker Optimize='false' > |[Container factory] Binding an EJBReference ejb/stateless > |[Container factory] Binding ejb/stateless to external JNDI source: > |nextgen.StatelessSession > |[Container factory] Binding an EJBReference ejb/stateful > |[Container factory] Binding ejb/stateful to external JNDI source: > |nextgen.StatefulSession > |[Container factory] Binding an EJBReference ejb/entity > |[Container factory] Binding ejb/entity to external JNDI source: > |nextgen.EnterpriseEntity > |[JAWS] Initializing JAWS plugin for AllTypes > |[JAWS] Loading standardjaws.xml : > |jar:file:/C:/jboss/lib/ext/jboss.jar!/org/jboss/ejb/plugins/jaws/m > |etadata/standardjaws.xml > |[JAWS] > jar:file:/C:/jboss/tmp/deploy/tmpejbjar37283.jar!/META-INF/jaws.xml > |found. Overriding default > |s > |[Container factory] Finder:aboolean > |[Container factory] Finder:abyte > |[Container factory] Finder:adate > |[Container factory] Finder:adouble > |[Container factory] Finder:afloat > |[Container factory] Finder:along > |[Container factory] Finder:ashort > |[Container factory] Finder:astring > |[Container factory] Finder:atimestamp > |[Container factory] Finder:anint > |[Container factory] Finder:anobject > |[Container factory] Finder:enterpriseentity > |[Container factory] Finder:statefulsession > |[Container factory] Finder:statelesssession > |[Container factory] Table 'AllTypes' already exists! > |[Container factory] Bound AllTypes to AllTypes > |[Container factory] Deployed application: > |file:/C:/jboss/deploy/TestBeans2.jar > |[Auto deployer] Started > |[Security manager] Starting > |[Security manager] Started > |[Simple Realm Mapping] Starting > |[Simple Realm Mapping] Started > |[Webserver] Starting > |[Webserver] Codebase set to http://localhost:8083/ > |[Webserver] Started webserver on port 8083 > |[Webserver] Started > |[JMX RMI Adaptor] Starting > |[JMX RMI Adaptor] Started > |[JMX RMI Connector] Starting > |[JMX RMI Connector] Started > |[Default] 18 services and 4 other MBeans started. > |[Default] Shutdown hook added > |[Default] jBoss 2.0 BETA-PROD-01 Started > | > |------------------------------------------------------------------- > |--------- > |-------------------------------------------- > | > | > |OUTPUT - 2. Starting TestBeanClient a couple times with the very > |first start > |of JBoss - no problems: > |------------------------------------------------------------------- > |--------- > |-------------------------------------------- > |Microsoft(R) Windows NT(TM) > |(C) Copyright 1985-1996 Microsoft Corp. > | > |C:\>cd jboss > | > |C:\jboss>cd bin > | > |C:\jboss\bin>C:\jboss\bin\TestBeanClient.bat > |_____________________________________________ > | > |jBoss, the EJB Open Source Server > |Copyright (C), The jBoss Organization, 2000 > |_____________________________________________ > | > |Welcome to the test Suite v1.2 > |_____________________________________________ > | > |1- Trying the context...OK > | > |Test Stateless Bean > |=================== > | > |2- Looking up the home nextgen.StatelessSession...ok > |3- Calling create on StatelessSessionHome...ok > |4- Calling getEJBHome() on StatelessSession...ok > |5- Calling Business Method A on StatelessSession... ok > |6- Calling Business Method B on StatelessSession... > |from the environment properties my name is marc > |7- Calling Business Method B(String) on StatelessSession... > |OK ejbObject is nextgen.StatelessSession:Stateless words of wisdom > |8- Calling Business Method C on StatelessSession... > |from the environment properties (subContext) my name is marc with > |subContext > |9- Calling Business Method D on StatelessSession... > |Caught BusinessMethodException OK > |10- Calling Business Method E (getEJBObject) on StatelessSession... > |nextgen.Stat > |elessSession:Stateless > |11- Calling testClassLoading on StatelessSession... OK > |***Testing the various local Object class calls > |12- toString ... nextgen.StatelessSession:Stateless > |13- hashCode ... 1012673 > |14- equals (same object) ... true > |15- equals (another object) (true under same home)... true > |***Testing the various local EJBObject class calls > |16- Get Primary Key ... nextgen.StatelessSession > |17- Get Handle ... OK > |18- Serialize handle and deserialize..OK > |19- Calling businessMethodB on it... > |from the environment properties my name is marc > |20- They should be identical...true > |***Testing the various local EJBHome class calls > |21- Getting the metaData...OK > |22- Is stateless Session? true > |23- The remote class is interface > |org.jboss.zol.testbean.interfaces.StatelessSes > |sion > | > |24- Calling StatelessSession.remove()...ok > | > |Test Stateful Bean > |================== > | > |25- Looking up the home nextgen.StatefulSession...ok > |26- Calling create on StatefulSessionHome with name Marc...ok > |27- Calling getEJBHome() on StatefulSession...ok > |28- Calling Business Method A on StatefulSession... > |I was created with Stateful String Marc > |29- Calling Business Method A (state) on StatefulSession... > |I was created with Stateful String Marc > |30- Calling Business Method B (EJBObject) on StatefulSession... OK > |ejbObject > |is > |nextgen.StatefulSession:972554464019 > |31- Calling Business Method B(String) on StatefulSession... > |OK ejbObject is nextgen.StatefulSession:972554464019 words of wisdom > |***Testing the various local Object class calls > |32- toString ... nextgen.StatefulSession:972554464019 > |33- hashCode ... 1891855345 > |34- equals (same object) ... true > |35- equals (another object) (false under same home)... false > |***Testing the various local EJBObject class calls > |36- Get Primary Key ... 972554464019 > |37- Get Handle ... OK > |38- Serialize handle and deserialize....OK > |39- Calling businessMethodB on it... > |OK ejbObject is nextgen.StatefulSession:972554464019 > |40- They should be identical...true > |41- Calling StatefulSession.remove()...ok > |42- Calling StatefulHome.remove(Handle) (this should fail)...not found OK > |43- Creating a 3rd bean and calling it...I was created with Stateful > String > |marc > |3 > |44- Calling StatefulSession.remove(Handle) on a third bean...OK > |45- I should not be able to remove it directly...OK > | > | > |Test Entity Bean CMP > |==================== > | > |46- Looking up the home nextgen.EnterpriseEntity...ok > |47- Calling find on EnterpriseEntityHome with name Marc...Object with > |primary ke > |y Marc not found in storage > |not found OK > |48- Calling create on EnterpriseEntityHome with name Marc...ok > |49- Calling for duplicate create and DuplicateKeyException...ok > |50- Calling getEJBHome() on EntityCMP...ok > |51- Getting a new reference with findByPK...ok > |52- Calling Business Method A on enterpriseEntity... > |EntityBean.callBusinessMethodA() called, my primaryKey is Marc > |53- Calling Business Method A (again to ejbLoad if TypeC) on > |enterpriseEntity... > | > |EntityBean.callBusinessMethodA() called, my primaryKey is Marc > |54- Calling Business Method B (EJBObject from entity) on > |enterpriseEntity... > |nextgen.EnterpriseEntity:Marc > |55- Calling Business Method B(String) on EnterpriseEntity... > |nextgen.EnterpriseEntity:Marc words of wisdom > |56- Calling getOtherField (non pk) on enterpriseEntity...value: 0 > |57- Calling setOtherField(4) on enterpriseEntity...OK > |58- Calling getOtherField() on enterpriseEntity (should be 4)...value is > 4, > |OK > |***Testing the various local Object class calls > |59- toString ... nextgen.EnterpriseEntity:Marc > |60- hashCode ... 2390757 > |61- equals (same object) ... true > |62- equals (another object) (true for this case)... true > |***Testing the various local EJBObject class calls > |63- Get Primary Key ... Marc > |64- Get Handle ... OK > |65- Serialize handle and deserialize....Resolve > |handle:nextgen.EnterpriseEntity# > |Marc > |OK > |66- Calling businessMethodA on it... > |nextgen.EnterpriseEntity:Marc > |67- They should be identical...true > |68- Calling entityHome.remove(Handle)...Resolve > |handle:nextgen.EnterpriseEntity# > |Marc > |OK > |69- Calling enterpriseEntity.remove() (should fail)...OK > |70- Calling EnterpriseEntity.create() for marc6...ok > |71- Calling method createEntity on enterpriseEntity... OK > |72- removing by PK on home (marc2)...ok > |73- Calling enterpriseEntity.remove() (marc6)...ok > | > | > | > | > | > |Test Entity Bean BMP > |==================== > | > |74- Looking up home for nextgen.EntityBMP...ok > |75- Calling create on the home...ok > |76- Calling getEJBHome() on EntityBMP...ok > |77- Calling business methodA on BMP bean... > |EntityBMP.callBusinessMethodA() called, my primaryKey is Marc > |78- Calling business methodB (B2B) on BMP bean and it says > |EntityBMP.callBusinessMethodB() called, called other bean (B2B) and it > said > |"fro > |m the environment properties my name is marc" > |79- Calling Business Method B(String) on BMP... > |EntityBMP.callBusinessMethodB() called, called other bean (B2B) and it > said > |"fro > |m the environment properties my name is marc" words of wisdom > |80- calling findCollectionKeys.... > |primary key number 1 > |primary key number 2 > |primary key number 3 > |ok > |81- calling findEnumeratedKeys.... > |primary key number 1 > |primary key number 2 > |primary key number 3 > |ok > | > | > |Test Entity Bean PK > |==================== > | > |82- Looking up home for nextgen.EntityPK...ok > |83- Calling find on the home...not found > |84- Did not find the instance will create it...ok > |85- Retrieving other field...0, ok > |86- Setting it to 4...ok > |87- Findind it again ... ok > |88- Retrieving other field again, should be 4...4, ok > |89- gettting a new reference ... ok > |90- Retrieving other field again, should be 4...4, ok > |91- Removing the bean... > |92- I should not find it... > |not found, OK > | > | > |Test TxSession > |============== > | > |93- Looking up home for nextgen.TxSession...ok > |94- Calling create on the home...ok > |95- calling supports... supports sees no transaction > |96- calling required... required sees a transaction 71 > |97- calling requiresNew... requiresNew sees a transaction 72 > |98- calling not supported... notSupported sees no transaction > |99- calling mandatory (should get an exception)...got Exception, ok > |100- calling requiredToSupports... Required sees a transaction 73 > Supports > |shoul > |d see the same supports sees a transaction 73 on coming back > |Required sees a > |tra > |nsaction 73 > |101- calling requiredToNotSupported... Required sees a transaction 74 > |NotSupport > |ed should see the same notSupported sees no transaction on coming back > |Required > |sees a transaction 74 > |102- calling requiredToRequiresNew... Required sees a transaction 75 > |Requires ne > |w should see a new transaction requiresNew sees a transaction 76 on > coming > |back > |Required sees a transaction 75 > | > | > |Test AllTypesBean > |================= > | > |103- Looking up the home AllTypes...ok > |104- Calling findByPrimaryKey on AllTypesHome with name seb...Object with > |primar > |y key seb not found in storage > |not found OK > |105- Calling create on AllTypesHome with name seb...ok > |106- Calling business method A an AllTypes (B2B with external > |ejb-ref)...OK, > |res > |ult isI was created with Stateful String noname > |Getting all the fields > |107- boolean true > |108- byte 1 > |109- short 2 > |110- int 3 > |111- long 4 > |112- float 5.6 > |113- double 7.8 > |No char test yet, bug in jdk > |114- String seb > |115- Date 2000-10-26 > |116- Timestamp 2000-10-26 12:02:54.728 > |117- MyObject OK > |118- getting handle of stateful...OK > |119- getting the bean back from the handle...OK > |120- calling business method A on stateful: OK, result is I was > |created with > |Sta > |teful String noname > |121- adding the stateful bean as an object in AllTypes..OK > |122- getting handle of stateless...OK > |123- getting the bean back from the handle...OK > |124- calling business method B on stateless: OK, result is from the > |environment > |properties my name is marc > |125- adding the stateless bean as an object in AllTypes..OK > |126- getting handle of entity...OK > |127- getting the bean back from the handle...Resolve > |handle:nextgen.EnterpriseEn > |tity#seb > |OK > |128- calling business method A on stateless: OK, result > |isEntityBean.callBusines > |sMethodA() called, my primaryKey is seb > |129- adding the entity bean as an object in AllTypes..OK > |130- Getting the list of objects back (should contain the 3 beans)...OK > |131- stateful bean OK > |132- stateless bean OK > |133- entity bean OK > |Testing automatically generated finders > |134- findAll()..OK > |135- findByPrimaryKey()...OK > |136- findByABoolean()..OK > |137- findByAByte()..OK > |138- findByAShort()..OK > |139- findByAnInt()..OK > |140- findByALong()..OK > |141- findByAFloat()..OK > |142- findByADouble()..OK > |No Char test yet, bug in jdk > |143- findByAString()..OK > |144- findByADate()..OK > |145- findByATimestamp()..OK > |146- findByAnObject()..OK > |147- findByStatefulSession()..OK > |148- findByStatelessSession()..OK > |149- findByEnterpriseEntity()..Resolve > handle:nextgen.EnterpriseEntity#seb > |OK > |Testing finders defined in jaws.xml > |150- findByMinInt()..OK > |151- findByIntAndDouble()..OK > | > | > | > |Test OK, 151 tests run, congratulations > |Tests took 12999 milliseconds > | > | > |C:\jboss\bin> > |------------------------------------------------------------------- > |--------- > |-------------------------------------------------- > | > | > | > | > |OUTPUT - 4. Starting TestBeanClient - error occurs. > |------------------------------------------------------------------- > |--------- > |-------------------------------------------------- > |... > |Test TxSession > |============== > | > |93- Looking up home for nextgen.TxSession...ok > |94- Calling create on the home...ok > |95- calling supports... supports sees no transaction > |96- calling required... required sees a transaction 71 > |97- calling requiresNew... requiresNew sees a transaction 72 > |98- calling not supported... notSupported sees no transaction > |99- calling mandatory (should get an exception)...got Exception, ok > |100- calling requiredToSupports... Required sees a transaction 73 > Supports > |shoul > |d see the same supports sees a transaction 73 on coming back > |Required sees a > |tra > |nsaction 73 > |101- calling requiredToNotSupported... Required sees a transaction 74 > |NotSupport > |ed should see the same notSupported sees no transaction on coming back > |Required > |sees a transaction 74 > |102- calling requiredToRequiresNew... Required sees a transaction 75 > |Requires ne > |w should see a new transaction requiresNew sees a transaction 76 on > coming > |back > |Required sees a transaction 75 > | > | > |Test AllTypesBean > |================= > | > |103- Looking up the home AllTypes...ok > |104- Calling findByPrimaryKey on AllTypesHome with name seb...ok > |105- Calling business method A an AllTypes (B2B with external > |ejb-ref)...java.rm > |i.ServerException: RemoteException occurred in server thread; nested > |exception i > |s: > | java.rmi.RemoteException: Object was not found > |java.rmi.RemoteException: Object was not found > | at > |sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream > |RemoteCall.java:245) > | at > |sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java: > |220) > | at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) > | at > |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Un > |known Source) > | at > |org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy. > |java:166) > | at $Proxy13.callBusinessMethodA(Unknown Source) > | at > |org.jboss.zol.testbean.client.EjbossClient.doSomeTesting(EjbossClient > |.java:584) > | at > |org.jboss.zol.testbean.client.EjbossClient.main(EjbossClient.java:783 > |) > | > | > |C:\jboss\bin> > |------------------------------------------------------------------- > |--------- > |-------------------------------------------------- > | > | > | > | > |OUTPUT - 3. Starting JBoss the second, third, ... time after installation > - > |no problems: > |------------------------------------------------------------------- > |--------- > |-------------------------------------------------- > |... > |[nextgen.TxSession] TX_REQUIRED for create > |[nextgen.TxSession] begin tx > |[nextgen.TxSession] commit tx 70 > |[nextgen.TxSession] TX_SUPPORTS for txSupports > |[nextgen.TxSession] TxSessionBean.ejbCreate() called > |[nextgen.TxSession] TxSessionBean.txSupports() called > |[nextgen.TxSession] TX_REQUIRED for txRequired > |[nextgen.TxSession] begin tx > |[nextgen.TxSession] TxSessionBean.txRequired() called > |[nextgen.TxSession] commit tx 71 > |[nextgen.TxSession] TX_REQUIRES_NEW for txRequiresNew > |[nextgen.TxSession] begin tx > |[nextgen.TxSession] TxSessionBean.txRequiresNew() called > |[nextgen.TxSession] commit tx 72 > |[nextgen.TxSession] TX_NOT_SUPPORTED for txNotSupported > |[nextgen.TxSession] TxSessionBean.txNotSupported() called > |[nextgen.TxSession] TX_MANDATORY for txMandatory > |[nextgen.TxSession] Transaction Required, read the spec! > |[nextgen.TxSession] TX_REQUIRED for requiredToSupports > |[nextgen.TxSession] begin tx > |[nextgen.TxSession] TxSessionBean.requiredToSupports() called > |[nextgen.TxSession] TX_SUPPORTS for txSupports > |[nextgen.TxSession] TxSessionBean.ejbCreate() called > |[nextgen.TxSession] TxSessionBean.txSupports() called > |[nextgen.TxSession] commit tx 73 > |[nextgen.TxSession] TX_REQUIRED for requiredToNotSupported > |[nextgen.TxSession] begin tx > |[nextgen.TxSession] TxSessionBean.requiredToNotSupported() called > |[nextgen.TxSession] TX_NOT_SUPPORTED for txNotSupported > |[nextgen.TxSession] TxSessionBean.txNotSupported() called > |[nextgen.TxSession] commit tx 74 > |[nextgen.TxSession] TX_REQUIRED for requiredToRequiresNew > |[nextgen.TxSession] begin tx > |[nextgen.TxSession] TxSessionBean.requiredToRequiresNew() called > |[nextgen.TxSession] TX_REQUIRES_NEW for txRequiresNew > |[nextgen.TxSession] begin tx > |[nextgen.TxSession] TxSessionBean.txRequiresNew() called > |[nextgen.TxSession] commit tx 76 > |[nextgen.TxSession] commit tx 75 > |[Default] JRMPCI:invokeHome findByPrimaryKey > |[Default] Tx is null > |[Default] invokeHome > |[AllTypes] TX_REQUIRED for findByPrimaryKey > |[AllTypes] begin tx > |[AllTypes] commit tx 77 > |[AllTypes] TX_REQUIRED for callBusinessMethodA > |[AllTypes] begin tx > |[AllTypes] Resolve handle:nextgen.EnterpriseEntity#seb > |[AllTypes] JRMPCI:invokeHome findByPrimaryKey > |[AllTypes] Tx is tx:Xid:78 > |[AllTypes] invokeHome > |[nextgen.EnterpriseEntity] TX_REQUIRED for findByPrimaryKey > |[AllTypes] Unable to read from ResultSet: > |java.lang.reflect.InvocationTargetException > |[Default] JRMPCI:invokeHome getEJBObject > |[Default] Tx is null > |[nextgen.StatefulSession] TX_REQUIRED for getEJBObject > |[nextgen.StatefulSession] begin tx > |[nextgen.StatefulSession] > |StatefulSessionBean.setSessionContext(org.jboss.ejb.StatefulSessionEnterp > r > |iseContext$StatefulSessionContextImpl@5585dc) called > |[nextgen.StatefulSession] SSC:invokeHome:mi is getEJBObject map is > |getEJBObject > |[nextgen.StatefulSession] commit tx 79 > |[AllTypes] Unable to read from ResultSet: > |java.lang.reflect.InvocationTargetException > |[AllTypes] JRMPCI:invokeHome create > |[AllTypes] Tx is tx:Xid:78 > |[nextgen.StatelessSession] TX_REQUIRED for create > |[AllTypes] Tx is tx:Xid:78 > |[nextgen.StatefulSession] TX_REQUIRED for callBusinessMethodA > |[nextgen.StatefulSession] I AM LOOKING FOR THE ID 972554464023 > |[nextgen.StatefulSession] > |StatefulSessionBean.setSessionContext(org.jboss.ejb.StatefulSessionEnterp > r > |iseContext$StatefulSessionContextImpl@1b59a2) called > |[nextgen.StatefulSession] Object was not found > |[AllTypes] rollback tx 78 > |[AllTypes] afterCompletion called > |[AllTypes] Object was not found > |[Default] java.rmi.RemoteException: Object was not found > | at > |org.jboss.ejb.plugins.NoPassivationStatefulSessionInstanceCache.get > |(NoPassiv > |ationStateful > |SessionInstanceCache.java:124) > | at > |org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(Sta > |tefulSess > |ionInstanceIn > |terceptor.java:81) > | at > |org.jboss.ejb.plugins.TxInterceptor.invokeNext(TxInterceptor.java:128) > | at > |org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxIntercept > |or.java:1 > |96) > | at > |org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:96) > | at > |org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:156) > | at > |org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContai > |ner.java: > |319) > | at > |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC > |ontainerI > |nvoker.java:2 > |02) > | at > |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC > |ontainerI > |nvoker.java:1 > |79) > | at > |org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(S > |tatefulSe > |ssionProxy.ja > |va:162) > | at $Proxy24.callBusinessMethodA(Unknown Source) > | at > |org.jboss.zol.testbean2.bean.AllTypesBean.callBusinessMethodA(AllTy > |pesBean.j > |ava:128) > | at java.lang.reflect.Method.invoke(Native Method) > | at > |org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityCon > |tainer.ja > |va:627) > | at > |org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(Entit > |ySynchron > |izationInterc > |eptor.java:203) > | at > |org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstan > |ceInterce > |ptor.java:106 > |) > | at > |org.jboss.ejb.plugins.TxInterceptor.invokeNext(TxInterceptor.java:128) > | at > |org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxIntercept > |or.java:1 > |96) > | at > |org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:96) > | at > |org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityIntercepto > |r.java:14 > |0) > | at > |org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:156) > | at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:320) > | at > |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC > |ontainerI > |nvoker.java:2 > |02) > | at > |org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPC > |ontainerI > |nvoker.java:1 > |79) > | at java.lang.reflect.Method.invoke(Native Method) > | at > |sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) > | at sun.rmi.transport.Transport$1.run(Transport.java:142) > | at java.security.AccessController.doPrivileged(Native Method) > | at sun.rmi.transport.Transport.serviceCall(Transport.java:139) > | at > |sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443) > | at > |sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTranspo > |rt.java:6 > |43) > | at java.lang.Thread.run(Thread.java:484) > | > | > | > | > | > |-- > |-------------------------------------------------------------- > |To subscribe: [EMAIL PROTECTED] > |To unsubscribe: [EMAIL PROTECTED] > |Problems?: [EMAIL PROTECTED] > | > | > > > > -- > -------------------------------------------------------------- > To subscribe: [EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] > -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
