Hi David,
I have now the CVS JBoss on my machine built and rockin!
However the exception :javax.management.RuntimeOperationsException: Object name cannot
be null, has resurfaced. Any idea why. My sapr3-service.xml is the same as before,
namely;
<mbean code="org.jboss.resource.ConnectionFactoryLoader"
name="JCA:service=ConnectionFactoryLoader,name=SAPConnectorFactory">
<attribute name="ManagedConnectionFactoryProperties">
server-name=191.169.11.5
system-name=
system-number=00
UserName=YAMBAY
password=YAMBAYPWD
Language=EN
</attribute>
<attribute name="JndiName">R3ConnectionFactory</attribute>
<attribute name="TransactionManagerName">java:/TransactionManager</attribute>
<mbean-ref
name="ResourceAdapterName">JCA:service=RARDeployer,name=SAPConnectorFactory</mbean-ref>
<mbean-ref
name="ConnectionManagerFactoryLoaderName">JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</mbean-ref>
<attribute name="ConnectionManagerProperties">#
BlockingTimeoutMillis=500000
IdleTimeoutMinutes=30
MaxSize=10
CleanupIntervalMinutes=30
MinSize=0
MaxIdleTimeoutPercent=1.0
</attribute>
<attribute name="PrincipalMappingClass">
org.jboss.resource.security.ManyToOnePrincipalMapping
</attribute>
<attribute name="PrincipalMappingProperties">
UserName=YAMBAY
password=YAMBAYPWD
</attribute>
</mbean>
I looked at the mbean viewer and this is the summary for the mbean is as follows
MBean View [JMX RI/1.0]
MBean Name: JCA:service=ConnectionFactoryLoader,name=SAPConnectorFactory
MBean Java Class: org.jboss.resource.ConnectionFactoryLoader
--------------------------------------------------------------------------------
MBean description:
Information on the management interface of the MBean
--------------------------------------------------------------------------------
List of MBean attributes:
blah blah
ResourceAdapterName javax.management.ObjectName WO empty box
ResourceAdapterName javax.management.ObjectName RO empty box
blah blah
StateString java.lang.String RO Failed
Regards,
Paul.
P.S. I met Mark and Nathalie yesterday and did some sight seeing around sydney. Nice
guy, she's lovely too. Let him know about Sap and and the fact that you helped me out
a lot.
> -----Original Message-----
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 9 February 2002 12:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Connection Factory not bound under JNDI
>
>
> In the future, please start by indicating the exactjboss
> version you are
> using.
>
> In jboss 3, the attribute name="RARDeployer" is not used. take it out.
>
> If it is 3.0 alpha, you need to rename the oracle driver file
> ***.jar from
> ***.zip, and you need to change the depends
> optional-attribute-name= tags
> to mbean-ref name=, and the object names inside these tags
> need to match
> the actual object names: they start e.g. JCA: rather than jboss.jca.
>
> If it is 3.0 from cvs, except for the extra "RARDeployer",
> this looks ok.
>
> If this does not clear up the problem look at your server log
> carefully. It
> should tell you what is happening and what if anything is
> going wrong with
> the deployment. If you still have problems post the relevant
> parts of the
> log.
>
> david jencks
>
> On 2002.02.08 07:21:18 -0500 Anna Verena Linder wrote:
> > Hi,
> >
> > I am trying to set up JBoss so I can connect to a database
> from a session
> > bean. When I run JBoss, it starts up without problems, but the
> > ConnectionFactory doesn't get bound under JNDI. Can anybody
> help? I'm at
> > the
> > end of my wits.
> >
> > Thanks a lot in advance!
> > Anna Verena Linder
> > -------------------------------------
> > Here is a description of my configuration:
> >
> > I have the oracle jdbc driver zip under JBOSS/lib/ext.
> >
> > The entry in ejb-jar.xml is:
> >
> > <resource-ref>
> > <description>Oracle User Data</description>
> > <res-ref-name>jdbc/OracleUser</res-ref-name>
> > <res-type>javax.sql.DataSource</res-type>
> > <res-auth>Application</res-auth>
> > </resource-ref>
> >
> > and the entries in jboss.xml are:
> >
> > <resource-ref>
> > <res-ref-name>jdbc/OracleUser</res-ref-name>
> > <resource-name>OracleUser</resource-name>
> > </resource-ref>
> >
> > and
> >
> > <resource-managers>
> > <resource-manager res-class="">
> > <res-name>OracleUser</res-name>
> > <res-jndi-name>java:/OracleUser</res-jndi-name>
> > </resource-manager>
> > </resource-managers>
> >
> > The Namespace of my bean contains an entry
> java:comp/env/jdbc/OracleUser,
> > which points to java:/OracleUser, but in the java:
> Namespace, there is no
> > OracleUser entry.
> >
> > The mbean entry in my jboss.jcml looks like this:
> >
> > <mbean code="org.jboss.resource.ConnectionFactoryLoader"
> >
> name="jboss.jca:service=ConnectionFactoryLoader,name=OracleUser">
> > <attribute name="JndiName">OracleUser</attribute>
> > <attribute name="FactoryName">OracleUser</attribute>
> > <attribute
> > name="TransactionManagerName">java:/TransactionManager</attribute>
> >
> > <attribute
> name="RARDeployerName">JCA:service=RARDeployer</attribute>
> > <depends optional-attribute-name="ResourceAdapterName">
> > jboss.jca:service=RARDeployment,name=Minerva JDBC
> > LocalTransaction
> > ResourceAdapter
> > </depends>
> > <attribute name="ConnectionManagerFactoryName">
> > MinervaNoTransCMFactory
> > </attribute>
> >
> > <attribute name="ManagedConnectionFactoryProperties">
> > ConnectionURL=jdbc:oracle:thin:@diablo:1521:olga
> > Driver=oracle.jdbc.driver.OracleDriver
> > TransactionIsolation=TRANSACTION_NONE
> > </attribute>
> >
> > <depends
> optional-attribute-name="ConnectionManagerFactoryLoaderName">
> >
> >
> jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaN
> oTransCMFactor
> > y
> > </depends>
> >
> > <attribute name="ConnectionManagerProperties">
> > MinSize=0
> > MaxSize=10
> > BlockingTimeoutMillis=50000
> > IdleTimeoutMinutes=30
> > CleanupIntervalMinutes=10
> > MaxIdleTimeoutPercent=1.0
> > </attribute>
> > <attribute name="PrincipalMappingClass">
> > org.jboss.resource.security.ManyToOnePrincipalMapping
> > </attribute>
> > <attribute name="PrincipalMappingProperties">
> > userName=myuser
> > password=mypasswd
> > </attribute>
> > </mbean>
> >
> > In the session bean, I call
> >
> > InitialContext jndiContext = new InitialContext();
> > DataSource source = (DataSource)
> >
> jndiContext.lookup("java:comp/env/jdbc/OracleUser");
> >
> > which throws me a NameNotFoundException: "OracleUser not bound".
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML><HEAD>
> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
> charset=iso-8859-1">
> >
> >
> > <META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
> > <BODY>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002>Hi,</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>I am trying
> > to set
> > up JBoss so I can connect to a database from a session
> bean. When I run
> > JBoss,
> > it starts up without problems, but the ConnectionFactory doesn't get
> > bound under
> > JNDI. Can anybody help? I'm at the end of my
> wits.</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>Thanks a lot
> > in
> > advance!</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>Anna Verena
> > Linder</SPAN></FONT></DIV>
> > <DIV><SPAN class=654355509-08022002></SPAN><FONT size=2><FONT
> > face=Arial>-<SPAN
> >
> class=654355509-08022002>------------------------------------<
> /SPAN></FONT></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>Here is a
> > description of my configuration:</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>I have the
> > oracle
> > jdbc driver zip under JBOSS/lib/ext. </SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>The entry in
> > ejb-jar.xml is:</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002><resource-ref><BR>
> > <description>Oracle User
> >
> Data</description><BR> <res-ref-name
> >jdbc/OracleUser</res-ref-name><BR>
> <res-type>javax.sql.DataSource</res-type><BR> 
> ; <res-auth>Application</res-auth><BR>&
> lt;/resource-ref></SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN class=654355509-08022002>and the
> > entries in
> > jboss.xml are:</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002><resource-ref><BR>
> >
> <res-ref-name>jdbc/OracleUser</res-ref-name><BR>&n
> bsp; <resource-name>OracleUser</resource-n
> ame><BR></resource-ref></SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002>and</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> >
> class=654355509-08022002><resource-managers><BR> &n
> bsp;
> > <resource-manager
> res-class=""><BR>
> >
> >
> <res-name>OracleUser</res-name><BR> &nb
> sp;
> >
> >
> <res-jndi-name>java:/OracleUser</res-jndi-name><BR
> > </resource-manager><BR></res
> ource-managers></SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>The Namespace
> > of my
> > bean contains an entry java:comp/env/jdbc/OracleUser, which
> points to
> > java:/OracleUser, but in the java: Namespace, there is no
> OracleUser
> > entry.</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>The mbean
> > entry in
> > my jboss.jcml looks like this:</SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002><mbean
> >
> code="org.jboss.resource.ConnectionFactoryLoader"<BR> &nb
> sp;
> >
> >
> name="jboss.jca:service=ConnectionFactoryLoader,name=OracleUse
> r"><BR>
> >
> > <attribute
> >
> name="JndiName">OracleUser</attribute><BR>
> > <attribute
> >
> name="FactoryName">OracleUser</attribute><BR> &n
> bsp;
> > <attribute
> >
> name="TransactionManagerName">java:/TransactionManager</
> attribute></SPAN></FONT></DIV>
> > <DIV> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>
> >
> > <attribute
> >
> name="RARDeployerName">JCA:service=RARDeployer</attribut
> e><BR>
> >
> > <depends
> >
> optional-attribute-name="ResourceAdapterName"><BR> &nb
> sp;
> >
> > jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction
> > ResourceAdapter<BR>
> > </depends><BR>
> > <attribute
> >
> name="ConnectionManagerFactoryName"><BR> &
> nbsp;
> >
> > MinervaNoTransCMFactory<BR>
> > </attribute></SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>
> >
> > <attribute
> >
> name="ManagedConnectionFactoryProperties"><BR> &
> nbsp;
> >
> >
> ConnectionURL=jdbc:oracle:thin:@diablo:1521:olga<BR> &nbs
> p;
> >
> >
> Driver=oracle.jdbc.driver.OracleDriver<BR> &n
> bsp;
> > TransactionIsolation=TRANSACTION_NONE<BR>
> > </attribute></SPAN></FONT></DIV>
> > <DIV> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>
> >
> > <depends
> >
> optional-attribute-name="ConnectionManagerFactoryLoaderName"&g
> t;<BR>
> >
> >
> jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaN
> oTransCMFactory<BR>
> >
> > </depends></SPAN></FONT></DIV>
> > <DIV> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>
> >
> > <attribute
> >
> name="ConnectionManagerProperties"><BR> &n
> bsp;
> > MinSize=0<BR>
> > MaxSize=10<BR>
> > BlockingTimeoutMillis=50000<BR>
> > IdleTimeoutMinutes=30<BR>
> > CleanupIntervalMinutes=10<BR>
> > MaxIdleTimeoutPercent=1.0<BR>
> > </attribute><BR> <attribute
> > name="PrincipalMappingClass"><BR>
> >
> org.jboss.resource.security.ManyToOnePrincipalMapping<BR> 
> ;
> >
> > </attribute><BR> <attribute
> >
> name="PrincipalMappingProperties"><BR> &nb
> sp;
> >
> > userName=myuser<BR>
> > password=mypasswd<BR>
> > </attribute><BR></mbean></SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN class=654355509-08022002>In the
> > session bean,
> > I call </SPAN></FONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>InitialContext
> >
> > jndiContext = new
> >
> InitialContext();<BR>
> > DataSource
> > source =
> >
> (DataSource)<BR> &nbs
> p;
> >
> >
> jndiContext.lookup("java:comp/env/jdbc/OracleUser");</SPAN></F
> ONT></DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> > class=654355509-08022002></SPAN></FONT> </DIV>
> > <DIV><FONT face=Arial size=2><SPAN
> class=654355509-08022002>which throws
> > me a
> > NameNotFoundException: "OracleUser not
> > bound".</SPAN></FONT></DIV></BODY></HTML>
> >
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user