Here's my gwt.xml file that I used for my project that worked for me.
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='sacredheart'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.google.gwt.http.HTTP"/>
<inherits name="com.google.gwt.i18n.I18N"/>
<inherits name="com.google.gwt.widgetideas.GlassPanel"/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<!-- Other module inherits -->
<inherits name='org.gwt.mosaic.Mosaic' />
<inherits name='org.gwt.mosaic.forms.Forms' />
<stylesheet src="gwt/standard/Mosaic.css" />
<!-- <stylesheet src="gwt/chrome/Mosaic.css" /> -->
<!-- <stylesheet src="gwt/dark/Mosaic.css" /> -->
<inherits name='org.cobogw.gwt.event.Event' />
<inherits name='eu.future.earth.gwt.FtrGwtDate' />
<!-- Specify the app entry point class. -->
<entry-point class='ece456.client.SacredHeart'/>
<extend-property name="locale" values="en_CA,fr_CA"/>
</module>
My directory structure is as follows:
projectdir/
src/
ece456/
SacredHeart.gwt.xml
client/
server/
war/
SacredHeart.html
SacredHeart.css
WEB-INF/
web.xml
as of 1.6, the servlet path in the gwt.xml file is deprecated - the
configuration goes into the web.xml file
<servlet>
<servlet-name>someArbitraryName</servlet-name>
<servlet-class>fully-qualified class name for rpc impl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>someArbitraryName</servlet-name>
<url-pattern>/<module_name>/<name you specified in the service
interface annotation></url-pattern>
</servlet-mapping>
& you add the appropriate annotation to the (non-async) service interface.
There's also a webAppCreator script in GWT that'll create a sample 1.6
project for you, so you can check out what the error might be.
It also creates the build.xml file for you, which you really should
use instead of manually invoking the Compiler.
On Fri, Apr 10, 2009 at 6:27 PM, DavidMaffitt <[email protected]> wrote:
>
> In addition, I am compiling with:
>
> #!/bin/sh
>
> APPDIR=`dirname $0`;
>
> CP="$APPDIR/src:$APPDIR/bin"
> CP=$CP:/opt/gwt/gwt-user.jar
> CP=$CP:/opt/gwt/gwt-dev-linux.jar
> CP=$CP:/opt/restlet/lib/org.restlet.gwt.jar
> CP=$CP:/home/drm/projects/rideLog/domain/dist/
> rideLogDomain_gwtmodule.jar
>
> java -Xmx256M -cp $CP com.google.gwt.dev.Compiler ridelog.ridelog;
>
>
> -dave
>
>
> On Apr 10, 5:15 pm, DavidMaffitt <[email protected]> wrote:
>> Thanks for the replies. I don't think it is a case sensitivity
>> issue. The compiler wouldn't see the module at all or were you
>> refering to a different parameter?
>>
>> I grep-ed through the client code and didn't find any unintentional
>> references to this class.
>>
>> I've done two other things.
>> 1. switched to gwt 1.6.4. same error
>> 2. turned logLevel on the com.google.gwt.dev.Compiler to ALL. The
>> copious output contains:
>>
>> Translatable source found in...
>> Unexpected entry in classpath; /home/drm/projects/rideLog/bin is
>> neither a directory nor an archive (.jar or .zip)
>> Refreshing resources
>> Searching for resources within file:/home/drm/projects/
>> rideLog/src/
>> Descending into dir: /home/drm/projects/rideLog/src/
>> ridelog
>> Filter excludes file: ridelog/ridelog.gwt.xml
>> Descending into dir: /home/drm/projects/rideLog/src/
>> ridelog/server
>> Descending into dir: /home/drm/projects/rideLog/src/
>> ridelog/server/service
>> Filter excludes file: ridelog/server/
>> service/.RemoteRideLogServiceImpl.java.swp
>> Including file: ridelog/server/service/
>> RemoteRideLogServiceImpl.java
>>
>> It is bound and determined to follow the server subpackage. Could my
>> module be in the wrong place?
>> The package root is ridelog. I have ridelog.gwt.xml in the ridelog
>> directory with the client and server directories.
>>
>> -dave
>>
>> On Apr 10, 2:15 pm, Vitali Lovich <[email protected]> wrote:
>>
>> > Sorry - mistake in the path:
>>
>> > grep RemoteRideLogServiceImpl
>> > /home/drm/projects/rideLog/client/src/ridelog/client/* -rl
>> > --include='*.java'
>>
>> > On Fri, Apr 10, 2009 at 3:14 PM, Vitali Lovich <[email protected]> wrote:
>> > > grep RemoteRideLogServiceImpl
>> > > /home/drm/projects/rideLog/client/src/ridelog/.* -rl
>> > > --include='*.java'
>>
>> > > Even if you don't use the class in the client code (which you can't),
>> > > you may have an import declaration somewhere for it in your src code
>> > > by accident.
>>
>> > > On Fri, Apr 10, 2009 at 3:02 PM, selvan <[email protected]> wrote:
>>
>> > >> Could it be case sensitivity issue here...?
>>
>> > >> "Ridelog.gwt.xml" instead of "ridelog.gwt.xml"
>>
>> > >> On Apr 10, 9:33 am, DavidMaffitt <[email protected]> wrote:
>> > >> > This is driving me nuts! What am I missing?
>>
>> > >> > Building my app causes the error:
>>
>> > >> > [ERROR] Errors in 'file:/home/drm/projects/rideLog/client/src/ridelog/
>> > >> > server/service/RemoteRideLogServiceImpl.java'
>> > >> > [ERROR] Line 11: No source code is available for type
>> > >> > com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to
>> > >> > inherit a required module?
>>
>> > >> > All the client and server code is separated in
>> > >> > /home/drm/projects/rideLog/src/ridelog/client
>> > >> > and
>> > >> > /home/drm/projects/rideLog/src/ridelog/server
>> > >> > as recommended
>> > >> > byhttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>>
>> > >> > There is no need to compile the server subpackage to javascript and
>> > >> > that
>> > >> > behavior is described as the default. Yet I still get the above
>> > >> > error.
>>
>> > >> > The Module is /home/drm/projects/rideLog/src/ridelog/ridelog.gwt.xml
>> > >> > and conatains:
>>
>> > >> > <module>
>>
>> > >> > <inherits name='com.google.gwt.user.User'/>
>> > >> > <inherits name='ridelog_domain'/>
>>
>> > >> > <!-- make this explicit though it is supposed to be the default
>> > >> > and -->
>> > >> > <!-- not follow server subpackage -->
>> > >> > <source path="client" />
>>
>> > >> > <entry-point class='ridelog.client.ridelog'/>
>>
>> > >> > <stylesheet src='ridelog.css' />
>>
>> > >> > <!-- Servlet mapping for usage in hosted mode environment --
>>
>> > >> > <servlet path="/rideLogService"
>> > >> > class="ridelog.server.service.RemoteRideLogServiceImpl"/>
>>
>> > >> > </module>
>>
>> > >> > Could this be a bug in my environment? fedora core 9, gwt 1.5.3,
>> > >> > OpenJDK Runtime Environment (build 1.6.0-b09).
>>
>> > >> > Any suggestions, including words of encouragement appreciated.
>>
>> > >> > -dave
>>
>>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---