Home » Language IDEs » ServerTools (WTP) » WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets
WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #100720] |
Sat, 07 May 2005 02:36 |
Eclipse User |
|
|
|
Originally posted by: laurentd75___no.sp_am.yahoo.fr
Hi,
As reported in previous posts, I am really annoyed that WTP requires an
Internet connection to enable creation of Webapp modules and servlets, and
would really like to find a workaround to allow 'offline development'.
To allow for creating Webapps in offline mode, I gather I should download
the Webapp 2.2/2.3 DTDs and Webapp 2.4 XSD to my hard disk and configure XML
Catalog so that WTP uses local 'cached' versions instead of trying to go
online.
I read the XML Catalog tutorial for M2
( http://www.eclipse.org/webtools/testtutorials/M2/xml/XMLCata logTutorial.htm
l) but this was not really useful since the example does not cover the
mapping of a DTD URL to a local file.
Furthermore, I wonder whether the XML Catalog functionality has been updated
since M2, and if so, whether the tutorial will be updated sometime soon.
Now, my question is: how do I configure an XML Catalog entry for mapping the
Webapp 2.3 DTD (http://java.sun.com/dtd/web-app_2_3.dtd) to a local file
(say: c:\eclipse\xmlcatalog\web-app_2_3.dtd):
What shall I enter in the following fields:
- URI
- Key type
- Key
And do I have to check the "Specify alternative web address" checkbox, and
if so, what should I type in the field below ?
And finally, if I can get it all configured:
- will it stop WTP from trying to get online when I create a Webapp module ?
- will it enable me to create a Servlet in offline mode ?? (since the
Servlet wizard fails when there's no Internet connection)
TIA,
Laurent
|
|
|
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #100773 is a reply to message #100720] |
Sat, 07 May 2005 16:47 |
Haris Peco Messages: 1072 Registered: July 2009 |
Senior Member |
|
|
Laurent,
I try it and it work fine.I don't check "Specify alternative web address",
and I suppose that it work when local file doesn't exists.
Validator will find definitoon file in classpath , too
regards
Laurent D wrote:
> Hi,
>
> As reported in previous posts, I am really annoyed that WTP requires an
> Internet connection to enable creation of Webapp modules and servlets, and
> would really like to find a workaround to allow 'offline development'.
>
> To allow for creating Webapps in offline mode, I gather I should download
> the Webapp 2.2/2.3 DTDs and Webapp 2.4 XSD to my hard disk and configure
> XML Catalog so that WTP uses local 'cached' versions instead of trying to
> go online.
>
> I read the XML Catalog tutorial for M2
>
( http://www.eclipse.org/webtools/testtutorials/M2/xml/XMLCata logTutorial.htm
> l) but this was not really useful since the example does not cover the
> mapping of a DTD URL to a local file.
>
> Furthermore, I wonder whether the XML Catalog functionality has been
> updated since M2, and if so, whether the tutorial will be updated sometime
> soon.
>
> Now, my question is: how do I configure an XML Catalog entry for mapping
> the Webapp 2.3 DTD (http://java.sun.com/dtd/web-app_2_3.dtd) to a local
> file (say: c:\eclipse\xmlcatalog\web-app_2_3.dtd):
>
> What shall I enter in the following fields:
>
> - URI
> - Key type
> - Key
>
> And do I have to check the "Specify alternative web address" checkbox, and
> if so, what should I type in the field below ?
>
> And finally, if I can get it all configured:
>
> - will it stop WTP from trying to get online when I create a Webapp module
> ? - will it enable me to create a Servlet in offline mode ?? (since the
> Servlet wizard fails when there's no Internet connection)
>
> TIA,
>
> Laurent
|
|
|
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #100798 is a reply to message #100773] |
Sat, 07 May 2005 14:40 |
Eclipse User |
|
|
|
Originally posted by: laurentd75___no.sp_am.yahoo.fr
Well, here is what I tried, and it didn't work
I retrieved the contents of the Webapp 2.3 DTD from
http://java.sun.com/dtd/web-app_2_3.dtd, and saved it to a local file
(C:\Dev\Eclipse3.1M6\xmlcatalog\web-app_2_3.dtd)
Next, I added the following "User specified entry" to the XML Catalog:
URI: file:C:\Dev\Eclipse3.1M6\xmlcatalog\web-app_2_3.dtd
Key Type: Public ID
Key: http://java.sun.com/dtd/web-app_2_3.dtd
(Incidentally: for the "URI" field, the "Browse" button only allows for
browsing files within the workspace, which I find is non-sense ! What is the
reason for that ???)
I then brought my Internet connection down, to see whether Eclipse would use
my XML Catalog entry when failing to connect to retrieve the DTD from the
Internet.
So, I created a new Flexible project, and a new J2EE Web Module, selecting
"2.3" for "Module version".
In the end though, the J2EE Web Module wizard produced the following error
dialog (note that this is a translation from the original message in French,
since I am using a French Windows XP version):
------------------- Save errors: -------------------
The save operation could not be performed. Some associated files may already
have been saved.
Reason: External entity not found:
"http://java.sun.com/dtd/web-app_2_3.dtd".
----------------------------------------------------
So... Can anybody tell me whether I did something wrong ?
Or maybe I didn't get the point about XML Catalog, and it won't enable me to
work around creating Web applications while not connected to the Internet ?
Thanks for your help,
Laurent
"snpe" wrote:
..
> Laurent,
> I try it and it work fine.I don't check "Specify alternative web
address",
> and I suppose that it work when local file doesn't exists.
> Validator will find definitoon file in classpath , too
> regards
>
> Laurent D wrote:
>
> > Hi,
> >
> > As reported in previous posts, I am really annoyed that WTP requires an
> > Internet connection to enable creation of Webapp modules and servlets,
and
> > would really like to find a workaround to allow 'offline development'.
> >
> > To allow for creating Webapps in offline mode, I gather I should
download
> > the Webapp 2.2/2.3 DTDs and Webapp 2.4 XSD to my hard disk and configure
> > XML Catalog so that WTP uses local 'cached' versions instead of trying
to
> > go online.
> >
> > I read the XML Catalog tutorial for M2
> >
>
( http://www.eclipse.org/webtools/testtutorials/M2/xml/XMLCata logTutorial.htm
> > l) but this was not really useful since the example does not cover the
> > mapping of a DTD URL to a local file.
> >
> > Furthermore, I wonder whether the XML Catalog functionality has been
> > updated since M2, and if so, whether the tutorial will be updated
sometime
> > soon.
> >
> > Now, my question is: how do I configure an XML Catalog entry for mapping
> > the Webapp 2.3 DTD (http://java.sun.com/dtd/web-app_2_3.dtd) to a local
> > file (say: c:\eclipse\xmlcatalog\web-app_2_3.dtd):
> >
> > What shall I enter in the following fields:
> >
> > - URI
> > - Key type
> > - Key
> >
> > And do I have to check the "Specify alternative web address" checkbox,
and
> > if so, what should I type in the field below ?
> >
> > And finally, if I can get it all configured:
> >
> > - will it stop WTP from trying to get online when I create a Webapp
module
> > ? - will it enable me to create a Servlet in offline mode ?? (since the
> > Servlet wizard fails when there's no Internet connection)
> >
> > TIA,
> >
> > Laurent
>
|
|
|
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #100834 is a reply to message #100798] |
Sat, 07 May 2005 15:45 |
Eclipse User |
|
|
|
Originally posted by: laurentd75___no.sp_am.yahoo.fr
> Next, I added the following "User specified entry" to the XML Catalog:
> URI: file:C:\Dev\Eclipse3.1M6\xmlcatalog\web-app_2_3.dtd
> Key Type: Public ID
> Key: http://java.sun.com/dtd/web-app_2_3.dtd
I also tried to replace the URL value in the "Key:" field by the following
(without the quotes):
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
And it didn't work either... Still got the error message when trying to
create a J2EE Web module while not connected to the Internet.
Could anyone please describe in detail the functionality of the XML Catalog,
since the tutorial does not elaborate very much on any details...
It would be real nice to know what to put in the "URI", "Key type" and "Key"
fields for DTDs and XSDs, and whether or not to check the "use alternate web
address" box, anf if so what to put in the field below..
Thanks in advance,
Laurent
|
|
| | |
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #100910 is a reply to message #100869] |
Sat, 07 May 2005 22:49 |
Eclipse User |
|
|
|
Originally posted by: laurentd75___no.sp_am.yahoo.fr
> > I also tried to replace the URL value in the "Key:" field by the
following
> > (without the quotes):
> > "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>
> This is fine.You have DOCTYPE declaration in xml file.
> Check double is key correct
I double-checked, and it doesn't work...
Only thing maybe, my local DTD is outside the workspace (in a folder called
c:\dev\eclipse.1m6\xmlcatalog) but I'm pointing the "URI" field at the right
place though...
Would you be so kind as to export your XML Catalog entries and attach them
to a reply message so I can try them ?
Thanks,
Laurent
|
|
| | | |
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #101325 is a reply to message #100720] |
Mon, 09 May 2005 12:35 |
Eclipse User |
|
|
|
Originally posted by: laurentd75__no___spa_m.yahoo.fr
HELP BADLY NEEDED...
Hi there,
"Refreshing" this thread, because so far, the answers provided didn't help
me solve my problem (although I do thank "snpe" for his time & goodwill).
Does the XML Catalog really work ?
Has anyone succeeded in configuring required entries for caching the
WebApp 2.3 DTD ??
Can anyone tell me *exactly*
- what entries to add to XML Catalog
- what local copies of DTDs are needed
- how each entry must be configured, with the required values for the
"URI", "Key type" and "Key" fields
Thanking you in advance for helping entangling this issue, I'm sure this
will benefit *many* people out there,
Laurent
> I read the XML Catalog tutorial for M2
> ( http://www.eclipse.org/webtools/testtutorials/M2/xml/XMLCata logTutorial.htm
> l) but this was not really useful since the example does not cover the
> mapping of a DTD URL to a local file.
>
> Now, my question is: how do I configure an XML Catalog entry for mapping the
> Webapp 2.3 DTD (http://java.sun.com/dtd/web-app_2_3.dtd) to a local file
> (say: c:eclipsexmlcatalogweb-app_2_3.dtd):
> What shall I enter in the following fields:
> - URI
> - Key type
> - Key
> And do I have to check the "Specify alternative web address" checkbox, and
> if so, what should I type in the field below ?
> And finally, if I can get it all configured:
> - will it stop WTP from trying to get online when I create a Webapp module ?
> - will it enable me to create a Servlet in offline mode ?? (since the
> Servlet wizard fails when there's no Internet connection)
> TIA,
> Laurent
|
|
|
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #101574 is a reply to message #101325] |
Mon, 09 May 2005 18:12 |
Haris Peco Messages: 1072 Registered: July 2009 |
Senior Member |
|
|
Laurent,
Find web-app_2_3.dtd and save in your workspace
Create xmlacatalog user entry like screenschoot
http://www.snpe.co.yu/xmlcatalog.png
regrads
Laurent D wrote:
>
> HELP BADLY NEEDED...
>
> Hi there,
>
> "Refreshing" this thread, because so far, the answers provided didn't help
> me solve my problem (although I do thank "snpe" for his time & goodwill).
>
> Does the XML Catalog really work ?
>
> Has anyone succeeded in configuring required entries for caching the
> WebApp 2.3 DTD ??
>
> Can anyone tell me *exactly*
> - what entries to add to XML Catalog
> - what local copies of DTDs are needed
> - how each entry must be configured, with the required values for the
> "URI", "Key type" and "Key" fields
>
>
> Thanking you in advance for helping entangling this issue, I'm sure this
> will benefit *many* people out there,
>
> Laurent
>
>
>
>> I read the XML Catalog tutorial for M2
>>
( http://www.eclipse.org/webtools/testtutorials/M2/xml/XMLCata logTutorial.htm
>> l) but this was not really useful since the example does not cover the
>> mapping of a DTD URL to a local file.
>>
>> Now, my question is: how do I configure an XML Catalog entry for mapping
>> the Webapp 2.3 DTD (http://java.sun.com/dtd/web-app_2_3.dtd) to a local
>> file (say: c:eclipsexmlcatalogweb-app_2_3.dtd):
>
>> What shall I enter in the following fields:
>
>> - URI
>> - Key type
>> - Key
>
>> And do I have to check the "Specify alternative web address" checkbox,
>> and if so, what should I type in the field below ?
>
>> And finally, if I can get it all configured:
>
>> - will it stop WTP from trying to get online when I create a Webapp
>> module ? - will it enable me to create a Servlet in offline mode ??
>> (since the Servlet wizard fails when there's no Internet connection)
>
>> TIA,
>
>> Laurent
|
|
| | |
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #101747 is a reply to message #101612] |
Tue, 10 May 2005 00:53 |
Eclipse User |
|
|
|
Originally posted by: laurentd75___no.sp_am.yahoo.fr
"Lawrence Mandel" wrote:
> A cache was added in M4 that should download and store schemas and DTD's
> required for validation. You will have to be connected to the internet the
> first time you run validation for the files to cache but after that you
> should be able to work disconnected.
Hi Lawrence,
Many thanks for replying, however it doesn't seem to work for me...
Here's what I did:
- open Internet connection
- started Eclipse 3.1 M6 + WTP M4
- created a new flex project, added 2.3 J2EE Web module to it -- Fine.
- Validated web.xml -- Fine
- Closed Eclipse and Internet connection
- Restarted Eclipse
- created a new flex project, attempted to add a 2.3 Web Module -- Failed
with error "external entity not found'.
I tried this both with and without defining an XML catalog user entry for
the DTD before.
Regarding the XML catalog entry, I tried two approaches (I downloaded
web-app_2_3.dtd from the java.sun.com site)
1) defining an entry with URI pointing to a file *outside* the workspace:
URI: file:C:\Dev\Eclipse3.1M6\xmlcatalog\web-app_2_3.dtd
Key Type: Public ID
Key: -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
Then: created a flexible project ("Offline"), tried to add a 2.3 Web module
to it ("OfflineWeb")
=> didn't work
2) defining an entry with URI pointing to a file *within* a simple Java
project ("Schemas") in my workspace
URI: Schemas/src/web-app_2_3.dtd
Key Type: Public ID
Key: -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
(note: the "src" folder is defined as the Java source folder in my "Schemas"
project)
Then: created a project "Offline2", tried to add a 2.3 Web module to it
("OfflineWeb2")
=> didn't work either
So... Either I got some of the steps wrong, either there's something wrong
in the XML Catalog or in the cache mechanism or in both...
Or maybe I'm just a hopeless fool that had better give up on WTP entirely
;-)
In any case, I don't understand what the classpath has to do with XML
Catalog entries ?!
- do XML Catalog entries need to be in the classpath of *some* project in
the workspace ?
- or do XML Catalog entries need to be in the classpath of the *actual*
flexible project I'm trying to add a Web module to ??
> We're still looking at ways to improve this aspect of the tools. We can't
> include the required schemas and DTD's because we don't have legal
> permission to do so but we are open to suggestions for improvement. One
> idea is to have a list of required schemas and DTD's that you can choose
> to download by agreeing to the relevant licences and clicking a button.
> You will still have to perform an action but you will be able to pull down
> all the required files at once.
This sounds like a dream to me...
|
|
|
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #101755 is a reply to message #101574] |
Tue, 10 May 2005 01:01 |
Eclipse User |
|
|
|
Originally posted by: laurentd75___no.sp_am.yahoo.fr
"snpe" wrote:
> Laurent,
> Find web-app_2_3.dtd and save in your workspace
> Create xmlacatalog user entry like screenschoot
> http://www.snpe.co.yu/xmlcatalog.png
> regrads
Dear "snpe",
Sincerely, many thanks again for trying to help, I really appreciate that.
However, tried as I could, I still couldn't get it to work: see my reply to
Lawrence's post for details, I think I tried every possible combination...
From all this stuff you wrote about classpath, I suspect this may be the
issue so, again, I wonder:
- do XML Catalog entries need to be in the classpath of *some* project in
the workspace ?
- or do XML Catalog entries need to be in the classpath of the *actual*
flexible project I'm trying to add a Web module to ??
As for the cache mechanism, looks like it's not working for me either...
Where are the entries supposed to be saved to anyway, where is the cache
folder ??
Laurent
|
|
| | |
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #101784 is a reply to message #101778] |
Tue, 10 May 2005 01:18 |
Eclipse User |
|
|
|
Originally posted by: laurentd75___no.sp_am.yahoo.fr
> Another detail that may be important:
>
> When I look at my XML Catalog *plugin* entries, I see an error mark on the
> last one. The properties of this last entry are as follows:
>
> URI:
>
file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd
> Key Type: Namespace Name
> Key: http://www.w3.org/2001/XMLSchema
>
I don't mean to "flood" this newsgroup, sorry, but I may have a hint as to
this error:
However, in my Eclipse installation I see no "org.eclipse.xsd" folder in my
plugins directory, so I don't understand why this XML plugin entry is
defined with the last part of the URI being
" platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/XML Schema.xsd "
(Incidentally, I gather this must actually be the *cache* directory for
XSDs)
The actual folder I find in my Eclipse installation is:
C:\Dev\Eclipse3.1M6\plugins\org.eclipse.xsd_2.1.0\cache\www. w3.org\2001
(notice it is "org.eclipse.xsd_2.1.0", *not* "org.eclipse.xsd")
Lastly, this is the only XML Catalog plugin entry I have with this weird,
"two part" URI.
All other plugin entries have only a "one part" URI, e.g. the one for the
WSDL schema:
URI: file:/c:/Dev/Eclipse3.1M6/plugins/org.wsdl4j_1.0.0/xsd/wsdl. xsd
Key Type: Namespace Name
Key: http://schemas.xmlsoap.org/wsdl/
Maybe someone can sched some light on this for me ?
Cheers,
Laurent
|
|
|
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #101900 is a reply to message #101784] |
Tue, 10 May 2005 12:28 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------030802020501040603080003
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Laurent,
For accessing the cached schemas and DTDs in the org.eclipse.xsd plugin
I would expect a URI of the form
platform:/plugin/org.eclipse.xsd/cache... In general,
platform:/plugin/<plugin-id> should give you access to the contents of a
plugin without having to specify the physical location and version of
the plugin. A platform:/resource/<project-name> URI only makes sense to
refer to things in the workspace. Note that platform: URLs are only
supported (I think) if you are running in an Eclipse environment
(headless or GUI).
Laurent D wrote:
>>Another detail that may be important:
>>
>>When I look at my XML Catalog *plugin* entries, I see an error mark on the
>>last one. The properties of this last entry are as follows:
>>
>>URI:
>>
>>
>>
> file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd
>
>
>>Key Type: Namespace Name
>>Key: http://www.w3.org/2001/XMLSchema
>>
>>
>>
>
>I don't mean to "flood" this newsgroup, sorry, but I may have a hint as to
>this error:
>
>However, in my Eclipse installation I see no "org.eclipse.xsd" folder in my
>plugins directory, so I don't understand why this XML plugin entry is
>defined with the last part of the URI being
>" platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/XML Schema.xsd "
>
>(Incidentally, I gather this must actually be the *cache* directory for
>XSDs)
>
>The actual folder I find in my Eclipse installation is:
> C:\Dev\Eclipse3.1M6\plugins\org.eclipse.xsd_2.1.0\cache\www. w3.org\2001
>
>(notice it is "org.eclipse.xsd_2.1.0", *not* "org.eclipse.xsd")
>
>Lastly, this is the only XML Catalog plugin entry I have with this weird,
>"two part" URI.
>
>All other plugin entries have only a "one part" URI, e.g. the one for the
>WSDL schema:
>URI: file:/c:/Dev/Eclipse3.1M6/plugins/org.wsdl4j_1.0.0/xsd/wsdl. xsd
>Key Type: Namespace Name
>Key: http://schemas.xmlsoap.org/wsdl/
>
>Maybe someone can sched some light on this for me ?
>
>Cheers,
>Laurent
>
>
>
>
--------------030802020501040603080003
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Laurent,<br>
<br>
For accessing the cached schemas and DTDs in the org.eclipse.xsd plugin
I would expect a URI of the form
platform:/plugin/org.eclipse.xsd/cache... In general,
platform:/plugin/<plugin-id> should give you access to the
contents of a plugin without having to specify the physical location
and version of the plugin. A platform:/resource/<project-name>
URI only makes sense to refer to things in the workspace. Note that
platform: URLs are only supported (I think) if you are running in an
Eclipse environment (headless or GUI).<br>
<br>
<br>
Laurent D wrote:
<blockquote cite="midd5p2j1$l0o$1@news.eclipse.org" type="cite">
<blockquote type="cite">
<pre wrap="">Another detail that may be important:
When I look at my XML Catalog *plugin* entries, I see an error mark on the
last one. The properties of this last entry are as follows:
URI:
</pre>
</blockquote>
<pre wrap=""><!----><a class="moz-txt-link-freetext" href=" file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd "> file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd </a>
</pre>
<blockquote type="cite">
<pre wrap="">Key Type: Namespace Name
Key: <a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>
</pre>
</blockquote>
<pre wrap=""><!---->
I don't mean to "flood" this newsgroup, sorry, but I may have a hint as to
this error:
However, in my Eclipse installation I see no "org.eclipse.xsd" folder in my
plugins directory, so I don't understand why this XML plugin entry is
defined with the last part of the URI being
" platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/XML Schema.xsd "
(Incidentally, I gather this must actually be the *cache* directory for
XSDs)
The actual folder I find in my Eclipse installation is:
C:\Dev\Eclipse3.1M6\plugins\org.eclipse.xsd_2.1.0\cache\<a class="moz-txt-link-abbreviated" href="http://www.w3.org\2001">www.w3.org\2001</a>
(notice it is "org.eclipse.xsd_2.1.0", *not* "org.eclipse.xsd")
Lastly, this is the only XML Catalog plugin entry I have with this weird,
"two part" URI.
All other plugin entries have only a "one part" URI, e.g. the one for the
WSDL schema:
URI: <a class="moz-txt-link-freetext" href=" file:/c:/Dev/Eclipse3.1M6/plugins/org.wsdl4j_1.0.0/xsd/wsdl. xsd "> file:/c:/Dev/Eclipse3.1M6/plugins/org.wsdl4j_1.0.0/xsd/wsdl. xsd </a>
Key Type: Namespace Name
Key: <a class="moz-txt-link-freetext" href="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a>
Maybe someone can sched some light on this for me ?
Cheers,
Laurent
</pre>
</blockquote>
<br>
</body>
</html>
--------------030802020501040603080003--
|
|
|
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #101913 is a reply to message #101900] |
Tue, 10 May 2005 13:14 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
To confirm what Ed said, in the WebTools "org.eclipse.wst.xsd.ui_1.0.0"
plugin.xml, I changed "platform:/resource/..." to "platform:/plugin/..."
in the catalogContributor entry to correct the error.
Cheers,
Larry
Ed Merks wrote:
> Laurent,
>
> For accessing the cached schemas and DTDs in the org.eclipse.xsd plugin
> I would expect a URI of the form
> platform:/plugin/org.eclipse.xsd/cache... In general,
> platform:/plugin/<plugin-id> should give you access to the contents of a
> plugin without having to specify the physical location and version of
> the plugin. A platform:/resource/<project-name> URI only makes sense to
> refer to things in the workspace. Note that platform: URLs are only
> supported (I think) if you are running in an Eclipse environment
> (headless or GUI).
>
>
> Laurent D wrote:
>
>>>Another detail that may be important:
>>>
>>>When I look at my XML Catalog *plugin* entries, I see an error mark on the
>>>last one. The properties of this last entry are as follows:
>>>
>>>URI:
>>>
>>>
>>>
>> file:/c:/Dev/Eclipse3.1M6/plugins/org.eclipse.wst.xsd.ui_1.0 .0/platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/ XMLSchema.xsd
>>
>>
>>>Key Type: Namespace Name
>>>Key: http://www.w3.org/2001/XMLSchema
>>>
>>>
>>>
>>
>>I don't mean to "flood" this newsgroup, sorry, but I may have a hint as to
>>this error:
>>
>>However, in my Eclipse installation I see no "org.eclipse.xsd" folder in my
>>plugins directory, so I don't understand why this XML plugin entry is
>>defined with the last part of the URI being
>>" platform:/resource/org.eclipse.xsd/cache/www.w3.org/2001/XML Schema.xsd "
>>
>>(Incidentally, I gather this must actually be the *cache* directory for
>>XSDs)
>>
>>The actual folder I find in my Eclipse installation is:
>> C:\Dev\Eclipse3.1M6\plugins\org.eclipse.xsd_2.1.0\cache\www. w3.org\2001
>>
>>(notice it is "org.eclipse.xsd_2.1.0", *not* "org.eclipse.xsd")
>>
>>Lastly, this is the only XML Catalog plugin entry I have with this weird,
>>"two part" URI.
>>
>>All other plugin entries have only a "one part" URI, e.g. the one for the
>>WSDL schema:
>>URI: file:/c:/Dev/Eclipse3.1M6/plugins/org.wsdl4j_1.0.0/xsd/wsdl. xsd
>>Key Type: Namespace Name
>>Key: http://schemas.xmlsoap.org/wsdl/
>>
>>Maybe someone can sched some light on this for me ?
>>
>>Cheers,
>>Laurent
>>
>>
>>
>>
>
|
|
| |
Re: WTP M4 - Configuring XML Catalog entries to allow offline creation of Webapps/Servlets [message #107271 is a reply to message #101325] |
Wed, 25 May 2005 05:15 |
Krishna Dasyam Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Hi,
I am using eclipse M5, I found the problem with XML catalog.
org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver class is the
culprit.
registerDtD function has empty implementation, I think that function should
add dtds to the supportedDtDs Hashmap. When resolveEntity method of
org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver is called to
resolve entities, since the hashmap doesn't contain any thing it returns
null and ClassLoader cannot find the dtd resource even if it is in the
classpath. I have modified this file and I have enclosed the
J2EEXmlDtDEntityResolver.class,wtpemf.jar with this mail.Plz take a backup
of
%eclipseInstallDir%\plugins\org.eclipse.jst.j2ee.core_1.0.0\ runtime\mofj2ee.jar
file and put the downloaded J2EEXmlDtDEntityResolver in the mofj2ee.jar
using winzip or jar.
DOMUtilities class is not setting the entity resolver in the
newDefaultDocumentBuilder method. So I modified wtpemf.jar.
Download enclosed wtpemf.jar and put it in
%eclipseInstallDir%\plugins\org.eclipse.wst.common.emf_1.0.0 \runtime.
It works fine for me. But one thing which I don't really understand how xsds
are resolved correctly by the parser, even if the uri entry of xsd in the
XML catalog is incorrect ( No internet scenario).
Krishna Dasyam
"Laurent D" <laurentd75__no___spa_m@yahoo.fr> wrote in message
news:9a870e6a704b7cbf545fdb034da831b2$1@www.eclipse.org...
>
> HELP BADLY NEEDED...
>
> Hi there,
>
> "Refreshing" this thread, because so far, the answers provided didn't help
> me solve my problem (although I do thank "snpe" for his time & goodwill).
>
> Does the XML Catalog really work ?
>
> Has anyone succeeded in configuring required entries for caching the
> WebApp 2.3 DTD ??
>
> Can anyone tell me *exactly*
> - what entries to add to XML Catalog
> - what local copies of DTDs are needed
> - how each entry must be configured, with the required values for the
> "URI", "Key type" and "Key" fields
>
>
> Thanking you in advance for helping entangling this issue, I'm sure this
> will benefit *many* people out there,
>
> Laurent
>
>
>
>> I read the XML Catalog tutorial for M2
>> ( http://www.eclipse.org/webtools/testtutorials/M2/xml/XMLCata logTutorial.htm
>> l) but this was not really useful since the example does not cover the
>> mapping of a DTD URL to a local file.
>>
>> Now, my question is: how do I configure an XML Catalog entry for mapping
>> the
>> Webapp 2.3 DTD (http://java.sun.com/dtd/web-app_2_3.dtd) to a local file
>> (say: c:eclipsexmlcatalogweb-app_2_3.dtd):
>
>> What shall I enter in the following fields:
>
>> - URI
>> - Key type
>> - Key
>
>> And do I have to check the "Specify alternative web address" checkbox,
>> and
>> if so, what should I type in the field below ?
>
>> And finally, if I can get it all configured:
>
>> - will it stop WTP from trying to get online when I create a Webapp
>> module ?
>> - will it enable me to create a Servlet in offline mode ?? (since the
>> Servlet wizard fails when there's no Internet connection)
>
>> TIA,
>
>> Laurent
>
>
|
|
|
Goto Forum:
Current Time: Wed Jul 17 01:29:09 GMT 2024
Powered by FUDForum. Page generated in 0.05694 seconds
|