Home » Language IDEs » ServerTools (WTP) » WTP0.7: NoClassDefFound: StructuredTextEditor from org.eclipse.jface plugin
WTP0.7: NoClassDefFound: StructuredTextEditor from org.eclipse.jface plugin [message #148172] |
Mon, 21 November 2005 19:32  |
Eclipse User |
|
|
|
I'm still stumbling around in my Eclipse setup (3.1.1). I got the base
3.1.1 setup basically working, and then I installed the latest WTP release
from the update manager.
After I restarted Eclipse, I noticed new preferences entries, so I know it
did something.
I then tried to view an XML file, to see if it does anything different. I
didn't see any changes.
Then, I went into file associations and I saw there wasn't one for
"*.xml". I added one, and set it to "XML Editor". It said something
about being "locked" by something, but I didn't understand that.
I then tried to open my XML file again, and this time it gave me an error
dialog, saying to look in the error log. When I went to the error log, I
found this:
Error 2005-11-21 16:22:36.883 Problems occurred when invoking code from
plug-in: "org.eclipse.jface".
java.lang.NoClassDefFoundError:
org/eclipse/wst/sse/ui/internal/StructuredTextEditor
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 18)
at java.lang.Class.getConstructor0(Class.java:1930)
at java.lang.Class.newInstance0(Class.java:278)
I tried searching through all the jar files in my plugins directory, and
it didn't find this class (I have a little tool for "grepping" jar files
for file name substrings). There was one name that was close, being
"org.eclipse.wst.sse.ui.StructuredTextEditor" in
"org.eclipse.wst.sse.ui_0.7.0.jar".
Is there a simple way to resolve this? If I uninstall the WTP plugin (how
would I do that?) would this get me back to where I started at least?
|
|
| |
Re: WTP0.7: NoClassDefFound: StructuredTextEditor from org.eclipse.jface plugin [message #148349 is a reply to message #148233] |
Tue, 22 November 2005 12:07   |
Eclipse User |
|
|
|
Nitin Dahyabhai wrote:
> David Karr wrote:
>> Error 2005-11-21 16:22:36.883 Problems occurred when invoking code from
>> plug-in: "org.eclipse.jface".
>> java.lang.NoClassDefFoundError:
>> org/eclipse/wst/sse/ui/internal/StructuredTextEditor
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 18)
>> at java.lang.Class.getConstructor0(Class.java:1930)
>> at java.lang.Class.newInstance0(Class.java:278)
>>
>> I tried searching through all the jar files in my plugins directory, and
>> it didn't find this class (I have a little tool for "grepping" jar files
>> for file name substrings). There was one name that was close, being
>> "org.eclipse.wst.sse.ui.StructuredTextEditor" in
>> "org.eclipse.wst.sse.ui_0.7.0.jar".
>>
>> Is there a simple way to resolve this? If I uninstall the WTP plugin
>> (how would I do that?) would this get me back to where I started at least?
> Did you have a previous build installed? Are there any other
> warnings, because this looks like the installations gone somehow
> awry. The org.eclipse.wst.sse.ui_0.7.0.jar from WTP 0.7.1 does
> contain an org/eclipse/wst/sse/ui/internal/StructuredTextEditor.class .
Perhaps what messed me up is that before I knew about the Update Manager,
I tried installing the 1.0M8 version of WTP by just extracting the zip
file to the root of my drive (so the "plugins" stuff in the zip went in my
"plugins" directory).
I just now tried "updating installed features", and it installed 0.7.1.
However, after enabling the WTP again, I still get the same error.
I'm looking in the file "plugins/org.eclipse.wst.sse.ui_0.7.0.jar". All
the files in it are dated 9/23/2005. There is a file
"org/eclipse/wst/sse/ui/StructuredTextEditor.class", but not
"org/eclipse/wst/sse/ui/internal/StructuredTextEditor.class".
It's curious that there's no file
"plugins/org.eclipse.wst.sse.ui_0.7.1.jar".
I don't suppose there's a safe way to start over on my plugins? From
what's in the plugins directory, I'm guessing Eclipse is structured
conceptually somewhat like Emacs, where the core is hardly anything.
|
|
|
Re: WTP0.7: NoClassDefFound: StructuredTextEditor from org.eclipse.jface plugin [message #148358 is a reply to message #148349] |
Tue, 22 November 2005 15:21   |
Eclipse User |
|
|
|
David Karr wrote:
> Perhaps what messed me up is that before I knew about the Update
> Manager, I tried installing the 1.0M8 version of WTP by just extracting
> the zip file to the root of my drive (so the "plugins" stuff in the zip
> went in my "plugins" directory).
>
> I just now tried "updating installed features", and it installed 0.7.1.
> However, after enabling the WTP again, I still get the same error.
Yes, 1.0M8 still numbered itself as 0.7.x and that could easily
cause problems if the jars were mixed.
>
> I'm looking in the file "plugins/org.eclipse.wst.sse.ui_0.7.0.jar". All
> the files in it are dated 9/23/2005. There is a file
> "org/eclipse/wst/sse/ui/StructuredTextEditor.class", but not
> "org/eclipse/wst/sse/ui/internal/StructuredTextEditor.class".
>
> It's curious that there's no file
> "plugins/org.eclipse.wst.sse.ui_0.7.1.jar".
Not really, general policy is not to update the version unless
something's changed, so 0.7.1 shipped with a 0.7.0 version of
sse.ui. If you look at the Eclipse 3.1.1 SDK, you'll find that
several plugins were unchanged from 3.1.0. Since the version number
was also unchanged in 1.0M8 (a common approach during development
decried in bug 99393), the two jars got mixed up. It looks like you
have the newer jar where the StructuredTextEditor class had been
moved out of its internal package but still have some old code
expecting it in the old package.
> I don't suppose there's a safe way to start over on my plugins? From
> what's in the plugins directory, I'm guessing Eclipse is structured
> conceptually somewhat like Emacs, where the core is hardly anything.
True, but it might be easier to start over with a fresh install and
just reuse your old workspace. The majority of the WTP plugins are
named org.eclipse.jst.* and org.eclipse.wst.*, but you would also
want to clean out the versions of EMF/SDO/XSD, JEM, and GEF you have
installed.
Honestly I'd recommend unpacking a fresh Eclipse 3.1.1 installation
and pointing it at the same workspace using the -data parameter.
Then you can use the Update Manager to install 0.7.1. If you're
interested in following development or contributing, then you should
*instead* manually install the upcoming 1.0M9. 1.0M9 is newer and
should be pretty stable, but manual installations like this
generally can't be cleanly upgraded. You'd have to unpack a fresh
Eclipse to install a newer version later.
WTP 1.0 final should be a clean upgrade through Update Manager if
you only installed the actual 0.7.0/0.7.1 releases.
--
- Nitin
|
|
|
Re: WTP0.7: NoClassDefFound: StructuredTextEditor from org.eclipse.jface plugin [message #148378 is a reply to message #148358] |
Tue, 22 November 2005 17:19   |
Eclipse User |
|
|
|
Nitin Dahyabhai wrote:
> David Karr wrote:
>> I don't suppose there's a safe way to start over on my plugins? From
>> what's in the plugins directory, I'm guessing Eclipse is structured
>> conceptually somewhat like Emacs, where the core is hardly anything.
> True, but it might be easier to start over with a fresh install and
> just reuse your old workspace. The majority of the WTP plugins are
> named org.eclipse.jst.* and org.eclipse.wst.*, but you would also
> want to clean out the versions of EMF/SDO/XSD, JEM, and GEF you have
> installed.
> Honestly I'd recommend unpacking a fresh Eclipse 3.1.1 installation
> and pointing it at the same workspace using the -data parameter.
> Then you can use the Update Manager to install 0.7.1. If you're
> interested in following development or contributing, then you should
> *instead* manually install the upcoming 1.0M9. 1.0M9 is newer and
> should be pretty stable, but manual installations like this
> generally can't be cleanly upgraded. You'd have to unpack a fresh
> Eclipse to install a newer version later.
Ok, so I just delete my entire "eclipse" directory and unpack the zip file
again. Do I really have to change the eclipse command line to specify
"-data <oldworkspacedir>"? It won't use the old name by default? I
didn't change the default workspace dir when I started it up before.
|
|
| | |
Re: WTP0.7: NoClassDefFound: StructuredTextEditor from org.eclipse.jface plugin [message #148589 is a reply to message #148427] |
Wed, 23 November 2005 12:41  |
Eclipse User |
|
|
|
Actually, I didn't want to have to do either of those ideas, changing the
launch command line or surgically removing directories. I did exactly
what seemed logical to me, even though either or both you were implying
this wouldn't work, which was to remove the eclipse directory (renamed to
"eclipse.old", actually), unpack the 3.1.1 distribution, start up eclipse,
then install the WTP from Update Manager. It now works fine. I will now
stay away from manually installing plugins, unless I get to the point
where I'm very familiar with this process.
|
|
|
Goto Forum:
Current Time: Fri May 02 02:11:24 EDT 2025
Powered by FUDForum. Page generated in 0.04189 seconds
|