Thanks, Hilco, for offering to help out.
(It may be that, working in true-beginner learning mode as I am, that
using Lukas Laag's gwt-svg library as my test case, as the external
module I wish to include in my simple gwt app, is more complicating
than need be. If there is some classic gwt add-on, 3rd party external
module that would be a better -- simpler -- test case, please suggest
it).
In svgApp/src/examples, where client/ server/ and shared/ directories
are found, I have svgApp.gwt.xml which includes this line:
<!-- Other module inherits -->
<inherits name='org.vectomatic.dom.svg'/>
I put the gwt-svg jar in svgApp/war/WEB-INF/lib, which has this
listing:
gwt-servlet-deps.jar
gwt-servlet.jar
lib-gwt-svg-0.5.4.jar
# which has these contents:
# jar tvf lib-gwt-svg-0.5.4.jar | grep gwt.xml
# 2141 Wed Nov 02 18:54:46 PDT 2011 org/vectomatic/libgwtsvg.gwt.xml
And the error message is:
00:00:00.032 [TRACE] Loading inherited module
'org.vectomatic.dom.svg'
00:00:00.032 [ERROR] Unable to find 'org/vectomatic/dom/
svg.gwt.xml' on your classpath; could be a typo,
or maybe you forgot to include a classpath
entry for source?
Is war/WEB-INF/lib the wrong place for me to put the client-side
external module jar?
Thanks for any advice!
- Paul
On Jan 19, 2:12 pm, Hilco Wijbenga <[email protected]> wrote:
> On 19 January 2012 13:37, Paul Shannon <[email protected]>
> wrote:
>
> > I prefer not to do my GWT programming in Eclipse, nor in any IDE, even
> > though that seems to be what most people use.
>
> Only the script kiddies. ;-)
>
> > I looked far and wide for instruction on how to add an external
> > module (like gwt-svg) to a GWT project, tried lots of variations on
> > adding "inherits" to myProj.gwt.xml, looking for place to specify
> > classpath, adding the external jar at various places in the project
> > directory structure -- but always not quite succeeding.
>
> > Doing this in Eclipse is well-documented, easily achieved.
>
> I have no idea how to do this in Eclipse but I don't see why a more
> manual/CLI approach would be any different.
>
> > If I must persist :} in my command-line approach to GWT, can anyone
> > explain to me what I am missing? What exactly are all the steps
> > needed to add an external project?
>
> Add the necessary dependency to your POM (or dump it in your lib
> directory if you're not using Maven) [don't forget the sources JAR!]
> and add an inherits line to your *.gwt.xml. That's it.
>
> You seem to be doing this already, so it might help if you gave
> specific error messages.
--
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.