Hello everyone!

I have the following problem and i was wandering if you could help me
out.

I have the following class:

package ar.com.akyasociados.iturnos.client.dto.contactos;

import java.io.Serializable;

import ar.com.akyasociados.gwtprojecttemplate.client.dto.DTO;

import com.google.gwt.validation.client.NotEmpty;

/**
 *
 * @author Barrera Oro, Rafael
 *
 * DTO para transportar información de un título hacia el cliente.
 *
 */
@SuppressWarnings("serial")
public class TituloDTO implements Serializable, DTO{

        private int id;

        @NotEmpty (groups={"minimal"}, message = "Debe ingresar una
descripción")
        private String descripcion;

        /**
         * Constructor. Requerido por ser DTO.
         */
        public TituloDTO(){
                id = -1;
                descripcion = null;
        }

        public int getId()                                                      
        {       return id;                                              }
        public void setId(int id)                                               
{       this.id = id;                                   }

        public String getDescripcion()                                  {       
return descripcion;                             }
        public void setDescripcion(String descripcion)  {       
this.descripcion =
descripcion;    }

        /*
         * (non-Javadoc)
         * @see
ar.com.akyasociados.gwtcontrols.client.widgets.RowElement#getValue()
         */
        public String getValue() {
                return new Integer(getId()).toString();
        }
}

In eclipse everything works, but when i attempt to compile the project
i get the following exception:

Compiling module ar.com.akyasociados.iturnos.ITurnos
java.lang.ClassNotFoundException:
ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTO
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at
com.google.gwt.validation.rebind.ValidatorCreator.createValidatorImplementation
(Unknown Source)
        at com.google.gwt.validation.rebind.ValidatorGenerator.generate
(Unknown Source)
        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:254)
        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:
84)
        at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
        at com.google.gwt.dev.Compiler.main(Compiler.java:131)
   Scanning for additional dependencies: file:/shared/workspace/
ITurnos/src/ar/com/akyasociados/iturnos/client/widgets/contactos/
TitulosEditorPanel.java
      Computing all possible rebind results for
'ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTO'
         Rebinding
ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTO
            Adding '1' new generated units
               Validating newly compiled units
                  Removing units with errors
                     [ERROR] Errors in 'transient source for
ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTOValidator'
                        [ERROR] Line 14: The type TituloDTOValidator
must implement the inherited abstract method
AbstractValidator<TituloDTO>.performValidation(TituloDTO, String,
ArrayList<String>, HashSet<String>, HashSet<String>)
                        [ERROR] Line 14: The type TituloDTOValidator
must implement the inherited abstract method
AbstractValidator<TituloDTO>.getGroupSequenceMapping(Class<?>)
                        [ERROR] Line 14: Syntax error on token "{",
{ expected after this token
                        See snapshot: /tmp/
ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTOValidator6348536597138765710.java
            [ERROR] Unable to find recently-generated type
'ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTOValidator
   [ERROR] Errors in 'file:/shared/workspace/ITurnos/src/ar/com/
akyasociados/iturnos/client/widgets/contactos/TitulosEditorPanel.java'
      [ERROR] Line 61:  Failed to resolve
'ar.com.akyasociados.iturnos.client.dto.contactos.TituloDTO' via
deferred binding
   [ERROR] Cannot proceed due to previous errors

Does this ring any bells for anyone?

Thanks in advance!

Rafael


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to