David - I am working with Chris on this one.  I have just tested this and it works a 
treat.  I know that Chris (and I'm sure many others) have gone thru many painful 
experiences to get everything running (in 3.0.0) -coming up to speed with J2EE, 
XDoclet, Ant, JBoss, mySQL etc in the space of several months.  Sometimes we may not 
always look in the right place first time around - we apologise for this, maybe it's 
exhaustion, maybe oversight but thanks for coming up with the right answer so quickly. 
 We shall try to remember "the archives, the archives"
 
 
Regards
 
 
Alan.
 

        -----Original Message----- 
        From: David Jencks [mailto:[EMAIL PROTECTED]] 
        Sent: Tue 20/08/2002 8:13 PM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: Re: [JBoss-user] MySql with Jboss 3.0.1
        
        

        Use the config file that comes with a release of jboss, or compare VERY
        carefully, or look at the message that tells you what the problem is and
        see if all the mbeans needed are actually there, or look at the mailing
        list where this problem has been answered 20 or so times.
        
           jboss.security:name=JaasSecurityManager
        
        needs to be
        
           jboss.security:service=JaasSecurityManager
        
        in your mysql-service.xml
        
        david jencks
        
        
        
        
        On 2002.08.20 02:06:49 -0400 Chris Pinfold wrote:
        > I am having problems deploying mysql-service.xml (MySql Datasource) using
        > Jboss 3.0.1.
        > This worked fine in 3.0.0, but now I get the folllowing error:
        >
        > I have attached the mysql-service.xml file.
        >
        > 05:00:51,079 ERROR [URLDeploymentScanner] MBeanException: Exception in
        > MBean operation 'checkIncompleteDeployments()'
        > Cause: Incomplete Deployment listing:
        > Packages waiting for a deployer:
        >   <none>
        > Incompletely deployed packages:
        >   <none>
        > MBeans waiting for classes:
        >   <none>
        > MBeans waiting for other MBeans:
        > [ObjectName: jboss.jca:service=LocalTxCM,name=MySqlDS
        >  state: CONFIGURED
        >  I Depend On:   jboss.jca:service=LocalTxDS,name=MySqlDS
        >   jboss.jca:service=LocalTxPool,name=MySqlDS
        >   jboss.jca:service=CachedConnectionManager
        >   jboss.security:name=JaasSecurityManager
        >   jboss.jca:service=RARDeployer
        >
        >  Depends On Me: ]
        >
        >
        >  <<mysql-service.xml>>
        >
        > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
        > <HTML>
        > <HEAD>
        > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
        > <META NAME="Generator" CONTENT="MS Exchange Server version 6.0.5770.91">
        > <TITLE>MySql with Jboss 3.0.1</TITLE>
        > </HEAD>
        > <BODY>
        > <!-- Converted from text/rtf format -->
        >
        > <P><FONT SIZE=2 FACE="Arial">I am having problems deploying
        > mysql-service.xml (MySql Datasource) using Jboss 3.0.1. </FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">This worked fine in 3.0.0, but now I get
        > the folllowing error:</FONT>
        > </P>
        >
        > <P><FONT SIZE=2 FACE="Arial">I have attached the mysql-service.xml
        > file.</FONT>
        > </P>
        >
        > <P><FONT SIZE=2 FACE="Arial">05:00:51,079 ERROR [URLDeploymentScanner]
        > MBeanException: Exception in MBean operation
        > 'checkIncompleteDeployments()'</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">Cause: Incomplete Deployment
        > listing:</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">Packages waiting for a deployer:</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;none&gt;</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">Incompletely deployed packages:</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;none&gt;</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">MBeans waiting for classes:</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp; &lt;none&gt;</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">MBeans waiting for other MBeans:</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">[ObjectName:
        > jboss.jca:service=LocalTxCM,name=MySqlDS</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp;state: CONFIGURED</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp;I Depend On:&nbsp;&nbsp;
        > jboss.jca:service=LocalTxDS,name=MySqlDS</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp;
        > jboss.jca:service=LocalTxPool,name=MySqlDS</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp;
        > jboss.jca:service=CachedConnectionManager</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp;
        > jboss.security:name=JaasSecurityManager</FONT>
        >
        > <BR><FONT SIZE=2 FACE="Arial">&nbsp; jboss.jca:service=RARDeployer</FONT>
        > </P>
        >
        > <P><FONT SIZE=2 FACE="Arial">&nbsp;Depends On Me: ]</FONT>
        > </P>
        > <BR>
        >
        > <P><FONT FACE="Arial" SIZE=2 COLOR="#000000">
        > &lt;&lt;mysql-service.xml&gt;&gt; </FONT>
        > </P>
        >
        > </BODY>
        > </HTML>
        >
        > <?xml version="1.0" encoding="UTF-8"?>
        >
        > <!-- =====================================================================
        > -->
        > <!--                                                                    
        >  -->
        > <!--  JBoss Server Configuration                                        
        >  -->
        > <!--                                                                    
        >  -->
        > <!-- =====================================================================
        > -->
        >
        > <server>
        >
        >   <!-- ====================================================================
        > -->
        >   <!-- New ConnectionManager setup for mysql using 2.0.11 driver        
        >   -->
        >   <!-- Build jmx-api (build/build.sh all) and view for config
        > documentation -->
        >   <!-- ====================================================================
        > -->
        >
        >   <mbean 
