'cannot find symbol' with Lucene - java

I was using the 1.4.3 version of Lucene, but i need to use the 8.11.2 now.
The problem is that some of the import completely changed (from the 1.4.3 version):
- import org.apache.lucene.search.Hits;
- import org.apache.lucene.store.InputStream;
- import org.apache.lucene.store.OutputStream;
- import org.apache.lucene.analysis.Token;
And i don't find anything when searching on all classes of the 8.11.2 version...
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/edition/HelpAgregator.java:[20,32] cannot find symbol
[ERROR] symbol: class Hits
[ERROR] location: package org.apache.lucene.search
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/FtsLuceneApplet.java:[18,32] cannot find symbol
[ERROR] symbol: class Hits
[ERROR] location: package org.apache.lucene.search
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/FtsLuceneApplet.java:[28,5] cannot find symbol
[ERROR] symbol: class Hits
[ERROR] location: class com.hraccess.hradoc.fts.FtsLuceneApplet
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[70,31] cannot find symbol
[ERROR] symbol: class InputStream
[ERROR] location: package org.apache.lucene.store
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[72,31] cannot find symbol
[ERROR] symbol: class OutputStream
[ERROR] location: package org.apache.lucene.store
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[205,22] cannot find symbol
[ERROR] symbol: class OutputStream
[ERROR] location: class com.hraccess.hradoc.fts.RODirectory
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[213,22] cannot find symbol
[ERROR] symbol: class InputStream
[ERROR] location: class com.hraccess.hradoc.fts.RODirectory
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/RODirectory.java:[285,35] cannot find symbol
[ERROR] symbol: class InputStream
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/analysis/cjk/CJKTokenizer.java:[22,34] cannot find symbol
[ERROR] symbol: class Token
[ERROR] location: package org.apache.lucene.analysis
[ERROR] /D:/Dev/7.xx/Webtools/hra-tools-web-tools/hr-documentation-tool/src/main/java/com/hraccess/hradoc/fts/analysis/cjk/CJKTokenizer.java:[105,18] cannot find symbol
[ERROR] symbol: class Token
[ERROR] location: class com.hraccess.hradoc.fts.analysis.cjk.CJKTokenizer
What can i do to replace these import on the actual 8.11.2 version ?

Related

Got error when building a project with maven -" cannot find symbol symbol: class Nonnull location: package javax.annotation"

I was trying to build a project following the instruction here https://github.com/MovingImage24/JmeterSockJsSampler, but I got the errors:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/D/app/JmeterSockJsSampler/JmeterSockJsSampler/src/main/java/orgMiJmeterSockjsSampler/Nullable.java:[24,24] cannot find symbol
symbol: class Nonnull
location: package javax.annotation
[ERROR] /C:/D/app/JmeterSockJsSampler/JmeterSockJsSampler/src/main/java/orgMiJmeterSockjsSampler/Nullable.java:[25,29] package javax.annotation.meta does not exist
[ERROR] /C:/D/app/JmeterSockJsSampler/JmeterSockJsSampler/src/main/java/orgMiJmeterSockjsSampler/Nullable.java:[26,29] package javax.annotation.meta does not exist
[ERROR] /C:/D/app/JmeterSockJsSampler/JmeterSockJsSampler/src/main/java/orgMiJmeterSockjsSampler/Nullable.java:[49,2] cannot find symbol
symbol: class Nonnull
[ERROR] /C:/D/app/JmeterSockJsSampler/JmeterSockJsSampler/src/main/java/orgMiJmeterSockjsSampler/Nullable.java:[50,2] cannot find symbol
symbol: class TypeQualifierNickname
......
openjdk version "1.8.0_352-352"
OpenJDK Runtime Environment (build 1.8.0_352-352-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)

Unable to compile project from Maven Central

