Skip to main content


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 15:25 Go to next message
Edward Mui is currently offline Edward MuiFriend
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 14:47 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
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 23:20 Go to previous message
Edward Mui is currently offline Edward MuiFriend
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: Thu Apr 25 15:12:31 GMT 2024

Powered by FUDForum. Page generated in 0.04258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top