[ http://jira.andromda.org/browse/MAVEN-41?page=history ]
Chad Brandon moved EJB-22 to MAVEN-41: -------------------------------------- Project: Maven Plugins (was: EJB Cartridge) Key: MAVEN-41 (was: EJB-22) Component: APP > Generation error if project directory has space in its name > ----------------------------------------------------------- > > Key: MAVEN-41 > URL: http://jira.andromda.org/browse/MAVEN-41 > Project: Maven Plugins > Type: Improvement > Components: APP > Environment: Windows, 3.1-RC1 > Reporter: Naresh Bhatia > Assignee: Chad Brandon > Priority: Minor > > When generating a project whose directory name has a space in it we get an > error. This happens when AndroMDA is trying to generate create-schema.sql. > Here are the error messages: > ejb:ejb: > [echo] Building ejb highenergy-core-1.0-Demo > [jar] Building jar: D:\highenergy > andromda\core\target\highenergy-core-1.0-Demo.jar > INFO [PostGoalTag] Running post goal: ejb:ejb > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Environment <clinit> > [java] INFO: Hibernate 3.0.5 > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Environment <clinit> > [java] INFO: loaded properties from resource hibernate.properties: > {hibernate.cglib.use_reflection_optimizer=true, > hibernate.dialect=org.hibernate.dialect.HSQLDialect, > hibernate.connection.datasource=java:/DefaultDS} > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Environment <clinit> > [java] INFO: using CGLIB reflection optimizer > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Environment <clinit> > [java] INFO: using JDK 1.4 java.sql.Timestamp handling > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Configuration addFile > [java] INFO: Mapping file: D:\highenergy > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Configuration addFile > [java] SEVERE: Could not configure datastore from file: D:\highenergy > [java] java.net.MalformedURLException: D:\highenergy (Access is denied) > [java] at org.dom4j.io.SAXReader.read(SAXReader.java:221) > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:226) > [java] at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:364) > [java] Jul 18, 2005 10:52:33 AM org.hibernate.tool.hbm2ddl.SchemaExport main > [java] SEVERE: Error creating schema > [java] org.hibernate.MappingException: Could not configure datastore from > file: D:\highenergy > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:233) > [java] at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:364) > [java] Caused by: java.net.MalformedURLException: D:\highenergy (Access is > denied) > [java] at org.dom4j.io.SAXReader.read(SAXReader.java:221) > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:226) > [java] ... 1 more > [java] org.hibernate.MappingException: Could not configure datastore from > file: D:\highenergy > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:233) > [java] at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:364) > [java] Caused by: java.net.MalformedURLException: D:\highenergy (Access is > denied) > [java] at org.dom4j.io.SAXReader.read(SAXReader.java:221) > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:226) > [java] ... 1 more > [replaceregexp] [ERROR] The following file is missing: 'D:\highenergy > andromda\core\target\schema-create.sql' > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Environment <clinit> > [java] INFO: Hibernate 3.0.5 > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Environment <clinit> > [java] INFO: loaded properties from resource hibernate.properties: > {hibernate.cglib.use_reflection_optimizer=true, > hibernate.dialect=org.hibernate.dialect.HSQLDialect, > hibernate.connection.datasource=java:/DefaultDS} > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Environment <clinit> > [java] INFO: using CGLIB reflection optimizer > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Environment <clinit> > [java] INFO: using JDK 1.4 java.sql.Timestamp handling > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Configuration addFile > [java] INFO: Mapping file: D:\highenergy > [java] Jul 18, 2005 10:52:33 AM org.hibernate.cfg.Configuration addFile > [java] SEVERE: Could not configure datastore from file: D:\highenergy > [java] java.net.MalformedURLException: D:\highenergy (Access is denied) > [java] at org.dom4j.io.SAXReader.read(SAXReader.java:221) > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:226) > [java] at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:364) > [java] Jul 18, 2005 10:52:33 AM org.hibernate.tool.hbm2ddl.SchemaExport main > [java] SEVERE: Error creating schema > [java] org.hibernate.MappingException: Could not configure datastore from > file: D:\highenergy > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:233) > [java] at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:364) > [java] Caused by: java.net.MalformedURLException: D:\highenergy (Access is > denied) > [java] at org.dom4j.io.SAXReader.read(SAXReader.java:221) > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:226) > [java] ... 1 more > [java] org.hibernate.MappingException: Could not configure datastore from > file: D:\highenergy > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:233) > [java] at org.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:364) > [java] Caused by: java.net.MalformedURLException: D:\highenergy (Access is > denied) > [java] at org.dom4j.io.SAXReader.read(SAXReader.java:221) > [java] at org.hibernate.cfg.Configuration.addFile(Configuration.java:226) > [java] ... 1 more > A workaround to prevent this issue would be to trimm the spaces in the > project id when creating an app. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Andromda-devel mailing list Andromda-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-devel