Can't compile a Grails project - grails

I'm super new to Grails, so I apologize for asking something too easy:
I tried to do a Project > Clean and I get:
Welcome to Grails 1.3.7 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /Users/shamoon/.sdkman/candidates/grails/1.3.7/
Base Directory: /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer
Resolving dependencies...
Dependencies resolved in 1363ms.
Running script /Users/shamoon/.sdkman/candidates/grails/1.3.7/scripts/RunApp.groovy
Environment set to development
[copy] Copied 4 empty directories to 2 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 13 empty directories to 9 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 2 empty directories to 1 empty directory under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 5 empty directories to 2 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 3 empty directories to 1 empty directory under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 3 empty directories to 2 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 2 empty directories to 1 empty directory under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 6 empty directories to 5 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 1 empty directory to 1 empty directory under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copying 1 file to /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 6 empty directories to 2 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 1 empty directory to 1 empty directory under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 4 empty directories to 4 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 2 empty directories to 1 empty directory under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 2 empty directories to 2 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 1 empty directory to 1 empty directory under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 3 empty directories to 2 empty directories under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[copy] Copied 1 empty directory to 1 empty directory under /Users/shamoon/.grails/1.3.7/projects/MySiteServer/resources
[groovyc] Compiling 1 source file to /Users/shamoon/.grails/1.3.7/projects/MySiteServer/plugin-classes
[groovyc] Compiling 258 source files to /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer/target/classes
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] Compile error during compilation with javac.
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Item.java:51: error: cannot find symbol
[groovyc] protected ItemType getItemType() { return (ItemType)null;}
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: class Item
[groovyc] /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer/src/java/iq4/model/QueryResult.java:7: error: cannot find symbol
[groovyc] ItemType itemType;
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: class QueryResult<T>
[groovyc] where T is a type-variable:
[groovyc] T extends Object declared in class QueryResult
[groovyc] /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer/src/java/iq4/model/QueryResult.java:8: error: cannot find symbol
[groovyc] ItemType rowType;
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: class QueryResult<T>
[groovyc] where T is a type-variable:
[groovyc] T extends Object declared in class QueryResult
[groovyc] /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer/src/java/iq4/model/QueryResult.java:68: error: cannot find symbol
[groovyc] public ItemType getItemType() {
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: class QueryResult<T>
[groovyc] where T is a type-variable:
[groovyc] T extends Object declared in class QueryResult
[groovyc] /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer/src/java/iq4/model/QueryResult.java:72: error: cannot find symbol
[groovyc] public void setItemType(ItemType itemType) {
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: class QueryResult<T>
[groovyc] where T is a type-variable:
[groovyc] T extends Object declared in class QueryResult
[groovyc] /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer/src/java/iq4/model/QueryResult.java:76: error: cannot find symbol
[groovyc] public ItemType getRowType() {
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: class QueryResult<T>
[groovyc] where T is a type-variable:
[groovyc] T extends Object declared in class QueryResult
[groovyc] /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer/src/java/iq4/model/QueryResult.java:80: error: cannot find symbol
[groovyc] public void setRowType(ItemType rowType) {
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: class QueryResult<T>
[groovyc] where T is a type-variable:
[groovyc] T extends Object declared in class QueryResult
[groovyc] /Users/shamoon/GoogleDrive/Sites/MySite/MySite/MySiteServer/src/java/iq4/servlet/AWSBridgeServlet.java:3: error: cannot find symbol
[groovyc] import iq4.model.ItemType;
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: package iq4.model
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Task.java:31: error: cannot find symbol
[groovyc] public PriorityType getPriority() { return (PriorityType)null;}
[groovyc] ^
[groovyc] symbol: class PriorityType
[groovyc] location: class Task
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Task.java:32: error: cannot find symbol
[groovyc] public void setPriority(PriorityType value) { }
[groovyc] ^
[groovyc] symbol: class PriorityType
[groovyc] location: class Task
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Task.java:33: error: cannot find symbol
[groovyc] public TaskStatusType getStatus() { return (TaskStatusType)null;}
[groovyc] ^
[groovyc] symbol: class TaskStatusType
[groovyc] location: class Task
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Task.java:34: error: cannot find symbol
[groovyc] public void setStatus(TaskStatusType value) { }
[groovyc] ^
[groovyc] symbol: class TaskStatusType
[groovyc] location: class Task
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Task.java:43: error: cannot find symbol
[groovyc] protected ItemType getItemType() { return (ItemType)null;}
[groovyc] ^
[groovyc] symbol: class ItemType
[groovyc] location: class Task
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Job.java:36: error: cannot find symbol
[groovyc] public WorkHours getWorkHours() { return (WorkHours)null;}
[groovyc] ^
[groovyc] symbol: class WorkHours
[groovyc] location: class Job
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Job.java:37: error: cannot find symbol
[groovyc] public void setWorkHours(WorkHours value) { }
[groovyc] ^
[groovyc] symbol: class WorkHours
[groovyc] location: class Job
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Job.java:38: error: cannot find symbol
[groovyc] public Internship getInternship() { return (Internship)null;}
[groovyc] ^
[groovyc] symbol: class Internship
[groovyc] location: class Job
[groovyc] /var/folders/t2/czsgnnwx4ys_86hfq04m822r0000gn/T/groovy-generated-3051460305321062736-java-source/iq4/model/Job.java:39: error: cannot find symbol
[groovyc] public void setInternship(Internship value) { }
....
[groovyc] Note: Some input files use unchecked or unsafe operations.
[groovyc] Note: Recompile with -Xlint:unchecked for details.
[groovyc] 32 errors
[groovyc] 1 error
Compilation error: Compilation Failed
My colleague can get this up and running on her machine. We're both using the same version of Java, Grails, and GGTS. What can I do?

The compiler can't find the 'java' files which are returned in those functions. Check if it is in the proper folder with 'public' access specifier. If it is in a google drive check if it is accessible. If your colleague has this app up and running on her system, it might be probably because of the inaccessibility of java source files. Check and give more info on it

Grails 1.3.7 is a very old version. I recommend you to use a actual supported version

Related

Notifications plugin - what to use

Which is the best plugin available for sending notifications on the Grails application. I tried to use the notification plugin compile ":notifications:0.2.6" but while running it is showing error-:
|Loading Grails 2.5.0
|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
|Installing zip notifications-0.2.6.zip...
...
|Installed plugin notifications-0.2.6
.....................
|Compiling 122 source files
Note: C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\scaffolding-2.1.2\src\java\org\codehaus\groovy\grails\scaffolding\AbstractGrailsTemplateGenerator.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details. [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\MailManager.groovy: 7: unable to resolve class org.codehaus.groovy.grails.commons.ApplicationHolder
[groovyc] # line 7, column 1.
[groovyc] import org.codehaus.groovy.grails.commons.ApplicationHolder
[groovyc] ^
[groovyc]
[groovyc] C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\MailManager.groovy: 5: unable to resolve class grails.plugin.mail.MailService
[groovyc] # line 5, column 1.
[groovyc] import grails.plugin.mail.MailService
[groovyc] ^
[groovyc]
[groovyc] C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\MailManager.groovy: 12: unable to resolve class grails.plugin.mail.MailService
[groovyc] # line 12, column 3.
[groovyc] private MailService service
[groovyc] ^
[groovyc]
[groovyc] C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\config\NotificationUtils.groovy: 3: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
[groovyc] # line 3, column 1.
[groovyc] import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
[groovyc] ^
[groovyc]
[groovyc] C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\custom\CustomMailNotification.groovy: 7: unable to resolve class org.codehaus.groovy.grails.commons.ApplicationHolder
[groovyc] # line 7, column 1.
[groovyc] import org.codehaus.groovy.grails.commons.ApplicationHolder
[groovyc] ^
[groovyc]
[groovyc] C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\custom\CustomMailNotification.groovy: 6: unable to resolve class grails.plugin.mail.MailService
[groovyc] # line 6, column 1.
[groovyc] import grails.plugin.mail.MailService
[groovyc] ^
[groovyc]
[groovyc] C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\custom\CustomMailNotification.groovy: 13: unable to resolve class grails.plugin.mail.MailService
[groovyc] # line 13, column 3.
[groovyc] private MailService service
[groovyc] ^
[groovyc]
[groovyc] 7 errors
.Error
|
Compilation error: startup failed:
C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\MailManager.groovy: 7: unable to resolve class org.codehaus.groovy.grails.commons.ApplicationHolder
# line 7, column 1.
import org.codehaus.groovy.grails.commons.ApplicationHolder
^
C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\MailManager.groovy: 5: unable to resolve class grails.plugin.mail.MailService
# line 5, column 1.
import grails.plugin.mail.MailService
^
C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\MailManager.groovy: 12: unable to resolve class grails.plugin.mail.MailService
# line 12, column 3.
private MailService service
^
C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\config\NotificationUtils.groovy: 3: unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
# line 3, column 1.
import org.codehaus.groovy.grails.commons.ConfigurationHolder as CH
^
C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\custom\CustomMailNotification.groovy: 7: unable to resolve class org.codehaus.groovy.grails.commons.ApplicationHolder
# line 7, column 1.
import org.codehaus.groovy.grails.commons.ApplicationHolder
^
C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\custom\CustomMailNotification.groovy: 6: unable to resolve class grails.plugin.mail.MailService
# line 6, column 1.
import grails.plugin.mail.MailService
^
C:\Users\DELL-PC\git\haribol-part2\tearp\target\work\plugins\notifications-0.2.6\src\groovy\pt\whiteroad\plugins\notifications\custom\CustomMailNotification.groovy: 13: unable to resolve class grails.plugin.mail.MailService
# line 13, column 3.
private MailService service
^
7 errors
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
The notifications plugin is quite old and presumably is not compatible with the version of Grails you are using. Try the mail plugin https://grails.org/plugin/mail

Compile error with grails 2.4.1 and plugin joda-time 1.5

When compiling a grails 2.4.1 project I get the following error:
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] /home/omarques/ws1/sigob/target/work/plugins/joda-time-1.5/src/groovy/grails/plugin/jodatime/simpledatastore/SimpleMapJodaTimeMarshaller.groovy: 44: Apparent variable 'MonthDay' was found in a static scope but doesn't refer to a local variable, static field or class. Possible causes:
[groovyc] You attempted to reference a variable in the binding or an instance variable from a static context.
[groovyc] You misspelled a classname or statically imported field. Please check the spelling.
[groovyc] You attempted to use a method 'MonthDay' but left out brackets in a place not allowed by the grammar.
[groovyc] # line 44, column 87.
[groovyc] me, LocalDate, LocalDateTime, MonthDay,
[groovyc] ^
I've tried to upgrade the project to 2.4.3 and got the same error
Add the following to application.properties and try
plugins.joda-time=1.3.1
the problem was solved by including on BuildConfig an explicit dependency to joda-time-2.3 because another dependency(net.objectlab.kit:datecalc-joda:1.2.0) was causing the use of an outdated version of joda-time that is incompatible with the joda-time grails plugin

Compile error in Grails ehcache plugin

Have just added to BuildConfig.groovy:
compile ":cache-ehcache:1.0.1"
I'm using Eclipse/Spring Tool Suite v 3.5.0.RELEASE
JAVA_HOME set to: E:\Program Files\Java\jdk1.7.0_17
I get the following compilation errors when I run grails runApp.
Compilation error: startup failed:
Compile error during compilation with javac.
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:195: error: ReloadableCacheManager.ProxyEhcache is not abstract and does not override abstract method getSearchesPerSecond() in Ehcache
protected class ProxyEhcache implements Ehcache {
^
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:798: error: getStatistics() in ReloadableCacheManager.ProxyEhcache cannot implement getStatistics() in Ehcache
public StatisticsGateway getStatistics()
^
return type StatisticsGateway is not compatible with Statistics
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:656: error: cannot find symbol
return getUnderlyingEhcache(name).getSearchAttributes();
^
symbol: method getSearchAttributes()
location: interface Ehcache
C:\Documents and Settings\pagendg\.grails\2.3.8\projects\osrpms\plugins\cache-ehcache-1.0.1\src\java\grails\plugin\cache\ehcache\GrailsEhCacheManagerFactoryBean.java:653: error: method does not override or implement a method from a supertype
#Override
^
try to delete the project’s folder under the .grails directory, e.g. ‘~/.grails/2.3.8/projects/osrpms’.
and the commands
grails clean-all
grails clean
then run the project

error building nutch 2.1 on windows 7 Could not load definitions from resource org/sonar/ant/antlib.xml

When I try to build nutch 2.1 on my windows 7 machine i get the below error:
Buildfile: C:\apache-nutch-2.1\build.xml
[taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.
ivy-probe-antlib:
ivy-download:
[taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.
ivy-download-unchecked:
ivy-init-antlib:
ivy-init:
init:
resolve-default:
[ivy:resolve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = C:\apache-nutch-2.1\ivy\ivysettings.xml
[taskdef] Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.
copy-libs:
compile-core:
C:\apache-nutch-2.1\build.xml:97: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Compiling 181 source files to C:\apache-nutch-2.1\build\classes
warning: [path] bad path element "C:\apache-nutch-2.1\build\lib\activation.jar": no such file or directory
warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\APIInfoResource.java:23: error: package org.restlet.resource does not exist
import org.restlet.resource.Get;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\APIInfoResource.java:24: error: package org.restlet.resource does not exist
import org.restlet.resource.ServerResource;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\APIInfoResource.java:26: error: cannot find symbol
public class APIInfoResource extends ServerResource {
^
symbol: class ServerResource
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\AdminResource.java:23: error: package org.restlet.resource does not exist
import org.restlet.resource.Get;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\AdminResource.java:24: error: package org.restlet.resource does not exist
import org.restlet.resource.ServerResource;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\AdminResource.java:28: error: cannot find symbol
public class AdminResource extends ServerResource {
^
symbol: class ServerResource
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\ConfResource.java:22: error: package org.restlet.data does not exist
import org.restlet.data.Form;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\ConfResource.java:23: error: package org.restlet.resource does not exist
import org.restlet.resource.Delete;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\ConfResource.java:24: error: package org.restlet.resource does not exist
import org.restlet.resource.Get;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\ConfResource.java:25: error: package org.restlet.resource does not exist
import org.restlet.resource.Post;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\ConfResource.java:26: error: package org.restlet.resource does not exist
import org.restlet.resource.Put;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\ConfResource.java:27: error: package org.restlet.resource does not exist
import org.restlet.resource.ServerResource;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\ConfResource.java:29: error: cannot find symbol
public class ConfResource extends ServerResource {
^
symbol: class ServerResource
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\DbReader.java:29: error: package org.apache.avro.util does not exist
import org.apache.avro.util.Utf8;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\DbReader.java:30: error: package org.apache.gora.query does not exist
import org.apache.gora.query.Query;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\DbReader.java:31: error: package org.apache.gora.query does not exist
import org.apache.gora.query.Result;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\DbReader.java:32: error: package org.apache.gora.store does not exist
import org.apache.gora.store.DataStore;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\api\DbReader.java:52: error: cannot find symbol
DataStore<String,WebPage> store;
^
symbol: class DataStore
location: class DbReader
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:22: error: package org.apache.avro does not exist
import org.apache.avro.Protocol;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:23: error: package org.apache.avro does not exist
import org.apache.avro.Schema;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:24: error: package org.apache.avro does not exist
import org.apache.avro.AvroRuntimeException;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:25: error: package org.apache.avro does not exist
import org.apache.avro.Protocol;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:26: error: package org.apache.avro.util does not exist
import org.apache.avro.util.Utf8;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:27: error: package org.apache.avro.ipc does not exist
import org.apache.avro.ipc.AvroRemoteException;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:28: error: package org.apache.avro.generic does not exist
import org.apache.avro.generic.GenericArray;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:29: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificExceptionBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:30: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificRecordBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:31: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificRecord;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:32: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificFixed;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:33: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.StateManager;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:34: error: package org.apache.gora.persistency.impl does not exist
import org.apache.gora.persistency.impl.PersistentBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:35: error: package org.apache.gora.persistency.impl does not exist
import org.apache.gora.persistency.impl.StateManagerImpl;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:36: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.StatefulHashMap;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:37: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.ListGenericArray;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:40: error: cannot find symbol
public class WebPage extends PersistentBase {
^
symbol: class PersistentBase
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:41: error: cannot find symbol
public static final Schema _SCHEMA = Schema.parse("{\"type\":\"record\",\"name\":\"WebPage\",\"namespace\":\"org.apache.nutch.storage\",\"fields\":[{\"name\":\"baseUrl\",\"type\":\"string\"},{\"name\":\"status\",\"type\":\"int\"},{\"name\":\"fetchTime\",\"type\":\"long\"},{\"name\":\"prevFetchTime\",\"type\":\"long\"},{\"name\":\"fetchInterval\",\"type\":\"int\"},{\"name\":\"retriesSinceFetch\",\"type\":\"int\"},{\"name\":\"modifiedTime\",\"type\":\"long\"},{\"name\":\"protocolStatus\",\"type\":{\"type\":\"record\",\"name\":\"ProtocolStatus\",\"fields\":[{\"name\":\"code\",\"type\":\"int\"},{\"name\":\"args\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"lastModified\",\"type\":\"long\"}]}},{\"name\":\"content\",\"type\":\"bytes\"},{\"name\":\"contentType\",\"type\":\"string\"},{\"name\":\"prevSignature\",\"type\":\"bytes\"},{\"name\":\"signature\",\"type\":\"bytes\"},{\"name\":\"title\",\"type\":\"string\"},{\"name\":\"text\",\"type\":\"string\"},{\"name\":\"parseStatus\",\"type\":{\"type\":\"record\",\"name\":\"ParseStatus\",\"fields\":[{\"name\":\"majorCode\",\"type\":\"int\"},{\"name\":\"minorCode\",\"type\":\"int\"},{\"name\":\"args\",\"type\":{\"type\":\"array\",\"items\":\"string\"}}]}},{\"name\":\"score\",\"type\":\"float\"},{\"name\":\"reprUrl\",\"type\":\"string\"},{\"name\":\"headers\",\"type\":{\"type\":\"map\",\"values\":\"string\"}},{\"name\":\"outlinks\",\"type\":{\"type\":\"map\",\"values\":\"string\"}},{\"name\":\"inlinks\",\"type\":{\"type\":\"map\",\"values\":\"string\"}},{\"name\":\"markers\",\"type\":{\"type\":\"map\",\"values\":\"string\"}},{\"name\":\"metadata\",\"type\":{\"type\":\"map\",\"values\":\"bytes\"}}]}");
^
symbol: class Schema
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:77: error: cannot find symbol
private Utf8 baseUrl;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:22: error: package org.apache.avro does not exist
import org.apache.avro.Protocol;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:23: error: package org.apache.avro does not exist
import org.apache.avro.Schema;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:24: error: package org.apache.avro does not exist
import org.apache.avro.AvroRuntimeException;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:25: error: package org.apache.avro does not exist
import org.apache.avro.Protocol;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:26: error: package org.apache.avro.util does not exist
import org.apache.avro.util.Utf8;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:27: error: package org.apache.avro.ipc does not exist
import org.apache.avro.ipc.AvroRemoteException;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:28: error: package org.apache.avro.generic does not exist
import org.apache.avro.generic.GenericArray;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:29: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificExceptionBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:30: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificRecordBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:31: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificRecord;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:32: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificFixed;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:33: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.StateManager;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:34: error: package org.apache.gora.persistency.impl does not exist
import org.apache.gora.persistency.impl.PersistentBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:35: error: package org.apache.gora.persistency.impl does not exist
import org.apache.gora.persistency.impl.StateManagerImpl;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:36: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.StatefulHashMap;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:37: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.ListGenericArray;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ProtocolStatus.java:40: error: cannot find symbol
public class ProtocolStatus extends PersistentBase {
^
symbol: class PersistentBase
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:86: error: cannot find symbol
private Utf8 contentType;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:89: error: cannot find symbol
private Utf8 title;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:90: error: cannot find symbol
private Utf8 text;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:22: error: package org.apache.avro does not exist
import org.apache.avro.Protocol;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:23: error: package org.apache.avro does not exist
import org.apache.avro.Schema;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:24: error: package org.apache.avro does not exist
import org.apache.avro.AvroRuntimeException;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:25: error: package org.apache.avro does not exist
import org.apache.avro.Protocol;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:26: error: package org.apache.avro.util does not exist
import org.apache.avro.util.Utf8;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:27: error: package org.apache.avro.ipc does not exist
import org.apache.avro.ipc.AvroRemoteException;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:28: error: package org.apache.avro.generic does not exist
import org.apache.avro.generic.GenericArray;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:29: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificExceptionBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:30: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificRecordBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:31: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificRecord;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:32: error: package org.apache.avro.specific does not exist
import org.apache.avro.specific.SpecificFixed;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:33: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.StateManager;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:34: error: package org.apache.gora.persistency.impl does not exist
import org.apache.gora.persistency.impl.PersistentBase;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:35: error: package org.apache.gora.persistency.impl does not exist
import org.apache.gora.persistency.impl.StateManagerImpl;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:36: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.StatefulHashMap;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:37: error: package org.apache.gora.persistency does not exist
import org.apache.gora.persistency.ListGenericArray;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\ParseStatus.java:40: error: cannot find symbol
public class ParseStatus extends PersistentBase {
^
symbol: class PersistentBase
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:93: error: cannot find symbol
private Utf8 reprUrl;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:94: error: cannot find symbol
private Map<Utf8,Utf8> headers;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:94: error: cannot find symbol
private Map<Utf8,Utf8> headers;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:95: error: cannot find symbol
private Map<Utf8,Utf8> outlinks;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:95: error: cannot find symbol
private Map<Utf8,Utf8> outlinks;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:96: error: cannot find symbol
private Map<Utf8,Utf8> inlinks;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:96: error: cannot find symbol
private Map<Utf8,Utf8> inlinks;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:97: error: cannot find symbol
private Map<Utf8,Utf8> markers;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:97: error: cannot find symbol
private Map<Utf8,Utf8> markers;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:98: error: cannot find symbol
private Map<Utf8,ByteBuffer> metadata;
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:102: error: cannot find symbol
public WebPage(StateManager stateManager) {
^
symbol: class StateManager
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:110: error: cannot find symbol
public WebPage newInstance(StateManager stateManager) {
^
symbol: class StateManager
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:113: error: cannot find symbol
public Schema getSchema() { return _SCHEMA; }
^
symbol: class Schema
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:171: error: cannot find symbol
public Utf8 getBaseUrl() {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:174: error: cannot find symbol
public void setBaseUrl(Utf8 value) {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:225: error: cannot find symbol
public Utf8 getContentType() {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:228: error: cannot find symbol
public void setContentType(Utf8 value) {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:243: error: cannot find symbol
public Utf8 getTitle() {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:246: error: cannot find symbol
public void setTitle(Utf8 value) {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:249: error: cannot find symbol
public Utf8 getText() {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:252: error: cannot find symbol
public void setText(Utf8 value) {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:267: error: cannot find symbol
public Utf8 getReprUrl() {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:270: error: cannot find symbol
public void setReprUrl(Utf8 value) {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:273: error: cannot find symbol
public Map<Utf8, Utf8> getHeaders() {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:273: error: cannot find symbol
public Map<Utf8, Utf8> getHeaders() {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\storage\WebPage.java:276: error: cannot find symbol
public Utf8 getFromHeaders(Utf8 key) {
^
symbol: class Utf8
location: class WebPage
C:\apache-nutch-2.1\src\java\org\apache\nutch\indexer\mongodb\MongodbIndexer.java:18: warning: [deprecation] JobConf in org.apache.hadoop.mapred has been deprecated
import org.apache.hadoop.mapred.JobConf;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\indexer\mongodb\MongodbWriter.java:7: warning: [deprecation] JobConf in org.apache.hadoop.mapred has been deprecated
import org.apache.hadoop.mapred.JobConf;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\tools\arc\ArcInputFormat.java:23: warning: [deprecation] FileInputFormat in org.apache.hadoop.mapred has been deprecated
import org.apache.hadoop.mapred.FileInputFormat;
^
C:\apache-nutch-2.1\src\java\org\apache\nutch\tools\arc\ArcInputFormat.java:24: warning: [deprecation] FileSplit in org.apache.hadoop.mapred has been deprecated
import org.apache.hadoop.mapred.FileSplit;
^
..
..
more errors are there ..........
C:\apache-nutch-2.1\src\java\org\apache\nutch\util\SuffixStringMatcher.java:46: warning: [rawtypes] found raw type: Iterator
Iterator iter= suffixes.iterator();
^
missing type arguments for generic class Iterator<E>
where E is a type-variable:
E extends Object declared in interface Iterator
C:\apache-nutch-2.1\src\java\org\apache\nutch\util\ToolUtil.java:48: warning: [unchecked] unchecked cast
Map<String,Object> jobs = (Map<String,Object>)results.get(Nutch.STAT_JOBS);
^
required: Map<String,Object>
found: Object
100 errors
69 warnings
How can I fix this and get Nutch running?
For those desperate Googlers who find this:
I had a similar issue which I was able to troubleshoot by adding -v (verbose) to my ant command. With that, I could see that it was a cygwin/windows path issue that was actually causing the problem. Reluctantly, I opened a cmd.exe prompt, set the appropriate environment variables, and it worked fine.

STS - Can't Find Grails Library

I am porting over Grails project to STS and I don't know much about the project nor about STS, so I am a little lost. Also of note is that the project was previously in Grails 1.0.3 and I am upgrading it to 1.3.7.
After loading in the existing code, I configured my project to use Grails 1.3.7. When I attempt to build the project I get a bunch of errors relating to what appears to be just basic grails code that should come with 1.3.7:
e.g. Groovy:unable to resolve class org.codehaus.groovy.grails.commons.ConfigurationHolder
Also, when I open STS I am asked to run an "upgrade" for grails, which fails with the following:
Command terminated with an error code (see details for output)
------System.out:-----------
Welcome to Grails 1.3.7 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /home/devon/springsource/grails-1.3.7/
Base Directory: /home/devon/Documents/Source/trunk
Resolving dependencies...
Dependencies resolved in 2458ms.
Running script /home/devon/springsource/grails-1.3.7/scripts/Compile.groovy
Environment set to development
Setting non-interactive mode
[groovyc] Compiling 110 source files to /home/devon/.grails/1.3.7/projects/trunk/classes
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] Compile error during compilation with javac.
[groovyc] /tmp/groovy-generated-1742177078522700179-java-source/com/pps/domain/User.java:62: package org.grails.plugins.springsecurity.service does not exist
[groovyc] public org.grails.plugins.springsecurity.service.AuthenticateService getAuthenticateService() { return (org.grails.plugins.springsecurity.service.AuthenticateService)null;}
[groovyc] ^
[groovyc] /tmp/groovy-generated-1742177078522700179-java-source/com/pps/domain/User.java:63: package org.grails.plugins.springsecurity.service does not exist
[groovyc] public void setAuthenticateService(org.grails.plugins.springsecurity.service.AuthenticateService value) { }
[groovyc] ^
[groovyc] /home/devon/Documents/Source/trunk/src/java/com/pps/util/MarketplaceWidgetUtils.java:24: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
[groovyc] import sun.misc.BASE64Encoder;
[groovyc] ^
[groovyc] /tmp/groovy-generated-1742177078522700179-java-source/com/pps/domain/User.java:62: package org.grails.plugins.springsecurity.service does not exist
[groovyc] public org.grails.plugins.springsecurity.service.AuthenticateService getAuthenticateService() { return (org.grails.plugins.springsecurity.service.AuthenticateService)null;}
[groovyc] ^
[groovyc] /home/devon/Documents/Source/trunk/src/java/com/pps/util/MarketplaceWidgetUtils.java:170: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
[groovyc] BASE64Encoder encoder = new BASE64Encoder();
[groovyc] ^
[groovyc] /home/devon/Documents/Source/trunk/src/java/com/pps/util/MarketplaceWidgetUtils.java:170: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
[groovyc] BASE64Encoder encoder = new BASE64Encoder();
[groovyc] ^
[groovyc] 3 errors
[groovyc] 3 warnings
[groovyc]
[groovyc]
[groovyc] 1 error
Compilation error: Compilation Failed
------System.err:-----------
In my Java Build Path I have a 'Grails Dependencies' folder, but I don't know how to change it to make sure it is pointing to the right dependencies. There is also 'Groovy Libraries' and a bunch of random '.jar' dependencies.
What am I doing wrong?
It looks like it wasn't finding it because required dependencies to plugins were not resolving correctly. Once I got the plugins it worked correctly.

Resources