Grails. spring security core. Install problem - plugins

I try install Spring security core plugin in Grails.
I run this command:
grails install-plugin spring-security-core
and in result i see this error message:
:: problems summary ::
:::: WARNINGS
module not found: org.grails.plugins#spring-security-core;latest.integration
==== grailsPlugins: tried
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
C:\STS\LoginProject/lib/spring-security-core-[revision].zip
C:\Documents and Settings\fenuk\.grails\1.3.5\projects\LoginProject\plugins\hibernate-1.3.5/lib/spring-security-core-[revision].zip
C:\Documents and Settings\fenuk\.grails\1.3.5\projects\LoginProject\plugins\tomcat-1.3.5/lib/spring-security-core-[revision].zip
==== grailsHome: tried
C:\grails-1.3.5\lib/spring-security-core-[revision].xml
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
C:\grails-1.3.5\lib/spring-security-core-[revision].zip
==== grailsHome: tried
C:\grails-1.3.5\dist/spring-security-core-[revision].xml
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
C:\grails-1.3.5\dist/spring-security-core-[revision].zip
==== grailsHome: tried
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
C:\grails-1.3.5/plugins/grails-spring-security-core-[revision].zip
==== grailsCentral: tried
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
http://svn.codehaus.org/grails-plugins/grails-spring-security-core/tags/LATEST_RELEASE/grails-spring-security-core-[revision].zip
==== grailsCore: tried
-- artifact org.grails.plugins#spring-security-core;latest.integration!spring-security-core.zip:
http://svn.codehaus.org/grails/trunk/grails-plugins/grails-spring-security-core/tags/LATEST_RELEASE/grails-spring-security-core-[revision].zip
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails.plugins#spring-security-core;latest.integration: not found
::::::::::::::::::::::::::::::::::::::::::::::
Error resolving plugin [name:spring-security-core, group:org.grails.plugins, version:latest.integration].
Plugin not found for name [spring-security-core] and version [not specified]
what this error mean? maybe, i do something wrong?

Make sure that you have at least the three core repositories in BuildConfig.groovy:
repositories {
grailsPlugins()
grailsHome()
grailsCentral()
}
As a temporary workaround, you can install it directly by downloading the zip file. Go to http://grails.org/plugin/spring-security-core and click the big Download button, then install from the zip by running
grails install-plugin path/to/grails-spring-security-core-1.0.1.zip
You can also install it without downloading using
grails install-plugin http://plugins.grails.org/grails-spring-security-core/tags/RELEASE_1_0_1/grails-spring-security-core-1.0.1.zip
But I suspect you have a network issue, so the plugin install will fail since it uses Ivy to resolve the required Spring Security jars, and that download may also fail.

Related

unable to run sbt in my windows 10 -64

