Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-513 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-513 Summary: problem with back slashes Type: Bug Status: Assigned Priority: Major Time Spent: Unknown Estimate: 0 minutes Project: XDoclet Components: Hibernate Module Versions: 1.2 Beta 2 Assignee: xdoclet-devel (Use for new issues) Reporter: Colum O'Dea Created: Thu, 5 Jun 2003 10:34 AM Updated: Thu, 5 Jun 2003 10:34 AM Environment: xdoclet 1.2 beta 2, hibernate2 and jboss 1.3.2 on windown xp Description: hi, i'm using hibernate with xdoclet and have come up against a problem with back slashes. my application server is jboss and is currently running on a windows server (even though it will eventually be deployed on unix) the problem is as follows : xdoclet creates the following jboss-service.xml : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE server> <!-- automatically generated by xdoclet. do not edit --> <server> <mbean code="cirrus.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateTest"> <depends>jboss.jca:service=RARDeployer</depends> <attribute name="MapResources">com\yahoo\app\ymmg\hibernate\UserProfile.hbm.xml</attrib ute> <attribute name="JndiName">java:/hibernate/test</attribute> <attribute name="Datasource">java:/testdatasource</attribute> <attribute name="Dialect">cirrus.hibernate.sql.MySQLDialect</attribute> <attribute name="UserName">root</attribute> <attribute name="Password">password</attribute> <attribute name="UseOuterJoin">false</attribute> <attribute name="ShowSql">true</attribute> </mbean> </server> note that the MapResources have back slashes in the path. when i deploy my ear file and try to use it i get an error saying the .hbm.xml file can't be found. in postings on the hibernate forum i've seen a recommendation to set prefixWithPackageStructure="false" and this i've done but it doesn't fix the problem. if i manually change the back slashes to forward slashes before i deploy it works fine but obviously this is a bit of a hassle. below is the hibernate target i'm using in ant : <hibernatedoclet destdir="${gen-src.dir}" mergedir="${src.dir}" excludedtags="@version,@author,@todo,@see" addedtags="@xdoclet-generated at ${TODAY},${copy.right},@author XDoclet,@version ${version}" verbose="false"> <fileset dir="${src.dir}"> <include name="**/*.java"/> </fileset> <hibernate/> <jbossservice destdir="${meta-inf.dir}" jndiname="java:/hibernate/test" servicename="HibernateTest" dialect="cirrus.hibernate.sql.MySQLDialect" datasource="java:/${database.name}" username="${database.username}" password="${database.password}" showSql="true" prefixWithPackageStructure="false" /> </hibernatedoclet> any ideas, solutions are greatly appreciated. cheers, colum. --------------------------------------------------------------------- JIRA INFORMATION: 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/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
