How to cache DTD in Eclipse for GWT 2.0

897 views
Skip to first unread message

Sagar

unread,
Jan 8, 2010, 10:10:22 AM1/8/10
to Google Web Toolkit
Hi

I just installed fresh copy of eclipse and gwt plugin on it. but now
the problem is each time i am doing something in ui.xml file, eclipse
is trying to fetch the dtd.

i am behind proxy which is 1000 miles away

is there any way to cache the http://dl.google.com/gwt/DTD/xhtml.ent
in eclipse, so it dosent try to fetch it every time.

i read somewhere that i can use XML Catalog feature, but dont know how
it works, also in that XML Catalog window i see red mark next to
following two entries.

Location: http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd
URI: http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd
Key Type: Namespace Name
Key: urn:import:com.google.gwt.user.client.ui


Location: http://dl.google.com/gwt/dtd/uibinder.xsd
URI: http://dl.google.com/gwt/dtd/uibinder.xsd
Key Type: Namespace Name
Key: urn:ui:com.google.gwt.uibinder

olivier nouguier

unread,
Jan 8, 2010, 10:46:07 AM1/8/10
to google-we...@googlegroups.com
In eclipses:
Preferences >> XML >> Catalog 
In User part you can add your custom catalog. 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.






--
A coward is incapable of exhibiting love; it is the prerogative of the brave.
--
Mohandas Gandhi

Jason Parekh

unread,
Jan 8, 2010, 10:50:21 AM1/8/10
to google-we...@googlegroups.com
So once you download the two URLs you've already listed, click on
'Add' and then 'File system' and point it to one of the files (do the
same for the other.) I just verified this indeed works.

jason

Sagar

unread,
Jan 8, 2010, 11:39:27 AM1/8/10
to Google Web Toolkit
still no luck... eclipse just hangs whenever i start editing
the .ui.xml files.

Jason Parekh

unread,
Jan 8, 2010, 12:07:07 PM1/8/10
to google-we...@googlegroups.com
Yikes, didn't realize Eclipse hangs as it tries to retrieve the file.
Is Eclipse set up for your proxy?

Also, could you try clearing all files in
WORKSPACE/.metadata/.plugins/org.eclipse.wst.internet.cache ?


On Fri, Jan 8, 2010 at 11:39 AM, Sagar <sagar...@gmail.com> wrote:
> still no luck... eclipse just hangs whenever i start editing
> the .ui.xml files.
>
>

Craigo

unread,
Jan 10, 2010, 6:22:38 PM1/10/10
to Google Web Toolkit
Thanks Olivier. I downloaded the xsd files and added them into
Preferences >> XML >> XML Catalog. Eclipse no longer hangs when
trying to d/l the xsd files, and editing the ui.xml files is now super
fast.

On Jan 9, 2:46 am, olivier nouguier <olivier.nougu...@gmail.com>
wrote:


> In eclipses:
> Preferences >> XML >> Catalog
> In User part you can add your custom catalog.
>
>
>
> On Fri, Jan 8, 2010 at 4:10 PM, Sagar <sagar.i...@gmail.com> wrote:
> > Hi
>
> > I just installed fresh copy of eclipse and gwt plugin on it. but now
> > the problem is each time i am doing something in ui.xml file, eclipse
> > is trying to fetch the dtd.
>
> > i am behind proxy which is 1000 miles away
>

> > is there any way to cache thehttp://dl.google.com/gwt/DTD/xhtml.ent


> > in eclipse, so it dosent try to fetch it every time.
>
> > i read somewhere that i can use XML Catalog feature, but dont know how
> > it works, also in that XML Catalog window i see red mark next to
> > following two entries.
>
> > Location:
> >http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd
> > URI:    http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd
> > Key Type:       Namespace Name
> > Key:            urn:import:com.google.gwt.user.client.ui
>
> > Location:      http://dl.google.com/gwt/dtd/uibinder.xsd
> > URI:    http://dl.google.com/gwt/dtd/uibinder.xsd
> > Key Type:       Namespace Name
> > Key:            urn:ui:com.google.gwt.uibinder
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>

reda ABDI

unread,
Sep 1, 2011, 6:30:00 AM9/1/11
to google-we...@googlegroups.com
Eclipse still freeze and is slow to give suggestions.
Reply all
Reply to author
Forward
0 new messages