|
Re: can't validate xml [message #404305 is a reply to message #404303] |
Mon, 09 October 2006 15:27 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------070201010206080908020503
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Julia,
It sounds like this FAQ question:
I get a PackageNotFoundException: e.g., "Package with uri
'http://com.example.company.ecore' not found." What do I need to do?
< http://www.eclipse.org/emf/faq/faq.php#dev20041117-161687233 4>
Nothing has changed in terms of how generated models are registered in
the the plugin.xml nor in terms of the steps you need to do that
registration for stand-alone execution.
Julia wrote:
> I recently upgrade to using emf 2.2.0 on Eclipse 3.2. I have 3 xml
> files that gives me this error
>
> DiagnosticWrappedException:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http://www.ib
> m.com/websphere/appserver/schemas/6.0/ibm-portal-navigation. xsd' not
> found. (file:/D:/indus/lwi7.1b/driver/runtime/isc/navigation.xml, 6, 97)
> I have this in my navigation.xml
> <navigation:navigation-tree
> xmlns:base=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-base.xsd"
> xmlns:navigation=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-navigation.xsd">
>
> ...
> Similiarly for my other 2 xml files. I do have copies of the xsd files
> on my local drive.
>
> This occurs when I call resourceSet.getResource.
>
>
> This worked fine when I was using emf 2.1 on Eclipse 3.0.2. Was there
> some configuration change that I'm not aware of? Or am I missing
> something else? I have also tried adding schemaLocation with absolute
> path to the xsd files. Still gives me the same error.
>
> Julia
>
--------------070201010206080908020503
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Julia,<br>
<br>
It sounds like this FAQ question:<br>
<blockquote><a
href=" http://www.eclipse.org/emf/faq/faq.php#dev20041117-161687233 4">I
get a PackageNotFoundException: e.g., "Package with uri
‘http://com.example.company.ecore‘ not found." What do I
need to do? </a><br>
</blockquote>
Nothing has changed in terms of how generated models are registered in
the the plugin.xml nor in terms of the steps you need to do that
registration for stand-alone execution.<br>
<br>
<br>
Julia wrote:
<blockquote cite="midd5ed7ea633848584e340f51c863d2592$1@www.eclipse.org"
type="cite">I recently upgrade to using emf 2.2.0 on Eclipse 3.2. I
have 3 xml files that gives me this error
<br>
<br>
DiagnosticWrappedException:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'<a class="moz-txt-link-freetext" href="http://www.ib">http://www.ib</a>
<br>
m.com/websphere/appserver/schemas/6.0/ibm-portal-navigation. xsd' not
found. (<a class="moz-txt-link-freetext" href="file:/D:/indus/lwi7.1b/driver/runtime/isc/navigation.xml ">file:/D:/indus/lwi7.1b/driver/runtime/isc/navigation.xml</a >, 6,
97) <br>
I have this in my navigation.xml
<br>
<navigation:navigation-tree
xmlns:base=<a class="moz-txt-link-rfc2396E" href=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-base.xsd">" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-base.xsd"</a>
xmlns:navigation=<a class="moz-txt-link-rfc2396E" href=" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-navigation.xsd">" http://www.ibm.com/websphere/appserver/schemas/6.0/ibm-porta l-navigation.xsd"</a>>
<br>
....
<br>
Similiarly for my other 2 xml files. I do have copies of the xsd files
on my local drive.
<br>
<br>
This occurs when I call resourceSet.getResource.
<br>
<br>
<br>
This worked fine when I was using emf 2.1 on Eclipse 3.0.2. Was there
some configuration change that I'm not aware of? Or am I missing
something else? I have also tried adding schemaLocation with absolute
path to the xsd files. Still gives me the same error.
<br>
<br>
Julia
<br>
<br>
</blockquote>
<br>
</body>
</html>
--------------070201010206080908020503--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03035 seconds