Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet;
Thanks! [ERROR] Line 6: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? This error disappeared after I had removed source path=server/ from my Project.gwt.xml file On Tuesday, March 23, 2010 9:44:33 PM UTC+4, Paul Robinson wrote: You have a bug in your module's .gwt.xml file here: source path=server/ This line should be removed. It's telling GWT to compile the code in your server directory to javascript. Paul -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module?
Well, I still have my problem. I spent quite a lot of time on this. I can't understand why it's impossible to compile. If anyone has an idea, I would thank him/her for eternity +15 days. Thanks a lot. Nicolas On 17 juin, 13:17, Zgouingo zgoui...@gmail.com wrote: Hello everyone, I know there has already been some subjects about this kind of error, but this time I honnestly can't understand what's happening. Let me introduce my project : I'm just beginning in the world of GWT. I followed some tutorials, and I try to do a RPC exchange in my project. I succeeded in adapting the RPC model into the StockWatcher example project, but in my personnal project, it won't work. I get this message : No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? on the following line of my server implementation of the RPC system : public class UserInfoServiceImpl extends RemoteServiceServlet implements UserInfoService { As you can see, the ServiceImpl class extends RemoteServiceServlet, and he seems to be unable to find the source. Here is my gwt.xml : module source path=client/ source path=Internationalization/ inherits name=com.google.gwt.user.User/ inherits name=com.google.gwt.user.theme.standard.Standard/ inherits name=com.msa.logoexpress.Internationalization/ entry-point class=com.msa.logoexpress.client.LoginManager/ extend-property name=locale values=de/ extend-property name=locale values=fr/ servlet path=/UserInfoService class=com.msa.logoexpress.server.UserInfoServiceImpl/ /module I tried with and without the servlet... line, and it does the same.The same architecture worked for the stockwatcher project, and there I have no idea of what's wrong. What could be the problem ? Any idea ? Thank you very much Nicolas -- 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.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module?
Nicolas, The first this I can think of is in your module definition you have not included the path source path = server/ Your UserServiceImpl is defined in your server package but you don't have that included in the module. Try adding that. Regards Ashwin On Mon, Jun 27, 2011 at 12:12 PM, Zgouingo zgoui...@gmail.com wrote: Well, I still have my problem. I spent quite a lot of time on this. I can't understand why it's impossible to compile. If anyone has an idea, I would thank him/her for eternity +15 days. Thanks a lot. Nicolas On 17 juin, 13:17, Zgouingo zgoui...@gmail.com wrote: Hello everyone, I know there has already been some subjects about this kind of error, but this time I honnestly can't understand what's happening. Let me introduce my project : I'm just beginning in the world of GWT. I followed some tutorials, and I try to do a RPC exchange in my project. I succeeded in adapting the RPC model into the StockWatcher example project, but in my personnal project, it won't work. I get this message : No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? on the following line of my server implementation of the RPC system : public class UserInfoServiceImpl extends RemoteServiceServlet implements UserInfoService { As you can see, the ServiceImpl class extends RemoteServiceServlet, and he seems to be unable to find the source. Here is my gwt.xml : module source path=client/ source path=Internationalization/ inherits name=com.google.gwt.user.User/ inherits name=com.google.gwt.user.theme.standard.Standard/ inherits name=com.msa.logoexpress.Internationalization/ entry-point class=com.msa.logoexpress.client.LoginManager/ extend-property name=locale values=de/ extend-property name=locale values=fr/ servlet path=/UserInfoService class=com.msa.logoexpress.server.UserInfoServiceImpl/ /module I tried with and without the servlet... line, and it does the same.The same architecture worked for the stockwatcher project, and there I have no idea of what's wrong. What could be the problem ? Any idea ? Thank you very much Nicolas -- 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. -- 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.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module?
The servlet entry should only affect hosted mode. This means you're somehow referencing the server-side class for your RPC service somewhere in your client-side code (which you shouldn't be). On Jun 17, 6:17 am, Zgouingo zgoui...@gmail.com wrote: Hello everyone, I know there has already been some subjects about this kind of error, but this time I honnestly can't understand what's happening. Let me introduce my project : I'm just beginning in the world of GWT. I followed some tutorials, and I try to do a RPC exchange in my project. I succeeded in adapting the RPC model into the StockWatcher example project, but in my personnal project, it won't work. I get this message : No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? on the following line of my server implementation of the RPC system : public class UserInfoServiceImpl extends RemoteServiceServlet implements UserInfoService { As you can see, the ServiceImpl class extends RemoteServiceServlet, and he seems to be unable to find the source. Here is my gwt.xml : module source path=client/ source path=Internationalization/ inherits name=com.google.gwt.user.User/ inherits name=com.google.gwt.user.theme.standard.Standard/ inherits name=com.msa.logoexpress.Internationalization/ entry-point class=com.msa.logoexpress.client.LoginManager/ extend-property name=locale values=de/ extend-property name=locale values=fr/ servlet path=/UserInfoService class=com.msa.logoexpress.server.UserInfoServiceImpl/ /module I tried with and without the servlet... line, and it does the same.The same architecture worked for the stockwatcher project, and there I have no idea of what's wrong. What could be the problem ? Any idea ? Thank you very much Nicolas -- 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.
No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module?
Hello everyone, I know there has already been some subjects about this kind of error, but this time I honnestly can't understand what's happening. Let me introduce my project : I'm just beginning in the world of GWT. I followed some tutorials, and I try to do a RPC exchange in my project. I succeeded in adapting the RPC model into the StockWatcher example project, but in my personnal project, it won't work. I get this message : No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? on the following line of my server implementation of the RPC system : public class UserInfoServiceImpl extends RemoteServiceServlet implements UserInfoService { As you can see, the ServiceImpl class extends RemoteServiceServlet, and he seems to be unable to find the source. Here is my gwt.xml : module source path=client/ source path=Internationalization/ inherits name=com.google.gwt.user.User/ inherits name=com.google.gwt.user.theme.standard.Standard/ inherits name=com.msa.logoexpress.Internationalization/ entry-point class=com.msa.logoexpress.client.LoginManager/ extend-property name=locale values=de/ extend-property name=locale values=fr/ servlet path=/UserInfoService class=com.msa.logoexpress.server.UserInfoServiceImpl/ /module I tried with and without the servlet... line, and it does the same.The same architecture worked for the stockwatcher project, and there I have no idea of what's wrong. What could be the problem ? Any idea ? Thank you very much Nicolas -- 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.
No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet;
Getting this error: -- No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; PackageStructure is like that: +client: Na.java NaRPC.java NaRPCAsynch.java +server NaRPCImpl.java +shared DMXLicenseDTO.java XML file is: module rename-to=nomadadmin inherits name='com.google.gwt.user.User'/ inherits name=com.smartgwtee.SmartGwtEE/ !-- inherits name='com.horizant.dmx.synch.server.data'/-- entry-point class='com.ho.nomad.client.Na'/ source path=client/ source path=server/ source path=shared/ servlet path=/mService class=com.ho.nomad.server.NaRPCImpl/ /module Error is like that: [ERROR] Errors in 'file:/C:/..Projects/NomadAdmin/NomadAdmin/src/ com/ho/nomad/server/NaRPCImpl.java' [ERROR] Line 6: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? [ERROR] An internal compiler exception occurred com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:75) at com.google.gwt.dev.jjs.impl.BuildTypeMap $BuildDeclMapVisitor.process(BuildTypeMap.java:595) at com.google.gwt.dev.jjs.impl.BuildTypeMap $BuildDeclMapVisitor.visit(BuildTypeMap.java:309) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java: 1198) . cut What is wrong? Everything seems to be ok? Please advice -- 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-tool...@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.
Getting No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet
Trying to compile my smartGWT project when added RemoteService features and constantly getting: Compiling module com.ho.nomad.NomadAdmin Validating newly compiled units [ERROR] Errors in 'file:/C:/..Projects/NomadAdmin/NomadAdmin/src/ com/ho/nomad/server/NomadRPCImpl.java' [ERROR] Line 6: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? [ERROR] An internal compiler exception occurred com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:75) at com.google.gwt.dev.jjs.impl.BuildTypeMap $BuildDeclMapVisitor.process(BuildTypeMap.java:595) at com.google.gwt.dev.jjs.impl.BuildTypeMap $BuildDeclMapVisitor.visit(BuildTypeMap.java:309) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java: 1198) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java: 687) at com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java: 883) at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java: 873) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java: 455) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java: 32) at com.google.gwt.dev.Precompile.precompile(Precompile.java:522) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:159) [ERROR] no source info: public class com.google.gwt.user.server.rpc.RemoteServiceServlet extends com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet implements : com.google.gwt.user.server.rpc.SerializationPolicyProvider /* fields */ private final [unresolved] Mapjava.lang.String,Unresolved type com.google.gwt.user.server.rpc.SerializationPolicy serializationPolicyCache /* methods */ public void init() [unresolved] protected Unresolved type com.google.gwt.user.server.rpc.SerializationPolicy doGetSerializationPolicy(Unresolved type javax.servlet.http.HttpServletRequest, java.lang.String, java.lang.String) [unresolved] private Unresolved type com.google.gwt.user.server.rpc.SerializationPolicy getCachedSerializationPolicy(java.lang.String, java.lang.String) [unresolved] public final Unresolved type com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicy(java.lang.String, java.lang.String) [unresolved] static Unresolved type com.google.gwt.user.server.rpc.SerializationPolicy loadSerializationPolicy(Unresolved type javax.servlet.http.HttpServlet, Unresolved type javax.servlet.http.HttpServletRequest, java.lang.String, java.lang.String) [unresolved] protected void onAfterResponseSerialized(java.lang.String) [unresolved] protected void onBeforeRequestDeserialized(java.lang.String) [unresolved] public java.lang.String processCall(java.lang.String) throws Unresolved type com.google.gwt.user.client.rpc.SerializationException public final void processPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) throws java.io.IOException, javax.servlet.ServletException, com.google.gwt.user.client.rpc.SerializationException [unresolved] private void putCachedSerializationPolicy(java.lang.String, java.lang.String, Unresolved type com.google.gwt.user.server.rpc.SerializationPolicy) [unresolved] protected boolean shouldCompressResponse(Unresolved type javax.servlet.http.HttpServletRequest, Unresolved type javax.servlet.http.HttpServletResponse, java.lang.String) [unresolved] private void writeResponse(Unresolved type javax.servlet.http.HttpServletRequest, Unresolved type javax.servlet.http.HttpServletResponse, java.lang.String) throws java.io.IOException org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding [ERROR] at NomadRPCImpl.java(6): class NomadRPCImpl com.google.gwt.dev.jjs.ast.JClassType Any ideas what can be wrong? Thank you -- 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-tool...@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.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet;
I guess that you need to include the gwt-servlet.jar in your classpath. make sure that it is also present in the lib of your app server. On Mon, Mar 22, 2010 at 8:48 PM, Mykhaylo Lytvynuk lytvyn...@gmail.comwrote: Getting this error: -- No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; PackageStructure is like that: +client: Na.java NaRPC.java NaRPCAsynch.java +server NaRPCImpl.java +shared DMXLicenseDTO.java XML file is: module rename-to=nomadadmin inherits name='com.google.gwt.user.User'/ inherits name=com.smartgwtee.SmartGwtEE/ !-- inherits name='com.horizant.dmx.synch.server.data'/-- entry-point class='com.ho.nomad.client.Na'/ source path=client/ source path=server/ source path=shared/ servlet path=/mService class=com.ho.nomad.server.NaRPCImpl/ /module Error is like that: [ERROR] Errors in 'file:/C:/..Projects/NomadAdmin/NomadAdmin/src/ com/ho/nomad/server/NaRPCImpl.java' [ERROR] Line 6: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module? [ERROR] An internal compiler exception occurred com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:75) at com.google.gwt.dev.jjs.impl.BuildTypeMap $BuildDeclMapVisitor.process(BuildTypeMap.java:595) at com.google.gwt.dev.jjs.impl.BuildTypeMap $BuildDeclMapVisitor.visit(BuildTypeMap.java:309) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java: 1198) . cut What is wrong? Everything seems to be ok? Please advice -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@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.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet;
Thank you Rudolf for the reply. But I have all jars: gwt-api-checker.jar gwt-dev.jar gwt-servlet.jar gwt-soyc-vis.jar gwt-user.jar Included in my project build path in Eclipse, but it seems to me GWT compiler doesn't really care about Eclipse Java settings. How to include jars in GWT compiler, I have no idea. In Google settings for the project In Web Toolkit I have selected Use Google Web Toolkit and UseDefault SDK gwt-2.0.2 No other changes can be done. I guess that you need to include the gwt-servlet.jar in your classpath. make sure that it is also present in the lib of your app server. -- 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-tool...@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.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet;
You have a bug in your module's .gwt.xml file here: source path=server/ This line should be removed. It's telling GWT to compile the code in your server directory to javascript. Paul -- 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-tool...@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.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet;
Thank you Paul, but without this line my other client class DashboardView which does that: NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPCImpl.class); ((ServiceDefTarget) service).setServiceEntryPoint(GWT .getModuleBaseURL() + /NoService); Complains like that: [ERROR] Errors in 'file:/C:/..Projects/NoAdmin/NoAdmin/src/com/ ho/no/client/view/DashboardView.java' [ERROR] Line 80: No source code is available for type com.ho.no.server.NoRPCImpl; did you forget to inherit a required module? it puzzles me. On Mar 23, 1:44 pm, Paul Robinson ukcue...@gmail.com wrote: You have a bug in your module's .gwt.xml file here: source path=server/ This line should be removed. It's telling GWT to compile the code in your server directory to javascript. Paul -- 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-tool...@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.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet;
Instead of NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPCImpl.class); try NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPC.class); or whatever you've called the non-async version of your rpc. You can only pass client-side classes to GWT.create() Paul Mykhaylo Lytvynuk wrote: Thank you Paul, but without this line my other client class DashboardView which does that: NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPCImpl.class); ((ServiceDefTarget) service).setServiceEntryPoint(GWT .getModuleBaseURL() + /NoService); Complains like that: [ERROR] Errors in 'file:/C:/..Projects/NoAdmin/NoAdmin/src/com/ ho/no/client/view/DashboardView.java' [ERROR] Line 80: No source code is available for type com.ho.no.server.NoRPCImpl; did you forget to inherit a required module? it puzzles me. On Mar 23, 1:44 pm, Paul Robinson ukcue...@gmail.com wrote: You have a bug in your module's .gwt.xml file here: source path=server/ This line should be removed. It's telling GWT to compile the code in your server directory to javascript. Paul -- 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-tool...@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.
Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet;
Ah that is right! Thank you On Mar 23, 2:26 pm, Paul Robinson ukcue...@gmail.com wrote: Instead of NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPCImpl.class); try NoRPCAsync service = (NoRPCAsync) GWT.create(NoRPC.class); or whatever you've called the non-async version of your rpc. You can only pass client-side classes to GWT.create() Paul -- 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-tool...@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.