Your .xml seems out of place

On 17 ago, 18:12, Sleeveen <[email protected]> wrote:
> I'm in the process of trying to create my first reusable module in
> GWT. For
> now, this module contains only some simple classes to be used as part
> of a
> GWT RPC implementation. The module DOES NOT have an entry-point, just
> source
> path specifications.
>
> This code would normally go into the "shared" subfolder of a standard
> GWT project;
> I just want to be able to reuse these classes. I'm fairly certain that
> I have
> complied with the GWT RPC serializability rules (although I do use
> Java generics,
> which shouldn't be a problem - right?).
>
> My source structure for the module is similar to:
>
> src
>     org
>         base
>             subpackage1
>                 A.java
>                 B.java
>                 C.java
>             subpackage2
>                 generated
>                     X.java
>                     Y.java
>                     Z.java
>             my-module.gwt.xml
>
> The my-module.gwt.xml file looks like:
>
>     <?xml version="1.0" encoding="UTF-8"?>
>     <module rename-to='my-module'>
>
>       <source path='subpackage1'/>
>       <source path='subpackage2'/>
>
>     </module>
>
> I have created a my-module.jar file that is structured as follows:
>
> META-INF
> org
>     base
>         subpackage1
>             A.java
>             A.class
>             B.java
>             B.class
>             C.java
>             C.class
>         subpackage2
>                 generated
>                     X.java
>                     X.class
>                     Y.java
>                     Y.class
>                     Z.java
>                     Z.class
>         my-module.gwt.xml
>
> In the module where I'm attempting to use the X class:
>     - I've added my-module.jar to war/WEB-INF/lib
>     - I've added   <inherits name="org.base.my-module"/> to
> my .gwt.xml file
>     - I've adde my-module.jar to the java build path libraries
>
> In the class where I'm attempting to use the X class I have:
>
>     import org.base.subpackage2.generated.X;
>
> And the GWT compiler is indicating that:
>
>     The import org.base cannot be resolved.
>
> This is probably something really obvious (for the non-noobs ;-)
>
> Any assistance would be appreciated.
>
> Cheers!

-- 
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.

Reply via email to