[Play 2.4.2] Cannot create new project using activator - Requirement failed: source file is a directory

211 views
Skip to first unread message

Duc Thang Truong

unread,
Jul 5, 2015, 1:35:43 PM7/5/15
to play-fr...@googlegroups.com
Hi,

I hope some one can help me, I have been struggling to create a new simple project using play 2.4.2 for a few days.

Activator keeps reporting the following error:

Getting Scala 2.11.6 (for activator-launcher)...                                                    
:: retrieving :: org.scala-sbt#boot-scala                                                           
        confs: [default]                                                                            
        6 artifacts copied, 0 already retrieved (24930kB/78ms)                                      
                                                                                                    
Fetching the latest list of templates...                                                            
                                                                                                    
Browse the list of templates: http://typesafe.com/activator/templates                               
Choose from these featured templates or enter a template name:                                      
  1) minimal-akka-java-seed                                                                         
  2) minimal-akka-scala-seed                                                                        
  3) minimal-java                                                                                   
  4) minimal-scala                                                                                  
  5) play-java                                                                                      
  6) play-scala                                                                                     
(hit tab to see a list of all templates)                                                            
> 6                                                                                                 
OK, application "ditest" is being created using the "play-scala" template.                          
                                                                                                    
[WARN] [07/06/2015 01:22:15.011] [default-akka.actor.default-dispatcher-3] [akka://default/user/temp
late-cache] Unable to download template: a91771f5-1745-4f51-b877-badeea610f64: java.lang.IllegalArgu
mentException: requirement failed: Source file 'C:\Users\PCuser\.activator\1.3.5\templates\a91771f5-
1745-4f51-b877-badeea610f64_a5e1eac2e9aefa9b.tmp' is a directory.                                   
ProcessError(Template a91771f5-1745-4f51-b877-badeea610f64 not found, or unable to be downloaded.,So
me(java.lang.RuntimeException: Template a91771f5-1745-4f51-b877-badeea610f64 not found, or unable to
 be downloaded.))                                                                                   
Failed to clone the template. Make sure you have internet access and please try again. 

I have tried several things:

1. Delete activator, download a fresh copy.
2. Delete .activator folder
3. Delete .sbt folder
4. Check for permission for access the .activator folder
5. Run my cmd.exe as administrator
6. Create the project from "activator ui", same thing happens.

Everything fails, and I couldn't just create a simple project. I am using windows 8.1, java 8

java version "1.8.0_45"                                                                             
Java(TM) SE Runtime Environment (build 1.8.0_45-b15)                                                
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)  

Please help, I really appreciate.

Thank you very much,

Duc Thang Truong

unread,
Jul 7, 2015, 12:50:41 AM7/7/15
to play-fr...@googlegroups.com
Hi

Any one can help please?

James Ward

unread,
Jul 11, 2015, 5:58:36 PM7/11/15
to play-fr...@googlegroups.com
It looks like you have some kind of proxy server or security software that is mucking with / not allowing the template download.  You can run activator with more debug info to hopefully see what the URL that the template is coming from:
activator -Dakka.loglevel=DEBUG new

Hope that helps.

-James
Reply all
Reply to author
Forward
0 new messages