DimaMay
Oct 22nd, 2009, 11:48 PM
I am having trouble getting started developing an addon on windows with cygwin. I checked out the trunk and ran the following maven command:
mvn clean eclipse:clean eclipse:eclipse compile
I see log messages that state that the roo_classpath file was created (see below) but the file does not exist in the target directory. It seems like it got confused the second time as it added the "d:" drive to the begging of URL.
[echo] Cached ROO classpath file will be written to '/cygdrive/d/apps/springsource/workspace/spring-roo/bootstrap/target/roo_classpath.txt'
[echo] Cached ROO classpath file will be be created in 'd:\cygdrive\d\apps\springsource\workspace\spring-roo\bootstrap\target'
The file was in fact created but ended up in a wrong place (d:\cygdrive\d\apps\springsource\workspace\spring-roo\bootstrap\target). I took the file and manually copied it into the bootstrap/target directory. Then I attempted to start roo-dev and got a java.lang.NullPointerException exceptions (see below).
$ ./roo-dev.bat
____ ____ ____
/ __ \/ __ \/ __ \
/ /_/ / / / / / / /
/ _, _/ /_/ / /_/ /
/_/ |_|\____/\____/ 1.0.0.RC3 [rev 347]
Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
java.lang.NullPointerException
at org.springframework.roo.addon.maven.MavenProjectMe tadataProvider.get(MavenProjectMetadataProvider.ja va:100)
at org.springframework.roo.metadata.internal.DefaultM etadataService.get(DefaultMetadataService.java:106 )
at org.springframework.roo.metadata.internal.DefaultM etadataService.get(DefaultMetadataService.java:124 )
at org.springframework.roo.process.manager.internal.D efaultFileManager.notify(DefaultFileManager.java:1 41)
at org.springframework.roo.metadata.internal.DefaultM etadataDependencyRegistry.notifyDownstream(Default MetadataDependencyRegistry.java:269)
at org.springframework.roo.addon.maven.MavenProjectMe tadataProvider.onFileEvent(MavenProjectMetadataPro vider.java:299)
at org.springframework.roo.file.monitor.polling.Polli ngFileMonitorService.publish(PollingFileMonitorSer vice.java:324)
at org.springframework.roo.file.monitor.polling.Polli ngFileMonitorService.scanAll(PollingFileMonitorSer vice.java:306)
at org.springframework.roo.process.manager.internal.M onitoringRequestCommand.callback(MonitoringRequest Command.java:36)
at org.springframework.roo.process.manager.internal.M onitoringRequestCommand.callback(MonitoringRequest Command.java:15)
at org.springframework.roo.process.manager.internal.D efaultProcessManager.doTransactionally(DefaultProc essManager.java:131)
at org.springframework.roo.process.manager.internal.D efaultProcessManager.completeStartup(DefaultProces sManager.java:53)
at org.springframework.roo.bootstrap.ProcessManagerPo stConstructBeanPostProcessor.onApplicationEvent(Pr ocessManagerPostConstructBeanPostProcessor.java:32 )
at org.springframework.roo.bootstrap.ProcessManagerPo stConstructBeanPostProcessor.onApplicationEvent(Pr ocessManagerPostConstructBeanPostProcessor.java:20 )
at org.springframework.context.event.SimpleApplicatio nEventMulticaster.multicastEvent(SimpleApplication EventMulticaster.java:98)
at org.springframework.context.support.AbstractApplic ationContext.publishEvent(AbstractApplicationConte xt.java:280)
at org.springframework.context.support.AbstractApplic ationContext.finishRefresh(AbstractApplicationCont ext.java:739)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:390)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at org.springframework.roo.bootstrap.Bootstrap.<init>(Bootstrap.java:68)
at org.springframework.roo.bootstrap.Bootstrap.main(B ootstrap.java:52)
The first entry in roo_classpath.txt looks something like:
d:\apps\springsource\workspace\spring-roo\bootstrap\target\classes
So I am guessing it may be confused and looking for \cygwin\d\apps\springsource\workspace\spring-roo\bootstrap\target\classes. So then I tried starting roo-dev.bat in windows command line and received the same error
Am I missing a step? Do you think working with cygwin in windows is hopeless? Did you just use dos command line in windows in your tests? I tried running mvn compile in dos command line and got "'svn' is not recognized as an internal or external command," error, so I could try next to install svn in dos cmd.
Thank you!!!
mvn clean eclipse:clean eclipse:eclipse compile
I see log messages that state that the roo_classpath file was created (see below) but the file does not exist in the target directory. It seems like it got confused the second time as it added the "d:" drive to the begging of URL.
[echo] Cached ROO classpath file will be written to '/cygdrive/d/apps/springsource/workspace/spring-roo/bootstrap/target/roo_classpath.txt'
[echo] Cached ROO classpath file will be be created in 'd:\cygdrive\d\apps\springsource\workspace\spring-roo\bootstrap\target'
The file was in fact created but ended up in a wrong place (d:\cygdrive\d\apps\springsource\workspace\spring-roo\bootstrap\target). I took the file and manually copied it into the bootstrap/target directory. Then I attempted to start roo-dev and got a java.lang.NullPointerException exceptions (see below).
$ ./roo-dev.bat
____ ____ ____
/ __ \/ __ \/ __ \
/ /_/ / / / / / / /
/ _, _/ /_/ / /_/ /
/_/ |_|\____/\____/ 1.0.0.RC3 [rev 347]
Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
java.lang.NullPointerException
at org.springframework.roo.addon.maven.MavenProjectMe tadataProvider.get(MavenProjectMetadataProvider.ja va:100)
at org.springframework.roo.metadata.internal.DefaultM etadataService.get(DefaultMetadataService.java:106 )
at org.springframework.roo.metadata.internal.DefaultM etadataService.get(DefaultMetadataService.java:124 )
at org.springframework.roo.process.manager.internal.D efaultFileManager.notify(DefaultFileManager.java:1 41)
at org.springframework.roo.metadata.internal.DefaultM etadataDependencyRegistry.notifyDownstream(Default MetadataDependencyRegistry.java:269)
at org.springframework.roo.addon.maven.MavenProjectMe tadataProvider.onFileEvent(MavenProjectMetadataPro vider.java:299)
at org.springframework.roo.file.monitor.polling.Polli ngFileMonitorService.publish(PollingFileMonitorSer vice.java:324)
at org.springframework.roo.file.monitor.polling.Polli ngFileMonitorService.scanAll(PollingFileMonitorSer vice.java:306)
at org.springframework.roo.process.manager.internal.M onitoringRequestCommand.callback(MonitoringRequest Command.java:36)
at org.springframework.roo.process.manager.internal.M onitoringRequestCommand.callback(MonitoringRequest Command.java:15)
at org.springframework.roo.process.manager.internal.D efaultProcessManager.doTransactionally(DefaultProc essManager.java:131)
at org.springframework.roo.process.manager.internal.D efaultProcessManager.completeStartup(DefaultProces sManager.java:53)
at org.springframework.roo.bootstrap.ProcessManagerPo stConstructBeanPostProcessor.onApplicationEvent(Pr ocessManagerPostConstructBeanPostProcessor.java:32 )
at org.springframework.roo.bootstrap.ProcessManagerPo stConstructBeanPostProcessor.onApplicationEvent(Pr ocessManagerPostConstructBeanPostProcessor.java:20 )
at org.springframework.context.event.SimpleApplicatio nEventMulticaster.multicastEvent(SimpleApplication EventMulticaster.java:98)
at org.springframework.context.support.AbstractApplic ationContext.publishEvent(AbstractApplicationConte xt.java:280)
at org.springframework.context.support.AbstractApplic ationContext.finishRefresh(AbstractApplicationCont ext.java:739)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:390)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at org.springframework.roo.bootstrap.Bootstrap.<init>(Bootstrap.java:68)
at org.springframework.roo.bootstrap.Bootstrap.main(B ootstrap.java:52)
The first entry in roo_classpath.txt looks something like:
d:\apps\springsource\workspace\spring-roo\bootstrap\target\classes
So I am guessing it may be confused and looking for \cygwin\d\apps\springsource\workspace\spring-roo\bootstrap\target\classes. So then I tried starting roo-dev.bat in windows command line and received the same error
Am I missing a step? Do you think working with cygwin in windows is hopeless? Did you just use dos command line in windows in your tests? I tried running mvn compile in dos command line and got "'svn' is not recognized as an internal or external command," error, so I could try next to install svn in dos cmd.
Thank you!!!