am getting below error when i run sbt in my command prompt
The filename, directory name, or volume label syntax is incorrect.
FINDSTR: Cannot open C:\Users\vinoli\AppData\Local\Temp;C:\Program Files (x86)\sbt\bin\out.txt
FINDSTR: Cannot open C:\Users\vinoli\AppData\Local\Temp;C:\Program Files (x86)\sbt\bin\out.txt
FINDSTR: Cannot open C:\Users\vinoli\AppData\Local\Temp;C:\Program Files (x86)\sbt\bin\out.txt
FINDSTR: Cannot open C:\Users\vinoli\AppData\Local\Temp;C:\Program Files (x86)\sbt\bin\out.txt
FINDSTR: Cannot open C:\Users\vinoli\AppData\Local\Temp;C:\Program Files (x86)\sbt\bin\out.txt
The java installation you have is not up to date
sbt requires at least version 1.6+, you have
version 0
Please go to http://www.java.com/getjava/ and download
a valid Java Runtime and install before running sbt.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Getting org.scala-sbt sbt 0.13.15 (this may take some time)...
downloading https://repo1.maven.org/maven2/org/scala-sbt/launcher-interface/1.0.1/launcher-interface-1.0.1.jar ...
downloading https://repo1.maven.org/maven2/org/scala-sbt/template-resolver/0.1/template-resolver-0.1.jar ...
:: problems summary ::
:::: WARNINGS
[FAILED ] org.scala-sbt#launcher-interface;1.0.1!launcher-interface.jar: The filename, directory name, or volume label syntax is incorrect (3358ms)
[FAILED ] org.scala-sbt#launcher-interface;1.0.1!launcher-interface.jar: (0ms)
==== local: tried
C:\Users\vinoli\.ivy2\local\org.scala-sbt\launcher-interface\1.0.1\jars\launcher-interface.jar
==== local-preloaded-ivy: tried
file:/C:/Users/vinoli/.sbt/preloaded/org.scala-sbt/launcher-interface/1.0.1/jars/launcher-interface.jar
==== local-preloaded: tried
file:/C:/Users/vinoli/.sbt/preloaded/org/scala-sbt/launcher-interface/1.0.1/launcher-interface-1.0.1.jar
==== Maven Central: tried
https://repo1.maven.org/maven2/org/scala-sbt/launcher-interface/1.0.1/launcher-interface-1.0.1.jar
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/launcher-interface/1.0.1/jars/launcher-interface.jar
==== sbt-ivy-snapshots: tried
https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/launcher-interface/1.0.1/jars/launcher-interface.jar
[FAILED ] org.scala-sbt#template-resolver;0.1!template-resolver.jar: The filename, directory name, or volume label syntax is incorrect (2316ms)
[FAILED ] org.scala-sbt#template-resolver;0.1!template-resolver.jar: (0ms)
==== local: tried
C:\Users\vinoli\.ivy2\local\org.scala-sbt\template-resolver\0.1\jars\template-resolver.jar
==== local-preloaded-ivy: tried
file:/C:/Users/vinoli/.sbt/preloaded/org.scala-sbt/template-resolver/0.1/jars/template-resolver.jar
==== local-preloaded: tried
file:/C:/Users/vinoli/.sbt/preloaded/org/scala-sbt/template-resolver/0.1/template-resolver-0.1.jar
==== Maven Central: tried
https://repo1.maven.org/maven2/org/scala-sbt/template-resolver/0.1/template-resolver-0.1.jar
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/template-resolver/0.1/jars/template-resolver.jar
==== sbt-ivy-snapshots: tried
https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/template-resolver/0.1/jars/template-resolver.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: FAILED DOWNLOADS ::
:: ^ see resolution messages for details ^ ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#launcher-interface;1.0.1!launcher-interface.jar
:: org.scala-sbt#template-resolver;0.1!template-resolver.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
download failed: org.scala-sbt#launcher-interface;1.0.1!launcher-interface.jar
download failed: org.scala-sbt#template-resolver;0.1!template-resolver.jar
Error during sbt execution: Error retrieving required libraries
(see C:\Users\vinoli\.sbt\boot\update.log for complete log)
Error: Could not retrieve sbt 0.13.15
when i try to download java from http://java.com/getjava - its not even downloading .
can some one point out , what am i doing wrong here?
i use windows 10 -64 (fresh laptop)
installed jdk 1.8
The message you get is misleading. I also had the same issue, although sbt worked fine till yesterday, I encountered the same message today.
After some search I came up to the answer below which indicates that something is wrong with your PATH env. variable.
Running Jmeter gives 'findstr' is not recognized as an internal or external command
Right Click on My Computer, then click Properties, followed by Advanced System Settings > Environment Variables Look for the Path System Variable Add this path to the end, after a semicolon: C:\Windows\System32
Ok ... I found the issue...(my mistake actually)
I removed the sbt installed path (c:/programfiles/sbt/bin) which i added in the TMP environment variable. After removing (c:/programfiles/sbt/bin) from TMP, it worked.
thanks everyone for your suggestions :)

What Repository do I need to add to my Artifactory so I can get Typesafe's SBT plugins?

I'm trying to build a play-framework application behind a heavily firewalled corporate network. I use an Artifactory to supply all of the project dependencies - there's no other way of connecting to the outside world. I've actually just git-cloned the starter project from the Play documentation.
When I sbt build the first error I see is a failure to download a plugin from the private repo:
[warn] module not found: com.typesafe.play#sbt-plugin;2.5.10
[warn] ==== local: tried
[warn] C:\Users\salimfadhley\.ivy2\local\com.typesafe.play\sbt-plugin\scala_2.10\sbt_0.13\2.5.10\ivys\ivy.xml
[warn] ==== my-maven-proxy-releases: tried
[warn] http://private_code_repo.bigco.com:8081/artifactory/virtual-sbt/com/typesafe/play/sbt-plugin_2.10_0.13/2.5.10/sbt-plugin-2.5.10.pom
[warn] ==== my-ivy-proxy-releases: tried
[warn] http://private_code_repo.bigco.com:8081/artifactory/virtual-sbt/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.5.10/ivys/ivy.xml
It looks like there's a missing repository in my Artifactory configuration. That's easily rectified if only I knew which repository I needed to add.
Since this is a Typesafe.org project the logical place to look was in one of TypeSafe's repositories: It looks like it wants to get a the sbt-plugin version 2.5.10, however I can see the highest numbered version of the plugin that has been published is actually 2.4.x
https://dl.bintray.com/typesafe/ivy-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.4.0-T2/
In other words, how on earth would this get resolved, even if I could connect to the Internet? The thing that it's trying to find does not actually exist! How can I rectify this to make the project actually buildable?
The plugin is available from the following Ivy repository: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/
More generally, the page about proxy repositories in the SBT docs has some usefull information (including the above URL), although I don't think all of it is very clear.

