Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Unable to load mbeans-descriptors.xml
Unable to load mbeans-descriptors.xml [message #57420] Mon, 16 February 2009 10:25 Go to next message
Edward Mui is currently offline Edward Mui
Messages: 4
Registered: July 2009
Junior Member
Hello,

I am try to load an mbeans-descriptors.xml using the follow:

<c:load
url=" {$org.eclipse.jet.resource.project.name}/mbeans-descriptors. xml "
var="file" urlContext="workspace" type="xml"/>

The loader/parser does not like the the DOCTYPE declaration(see example
below).
Once it is removed. It can be loaded.

Any suggestion on how to load this file without alter it content?

Thanks!
Edward

<?xml version="1.0"?>
<!DOCTYPE mbeans-descriptors PUBLIC
"-//Apache Software Foundation//DTD Model MBeans Configuration File"
" http://jakarta.apache.org/commons/dtds/mbeans-descriptors.dt d ">

<!-- Descriptions of JMX MBeans -->
<mbeans-descriptors>
<mbean name="ManagedBean" description="Example Managed Bean"
type="ManagedBean">
<attribute name="name" description="Simple Name"
type="java.lang.String" />
<constructor name="ManagedBean"/>
</mbean>
</mbeans-descriptors>
Re: Unable to load mbeans-descriptors.xml [message #57626 is a reply to message #57420] Wed, 25 February 2009 09:47 Go to previous messageGo to next message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Edward:

What version of JET and Eclipse are you using? I have just tried your
example successfully with Eclipse 3.4.1, EMF 2.4.1 and JET 0.9.1.

Also, when loading an XML document, JET needs to resolve DTD references. If
you are disconnected from the internet (or otherwise unable to reach the
published DTD), then you would encounter errors. If you need to work in a
disconnected environment, install the Eclipse XML Editors and Tools feature
from the Web Tools Platform. This includes an XML Catalog (accessible from
Windows > Preferences) that lets you redirect internet-based system ID to
local caches.

Paul


"Edward Mui" <edwardmui@yahoo.com> wrote in message
news:527662cb0c12caa5cbb16d8e54f901da$1@www.eclipse.org...
> Hello,
>
> I am try to load an mbeans-descriptors.xml using the follow:
>
> <c:load
> url=" {$org.eclipse.jet.resource.project.name}/mbeans-descriptors. xml "
> var="file" urlContext="workspace" type="xml"/>
>
> The loader/parser does not like the the DOCTYPE declaration(see example
> below).
> Once it is removed. It can be loaded.
>
> Any suggestion on how to load this file without alter it content?
>
> Thanks!
> Edward
>
> <?xml version="1.0"?>
> <!DOCTYPE mbeans-descriptors PUBLIC
> "-//Apache Software Foundation//DTD Model MBeans Configuration File"
> " http://jakarta.apache.org/commons/dtds/mbeans-descriptors.dt d ">
> <!-- Descriptions of JMX MBeans -->
> <mbeans-descriptors>
> <mbean name="ManagedBean" description="Example Managed Bean"
> type="ManagedBean">
> <attribute name="name" description="Simple Name"
> type="java.lang.String" />
> <constructor name="ManagedBean"/>
> </mbean>
> </mbeans-descriptors>
>
Re: Unable to load mbeans-descriptors.xml [message #58037 is a reply to message #57626] Thu, 05 March 2009 18:20 Go to previous message
Edward Mui is currently offline Edward Mui
Messages: 4
Registered: July 2009
Junior Member
Paul,

Thanks for the valuable hint. The www server specified in the
mbeans-descriptors.xml file is no longer up.

Edward
Previous Topic:Generating separate files for every class in a uml model
Next Topic:[Announce] M2T XPAND 0.7.0 I200903100728 is available
Goto Forum:
  


Current Time: Wed Aug 20 16:40:17 EDT 2014

Powered by FUDForum. Page generated in 0.08088 seconds