Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » WTP M3: Error opening xml document with XML Editor
WTP M3: Error opening xml document with XML Editor [message #78613] Tue, 01 March 2005 09:40 Go to next message
Eclipse UserFriend
Originally posted by: michael.giroux.objectweb.org

I've installed Eclipse 3.1M5a, WTP M3 and all required jars including those
needed for Web Services support.
When I attempt to open an XML document with the XML Editor, I get the error
shown below.

Any thoughts?

Michael Giroux



!ENTRY org.eclipse.wst.sse.ui 2 2 2005-03-01 07:36:35.248
!MESSAGE StructuredTextEditor being used without StructuredDocument

!ENTRY org.eclipse.wst.sse.ui 2 2 2005-03-01 07:36:35.248
!MESSAGE Input Name: web.xml

!ENTRY org.eclipse.wst.sse.ui 2 2 2005-03-01 07:36:35.248
!MESSAGE Document implementation: class
org.eclipse.jface.text.Document
Re: WTP M3: Error opening xml document with XML Editor [message #79144 is a reply to message #78613] Wed, 02 March 2005 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schmitt.christian.gmx.de

Michael Giroux wrote:

> I've installed Eclipse 3.1M5a, WTP M3 and all required jars including those
> needed for Web Services support.
> When I attempt to open an XML document with the XML Editor, I get the error
> shown below.

> Any thoughts?

> Michael Giroux


The same happens here (same configuration), although only for file
types I've added in the Window->Preferences->File Associations
to open with the XML Source Page Editor. They get opened but no
syntax coloring happens :-(

Christian


> !ENTRY org.eclipse.wst.sse.ui 2 2 2005-03-01 07:36:35.248
> !MESSAGE StructuredTextEditor being used without StructuredDocument

> !ENTRY org.eclipse.wst.sse.ui 2 2 2005-03-01 07:36:35.248
> !MESSAGE Input Name: web.xml

> !ENTRY org.eclipse.wst.sse.ui 2 2 2005-03-01 07:36:35.248
> !MESSAGE Document implementation: class
> org.eclipse.jface.text.Document
Re: WTP M3: Error opening xml document with XML Editor [message #79213 is a reply to message #78613] Wed, 02 March 2005 11:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schmitt.christian.gmx.de

Michael Giroux wrote:

> I've installed Eclipse 3.1M5a, WTP M3 and all required jars including those
> needed for Web Services support.
> When I attempt to open an XML document with the XML Editor, I get the error
> shown below.

> Any thoughts?

> Michael Giroux

After a little searching on bugs.eclipse.org I found a workaround
(take a look at comment <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=81710#c6">#6</a> of
bug <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=81710">81710</a>.

I patched plugin.xml in org.eclipse.wst.xml.core_1.0.0 to match my file
types
and Voila! the files open in the XML editor _and_ are colorized.

Hth,
Christian
Re: WTP M3: Error opening xml document with XML Editor [message #79227 is a reply to message #79213] Wed, 02 March 2005 11:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schmitt.christian.gmx.de

Sorry for the messed up links :/
Re: WTP M3: Error opening xml document with XML Editor [message #79333 is a reply to message #79213] Wed, 02 March 2005 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.giroux.objectweb.org

Christian,

"Christian Schmitt" <schmitt.christian@gmx.de> wrote in message
news:d04pnr$r00$1@www.eclipse.org...

> I patched plugin.xml in org.eclipse.wst.xml.core_1.0.0 to match my file
> types
> and Voila! the files open in the XML editor _and_ are colorized.


Thanks for pointing me to the bug report. Any chance you could post the
patch to your plugin.xml file?
I looked at the file, and the bug report, but I'm not sure I'm clear on what
needs to be changed.

Thanks
Michael
Re: WTP M3: Error opening xml document with XML Editor [message #79454 is a reply to message #79333] Wed, 02 March 2005 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schmitt.christian.gmx.de

Michael Giroux wrote:
> Thanks for pointing me to the bug report. Any chance you could post the
> patch to your plugin.xml file?
> I looked at the file, and the bug report, but I'm not sure I'm clear on what
> needs to be changed.

Michael,
open the file
$ECLIPSE_HOME/plugins/org.eclipse.wst.xml.core_1.0.0/plugin. xml
find
<extension
point="org.eclipse.core.runtime.contentTypes">
<content-type
file-extensions="xml,xsl,xslt,dadx,wsdl,nst,xmi,xsd,exsd"
priority="low"
name="%XML_Content_Type_Extension_Element.name"
id="xmlsource"
base-type="org.eclipse.core.runtime.xml"
default-charset="UTF-8"
alias-for="org.eclipse.core.runtime.xml"
>
<describer
class=" org.eclipse.wst.xml.core.internal.contenttype.ContentDescrib erForXML "/>
</content-type>
</extension>

and add your needed filename extensions to the "file-extensions"
attribute (seperated by commas). That's all!



>
> Thanks
> Michael
>
Cheers,
Christian
Re: WTP M3: Error opening xml document with XML Editor [message #79482 is a reply to message #79454] Wed, 02 March 2005 15:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.giroux.objectweb.org

"Christian Schmitt" <schmitt.christian@gmx.de> wrote in message
news:d057uu$53u$1@www.eclipse.org...
> find
> <extension
> point="org.eclipse.core.runtime.contentTypes">
> <content-type
> file-extensions="xml,xsl,xslt,dadx,wsdl,nst,xmi,xsd,exsd"
> [ text omitted]
> and add your needed filename extensions to the "file-extensions" attribute
> (seperated by commas). That's all!

Unfortunately, xml is already in the list. Were you getting the
error shown below?

Michael

StructuredTextEditor being used without StructuredDocument
Input Name: web.xml
Document implementation: class org.eclipse.jface.text.Document
Re: WTP M3: Error opening xml document with XML Editor [message #79629 is a reply to message #79482] Thu, 03 March 2005 02:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schmitt.christian.gmx.de

Michael Giroux wrote:

> Unfortunately, xml is already in the list. Were you getting the
> error shown below?

> Michael

> StructuredTextEditor being used without StructuredDocument
> Input Name: web.xml
> Document implementation: class org.eclipse.jface.text.Document

Well, I was able to open file.xml in the XML editor from the beginning.
The thing that would not work was assign other file extensions to
the XML editor. In these cases I got the error/warning message.

Christian
Re: WTP M3: Error opening xml document with XML Editor [message #79952 is a reply to message #78613] Thu, 03 March 2005 16:33 Go to previous message
Eclipse UserFriend
Originally posted by: michael.giroux.objectweb.org

It looks like I was getting some interferance from other non-WTP plugins.

I did the following:

1. deleted eclipse 3.1 M5a install
2. deleted entire contents of the configured extension location (I keep
addon plugins in extension location)
3. installed eclipse 3.1 M5a into a new directory
4. installed WTP 1.0 M3 and all required plugins

The XML editor is now working as expected, as is the WSDL editor and other
WTP features that were not working previously.

I'm working with Sun JDK 1.4.2_07 and with Sun JDK 1.5.0_01.

Michael Giroux
Previous Topic:Adding server to existing project?
Next Topic:Can't start Tomcat
Goto Forum:
  


Current Time: Tue Apr 29 02:37:40 EDT 2025

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

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

Back to the top