Problemas com o Google App Engine
29/05/2009 00:00
0
Estou tentando configurar minha aplicação com o plugin App Engine, mas ao rodar ele passa a seguinte mensagem:

No Google AppEngine SDK specified. Either set APPENGINE_HOME in your environment or specify google.appengine.sdk in your grails-app/conf/BuildConfig.groovy file

O que faço para resolver isso? Nem o Google acha nada a respeito. <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
Tags: Grails


0
O erro acima foi concertado baixando a versão correta da App engine, coisa que no tutorial do Grails deixa bem claro para que você adivinhe que isso tem que ser feito e configure a variável de ambiente APPENGINE_HOME indicando onde a biblioteca está.
Mas surgiu outro erro quando tento dar o deploy da aplicação surge a Stack Trace:
Error executing script AppEngine&#58; &#58; The following error occurred while executing
this line&#58;
E&#58;\sdk\config\user\ant-macros.xml&#58;94&#58; java.io.IOException&#58; Cannot run program &quot;E
&#58;\jdk1.6.0_12\jre\bin\java.exe&quot;&#58; CreateProcess error=87, ParÔmetro incorreto
gant.TargetExecutionException&#58; &#58; The following error occurred while executing th
is line&#58;
E&#58;\sdk\config\user\ant-macros.xml&#58;94&#58; java.io.IOException&#58; Cannot run program &quot;E
&#58;\jdk1.6.0_12\jre\bin\java.exe&quot;&#58; CreateProcess error=87, ParÔmetro incorreto
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy&#58;331)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy&#58;334)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy&#58;344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy&#58;334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy&#58;495)
at gant.Gant.processTargets(Gant.groovy&#58;480)
Caused by&#58; &#58; The following error occurred while executing this line&#58;
E&#58;\sdk\config\user\ant-macros.xml&#58;94&#58; java.io.IOException&#58; Cannot run program &quot;E
&#58;\jdk1.6.0_12\jre\bin\java.exe&quot;&#58; CreateProcess error=87, ParÔmetro incorreto
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
tHelper.java&#58;541)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
a&#58;394)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a&#58;105)
at org.apache.tools.ant.Task.perform(Task.java&#58;348)
at _Events$_run_closure1.doCall(_Events.groovy&#58;47)
at _GrailsEvents_groovy$_run_closure5.doCall(_GrailsEvents_groovy&#58;59)
at _GrailsEvents_groovy$_run_closure5.call(_GrailsEvents_groovy)
at _GrailsWar_groovy$_run_closure4.doCall(_GrailsWar_groovy&#58;240)
at AppEngine$_run_closure2.doCall(AppEngine&#58;23)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy&#58;324)
... 10 more
Caused by&#58; E&#58;\sdk\config\user\ant-macros.xml&#58;94&#58; java.io.IOException&#58; Cannot run
program &quot;E&#58;\jdk1.6.0_12\jre\bin\java.exe&quot;&#58; CreateProcess error=87, ParÔmetro in
correto
at org.apache.tools.ant.taskdefs.Java.fork(Java.java&#58;774)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java&#58;194)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java&#58;104)
at com.google.appengine.tools.enhancer.EnhancerTask.execute(EnhancerTask
.java&#58;99)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java&#58;288)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a&#58;105)
at org.apache.tools.ant.Task.perform(Task.java&#58;348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java&#58;62)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java&#58;288)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a&#58;105)
at org.apache.tools.ant.Task.perform(Task.java&#58;348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
a&#58;391)
... 18 more
Caused by&#58; java.io.IOException&#58; Cannot run program &quot;E&#58;\jdk1.6.0_12\jre\bin\java.
exe&quot;&#58; CreateProcess error=87, ParÔmetro incorreto
at java.lang.ProcessBuilder.start(ProcessBuilder.java&#58;459)
at java.lang.Runtime.exec(Runtime.java&#58;593)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java&#58;828)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java&#58;445)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java&#58;459)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java&#58;767)
... 29 more
Caused by&#58; java.io.IOException&#58; CreateProcess error=87, ParÔmetro incorreto
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java&#58;81)
at java.lang.ProcessImpl.start(ProcessImpl.java&#58;30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java&#58;452)
... 34 more


E em nenhum lugar acho uma solução, alguma sugestão??????
30/05/2009 00:00


0
Sinceramente, esse plugin ainda não funciona bem além de jogar a seguinte excessão por conta do Acegi:

 [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException&#58; startup failed, Compile error during compilation with javac.
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;18&#58; package org.hibernate does not exist
[groovyc] import org.hibernate.Session;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;19&#58; package org.hibernate does not exist
[groovyc] import org.hibernate.SessionFactory;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;35&#58; cannot find symbol
[groovyc] symbol &#58; class SessionFactory
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
[groovyc] private SessionFactory _sessionFactory;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;41&#58; cannot find symbol
[groovyc] symbol &#58; class SessionFactory
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
[groovyc] public void setSessionFactory(final SessionFactory sessionFactory) &#123;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;106&#58; cannot find symbol
[groovyc] symbol &#58; class SessionFactory
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
[groovyc] private SessionFactory getSessionFactory() &#123;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;50&#58; cannot find symbol
[groovyc] symbol &#58; class Session
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
[groovyc] private final Session _session;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;53&#58; cannot find symbol
[groovyc] symbol &#58; class Session
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
[groovyc] private SessionContainer(final Session session, final boolean existingSession) &#123;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;62&#58; cannot find symbol
[groovyc] symbol &#58; class Session
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
[groovyc] public Session getSession() &#123;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;72&#58; cannot find symbol
[groovyc] symbol &#58; class SessionFactory
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
[groovyc] SessionFactory sessionFactory = getSessionFactory();
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;74&#58; cannot find symbol
[groovyc] symbol &#58; class Session
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
[groovyc] Session session;
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;79&#58; cannot access org.hibernate.Session
[groovyc] class file for org.hibernate.Session not found
[groovyc] session = ((SessionHolder)TransactionSynchronizationManager.getResource(sessionFactory)).getSession();
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;84&#58; cannot access org.hibernate.Interceptor
[groovyc] class file for org.hibernate.Interceptor not found
[groovyc] session = SessionFactoryUtils.getSession(sessionFactory, true);
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;100&#58; cannot find symbol
[groovyc] symbol &#58; class SessionFactory
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
[groovyc] SessionFactory sessionFactory = getSessionFactory();
[groovyc] ^
[groovyc] /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;109&#58; cannot find symbol
[groovyc] symbol &#58; class SessionFactory
[groovyc] location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
[groovyc] _sessionFactory = (SessionFactory)getWebApplicationContext().getBean(&quot;sessionFactory&quot;);
[groovyc] ^
[groovyc] Note&#58; /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/ldap/GrailsLdapUser.java uses or overrides a deprecated API.
[groovyc] Note&#58; Recompile with -Xlint&#58;deprecation for details.
[groovyc] 14 errors
[groovyc]
[groovyc]
[groovyc] 1 error
&#58; Compilation Failed
at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java&#58;807)
at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java&#58;540)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java&#58;105)
at org.apache.tools.ant.Task.perform(Task.java&#58;348)
at _GrailsCompile_groovy$_run_closure3_closure7.doCall(_GrailsCompile_groovy&#58;102)
at _GrailsCompile_groovy$_run_closure3_closure7.doCall(_GrailsCompile_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy&#58;274)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy&#58;89)
at _GrailsCompile_groovy$_run_closure2.doCall(_GrailsCompile_groovy&#58;55)
at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy&#58;79)
at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy&#58;274)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy&#58;78)
at _GrailsWar_groovy$_run_closure4.doCall(_GrailsWar_groovy&#58;125)
at AppEngine$_run_closure2.doCall(AppEngine&#58;23)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy&#58;324)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy&#58;334)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy&#58;344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy&#58;334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy&#58;495)
at gant.Gant.processTargets(Gant.groovy&#58;480)
Caused by&#58; org.codehaus.groovy.control.MultipleCompilationErrorsException&#58; startup failed, Compile error during compilation with javac.
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;18&#58; package org.hibernate does not exist
import org.hibernate.Session;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;19&#58; package org.hibernate does not exist
import org.hibernate.SessionFactory;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;35&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
private SessionFactory _sessionFactory;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;41&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
public void setSessionFactory(final SessionFactory sessionFactory) &#123;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;106&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
private SessionFactory getSessionFactory() &#123;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;50&#58; cannot find symbol
symbol &#58; class Session
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
private final Session _session;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;53&#58; cannot find symbol
symbol &#58; class Session
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
private SessionContainer(final Session session, final boolean existingSession) &#123;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;62&#58; cannot find symbol
symbol &#58; class Session
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
public Session getSession() &#123;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;72&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
SessionFactory sessionFactory = getSessionFactory();
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;74&#58; cannot find symbol
symbol &#58; class Session
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
Session session;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;79&#58; cannot access org.hibernate.Session
class file for org.hibernate.Session not found
session = ((SessionHolder)TransactionSynchronizationManager.getResource(sessionFactory)).getSession();
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;84&#58; cannot access org.hibernate.Interceptor
class file for org.hibernate.Interceptor not found
session = SessionFactoryUtils.getSession(sessionFactory, true);
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;100&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
SessionFactory sessionFactory = getSessionFactory();
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;109&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
_sessionFactory = (SessionFactory)getWebApplicationContext().getBean(&quot;sessionFactory&quot;);
^
Note&#58; /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/ldap/GrailsLdapUser.java uses or overrides a deprecated API.
Note&#58; Recompile with -Xlint&#58;deprecation for details.
14 errors


1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java&#58;296)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java&#58;143)
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.addJavacError(JavacJavaCompiler.java&#58;89)
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java&#58;71)
at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java&#58;89)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java&#58;476)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java&#58;443)
at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java&#58;57)
at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java&#58;173)
at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java&#58;792)
... 27 more
--- Nested Exception ---
org.codehaus.groovy.control.MultipleCompilationErrorsException&#58; startup failed, Compile error during compilation with javac.
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;18&#58; package org.hibernate does not exist
import org.hibernate.Session;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;19&#58; package org.hibernate does not exist
import org.hibernate.SessionFactory;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;35&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
private SessionFactory _sessionFactory;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;41&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
public void setSessionFactory(final SessionFactory sessionFactory) &#123;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;106&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
private SessionFactory getSessionFactory() &#123;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;50&#58; cannot find symbol
symbol &#58; class Session
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
private final Session _session;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;53&#58; cannot find symbol
symbol &#58; class Session
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
private SessionContainer(final Session session, final boolean existingSession) &#123;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;62&#58; cannot find symbol
symbol &#58; class Session
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport.SessionContainer
public Session getSession() &#123;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;72&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
SessionFactory sessionFactory = getSessionFactory();
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;74&#58; cannot find symbol
symbol &#58; class Session
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
Session session;
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;79&#58; cannot access org.hibernate.Session
class file for org.hibernate.Session not found
session = ((SessionHolder)TransactionSynchronizationManager.getResource(sessionFactory)).getSession();
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;84&#58; cannot access org.hibernate.Interceptor
class file for org.hibernate.Interceptor not found
session = SessionFactoryUtils.getSession(sessionFactory, true);
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;100&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
SessionFactory sessionFactory = getSessionFactory();
^
/home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/GrailsWebApplicationObjectSupport.java&#58;109&#58; cannot find symbol
symbol &#58; class SessionFactory
location&#58; class org.codehaus.groovy.grails.plugins.springsecurity.GrailsWebApplicationObjectSupport
_sessionFactory = (SessionFactory)getWebApplicationContext().getBean(&quot;sessionFactory&quot;);
^
Note&#58; /home/danilo/.grails/1.1.1/projects/FGS/plugins/acegi-0.5.1/src/java/org/codehaus/groovy/grails/plugins/springsecurity/ldap/GrailsLdapUser.java uses or overrides a deprecated API.
Note&#58; Recompile with -Xlint&#58;deprecation for details.
14 errors


1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java&#58;296)
at org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java&#58;143)
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.addJavacError(JavacJavaCompiler.java&#58;89)
at org.codehaus.groovy.tools.javac.JavacJavaCompiler.compile(JavacJavaCompiler.java&#58;71)
at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit.gotoPhase(JavaAwareCompilationUnit.java&#58;89)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java&#58;476)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java&#58;443)
at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java&#58;57)
at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java&#58;173)
at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java&#58;792)
at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java&#58;540)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java&#58;105)
at org.apache.tools.ant.Task.perform(Task.java&#58;348)
at _GrailsCompile_groovy$_run_closure3_closure7.doCall(_GrailsCompile_groovy&#58;102)
at _GrailsCompile_groovy$_run_closure3_closure7.doCall(_GrailsCompile_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy&#58;274)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy&#58;89)
at _GrailsCompile_groovy$_run_closure2.doCall(_GrailsCompile_groovy&#58;55)
at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy&#58;79)
at _GrailsPackage_groovy$_run_closure2_closure9.doCall(_GrailsPackage_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy&#58;274)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy&#58;78)
at _GrailsWar_groovy$_run_closure4.doCall(_GrailsWar_groovy&#58;125)
at AppEngine$_run_closure2.doCall(AppEngine&#58;23)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy&#58;324)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy&#58;334)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy&#58;344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy&#58;334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy&#58;495)
at gant.Gant.processTargets(Gant.groovy&#58;480)
Compilation error&#58; Compilation Failed


E mesmo sem o Acegi ele joga o erro:

Compilation error&#58; java.lang.NoClassDefFoundError&#58; org/hibernate/usertype/EnhancedUserType


Testei tanto em Linux quanto em WIndows e os erros se mostraram os mesmos, esse plugin ainda não funciona,

Alguém nesse Fórum já tentou postar sua Aplicação Grails no Google App Engine?
30/05/2009 00:00



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