[ http://jira.andromda.org/browse/MAVEN-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on MAVEN-41 stopped by Plushnikov Michail. > Generation error if project directory has space in its name > ----------------------------------------------------------- > > Key: MAVEN-41 > URL: http://jira.andromda.org/browse/MAVEN-41 > Project: Maven Plugins > Issue Type: Improvement > Components: APP > Environment: Windows, 3.1-RC1 > Reporter: Naresh Bhatia > Assignee: Plushnikov Michail > 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm