Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Spring IDE 1.2.3 installed, but no menu to add nature

  1. #1
    Join Date
    Aug 2004
    Posts
    230

    Default Spring IDE 1.2.3 installed, but no menu to add nature

    This is with eclipse 3.1. The feature is there, and all the plugins are there. But no menu to add the nature. Any hints on how to debug would be appreciated.

    -barry
    Barry Kaplan (memelet)

  2. #2
    Join Date
    Aug 2004
    Posts
    230

    Default

    While I can't seem to enable the nature, spring-ide does seem to be installed. When I open a context file in the xml editor, I get the following exception:

    Code:
    java.lang.ExceptionInInitializerError
    	at org.eclipse.wst.dtd.core.internal.contentmodel.CMDocumentFactoryDTD.createCMDocument(CMDocumentFactoryDTD.java:37)
    	at org.eclipse.wst.xml.core.internal.contentmodel.ContentModelManager.createCMDocument(ContentModelManager.java:56)
    	at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.CMDocumentManagerImpl.buildCMDocument(CMDocumentManagerImpl.java:277)
    	at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.CMDocumentManagerImpl$AsyncBuildOperation.run(CMDocumentManagerImpl.java:262)
    	at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.CMDocumentManagerImpl$1.run(CMDocumentManagerImpl.java:228)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
    Caused by: java.lang.ClassCastException: com.ibm.etools.dtd.impl.DTDPackageImpl
    	at org.eclipse.wst.dtd.core.internal.emf.impl.DTDPackageImpl.init(DTDPackageImpl.java:288)
    	at org.eclipse.wst.dtd.core.internal.contentmodel.DTDImpl.<clinit>&#40;DTDImpl.java&#58;72&#41;
    	... 6 more
    Barry Kaplan (memelet)

  3. #3
    Join Date
    Aug 2004
    Posts
    230

    Default

    I also get this message in the error log:

    "Content Assist" did not complete normally. Please see the log for more information.

    What log is this message refering to?
    Barry Kaplan (memelet)

  4. #4
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default Re: Spring IDE 1.2.3 installed, but no menu to add nature

    Quote Originally Posted by memelet
    This is with eclipse 3.1. The feature is there, and all the plugins are there. But no menu to add the nature. Any hints on how to debug would be appreciated.
    Barry,

    ok, let's go:

    1. Did you install Spring IDE as described here (and no messing with the zipped update site ;-))?

    2. Is the "Add Spring project nature" context menu available in the resource explorer or JDT package explorer as described here?

    3. Are there any suspicious messages in Eclipse's error log (Windows -> Show View - > Error Log)?

    Cheers,
    Torsten

  5. #5
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default

    Quote Originally Posted by memelet
    While I can't seem to enable the nature, spring-ide does seem to be installed. When I open a context file in the xml editor, I get the following exception:

    Code:
    java.lang.ExceptionInInitializerError
    	at org.eclipse.wst.dtd.core.internal.contentmodel.CMDocumentFactoryDTD.createCMDocument&#40;CMDocumentFactoryDTD.java&#58;37&#41;
    	at org.eclipse.wst.xml.core.internal.contentmodel.ContentModelManager.createCMDocument&#40;ContentModelManager.java&#58;56&#41;
    	at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.CMDocumentManagerImpl.buildCMDocument&#40;CMDocumentManagerImpl.java&#58;277&#41;
    	at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.CMDocumentManagerImpl$AsyncBuildOperation.run&#40;CMDocumentManagerImpl.java&#58;262&#41;
    	at org.eclipse.wst.xml.core.internal.contentmodel.modelqueryimpl.CMDocumentManagerImpl$1.run&#40;CMDocumentManagerImpl.java&#58;228&#41;
    	at org.eclipse.core.internal.jobs.Worker.run&#40;Worker.java&#58;76&#41;
    Caused by&#58; java.lang.ClassCastException&#58; com.ibm.etools.dtd.impl.DTDPackageImpl
    	at org.eclipse.wst.dtd.core.internal.emf.impl.DTDPackageImpl.init&#40;DTDPackageImpl.java&#58;288&#41;
    	at org.eclipse.wst.dtd.core.internal.contentmodel.DTDImpl.<clinit>&#40;DTDImpl.java&#58;72&#41;
    	... 6 more
    This is an exception thrown by Web Tools which is associated with XML files by default. Spring IDE isn't involved here.

    Looks like your Eclipse installation is messed up (ClassCastException with com.ibm.etools.dtd.impl.DTDPackageImpl). Did you install WST 0.7 and all it's dependencies correctly (Eclipse 3.1, GEF, EMF, JET)? Meaning, WST 0.7 requires specific versions of Eclipse, GEF, EMF and JET.

    Torsten

  6. #6
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default

    Quote Originally Posted by memelet
    What log is this message refering to?
    Eclipse's error log can be found via menu "Windows -> Show View - > Error Log".

    Torsten

  7. #7
    Join Date
    Aug 2004
    Posts
    230

    Default

    Quote Originally Posted by Torsten Juergeleit
    Looks like your Eclipse installation is messed up (ClassCastException with com.ibm.etools.dtd.impl.DTDPackageImpl). Did you install WST 0.7 and all it's dependencies correctly (Eclipse 3.1, GEF, EMF, JET)? Meaning, WST 0.7 requires specific versions of Eclipse, GEF, EMF and JET.
    I never did install WST. But I did install myeclipse 4.0. Probably that is causing me pain. I'll install the WST explicity and see if that helps.
    Barry Kaplan (memelet)

  8. #8
    Join Date
    Aug 2004
    Posts
    230

    Default Re: Spring IDE 1.2.3 installed, but no menu to add nature

    Quote Originally Posted by Torsten Juergeleit
    1. Did you install Spring IDE as described here (and no messing with the zipped update site ;-))?

    2. Is the "Add Spring project nature" context menu available in the resource explorer or JDT package explorer as described here?

    3. Are there any suspicious messages in Eclipse's error log (Windows -> Show View - > Error Log)?
    Yes, I did follow those instructions (correctly I think). As for #2, no. For #3, only what I already posted, which as you pointed out is a WST error. However, this error only occurs when opening a spring config file.

    I mentioned just a second ago that maybe it was myeclipse. Maybe, but when I get the exception above, its when I open the config using the standard eclipse xml editor (from WST?) not the myeclipse XML editor.

    If I can't clear this up, I'll install a fresh eclipse and start with spring-ide.

    thanks!!
    Barry Kaplan (memelet)

  9. #9
    Join Date
    Aug 2004
    Posts
    230

    Default

    Quote Originally Posted by Torsten Juergeleit
    Eclipse's error log can be found via menu "Windows -> Show View - > Error Log".
    Sounded like a stupid question. I asked because it was from the error log where I read the message, so I thought maybe it was some other spring-ide log.
    Barry Kaplan (memelet)

  10. #10
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default

    Quote Originally Posted by memelet
    I never did install WST. But I did install myeclipse 4.0. Probably that is causing me pain. I'll install the WST explicity and see if that helps.
    Myeclipse 4.0 ships with an older, modified version of Spring IDE. They changed the plugins' version number to 3.x.x. So you are not able to use plain Spring IDE because it's plugins have a lower version number.

    More details can be found in Spring IDE's FAQ http://springide.org/project/wiki/Sp...the-spring-ide

    Maybe Myeclipse 4.0 ships with an outdated / modified version of Web Tools too.

    IMHO using Myeclipse with plain Spring IDE and Web Tools isn't possible. You will have to wait for a new version of Myeclipse which ships with a newer version of Spring IDE / Web Tools or delete the corresponding plugins from the Myeclipse installation manually.

    Torsten

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Spring IDE 1.2.3 not compatible with MyEclipse 4.0
    By memelet in forum SpringSource Tool Suite
    Replies: 1
    Last Post: Sep 7th, 2005, 07:55 AM
  3. Spring Framework 1.2.3 Released
    By Colin Sampaleanu in forum Announcements
    Replies: 0
    Last Post: Jul 26th, 2005, 12:12 PM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 1
    Last Post: Feb 15th, 2005, 01:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •