1 Reply Latest reply on Feb 15, 2002 4:31 PM by spencer_dog

    Unable to get the CMP-CD Update client to run successfully

    spencer_dog

      I just started using JBoss and just want to go over the basic CMP examples.

      Using ant as described in your documentation I compiled CD CMP example and copied the cd.jar to the deploy directory. According to the server logs the cd.jar file is deployed and it knows that it is a J2EE application.

      I was under the impression that JBoss is supposed to generate the table on the fly and I run the update example to populate the table. Also, for this example I would not need to modify the jboss.jcml because this example uses the Hypersonic DB which is embedded within Jboss and did not need a JAWS file.

      When I build and run: ant cmp-cd-upload - it compiles correctly and starts to run. I see this message

      main:
      [java] id=1
      [java] OK
      [java] Upload: can't read file `CDs.txt'

      The error output is misleading because I did walk through the code with JBuilder and proved to myself that it could read the cds.txt file and it pulls the data out properly. The parameters reported having values.

      It fails on this line in the code in the upload.java:
      cdCollection.addCd(Integer.valueOf(id), title, artist, type, notes);

      The server reports the following errors
      [INFO,Default] Caught FinderException in CDCollection::deleteAll()
      [INFO,Default] Added CD with id=1, title=Great Organ Works/Bach JS, artist=Koopm
      an, type=classical, organ, notes=Incl. Toccata & Fugue in D minor
      [ERROR,CDCollectionBean] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: null
      Embedded Exception
      Cound not determine existence:javax.ejb.FinderException: Connection unavailable:
      java.lang.RuntimeException: Unable to register with TransactionManager: java.la
      ng.ClassNotFoundException: javax.transaction.xa.XAResource; nested exception is:
      javax.ejb.EJBException: null

      I am running Windows 2000 Professional and I have installed JBoss-2.4.4_Tomcat-3.2.3. I have started and stopped the server several times. I did attempt to run the List program first. Didn't read the documentation that closely the first time through.