Re: Keep getting ClassNotFoundException for a server-side class from inherited project?
So I couldn't get this to work by using project references in eclipse. Project references work fine for client-side code. My two projects again look like:
ProjectBase
ProjectZebra
so in eclipse, I linked the "src" folder of "ProjectBase" from ProjectZebra. I gave it a name like "src-ProjectBase". Then eclipse can do its local compiles ok, and deploys now work ok with it too (both clientside and serverside code).
Thanks
On Saturday, 24 November 2012 16:40:24 UTC-5, markww wrote:
Hi,I have a gwt project, called "base". It has a class in its "server" package, Foo.java:com.me.test.server.Foo;I have another gwt project called "zebra", which references project "base". This is done in eclipse, in the Java Build Path settings.I'm trying to use the Foo class server-side in the "zebra" project. Both projects compile and deploy fine, but "zebra" throws a ClassNotFoundException for the Foo class when I try to use it at runtime (all server side).I chose the option in eclipse to export "base" (in the Order and Export settings), but still no luck. The "zebra" project also imports "base" via the gwt module xml file, but I don't think that matters here since this is server-side code. All the clientside classes that are inherited from "base" work fine:// in zebra's gwt.xml file:<inherits name='com.me.test.Base' />Do we need a special directive to get "zebra" to also include the server classes from "base" when it is deployed? Everything compiles fine.Thank you
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SG10vU9jci4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home