Configuring Intellij IDEA 15.0.4 and SBT 0.13.7 with local Artifactory server

I installed Intellij IDEA 15.0.4 + Scala plugin (2.2.0) on a computer with an internet connection, created a new SBT project and all the external dependencies were added to the project:
i.stack.imgur.com/v560H.png
However, when I try to do the same thing in our issolated network (no internet) against our Artifactory server, I got the following message:
Error:Error while importing SBT project:...
http://zzz:8081/artifactory/scala_local/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.fusesource.jansi#jansi;1.11: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS unresolved
dependency: org.fusesource.jansi#jansi;1.11: not found Error during
sbt execution: Error retrieving required libraries (see
C:\Users....sbt\boot\update.log for complete log) Error: Could not
retrieve jansi 1.11See complete log in C:\Users....IdeaIC15\system\log\sbt.last.log
So I figured I need to get jansi 1.11 up to Artifactory (to /org/fusesource/jansi/jansi/1.11/).
After uploading jansi to Artifactory, I refreshed SBT and started getting the following message:
Error:Error while importing SBT project:Error during sbt execution: No
Scala version specified or detected
So I'm guessing it has something to do with the fact that Scala is not available in Artifactory? If that's the reason, it seems unreasonable to upload all the jars to their respective paths manually, and I couldn't "guess" the path in my many tries... So I'm pretty sure I'm doing something wrong here...
This is my build.sbt:
name := "untitled"
version := "1.0"
scalaVersion := "2.10.4"
This is my .sbt\repositories:
[repositories] local my-ivy-proxy-releases: http://zzz:8081/artifactory/scala_local/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] my-maven-proxy-releases: http://zzz:8081/artifactory/scala_local/
(sorry for the layout, won't let me post more than 2 links...)
I checked some similar issues here, nothing seemed to help...
I'd appreciate your help on what I should check / read on...
Is there a way to automatically deploy all the dependencies to the correct path in Artifactory?
***EDIT:
Ok, so I removed .sbt\repositories file, invalidated the IntelliJ cache and restarted, created a new SBT project...
This didn't seem to help, also
now it seems that it doesn't recognize the build.sbt syntax anymore...
Even when I add the resolver, it completely ignores it...
I manually deleted the directories in /.sbt/boot/other/ (had jansi and scala-sbt there), and now it can't resolve jansi again, only this time it tries to connect to repo1.maven.org... :
Error:Error while importing SBT project:<br/>...<br/><pre> https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.fusesource.jansi#jansi;1.11: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.fusesource.jansi#jansi;1.11: not found
Error during sbt execution: Error retrieving required libraries
(see C:\Users\...\.sbt\boot\update.log for complete log)
Error: Could not retrieve jansi 1.11
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0</pre><br/>See complete log in C:\Users\...\.IdeaIC15\system\log\sbt.last.log
Thanks,
PA
We encounter a similar issue.
What finally solved the problem was removing .sbt\repository file.
Then all dependency could be resolved with the default repositories.
It is the problem of IDE you are using specially the scala plugin in it. You can get ride of this just go to the folder where the build.sbt is created. Delete the "project" folder and open cmd, run "sbt" command on the folder, a new project folder will be created. Now you can open that in IDE.
It may be that you may find some problem very first in ide, if you build the project once , all the problems will go away.

Install SBT on Linux

I am trying to install SBT for scala developing. I follow the guid in Installing sbt manually
The errors show as follows
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.13.7
==== local: tried
/home/nan/.ivy2/local/org.scala-sbt/sbt/0.13.7/ivys/ivy.xml
-- artifact org.scala-sbt#sbt;0.13.7!sbt.jar:
/home/nan/.ivy2/local/org.scala-sbt/sbt/0.13.7/jars/sbt.jar
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.7/ivys/ivy.xml
==== Maven Central: tried
https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.7/sbt-0.13.7.pom
-- artifact org.scala-sbt#sbt;0.13.7!sbt.jar:
https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.7/sbt-0.13.7.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.13.7: not found
::::::::::::::::::::::::::::::::::::::::::::
:::::: ERRORS
Server access Error: Connection refused url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.7/ivys/ivy.xml
Server access Error: Connection refused url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.7/sbt-0.13.7.pom
Server access Error: Connection refused url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.7/sbt-0.13.7.jar
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.13.7: not found
Error during sbt execution: Error retrieving required libraries (see /home/nan/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.7
The link "https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.7/sbt-0.13.7.jar" cannot be accessed even in the browser. Are there any solutions?
As the commenter said, it looks like you are just having a network connection problem.
However, if you are not using a package manager, I recommend to use the "sbt-extras" script from here. I.e.
curl -s https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt \
> ~/bin/sbt && chmod 0755 ~/bin/sbt

Grails plugins not downloading from Eclipse - Luna

I am just setting up my Grails/Groovy STS suite in Eclipse. I created a new Grails Project, and when I right click on the project and select Grails -> Refresh Dependencies, it is failing to download dependencies (error log below) and hence doesn't build my project.
I think it could be a proxy issue, but I never had a proxy setup in my Eclipse and I always download Spring suites/and all other plugins from update sites or Market place just fine, so can't be a proxy issue.
In addition, I did not check all the urls, but some urls printed to the console are in fact throwing 404 error! It is the latest installation of STS, and how come it is looking at the wrong locations? Do I need to do anything?
Any thoughts?
(first few lines of error messages from console)
Starting process on MYPC/XXX.XXX.XXX.XX
Loading Grails 2.4.3
|Configuring classpath
:: problems summary ::
:::: WARNINGS
Host repo.grails.org not found. url=http://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom
Host repo.grails.org not found. url=http://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip
Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom
Host repo1.maven.org not found. url=http://repo1.maven.org/maven2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip
Host snapshots.repository.codehaus.org not found. url=http://snapshots.repository.codehaus.org/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom
Host snapshots.repository.codehaus.org not found. url=http://snapshots.repository.codehaus.org/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip
Host repository.codehaus.org not found. url=http://repository.codehaus.org/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom
Host repository.codehaus.org not found. url=http://repository.codehaus.org/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip
Host download.java.net not found. url=http://download.java.net/maven/2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom
Host download.java.net not found. url=http://download.java.net/maven/2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip
Host repository.jboss.com not found. url=http://repository.jboss.com/maven2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom
Host repository.jboss.com not found. url=http://repository.jboss.com/maven2/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.zip
module not found: org.grails.plugins#tomcat;2.4.3
==== grailsPlugins: tried
-- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip:
Y:\workspaces_trunk\GMon\lib\tomcat-2.4.3.zip
==== grailsHome: tried
C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\lib\org.grails.plugins\tomcat\ivy-2.4.3.xml
-- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip:
C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\lib\org.grails.plugins\tomcat\jars\tomcat-2.4.3.zip
C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\lib\org.grails.plugins\tomcat\bundles\tomcat-2.4.3.zip
==== grailsHome: tried
C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\dist\tomcat-2.4.3.pom
-- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip:
C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\dist\tomcat-2.4.3.zip
==== grailsHome: tried
C:\Users\rp48085\.grails\2.4.3\cached-installed-plugins\tomcat-2.4.3.xml
-- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip:
C:\Users\rp48085\.grails\2.4.3\cached-installed-plugins\tomcat-2.4.3.zip
==== grailsHome: tried
C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\plugins\tomcat-2.4.3.pom
-- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip:
C:\Programs\eclipse-java-luna-SR1-win32-x86_64\grails-2.4.3\plugins\tomcat-2.4.3.zip
==== grailsCentral: tried
http://repo.grails.org/grails/plugins/org/grails/plugins/tomcat/2.4.3/tomcat-2.4.3.pom
-- artifact org.grails.plugins#tomcat;2.4.3!tomcat.zip:
I resolved it by running "grails add-proxy" and "grails set-proxy" commands one after the other. I have tried setting the proxy settings in Eclipse->Window->Preferences, as thats how I have always done to get plugins/downloads going from Eclipse. But grails apparently doesn't use these settings, so it needs to be given proxy settings using the above commands.