From: Dave D. <dd...@ac...> - 2002-06-28 18:48:05
|
I've been struggling with this for the past 2 days and don't seem to be making any progress. I have no experience with JBoss, any other app server, or with EJBs. I've been trying to get up to speed with JBoss 3.0, but haven't been able to find any good docs. So I've been using the 'volunteer documentation' from the JBoss site, and working through those examples. This has required that I make a number of changes; both to the build files, and to the instructions. But I feel this has been a good experience for me, and I have certainly felt a sense of accomplishment when I got the example to work. However, I am stuck on the jaws example, Chapter 4. As is, deployment of the generated classes.jar fails with a complaint about the datasource specified in jaws.xml. If I comment out the datasource and type-mapping entries it deploys and works correctly. However in this case it is usiong the default datasource. I would much rather understand how to specify a different datasource (as in the example) and make that work. But so far I have gotten no where. Part of the error that is generated is included below. I sure would appreciate any help or pointers to docs that would help to clear up my confusion. The doc says "To add another datasource, you have to declare it as a JMX MLet: see Chapter 3.", but Chap. 3 doesn't even mention JMX or MLet. I found some intstructions regarding jboss.conf, but jboss.conf doesn't seem to be relevent to 3.0. Excerpt of JBoss output: 14:42:47,541 INFO [EjbModule] Deploying ClassBean 14:42:47,661 INFO [EjbModule] Remove JSR-77 EJB Module: jboss.management.single :J2EEApplication= ,J2EEServer=Single,j2eeType=EJBModule,name=class.jar 14:42:47,661 ERROR [EjbModule] Initialization failed org.jboss.deployment.DeploymentException: Error in jaws.xml : type-mapping InstantDB not found at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.importXml(JawsAp plicationMetaData.java:197) and if I change the type-mapping to 'InstantDB' I get: 14:46:58,622 INFO [EjbModule] Deploying ClassBean 14:46:58,722 INFO [EjbModule] Remove JSR-77 EJB Module: jboss.management.single :J2EEApplication= ,J2EEServer=Single,j2eeType=EJBModule,name=class.jar 14:46:58,722 ERROR [EjbModule] Initialization failed org.jboss.deployment.DeploymentException: InstantDB not bound at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.create(JawsAppli cationMetaData.java:137) Hope someone can give me some clue. Thanks. Dave Derry |