[ 
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1566?page=comments#action_17341
 ] 

Chris Searle commented on XDT-1566:
-----------------------------------

OK. Now that the class cast exception has gone - I found that the jboss service 
xml descriptor is incorrect.

I got it to deploy by using the following template patch to the 
jboss-service.xdt (bear in mind that I'm working on "getting it to work" rather 
than "this is the perfect solution". I just worked through the errors displayed 
each time I deployed - I'm not really a jboss hacker)

--- xdoclet.orig/modules/hibernate/resources/jboss-service.xdt  2005-11-02 
11:20:55.422281868 +0100
+++ xdoclet/modules/hibernate/resources/jboss-service.xdt       2005-11-02 
11:21:22.033468578 +0100
@@ -22,7 +22,12 @@
      <XDtConfig:ifConfigParamNotGreaterOrEquals paramName="version" 
value="2.1.6">
        <attribute name="UseOuterJoin"><XDtConfig:configParameterValue 
paramName="useOuterJoin"/></attribute>
      </XDtConfig:ifConfigParamNotGreaterOrEquals>
+     <XDtConfig:ifConfigParamNotGreaterOrEquals paramName="version" 
value="2.1.6">
        <attribute name="ShowSql"><XDtConfig:configParameterValue 
paramName="showSql"/></attribute>
+     </XDtConfig:ifConfigParamNotGreaterOrEquals>
+     <XDtConfig:ifConfigParamGreaterOrEquals paramName="version" value="3.0">
+       <attribute name="ShowSqlEnabled"><XDtConfig:configParameterValue 
paramName="showSql"/></attribute>
+     </XDtConfig:ifConfigParamGreaterOrEquals>
      <XDtConfig:ifHasConfigParam paramName="userTransactionName">
        <attribute name="UserTransactionName"><XDtConfig:configParameterValue 
paramName="userTransactionName"/></attribute>
      </XDtConfig:ifHasConfigParam>
@@ -33,7 +38,12 @@
        <attribute 
name="TransactionManagerLookupStrategy"><XDtConfig:configParameterValue 
paramName="transactionManagerStrategy"/></attrib
ute>
      </XDtConfig:ifHasConfigParam>
      <XDtConfig:ifHasConfigParam paramName="cacheProvider">
-       <attribute name="CacheProvider"><XDtConfig:configParameterValue 
paramName="cacheProvider"/></attribute>
+       <XDtConfig:ifConfigParamNotGreaterOrEquals paramName="version" 
value="2.1.6">
+         <attribute name="CacheProvider"><XDtConfig:configParameterValue 
paramName="cacheProvider"/></attribute>
+       </XDtConfig:ifConfigParamNotGreaterOrEquals>
+       <XDtConfig:ifConfigParamGreaterOrEquals paramName="version" value="3.0">
+         <attribute name="CacheProviderClass"><XDtConfig:configParameterValue 
paramName="cacheProvider"/></attribute>
+       </XDtConfig:ifConfigParamGreaterOrEquals>
      </XDtConfig:ifHasConfigParam>
        <XDtConfig:ifConfigParamGreaterOrEquals paramName="version" value="2.1">
      <XDtConfig:ifHasConfigParam paramName="maxFetchDepth">


> Class name changed for HibernateService
> ---------------------------------------
>
>          Key: XDT-1566
>          URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1566
>      Project: XDoclet
>         Type: Bug
>   Components: Hibernate Module
>     Versions: 1.3
>     Reporter: Chris Searle
>     Assignee: xdoclet-devel (Use for new issues)
>      Fix For: 1.3

>
>
> In HibernateTagsHandler.java you have:
>    public String serviceClassName(Properties attributes)
>     {
>         if ("1.1".equals(getHibernateSubTask().getVersion()))
>             return "cirrus.hibernate.jmx.HibernateService";
>         else
>             return "net.sf.hibernate.jmx.HibernateService";
>     }
> In hibernate 3 it appears that the correct class is
> org.hibernate.jmx.HibernateService
> At least - this appears to be the case - when version is set to 3.0 you get 
> the net.sf class - and on deploy a class cast exception - and in 
> hibernate3.jar it's got a class org.hibernate.jmx.HibernateService - so I 
> assume that it's the same :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to