hello, I am setting a mysql connection to Jboss3.0.0rc2 and have followed the steps posted at http://jboss.org/forums/thread.jsp?forum=67&thread=13366 . I modifed "standardjaws.xml" and "standardjbosscmp.xml" to make "java:/MySqlDS" as the default datasource. When i start jboss, there is no error reported. But when i copy the online docs example "cd.jar" to jboss/server/default/deploy/ , i got an exception as follows : -------------------------------- 20:33:25,559 INFO [MainDeployer] Starting deployment of package: file:/var/jboss/server/default/deploy/cd.jar 20:33:26,883 INFO [EjbModule] Creating 20:33:27,046 INFO [EjbModule] Deploying CDBean 20:33:29,858 INFO [EjbModule] Deploying CDCollectionBean 20:33:34,529 ERROR [EntityContainer] Exception in service lifecyle operation: create java.sql.SQLException: ResourceException javax.resource.ResourceException: Could not create connection at org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:105) at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnection(JDBCCommand.java:694) at org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java:120) at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersistenceManager.java:130) at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:155) at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337) at org.jboss.ejb.Container.invoke(Container.java:790) ----------------------------------------- I would like to know what mis-configurations could cause this kind of errors? wrong userName,password,url,and any more?
在 2002-05-20 一 的 09:24, Sacha Labourey 写道: > Hello, > > In order to help you with your connection, please provide us with the > Exception trace you see. > > Then, for your second point (CMP), take a look at the free on-line doco for > CMP: you will see how to give the name of the datasource to your CMP beans. > By default, they will use the java:DefaultDS JNDI name which is linked to > the Hypersonic database that is embedded in JBoss. > > Cheers, > > > Sacha > > > -----Message d'origine----- > > De : [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]De la part de Centaur > > zeus > > Envoyé : lundi, 20 mai 2002 11:18 > > À : [EMAIL PROTECTED] > > Objet : [JBoss-user] jboss 3.0.0 db configure > > > > > > hi all, > > > > I would like to know how could I set an oracle connection in > > Jboss 3.0.0 > > ? I search through the web and I found a sample > > oracle-service.xml. But when > > I put it into the same directory as hypersonic-service.xml, it generates > > lots of exceptions during startup. So can any one help me ? > > > > Also , I would like to know if I could configure which > > connection (like > > mysql, oracle ) to use when using cmp ? > > > > Perseus > > > > > > _________________________________________________________________ > > Join the worlds largest e-mail service with MSN Hotmail. > > http://www.hotmail.com > > > > > > _______________________________________________________________ > > Hundreds of nodes, one monster rendering program. > > Now that's a super model! Visit http://clustering.foundries.sf.net/ > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > _______________________________________________________________ > Hundreds of nodes, one monster rendering program. > Now that's a super model! Visit http://clustering.foundries.sf.net/ > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user _______________________________________________________________ Hundreds of nodes, one monster rendering program. Now that's a super model! Visit http://clustering.foundries.sf.net/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user