Problema instalação Grails 2.4.4
22/12/2014 12:50
0
Boa tarde,

Estou tentando configurar o Grails 2.4.4 na máquina do trabalho utilizando o jdk 1.7

Quand oe uvou no prompt de comando e digito o comando grails, recebo essa mensagem:
| Configuring classpath
| Error java.lang.reflect.InvocationTargetException
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:606)
| Error at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:236)
| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:264)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:606)
| Error at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:236)
| Error at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:264)
| Error Caused by: java.lang.IllegalAccessError: class sun.reflect.GeneratedMethodAccessor10 cannot access its superclass sun.reflect.MethodAccessorImpl
| Error at sun.misc.Unsafe.defineClass(Native Method)
| Error at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
| Error at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
| Error at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396)
| Error at java.security.AccessController.doPrivileged(Native Method)
| Error at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395)
| Error at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:77)
| Error at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:46)
| Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error at java.lang.reflect.Method.invoke(Method.java:606)
| Error at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
| Error at org.codehaus.groovy.grails.cli.support.ClasspathConfigurer.addUrlsToRootLoader(ClasspathConfigurer.java:272)
| Error at org.codehaus.groovy.grails.cli.support.ClasspathConfigurer.configuredClassLoader(ClasspathConfigurer.java:71)
| Error at org.codehaus.groovy.grails.cli.GrailsScriptRunner.initializeState(GrailsScriptRunner.java:631)
| Error at org.codehaus.groovy.grails.cli.GrailsScriptRunner.initializeState(GrailsScriptRunner.java:614)
| Error at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:214)
| Error ... 14 more


Se eu digitar grails --version
Aparece normal:


Tags: classpath


0
Mesmo se eu mudar a versão acontece esse erro, mudei para a versão do grails para a 2.2.5

22/12/2014 14:17


1
Dentro da pasta do usuário, há uma pasta com o nome '.grails'. Apaga ela e faz o processo novamente.

Minhas experiências com mais de 1 grails no windows não foram boas.
22/12/2014 16:26


0
Carlos, eu estou só com 1 grails, enfim...
O erro agora é outro:
:: problems summary ::
:::: WARNINGS
module not found: commons-fileupload#commons-fileupload;1.3.1

==== grailsPlugins: tried

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\Windows\System32/lib/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\grails/lib/commons-fileupload/commons-fileupload/ivy-1.3.1.xml

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\grails/lib/commons-fileupload/commons-fileupload/jars/commons-fileupload-1.3.1.jar

C:\grails/lib/commons-fileupload/commons-fileupload/bundles/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\grails\src\libs/commons-fileupload-1.3.1.xml

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\grails\src\libs/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\grails\dist/commons-fileupload-1.3.1.xml

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\grails\dist/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\Users\equipe\.grails\2.2.5\cached-installed-plugins/commons-fileupload-1.3.1.xml

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\Users\equipe\.grails\2.2.5\cached-installed-plugins/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\grails/plugins/commons-fileupload-1.3.1.pom

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\grails/plugins/commons-fileupload-1.3.1.jar

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: commons-fileupload#commons-fileupload;1.3.1: not found

::::::::::::::::::::::::::::::::::::::::::::::


:: problems summary ::
:::: WARNINGS
module not found: commons-fileupload#commons-fileupload;1.3.1

==== grailsPlugins: tried

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\Windows\System32/lib/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\grails/lib/commons-fileupload/commons-fileupload/ivy-1.3.1.xml

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\grails/lib/commons-fileupload/commons-fileupload/jars/commons-fileupload-1.3.1.jar

C:\grails/lib/commons-fileupload/commons-fileupload/bundles/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\grails\src\libs/commons-fileupload-1.3.1.xml

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\grails\src\libs/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\grails\dist/commons-fileupload-1.3.1.xml

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\grails\dist/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\Users\equipe\.grails\2.2.5\cached-installed-plugins/commons-fileupload-1.3.1.xml

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\Users\equipe\.grails\2.2.5\cached-installed-plugins/commons-fileupload-1.3.1.jar

==== grailsHome: tried

C:\grails/plugins/commons-fileupload-1.3.1.pom

-- artifact commons-fileupload#commons-fileupload;1.3.1!commons-fileupload.jar:

C:\grails/plugins/commons-fileupload-1.3.1.jar

::::::::::::::::::::::::::::::::::::::::::::::

:: UNRESOLVED DEPENDENCIES ::

::::::::::::::::::::::::::::::::::::::::::::::

:: commons-fileupload#commons-fileupload;1.3.1: not found

::::::::::::::::::::::::::::::::::::::::::::::


| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- commons-fileupload:commons-fileupload:1.3.1

C:\Windows\system32>
23/12/2014 09:39


0
Luis,
Essa mensagem aparece quando?
Já tentou dar um refresh dependencies?
05/01/2015 10:16


0
Desculpe a demora,
Essa mensagem da quando eu digito grails do prompt de comando.
22/01/2015 10:46


0
Só para esclarecer, era o proxy da empresa que estava bloqueando.
11/03/2015 09:04



Ainda não faz parte da comunidade???

Para se registrar, clique aqui.


Aprenda Groovy e Grails com a Formação itexto!

Newsletter Semana Groovy

Assinar

Envie seu link!


Livro de Grails


/dev/All

Os melhores blogs de TI (e em português) em um único lugar!

 
Creative Commons
RSS Grails Brasil é mantido por itexto Consultoria.
Em caso de problemas contacte Henrique Lobo Weissmann (Kico) por e-mail: kico@itexto.com.br
Todo o conteúdo presente neste site adota o Creative Commons como licença padrão.
Ver: 4.14.0
itexto