I am trying to compile an older version (2.4.0) of the gwt-servlet project from Maven Central. I have done the following:
1) Downloaded gwt-servlet-2.4.0-sources.jar from Maven Central.
2) Extracted this source .jar into an empty C:/workingdir/src/main/java directory.
3) Downloaded gwt-servlet-2.4.0.pom from Maven Central to C:/workingdir/pom.xml
4) Executed mvn clean, then mvn install.
On mvn install, I get 100 errors and a handful of warnings from the compiler:
$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt-servlet 2.4.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) # gwt-servlet ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # gwt-servlet ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\workingdir\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # gwt-servlet ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3041 source files to C:\workingdir\target\classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[36,16] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/resources/rebind/context/AbstractResourceContext.java:[43,13] sun.misc.BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/resources/rebind/context/AbstractResourceContext.java:[43,46] sun.misc.BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[438,24] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[442,5] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[444,17] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/rpc/server/CommandSerializationUtil.java:[446,22] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java: Some input files use or override a deprecated API.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/emul/java/util/ArrayList.java: Some input files use unchecked or unsafe operations.
[WARNING] /C:/workingdir/src/main/java/com/google/gwt/emul/java/util/ArrayList.java: Recompile with -Xlint:unchecked for details.
[WARNING] Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[INFO] 12 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java:[25,8] duplicate class: com.google.gwt.validation.client.GwtMessageInterpolator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/translatable/com/google/gwt/user/client/rpc/core/java/util/LinkedHashMap_CustomFieldSerializer.java:[29,14] duplicate class: com.google.gwt.user.client.rpc.core.java.util.LinkedHashMap_Custo mFieldSerializer
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/MatchResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.MatchResult
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/impl/StringQuoter.java:[33,8] duplicate class: com.google.web.bindery.autobean.shared.impl.StringQuoter
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/client/impl/ClientWriterFactory.java:[35,8] duplicate class: com.google.gwt.rpc.client.impl.ClientWriterFactory
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/GWTTestCase.java:[48,17] duplicate class: com.google.gwt.junit.client.GWTTestCase
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/benchmarks/translatable/com/google/gwt/benchmarks/client/Benchmark.java:[24,17] duplicate class: com.google.gwt.benchmarks.client.Benchmark
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/client/rpc/impl/ReflectionHelper.java:[29,8] duplicate class: com.google.gwt.user.client.rpc.impl.ReflectionHelper
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/ValueCodexHelper.java:[21,1] duplicate class: com.google.web.bindery.autobean.shared.ValueCodexHelper
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/super/com/google/gwt/rpc/client/impl/EscapeUtil.java:[25,8] duplicate class: com.google.gwt.rpc.client.impl.EscapeUtil
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/GwtConfiguration.java:[31,8] duplicate class: com.google.gwt.validation.client.GwtConfiguration
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/super/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java:[22,8] duplicate class: com.google.gwt.safehtml.shared.SafeHtmlHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/requestfactory/super/com/google/web/bindery/requestfactory/shared/impl/MessageFactoryHolder.java:[24,8] duplicate class: com.google.web.bindery.requestfactory.shared.impl.MessageFactoryHo lder
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/impl/GWTRunner.java:[31,8] duplicate class: com.google.gwt.junit.client.impl.GWTRunner
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/core/client/impl/WeakMapping.java:[30,8] duplicate class: com.google.gwt.core.client.impl.WeakMapping
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/shared/RegExp.java:[39,8] duplicate class: com.google.gwt.regexp.shared.RegExp
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/spi/GwtConfigurationState.java:[27,8] duplicate class: com.google.gwt.validation.client.spi.GwtConfigurationState
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java:[34,8] duplicate class: com.google.gwt.safehtml.shared.SafeUriHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/SplitResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.SplitResult
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[68,27] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[69,7] cannot find symbol
symbol: class JMethod
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[69,30] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[81,21] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[82,41] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[88,15] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[89,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[96,13] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[97,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[104,16] cannot find symbol
symbol: class TreeLogger
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[105,46] cannot find symbol
symbol: class JMethod
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceGenerator.java:[106,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceGenerator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[60,37] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[79,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[97,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[115,3] cannot find symbol
symbol: class JClassType
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ResourceContext.java:[124,3] cannot find symbol
symbol: class GeneratorContext
location: interface com.google.gwt.resources.ext.ResourceContext
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[44,17] cannot find symbol
symbol: class JType
location: interface com.google.gwt.resources.ext.ClientBundleFields
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleFields.java:[60,17] cannot find symbol
symbol: class JType
location: interface com.google.gwt.resources.ext.ClientBundleFields
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[40,14] cannot find symbol
symbol: class BadPropertyValueException
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[59,55] cannot find symbol
symbol: class BadPropertyValueException
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/resources/ext/ClientBundleRequirements.java:[94,25] cannot find symbol
symbol: class JClassType
location: interface com.google.gwt.resources.ext.ClientBundleRequirements
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/i18n/rebind/keygen/MD5KeyGenerator.java:[18,40] package com.google.gwt.util.tools.shared does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParser.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[22,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[68,17] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[70,60] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java:[84,44] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.attributeparsers.StrictAttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[19,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/FieldManager.java:[22,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParser.java:[34,14] cannot find symbol
symbol: class UnableToCompleteException
location: interface com.google.gwt.uibinder.attributeparsers.AttributeParser
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[71,17] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[73,23] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[82,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[91,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[96,10] cannot find symbol
symbol: class TreeLogger
location: class com.google.gwt.uibinder.rebind.MortalLogger
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/MortalLogger.java:[114,38] package TreeLogger does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[18,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[18,31] package com.google.gwt.core.ext does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[19,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[20,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java:[21,40] package com.google.gwt.core.ext.typeinfo does not exist
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[135,17] cannot find symbol
symbol: class TypeOracle
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[144,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[145,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[146,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[147,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[148,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[149,11] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[175,7] cannot find symbol
symbol: class TypeOracle
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[193,43] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[214,37] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[230,37] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[249,47] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[250,14] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[266,7] cannot find symbol
symbol: class JType
location: class com.google.gwt.uibinder.rebind.XMLElement
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java:[266,26] cannot find symbol
symbol: class UnableToCompleteException
location: class com.google.gwt.uibinder.rebind.XMLElement
[INFO] 100 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.595 s
[INFO] Finished at: 2018-05-03T01:21:33-04:00
[INFO] Final Memory: 20M/645M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project gwt-servlet: Compilation failure: Compilation failure:
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/super/com/google/gwt/validation/client/GwtMessageInterpolator.java:[25,8] duplicate class: com.google.gwt.validation.client.GwtMessageInterpolator
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/translatable/com/google/gwt/user/client/rpc/core/java/util/LinkedHashMap_CustomFieldSerializer.java:[29,14] duplicate class: com.google.gwt.user.client.rpc.core.java.util.LinkedHashMap_Custo mFieldSerializer
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/MatchResult.java:[23,8] duplicate class: com.google.gwt.regexp.shared.MatchResult
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/impl/StringQuoter.java:[33,8] duplicate class: com.google.web.bindery.autobean.shared.impl.StringQuoter
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/client/impl/ClientWriterFactory.java:[35,8] duplicate class: com.google.gwt.rpc.client.impl.ClientWriterFactory
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/GWTTestCase.java:[48,17] duplicate class: com.google.gwt.junit.client.GWTTestCase
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/benchmarks/translatable/com/google/gwt/benchmarks/client/Benchmark.java:[24,17] duplicate class: com.google.gwt.benchmarks.client.Benchmark
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/user/client/rpc/impl/ReflectionHelper.java:[29,8] duplicate class: com.google.gwt.user.client.rpc.impl.ReflectionHelper
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/autobean/super/com/google/web/bindery/autobean/shared/ValueCodexHelper.java:[21,1] duplicate class: com.google.web.bindery.autobean.shared.ValueCodexHelper
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/rpc/super/com/google/gwt/rpc/client/impl/EscapeUtil.java:[25,8] duplicate class: com.google.gwt.rpc.client.impl.EscapeUtil
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/GwtConfiguration.java:[31,8] duplicate class: com.google.gwt.validation.client.GwtConfiguration
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/safehtml/super/com/google/gwt/safehtml/shared/SafeHtmlHostedModeUtils.java:[22,8] duplicate class: com.google.gwt.safehtml.shared.SafeHtmlHostedModeUtils
[ERROR] /C:/workingdir/src/main/java/com/google/web/bindery/requestfactory/super/com/google/web/bindery/requestfactory/shared/impl/MessageFactoryHolder.java:[24,8] duplicate class: com.google.web.bindery.requestfactory.shared.impl.MessageFactoryHo lder
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/junit/client/impl/GWTRunner.java:[31,8] duplicate class: com.google.gwt.junit.client.impl.GWTRunner
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/core/client/impl/WeakMapping.java:[30,8] duplicate class: com.google.gwt.core.client.impl.WeakMapping
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/regexp/shared/RegExp.java:[39,8] duplicate class: com.google.gwt.regexp.shared.RegExp
[ERROR] /C:/workingdir/src/main/java/com/google/gwt/validation/client/spi/GwtConfigurationState.java:[27,8] duplicate class: com.google.gwt.validation.client.spi.GwtConfigurationState
.. and on and on
Maven info:
$ mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
Maven home: C:\tmp\apache-maven-3.5.0-bin\apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_131\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I have tried running Maven with an older jdk (jdk1.6.0_45) and have tried compiling other version of gwt-servlet with no luck. Am I missing something? I have been trying every whichway to get this to compile all day. Thanks.
You should probably check out the 2.4.0 tag and build that instead.
It seems (I may be wrong) this version was not even build with Maven, at least no pom.xmls are seen. So it is not a surprise it can't be built with Maven.

Maven error - cannot find symbol - on multimodule project

I downloaded the calendar from exoplatform from this link: https://github.com/exoplatform/calendar and I've trying to generate its war through the command mvn compile war:war. If I run mvn package or mvn install it works fine, but when I add the war:war, compile fails.
Here are the errors:
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[48,38] package org.exoplatform.calendar.model does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[49,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[50,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[51,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[52,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[53,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[54,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[55,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[56,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[57,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[58,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[59,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[115,18] cannot find symbol
[ERROR] symbol: class CalendarService
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[116,11] cannot find symbol
[ERROR] symbol: class ExtendedCalendarService
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[120,17] cannot find symbol
[ERROR] symbol: class CalendarService
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[134,29] cannot find symbol
[ERROR] symbol: class ExtendedCalendarService
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[330,49] cannot find symbol
[ERROR] symbol: class CalendarEvent
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[330,72] cannot find symbol
[ERROR] symbol: class FeedData
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[630,39] cannot find symbol
[ERROR] symbol: class CalendarSetting
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/webservice/cs/calendar/CalendarWebservice.java:[630,67] cannot find symbol
[ERROR] symbol: class CalendarEvent
[ERROR] location: class org.exoplatform.webservice.cs.calendar.CalendarWebservice
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[31,1] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[32,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[33,49] package org.exoplatform.calendar.service.Calendar does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/CalendarRestApi.java:[34,45] package org.exoplatform.calendar.service.impl does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/bean/CategoryResource.java:[22,40] package org.exoplatform.calendar.service does not exist
[ERROR] .../calendar-develop/calendar-webservice/src/main/java/org/exoplatform/calendar/ws/bean/CategoryResource.java:[33,33] cannot find symbol
[ERROR] symbol: class EventCategory
[ERROR] location: class org.exoplatform.calendar.ws.bean.CategoryResource
the main pom: https://drive.google.com/file/d/0BwWIlGx_c4cXM3puSVY2YTlDWE0/view?usp=sharing
the one which returns always returns errors: https://drive.google.com/file/d/0BwWIlGx_c4cXWlptTkp0VF95YlU/view?usp=sharing
I placed them in google drive due to the stack overflow char limit.
I have tried the solutions in stack overflow, like checking the dependencies doing mvn clean install, but whenever I add war:war It returns those errors.
Can anyone help me?
Yes. The proper way to invoke the war goal is :
mvn compile war:war
Now, as you still see the errors, it appears that there could be dependency of one project to another. And, as the dependency couldn't be found in local repository (because you haven't installed that in local repo), the dependency couldn't be added in classpath and hence the errors.

jboss & maven: maven build fails due to libraries not opening

I am building the jboss EA 6.3 quickstart project "greeter".
I run maven clean install jboss-as:deploy in the project dir as instructed whilist a jboss server is running.
I get the following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
1:compile (default-compile) on project jboss-greeter: Compilation failure: Compi
lation failure:
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\faces\j
boss-jsf-api_2.1_spec\2.1.28.Final-redhat-1\jboss-jsf-api_2.1_spec-2.1.28.Final-
redhat-1.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\hibernate\javax\persiste
nce\hibernate-jpa-2.0-api\1.0.1.Final-redhat-2\hibernate-jpa-2.0-api-1.0.1.Final
-redhat-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\transac
tion\jboss-transaction-api_1.1_spec\1.0.1.Final-redhat-2\jboss-transaction-api_1
.1_spec-1.0.1.Final-redhat-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\ejb\jbo
ss-ejb-api_3.1_spec\1.0.2.Final-redhat-2\jboss-ejb-api_3.1_spec-1.0.2.Final-redh
at-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\faces\j
boss-jsf-api_2.1_spec\2.1.28.Final-redhat-1\jboss-jsf-api_2.1_spec-2.1.28.Final-
redhat-1.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\hibernate\javax\persiste
nce\hibernate-jpa-2.0-api\1.0.1.Final-redhat-2\hibernate-jpa-2.0-api-1.0.1.Final
-redhat-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\transac
tion\jboss-transaction-api_1.1_spec\1.0.1.Final-redhat-2\jboss-transaction-api_1
.1_spec-1.0.1.Final-redhat-2.jar; error in opening zip file
[ERROR] error reading C:\Users\boris\.m2\repository\org\jboss\spec\javax\ejb\jbo
ss-ejb-api_3.1_spec\1.0.2.Final-redhat-2\jboss-ejb-api_3.1_spec-1.0.2.Final-redh
at-2.jar; error in opening zip file
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/Resources.java:[24,27] packag
e javax.faces.context does not exist
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/Resources.java:[44,12] cannot
find symbol
[ERROR] symbol: class FacesContext
[ERROR] location: class org.jboss.as.quickstarts.greeter.Resources
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[21
,31] package javax.faces.application does not exist
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[22
,27] package javax.faces.context does not exist
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[34
,13] cannot find symbol
[ERROR] symbol: class FacesContext
[ERROR] location: class org.jboss.as.quickstarts.greeter.web.CreateController
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[23,25] cannot find symbol
[ERROR] symbol: class SystemException
[ERROR] location: package javax.transaction
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[24,25] cannot find symbol
[ERROR] symbol: class UserTransaction
[ERROR] location: package javax.transaction
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[32,13] cannot find symbol
[ERROR] symbol: class UserTransaction
[ERROR] location: class org.jboss.as.quickstarts.greeter.domain.ManagedBeanUserD
ao
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/EJBUserDao.java:[19,17
] package javax.ejb does not exist
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/EJBUserDao.java:[26,2]
cannot find symbol
[ERROR] symbol: class Stateful
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/Resources.java:[45,16] cannot
find symbol
[ERROR] symbol: variable FacesContext
[ERROR] location: class org.jboss.as.quickstarts.greeter.Resources
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[48
,47] cannot find symbol
[ERROR] symbol: class FacesMessage
[ERROR] location: class org.jboss.as.quickstarts.greeter.web.CreateController
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/web/CreateController.java:[51
,47] cannot find symbol
[ERROR] symbol: class FacesMessage
[ERROR] location: class org.jboss.as.quickstarts.greeter.web.CreateController
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[50,22] cannot find symbol
[ERROR] symbol: class SystemException
[ERROR] location: class org.jboss.as.quickstarts.greeter.domain.ManagedBeanUserD
ao
[ERROR] /C:/Users/boris/Desktop/JavaLearning/jboss-eap-quickstarts-6.3.0.GA/gree
ter/src/main/java/org/jboss/as/quickstarts/greeter/domain/ManagedBeanUserDao.jav
a:[68,22] cannot find symbol
[ERROR] symbol: class SystemException
[ERROR] location: class org.jboss.as.quickstarts.greeter.domain.ManagedBeanUserD
ao
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
I checked the files it tries to open in the maven repo. They all are 1kb large and won't open by winrar. Windows says "file corrupt or damaged".
Other examples (without JSF though) worked just fine.
What is your M2_HOME? You can configure the path in the M2_HOME/conf/settings.xml, e.g.:
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
I removed the specified files that maven couldn't open. Maven redownloaded them, then it worked just fine.

Form Casting in Play Framework 2.0.4 with securesocial

Is there a way to cast play.api.data.Form to play.api.data.Form in Play Framework?
I'm using secure social for play 2.0.4 and I'm having these errors when I compile custom templates.
[error] /home/mario/tegik-play/app/controllers/SecureTemplate.scala:19: type mismatch;
[error] found : play.api.data.Form[(String, String)]
[error] required: play.data.Form[(java.lang.String, java.lang.String)]
[error] views.html.custom.login(form, msg)
[error] ^
[error] /home/mario/tegik-play/app/controllers/SecureTemplate.scala:24: type mismatch;
[error] found : play.api.data.Form[securesocial.controllers.Registration.RegistrationInfo]
[error] required: play.data.Form[securesocial.controllers.Registration.RegistrationInfo]
[error] views.html.custom.Registration.signUp(form, token)
[error] ^
[error] /home/mario/tegik-play/app/controllers/SecureTemplate.scala:28: type mismatch;
[error] found : play.api.data.Form[String]
[error] required: play.data.Form[java.lang.String]
[error] views.html.custom.Registration.startSignUp(form)
[error] ^
[error] /home/mario/tegik-play/app/controllers/SecureTemplate.scala:32: type mismatch;
[error] found : play.api.data.Form[String]
[error] required: play.data.Form[java.lang.String]
[error] views.html.custom.Registration.startResetPassword(form)
[error] ^
[error] /home/mario/tegik-play/app/controllers/SecureTemplate.scala:36: type mismatch;
[error] found : play.api.data.Form[(String, String)]
[error] required: play.data.Form[(java.lang.String, java.lang.String)]
[error] views.html.custom.Registration.resetPasswordPage(form, token)
[error] ^
[error] /home/mario/tegik-play/app/controllers/SecureTemplate.scala:40: type mismatch;
[error] found : play.api.data.Form[securesocial.controllers.PasswordChange.ChangeInfo]
[error] required: play.data.Form[securesocial.controllers.PasswordChange.ChangeInfo]
[error] views.html.custom.passwordChange(form)
[error] ^
[error] 6 errors found
Hope anyone can help me.
Greetings!
play.api.data.Form is the Scala API, while play.data.Form is the Java one.
Make sure you're specifying the right package (the first one I guess) in your views.

Categories