code="org.jboss.resource.connectionmanager.LocalTxConnectionManager"
        > name="jboss.jca:service=LocalTxCM,name=MySqlDS">
        >
        >
        >     <!-- Include a login module configuration named MySqlDbRealm.
        >          Update your login-conf.xml, here is an example for a
        >          ConfiguredIdentityLoginModule:
        >
        >     <application-policy name = "MySqlDbRealm">
        >        <authentication>
        >           <login-module code = 
"org.jboss.resource.security.ConfiguredIdentityLoginModule"
        > flag = "required">
        >              <module-option name = "principal">myusername</module-option>
        >              <module-option name = "userName">myusername</module-option>
        >              <module-option name = "password">mypassword</module-option>
        >              <module-option name = 
"managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MySqlDS</module-option>

        >           </login-module>
        >        </authentication>
        >     </application-policy>
        >
        >     NOTE: the application-policy name attribute must match
        > SecurityDomainJndiName, and the
        >       module-option name = "managedConnectionFactoryName"
        >     must match the object name of the ConnectionManager you are
        > configuring here.
        >     -->
        >     <!--uncomment out this line if you are using the MySqlDbRealm above
        >     <attribute name="SecurityDomainJndiName">MySqlDbRealm</attribute>
        >     -->
        >
        >     <depends optional-attribute-name="ManagedConnectionFactoryName">
        >       <!--embedded mbean-->
        >       <mbean code="org.jboss.resource.connectionmanager.RARDeployment"
        > name="jboss.jca:service=LocalTxDS,name=MySqlDS">
        >
        >         <attribute name="JndiName">MySqlDS</attribute>
        >
        >         <attribute name="ManagedConnectionFactoryProperties">
        >           <properties>
        >             <config-property name="ConnectionURL"
        > 
type="java.lang.String">jdbc:mysql://localhost:3306/mDrover</config-property>
        >             <config-property name="DriverClass"
        > type="java.lang.String">org.gjt.mm.mysql.Driver</config-property>
        >             <!--set these only if you want only default logins, not
        > through JAAS -->
        >             <config-property name="UserName"
        > type="java.lang.String">myusername</config-property>
        >             <config-property name="Password"
        > type="java.lang.String">mypassword</config-property>
        >           </properties>
        >
        >         </attribute>
        >
        > <!--Below here are advanced properties -->
        >         <!--hack-->
        >         <depends 
optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss
        > LocalTransaction JDBC Wrapper</depends>
        >
        >       </mbean>
        >     </depends>
        >
        >     <depends optional-attribute-name="ManagedConnectionPool">
        >       <!--embedded mbean-->
        >       <mbean 
code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
        > name="jboss.jca:service=LocalTxPool,name=MySqlDS">
        >
        >         <attribute name="MinSize">0</attribute>
        >         <attribute name="MaxSize">50</attribute>
        >         <attribute name="BlockingTimeoutMillis">5000</attribute>
        >         <attribute name="IdleTimeoutMinutes">15</attribute>
        >         <!--criteria indicates if Subject (from security domain) or app
        > supplied
        >             parameters (such as from getConnection(user, pw)) are used to
        > distinguish
        >             connections in the pool. Choices are
        >             ByContainerAndApplication (use both),
        >             ByContainer (use Subject),
        >             ByApplication (use app supplied params only),
        >             ByNothing (all connections are equivalent, usually if adapter
        > supports
        >               reauthentication)-->
        >         <attribute name="Criteria">ByContainer</attribute>
        >       </mbean>
        >
        >     </depends>
        >     <depends 
optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>

        >
        >     <depends 
optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager</depends>

        >
        >     <attribute 
name="TransactionManager">java:/TransactionManager</attribute>
        >     <!--make the rar deploy! hack till better deployment-->
        >     <depends>jboss.jca:service=RARDeployer</depends>
        >
        >   </mbean>
        >
        >
        > </server>
        >
        
        
        -------------------------------------------------------
        This sf.net email is sponsored by: OSDN - Tired of that same old
        cell phone?  Get a new here for FREE!
        https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
        _______________________________________________
        JBoss-user mailing list
        [EMAIL PROTECTED]
        https://lists.sourceforge.net/lists/listinfo/jboss-user
        

<<winmail.dat>>

Reply via email to