Hi there, I'm using Google Endpoint's @ApiMethod on a method which returns a list of "House" objects. the House class lives in a jar file (it's part of my common domain and in another project) and has been added as a maven dependency in the pom.xml. Everything compiles but when I try to generate the API file I get something like this:
[INFO] --- endpoint-maven-plugin:0.0.2-SNAPSHOT:generate (default) @ gatecontrolweb --- [INFO] Generating api-file for appId gatecontrolweb with classes be.klak.gatecontrolweb.DevicesController interface com.google.api.server.spi.config.Api [ERROR] java.lang.TypeNotPresentException: Type be.klak.gatecontrol.domain.House not present at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) at sun.reflect.generics.repository.MethodRepository.getReturnType(MethodRepository.java:68) at java.lang.reflect.Method.getGenericReturnType(Method.java:244) at com.google.api.server.spi.EndpointMethod.getReturnType(EndpointMethod.java:137) at com.google.api.server.spi.EndpointMethod.create(EndpointMethod.java:160) at com.google.api.server.spi.MethodHierarchyReader.addServiceMethods(MethodHierarchyReader.java:182) at com.google.api.server.spi.MethodHierarchyReader.readMethodHierarchyIfNecessary(MethodHierarchyReader.java:44) at com.google.api.server.spi.MethodHierarchyReader.getEndpointOverrides(MethodHierarchyReader.java:99) at com.google.api.server.spi.config.annotationreader.ApiConfigAnnotationReader.readApiMethods(ApiConfigAnnotationReader.java:184) at com.google.api.server.spi.config.annotationreader.ApiConfigAnnotationReader.readEndpoint(ApiConfigAnnotationReader.java:82) at com.google.api.server.spi.tools.AnnotationApiConfigGenerator.generateForService(AnnotationApiConfigGenerator.java:242) at com.google.api.server.spi.tools.AnnotationApiConfigGenerator.generateConfigObjects(AnnotationApiConfigGenerator.java:227) at com.google.api.server.spi.tools.AnnotationApiConfigGenerator.generateConfig(AnnotationApiConfigGenerator.java:176) at com.mic.endpoint.api.EndpointApiGenerator.generateApiConfigs(EndpointApiGenerator.java:26) at com.mic.endpoint.api.EndpointApiMojo.execute(EndpointApiMojo.java:58) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) When I include the House class within the google app project everything works fine. So is there a possibility to use class files from jars? thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/oRyM7xV4uFoJ. 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-appengine?hl=en.
