Hi
I use GWT 7.1
I have created two .properties files for localization.
but that does not work.
of course i can run the program and it works correctly in hosted mode
but when I want to make a war file I get this error :
Compiling module com.douran.portal.Portal
Scanning for additional dependencies: file:/D:/Portal/src/com/
douran/portal/client/module/totalCycle/TotalCycleViewfrm.java
Computing all possible rebind results for
'com.douran.portal.client.module.totalCycle.TotalCycleI18N'
Rebinding
com.douran.portal.client.module.totalCycle.TotalCycleI18N
Invoking <generate-with
class='com.google.gwt.i18n.rebind.LocalizableGenerator'/>
Processing interface
com.douran.portal.client.module.totalCycle.TotalCycleI18N
Generating method body for cycleID()
[ERROR] No resource found for key 'cycleID'
com.google.gwt.i18n.rebind.AbstractResource$MissingResourceException:
No resource found for key 'cycleID'
at com.google.gwt.i18n.rebind.AbstractResource
$ResourceList.getRequiredStringExt(AbstractResource.java:206)
at
com.google.gwt.i18n.rebind.SimpleValueMethodCreator.createMethodFor
(SimpleValueMethodCreator.java:93)
at
com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator
(AbstractLocalizableImplCreator.java:307)
at
com.google.gwt.i18n.rebind.ConstantsImplCreator.emitMethodBody
(ConstantsImplCreator.java:160)
at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod
(AbstractGeneratorClassCreator.java:263)
at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods
(AbstractGeneratorClassCreator.java:231)
at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass
(AbstractGeneratorClassCreator.java:114)
at
com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass
(AbstractLocalizableImplCreator.java:134)
at com.google.gwt.i18n.rebind.LocalizableGenerator.generate
(LocalizableGenerator.java:118)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize
(RuleGenerateWith.java:49)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:113)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:62)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:172)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:161)
at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers
(Precompile.java:204)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds
(WebModeCompilerFrontEnd.java:128)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process
(AbstractCompiler.java:151)
at org.eclipse.jdt.internal.compiler.Compiler.compile
(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
(AbstractCompiler.java:85)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
(AbstractCompiler.java:181)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access
$400(AbstractCompiler.java:71)
at com.google.gwt.dev.jdt.AbstractCompiler.compile
(AbstractCompiler.java:473)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations
(WebModeCompilerFrontEnd.java:73)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
(JavaToJavaScriptCompiler.java:259)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
300)
at com.google.gwt.dev.Compiler.run(Compiler.java:170)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:88)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:131)
[WARN] Searched the following resources:
[ERROR] Errors in 'file:/D:/Portal/src/com/douran/portal/client/
module/totalCycle/TotalCycleViewfrm.java'
[ERROR] Line 50: Failed to resolve
'com.douran.portal.client.module.totalCycle.TotalCycleI18N' via
deferred binding
[ERROR] Cannot proceed due to previous errors
Here is my source code :
->TotalCycleI18N_en.properties
cycleID=Cycle ID
->TotalCycleI18N_fa.properties
cycleID=Cycle ID 123
->TotalCycleI18N
public interface TotalCycleI18N extends Constants {
String cycleID();
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---