Thanks Andrew, it works fine now . -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew Stevens Sent: Friday, February 01, 2002 3:31 PM To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] JBoss resource-manager config
A wise old hermit known only as Andrew Stevens <[EMAIL PROTECTED]> once said: > A wise old hermit known only as KC <[EMAIL PROTECTED]> once said: > > > 1. I am trying Xdoclet1.1.1 to create my "jboss.xml" file. > > 2. I use the merge file method, the content of the merge file, both > > the > > "jboss-resource-managers.xml" and the "jboss.xml" appear as follows: > > > > <resource-managers> > > <resource-manager > > res-class="org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl"> > > <res-name>AppDB</res-name> > > <res-jndi-name>java:/AppDS</res-jndi-name> > > </resource-manager> > > </resource-managers> > > > > 3. I receive the following error: > > > > Attribute "res-class" is not declared for element > > "resource-manager". > > > > Anyone, any idea?? Pls help. > > What version of JBoss? And what version is specified in the jboss > subtask entry? Perhaps it's generating for a version that needs the > res-class attribute, but you're deploying to a version that doesn't > support it? Just realised, of course, this bit's not being generated anyway, since you're using a merge file (doh!) Assuming you got the details of what to include in the merge file from the docs, perhaps it's just the docs that are misleading? I notice in the DTDs in core/resources/xdoclet/ejb/vendor, that jboss.dtd (which is the 2.2 DTD) contains <!ATTLIST resource-manager res-class CDATA #REQUIRED> while jboss_2_4.dtd (the 2.4 DTD, but you probably guessed that) doesn't. So, you'd only want the res-class attribute in your merge file if you're using JBoss 2.2. Andrew. _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
