RE: [JBoss-user] No resource manager found for OJB
the jca connector isn't current. The current connector is being replaced in favor of new OTM stuff. sorry for the delay. Use MBEAN to integrate. I use OJB in jboss3.0 Regards, Matthew -Original Message- From: Ryan Marsh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 2:24 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] No resource manager found for OJB I've got a little ojb-service.xml file for my OJB factory. In the service xml file I set the attribute jndiName to be OJB. Now when I deploy session beans, I get the following: 16:06:33,728 WARN [StatelessSessionContainer] No resource manager found for OJB How exactly to I properly specify a reference to this component from a Session bean. Apparently sometimes some things are given ENC and sometimes things aren't. Some things in the JNDI tree are accessible outside of the vm, some aren't (although everyhing here is in-vm). I find this all very confusing. Help! -ryan -- Humans are the unfortunate result of a local maximum in the fitness landscape. www.ryanmarsh.com --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] No resource manager found for OJB
Not using the jca stuff, it's actually an MBean. I found out that I must specify a resource manager in my jboss.xml. I still get errors though because it can't find the database (repository.xml). I've tried many different paths. Yes it is in the classpath. How do you do yours? See below. Any ideas? 17:00:01,062 INFO [STDOUT] OJB.properties: file:/home/ryan/Projects/jboss-3.0.0_tomcat-4.0.3/server/intermodal/conf/OJB.properties 17:00:01,673 INFO [NamingLocator] Properties for creating the initial context: {java.naming.provider.url=jnp://localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 17:00:01,873 ERROR [STDERR] org.odmg.DatabaseNotFoundException: OJB can't open repository ./conf/repository.xml org/apache/commons/pool/KeyedPoolableObjectFactory 17:00:01,911 ERROR [STDERR] at org.apache.ojb.odmg.DatabaseImpl.open(Unknown Source) 17:00:01,952 ERROR [STDERR] at com.metamorphosys.intermodal.service.HelloEJB.getDatabase(HelloEJB.java:84) 17:00:01,986 ERROR [STDERR] at com.metamorphosys.intermodal.service.HelloEJB.listAllProducts(HelloEJB.java:95) On Tue, 2002-08-13 at 16:52, Matthew Baird wrote: the jca connector isn't current. The current connector is being replaced in favor of new OTM stuff. sorry for the delay. Use MBEAN to integrate. I use OJB in jboss3.0 Regards, Matthew -Original Message- From: Ryan Marsh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 2:24 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] No resource manager found for OJB I've got a little ojb-service.xml file for my OJB factory. In the service xml file I set the attribute jndiName to be OJB. Now when I deploy session beans, I get the following: 16:06:33,728 WARN [StatelessSessionContainer] No resource manager found for OJB How exactly to I properly specify a reference to this component from a Session bean. Apparently sometimes some things are given ENC and sometimes things aren't. Some things in the JNDI tree are accessible outside of the vm, some aren't (although everyhing here is in-vm). I find this all very confusing. Help! -ryan -- Humans are the unfortunate result of a local maximum in the fitness landscape. www.ryanmarsh.com --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code1 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Humans are the unfortunate result of a local maximum in the fitness landscape. www.ryanmarsh.com --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
On Wed, Apr 18, 2001 at 08:19:31PM +0800, Russell wrote: Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. However , when i called ejb create , the records is inserted in my table and did not give me any error. I think you'll find that they haven't been inserted in your table, but in someone else's. JBoss defaults to java:/DefaultDS in this situation, which is the bundled HypersonicSQL database by default. You need to check your jboss.xml to make sure the mapping is set up correctly. Are this jboss bugs ? It's not the clearest error message in the world. You might like to log a feature request at SourceForge for it to be improved. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] No resource manager found
[Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. ... You need to check your jboss.xml to make sure the mapping is set up correctly. Can you point to an example of where/how this is done in jboss.xml? -Original Message- From: Toby Allsopp [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 2:56 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] No resource manager found On Wed, Apr 18, 2001 at 08:19:31PM +0800, Russell wrote: Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. However , when i called ejb create , the records is inserted in my table and did not give me any error. I think you'll find that they haven't been inserted in your table, but in someone else's. JBoss defaults to java:/DefaultDS in this situation, which is the bundled HypersonicSQL database by default. You need to check your jboss.xml to make sure the mapping is set up correctly. Are this jboss bugs ? It's not the clearest error message in the world. You might like to log a feature request at SourceForge for it to be improved. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
On Wed, Apr 18, 2001 at 04:49:14PM -0400, Deadman, Hal wrote: [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. ... You need to check your jboss.xml to make sure the mapping is set up correctly. Can you point to an example of where/how this is done in jboss.xml? There a meeeleeeons of examples in the list archives. Most of them are broken (which is why they're posted to the list), but you should be able to figure it out from there. Also, the manual has the jboss.xml DTD, but no actual description of how to map resource managers. The source code is, as always, the definitive reference. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
Hi Toby , First of all , I did not deploy the ejb jars with jboss.xml(from documentation is optional). And the records are inserted into my table , i can see it in my database. Thanks. Toby Allsopp wrote: On Wed, Apr 18, 2001 at 08:19:31PM +0800, Russell wrote: Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. However , when i called ejb create , the records is inserted in my table and did not give me any error. I think you'll find that they haven't been inserted in your table, but in someone else's. JBoss defaults to java:/DefaultDS in this situation, which is the bundled HypersonicSQL database by default. You need to check your jboss.xml to make sure the mapping is set up correctly. Are this jboss bugs ? It's not the clearest error message in the world. You might like to log a feature request at SourceForge for it to be improved. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
On Thu, Apr 19, 2001 at 09:53:39AM +0800, Russell wrote: Hi Toby , First of all , I did not deploy the ejb jars with jboss.xml(from documentation is optional). And the records are inserted into my table , i can see it in my database. Actually, looking at the code, it seems that the warning you're getting is due to not having a DefaultDS. Have you removed DefaultDS from jboss.jcml? I don't know how you're ending up using the correct database. Are you actually using the DataSource you obtain from JNDI? Toby. Thanks. Toby Allsopp wrote: On Wed, Apr 18, 2001 at 08:19:31PM +0800, Russell wrote: Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. However , when i called ejb create , the records is inserted in my table and did not give me any error. I think you'll find that they haven't been inserted in your table, but in someone else's. JBoss defaults to java:/DefaultDS in this situation, which is the bundled HypersonicSQL database by default. You need to check your jboss.xml to make sure the mapping is set up correctly. Are this jboss bugs ? It's not the clearest error message in the world. You might like to log a feature request at SourceForge for it to be improved. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
On Thu, Apr 19, 2001 at 11:08:27AM +0800, Russell wrote: Hi Toby, I have did not see any DefaultDS in my jboss.jcml. And for second question , i did not why it can inserted record into table even i have the warning from jboss. Thanks Below is my jboss.jcml file : Yep, there's no DefaultDS there. That's fine, but it leaves the question of why you're getting the right DataSource. Does your code say something like: DataSource ds = (DataSource) new InitialContext().lookup("java:/PostgresDS"); by any chance? If not, what does it say? Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
Hi Toby , No. I just called ejbcreate . I did not understand why it can find my datasource. below is my ejb-jar.xml and jaws.xml . Maybe you can find something weird in the xml file ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd' ejb-jar descriptionEnterprise Beans for Project: pmg.jpr/description enterprise-beans entity ejb-nameProjectMngUser/ejb-name homecom.cesma.ecommerce.pmg.user.ProjectMngUserHome/home remotecom.cesma.ecommerce.pmg.user.ProjectMngUser/remote ejb-classcom.cesma.ecommerce.pmg.user.ProjectMngUserBean/ejb-class persistence-typeContainer/persistence-type prim-key-classcom.cesma.ecommerce.pmg.user.ProjectMngUserPK/prim-key-class reentrantFalse/reentrant cmp-field field-namepm_userid/field-name /cmp-field cmp-field field-namecompanyid/field-name /cmp-field cmp-field field-nameemail/field-name /cmp-field cmp-field field-namepassword/field-name /cmp-field cmp-field field-namecanapproved/field-name /cmp-field cmp-field field-nameishomeowner/field-name /cmp-field cmp-field field-nameissalesexec/field-name /cmp-field cmp-field field-nameisprojectexec/field-name /cmp-field cmp-field field-nameisadmin/field-name /cmp-field resource-ref res-ref-namejdbc/PostgresDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity /enterprise-beans assembly-descriptor container-transaction method ejb-nameProjectMngUser/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor /ejb-jar ?xml version="1.0" encoding="ISO-8859-1"? jaws enterprise-beans entity ejb-nameProjectMngUser/ejb-name table-namepm_user/table-name create-tabletrue/create-table cmp-field field-namepm_userid/field-name /cmp-field cmp-field field-namecompanyid/field-name /cmp-field cmp-field field-nameemail/field-name /cmp-field cmp-field field-namepassword/field-name /cmp-field cmp-field field-namecanapproved/field-name /cmp-field cmp-field field-nameishomeowner/field-name /cmp-field cmp-field field-nameissalesexec/field-name /cmp-field cmp-field field-nameisprojectexec/field-name /cmp-field cmp-field field-nameisadmin/field-name /cmp-field /entity /enterprise-beans datasourcePostgresDS/datasource type-mappingPostgreSQL/type-mapping type-mappings type-mapping namePostgreSQL/name mapping java-typejava.util.Date/java-type jdbc-typeDATE/jdbc-type sql-typeDATE/sql-type /mapping mapping java-typejava.sql.Date/java-type jdbc-typeDATE/jdbc-type sql-typeDATE/sql-type /mapping mapping java-typejava.lang.String/java-type jdbc-typeVARCHAR/jdbc-type sql-typeTEXT/sql-type /mapping mapping java-typejava.lang.Long/java-type jdbc-typeBIGINT/jdbc-type sql-typeBIGINT/sql-type /mapping mapping java-typejava.lang.Object/java-type jdbc-typeBLOB/jdbc-type sql-typeBLOB/sql-type /mapping mapping java-typejava.lang.Integer/java-type jdbc-typeINTEGER/jdbc-type sql-typeINTEGER/sql-type /mapping mapping java-typejava.lang.Short/java-type jdbc-typeINTEGER/jdbc-type sql-typeINTEGER/sql-type /mapping mapping java-typejava.lang.Boolean/java-type jdbc-typeVARCHAR/jdbc-type sql-typeBOOL/sql-type /mapping mapping java-typejava.lang.Character/java-type jdbc-typeCHAR/jdbc-type sql-typeCHAR/sql-type /mapping mapping java-typejava.lang.Double/java-type jdbc-typeDOUBLE/jdbc-type sql-typeDOUBLE/sql-type /mapping mapping java-typejava.sql.TimeStamp/java-type jdbc-typeTIMESTAMP/jdbc-type sql-typeTIMESTAMP/sql-type /mapping mapping java-typejava.lang.Byte/java-type jdbc-typeTINYINT/jdbc-type sql-typeTINYINT/sql-type /mapping mapping java-typejava.lang.Float/java-type jdbc-typeFLOAT/jdbc-type