Unable to find 'xml.gwt.xml' on your classpath

5,017 views
Skip to first unread message

mechprince

unread,
Oct 9, 2008, 1:52:55 PM10/9/08
to Google Web Toolkit
Looks like my earlier post got 'lost' somehow.
Anyways, as I'm in dire need of help, I've decided to post it again.

My app used GWT 1.4.62 and things were going along fine. I switched to
1.5.2 couple of days back and suddenly started getting the following
error on load of the first screen (login page) of the app:
[ERROR] Unable to find 'xml.gwt.xml' on your classpath; could be a
typo, or maybe you forgot to include a classpath entry for source?

I do not have a xml.gwt.xml at all in my project and do not know from
where it is being picked up. The weird part of it all is that even
after reverting to 1.4.62, I still get the same error.
I deleted the existing GWT module, created a new one, cleaned up cache/
build folders etc, but to no avail; the problem still persists.

Any help is appreciated.

Thanks.

mechprince

unread,
Oct 9, 2008, 2:43:52 PM10/9/08
to Google Web Toolkit
Additional info on the problem:
1. I use ext-js-2.0.2, gwt-ext-2.0.4, gwt-1.5.2 (tried 1.4.62 as
well), cypal plugin for eclipse
2. My GWT module definition is as follows:
<module>

<inherits name="com.google.gwt.user.User"></inherits>
<inherits name="com.ssc.osa.osawt.workspace.Container"></inherits>
<inherits name="com.gwtext.GwtExt"></inherits>
<entry-point class='com.ssc.rsw.dashboard.client.RSWContainer'></
entry-point>
<stylesheet src="css/rsw.css"></stylesheet>
</module>

Thanks.

mechprince

unread,
Oct 9, 2008, 11:28:51 AM10/9/08
to Google Web Toolkit
I was using GWT-1.4.62 for a couple of weeks and recently switched to
1.5.2.
After the switch, I started getting the following error:
[ERROR] Unable to find 'xml.gwt.xml' on your classpath; could be a
typo, or maybe you forgot to include a classpath entry for source?

Firstly, I do not have a 'xml.gwt.xml'. I don't know from where GWT is
picking it up.
Secondly, I reverted back to 1.4.62, but still the problem persists.
I have cleaned-up the eclipse project, created a new GWT module,
deleted the contents of cache folders etc, but nothing has changed;
the problem still persists.

Am I missing anything here?
Any help is greatly appreciated as I'm stuck on this for the past 2
days.

Thanks.

mechprince

unread,
Oct 21, 2008, 11:53:07 AM10/21/08
to Google Web Toolkit
Just thought I'd post how this issue got resolved.
It turned out that the GWT version had nothing to do with the issue.
My eclipse project has a tomcat folder that contains web.xml. This
web.xml had mappings to many servlets being used by my app.
While trying to install a new GWT or while trying to run the app on
the tomcat server, this web.xml must have got cleared off its servlet
mappings (my assumption of course).
All of my xml requests are handled thru a home grown XMLServlet, and
since it was unavailable in web.xml, this error had started happening.

Once I fixed the web.xml to include all the needed mappings, the error
went away.

Thanks.

sled dog

unread,
Oct 27, 2008, 1:33:05 AM10/27/08
to Google Web Toolkit
Hey - I've run into the same error although it sounds like it is a
different issue... I just started playing with GWT. I have another
Tomcat instance on my box. I guess I want to know what you changed
into the web.xml to get this cleaned up. Could you post a clearer
picture of what you had to do. Thanks!
-Jim

sal...@gmail.com

unread,
Oct 27, 2008, 9:35:33 AM10/27/08
to Google Web Toolkit
Every time we switch versions of GWT, the build process clobbers our
web.xml file. We have download our old web.xml from the Subversion
store, and then 'touch' the web.xml so that the build process wouldn't
clobber it again the next time.

sled dog

unread,
Oct 30, 2008, 12:32:15 AM10/30/08
to Google Web Toolkit
Anyone? - I'm a total noob to the Eclipse JDT and GWT, so I am just
trying to work through the tutorial for the Stock Watcher.
I think that I just need to find the setting in eclipse where I can
set the classpath needed, but can't find where - - -

Here is a summary of my errors:
In the GWT Browser window, I get:
Cannot find resource 'StockWatcher.html' in the public path of module
'com.google.gwt.sample.stockwatcher.StockWatcher'
In the Dev Shell trace window, I get:
"
[TRACE] The development shell servlet received a request for
'StockWatcher.html' in module
'com.google.gwt.sample.stockwatcher.StockWatcher.gwt.xml'
[TRACE] Loading module
'com.google.gwt.sample.stockwatcher.StockWatcher'
[TRACE] Loading inherited module 'com.google.gwt.user.User'
[ERROR] Unable to find 'com/google/gwt/user/User.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?
[ERROR] Line 4: Unexpected exception while processing element
'inherits'
[ERROR] Failure while parsing XML
"
In the "Line 4 error, the element "inherits" points to <inherits
name='com.google.gwt.user.User'/>
All that pathing was done by the google gwt scripts in the tutorial.
No idea why that is not working....

-Jim

Ian Bambury

unread,
Oct 30, 2008, 12:44:21 AM10/30/08
to Google-We...@googlegroups.com
Highlight the project in Package Explorer in Eclipse
 
Go to Project | Properties

Select Java Build Path in the tree on the left

Select the Libraries tab on the right

I think you might be missing the GWT jars there.

If you are, click on Add External Jar and add "gwt-user.jar" from wherever you extracted the GWT files to, then do the same for "gwt-dev-windows.jar" (or gwt-dev-linux or wharever)

If that isn't it, then post again.

Actually, if that *is* it, post again as well, so if other people find this thread, they'll know it worked for you.

sled dog

unread,
Oct 30, 2008, 11:28:28 PM10/30/08
to Google Web Toolkit
Perfecto!!
I knew I needed to put some jar somewhere, but didn't look in there.
Awesome - thanks so much for lending a hand.....

-Jim

DavidJE

unread,
Nov 10, 2008, 9:30:30 AM11/10/08
to Google Web Toolkit
I experienced the same problem. I had Eclipse 3.4.1 and GWT 1.5.2
working perfectly. I don't know what caused the issue, but now when I
Import the StockWatcher application (per the GWT's tutorial), there is
a second StockWatcher folder underneath the StockWatcher package in
the Eclipse Package Explorer. Ideally, the structure should look
like:

StockWatcher
+ src
+ com.google.gwt.samples...
test
...

On the PC I experienced the problem, the folder structure is:

StockWatcher
src (empty)
test
.....
StockWatcher
+src
+ com.google.gwt.samples...
test
.....

The second level StockWatcher folder is not present on a PC that
doesn't have the problem. To veirfy, I opened the src folder and
dragged the com.google.gwt.... sub folder to the top-level src folder
and then did the same with tomcat folder and the other scripts. I
received one error while copying Tomcat, but I allowed refactoring to
continue and all works as it should now.

As to what broke, I did install PyDev to author Python as I play with
AppEngine. I don't know for certain yet that this is what broke it,
but it's the only major change I've made to my Eclipse environment.

More interesting is that I re-extracted Eclipse into a new directory
and the problem followed the installation...so maybe the problem is
related to files within my Workspace. I made sure that the
StockWatcher folders in the workspace and gwt folders were removed
during my testing. I have a bit more analysis to do before I can say
for sure what caused the problem.

Hope this helps! Now to learn about GWT, RPCs, and JSON :)

David
Reply all
Reply to author
Forward
0 new messages