« Roo+X | Main | Fear not »
roo + SpringMVC: Fuck, ein Standard-Deploy endet so:
tsps-MacBook-Pro:mb-mvc tsp$ mvn gae:deploy -DskipTests=trueDec
21, 2011 1:51:01 PM org.apache.jasper.compiler.AntCompiler generateClass SEVERE:
Error compiling file:
/var/folders/rA/rAI3y8hfFQuztePwrkEL5U+++TI/-Tmp-/appcfg6923119542883762797.tmp/WEB-INF/classes/org/apache/jsp/tag/web/util/panel_tagx.java[javac]
Compiling 1 source file [javac] error: Bad service
configuration file, or exception thrown while constructing Processor
object: javax.annotation.processing.Processor: Provider
org.datanucleus.enhancer.EnhancerProcessor could not be instantiated:
org.datanucleus.exceptions.NucleusException: Error reading manifest file
"jar:file:/var/folders/rA/rAI3y8hfFQuztePwrkEL5U+++TI/-Tmp-/appcfg6923119542883762797.tmp/WEB-INF/lib/datanucleus-core-1.1.5.jar!/plugin.xml"
Also googlen und frickeln..... Und ja, nach dem Entfernen aller dependencies von datanucleus-enhancer loop et endlich:
tsps-MacBook-Pro:mb-mvc tsp$ mvn clean gae:deploy -DskipTests=true[INFO]
Scanning for projects... Beginning server interaction
for medienboten... 0% Created staging directory at:
'/var/folders/rA/rAI3y8hfFQuztePwrkEL5U+++TI/-Tmp-/appcfg3602209683130921361.tmp'
5% Scanning for jsp files. 8%
Compiling jsp files. Dec 21, 2011 2:15:35 PM
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml INFO:
Successfully processed
/var/folders/rA/rAI3y8hfFQuztePwrkEL5U+++TI/-Tmp-/appcfg3602209683130921361.tmp/WEB-INF/web.xml
20% Scanning files on local disk. 25%
Scanned 250 files. 28% Initiating update. Email:
xxx@gmail.com Password for xxx@gmail.com: 77%
Initializing precompilation... 90% Deploying new
version. 95% Will check again in 1 seconds. 98%
Will check again in 2 seconds. 99% Will check again in
4 seconds. 99% Closing update: new version is ready to
start serving. 99% Uploading index definitions. Update
completed successfully. Success.
Und Browser auf und schauen - erstmal nix, aber nachdem ich den alten Datenbestand gelöscht habe:
Bis zur nächsten Untiefe:
Ok, ein bekannter Fehler: "These break all list pages. The following exception is generated:JspException: java.lang.NoSuchMethodError: "
Also scope ändern und redeploy, das übt ja...
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<scope>provided</scope><!--
Added -->
</dependency>
Natürlich lasse ich auch die Datastore-Fallstricke nicht aus: Index fehlt, erstmal also Beng:
Caused by:
com.google.appengine.api.datastore.DatastoreNeedIndexException: no
matching index found. The suggested index for this
query is: <datastore-index kind="MediaItem"
ancestor="false" source="manual"> <property
name="mediaKind" direction="asc"/> <property
name="title" direction="asc"/> </datastore-index>
Aber auch hier sehr gute Hilfe im Netz: datastore-indexes.xml anlegen, obige Fehlermeldung hineinkopieren, re-deploy und los:
Nun muss ich mal klären, wie das mit der freien Quota läuft, also ob eine mässige Benutzung gedeckt ist oder es bald Scheine regnen muss: