Hi Igor I commented them out, and the problem came back.
I reinstated them, and the problem went away again :) cheers Jason On Wed, Aug 13, 2008 at 1:45 PM, Igor Fedorenko <[EMAIL PROTECTED]> wrote: > Jason, > > Although I am not sure what was/is going on, but you don't need to enter > source/testSource directories. Can you check if the problem comes back if > you remove them? > > Jason Harrop wrote: >> >> Hi Eugene >> >> Thanks for your reply. Problem solved - see below. >> >> On Wed, Aug 13, 2008 at 12:54 PM, Eugene Kuleshov <[EMAIL PROTECTED]> wrote: >>> >>> Can you please clarify what do you mean by "running from within >>> Eclipse"? >>> Do you run it using JUnit launch configuration or as Java Application? >> >> I run it as a Java Application >> >>> If >>> it is Java application, can you please check what source folder the main >>> Java class reside and where missing class org/docx4j/wml/TrPr came from >>> (is >>> it one of the dependent jars or in your source folders)? >> >> The missing class lives in docx4j.jar. This is a dependency which is >> declared in my pom; but I also have an eclipse project for docx4j, >> which automagically m2eclipse uses if I have workspace dependencies >> enabled. I can see it is using it from its entry in the Maven >> dependencies list. >> >> (The main class is org.docx4all.ui.main.WordMLEditor - that lives in >> the project in am working in (not the docx4j project) ) >> >>> Have you trued to run "Maven / Update project configuration" on your >>> project? >> >> Tried this just now; I doesn't help. >> >>> If that won't help, please try to recreate launch configuration you >>> use to run your projects. >> >> This doesn't help either. >> >> Ahh, I used the m2eclipse pom editor to add the following to the >> docx4j pom (that's the dependency), and now it works. I didn't >> previously have entries for sourceDirectory or outputDirectory. >> >> <build> >> <sourceDirectory>src/main/java</sourceDirectory> >> <testSourceDirectory>src/test/java</testSourceDirectory> >> <outputDirectory>bin</outputDirectory> >> <testOutputDirectory>bin</testOutputDirectory> >> >> cheers >> >> Jason >> >>> regards, >>> Eugene >>> >>> >>> Jason Harrop wrote: >>>> >>>> I upgraded to m2eclipse 0.9.6.20080811-2209, and now I get the error >>>> below when running my project from within Eclipse. >>>> >>>> If I disable m2eclipse's "workspace resolution", things work properly. >>>> (My previous version was 0.9.4.20080516-1145, and my project runs >>>> properly under that with workspace resolution enabled) >>>> >>>> Note that as far as the code editor is concerned, workspace resolution >>>> works; it is only at runtime that it doesn't. >>>> >>>> cheers >>>> >>>> Jason >>>> >>>> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤ >>>> >>>> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: >>>> org/docx4j/wml/TrPr >>>> at java.lang.Class.getDeclaredMethods0(Native Method) >>>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) >>>> at java.lang.Class.getDeclaredMethods(Class.java:1791) >>>> at java.beans.Introspector$1.run(Introspector.java:1272) >>>> at java.security.AccessController.doPrivileged(Native Method) >>>> at >>>> java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1270) >>>> at >>>> java.beans.Introspector.getTargetMethodInfo(Introspector.java:1136) >>>> at java.beans.Introspector.getBeanInfo(Introspector.java:387) >>>> at java.beans.Introspector.getBeanInfo(Introspector.java:159) >>>> at java.beans.Introspector.getBeanInfo(Introspector.java:220) >>>> at java.beans.Introspector.getBeanInfo(Introspector.java:188) >>>> at >>>> >>>> net.java.javafx.typeImpl.TypeFactoryImpl$ModuleImpl.createIntrinsicType(TypeFactoryImpl.java:2901) >>>> at >>>> >>>> net.java.javafx.typeImpl.TypeFactoryImpl$ModuleImpl.getTypeForClass(TypeFactoryImpl.java:6284) >>>> at >>>> >>>> net.java.javafx.typeImpl.TypeFactoryImpl$ModuleImpl$AttributeImpl.setPropertyDescriptor(TypeFactoryImpl.java:4684) >>>> at >>>> >>>> net.java.javafx.typeImpl.TypeFactoryImpl$ModuleImpl.createIntrinsicType(TypeFactoryImpl.java:2922) >>>> at >>>> >>>> net.java.javafx.typeImpl.TypeFactoryImpl$ModuleImpl.getTypeForClass(TypeFactoryImpl.java:6284) >>>> at >>>> >>>> net.java.javafx.typeImpl.TypeFactoryImpl$ModuleImpl.getTypeInternal(TypeFactoryImpl.java:6332) >>>> at >>>> >>>> net.java.javafx.typeImpl.TypeFactoryImpl$ModuleImpl.getTypeInternal(TypeFactoryImpl.java:6289) >>>> at >>>> >>>> net.java.javafx.typeImpl.TypeFactoryImpl$ModuleImpl.getType(TypeFactoryImpl.java:6227) >>>> at >>>> >>>> net.java.javafx.jsr223.JavaFXScriptEngine.applyBindings(JavaFXScriptEngine.java:110) >>>> at >>>> >>>> net.java.javafx.jsr223.JavaFXScriptEngine.eval(JavaFXScriptEngine.java:67) >>>> at >>>> javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:232) >>>> at org.docx4all.script.FxScriptEngine.run(FxScriptEngine.java:125) >>>> at >>>> >>>> org.docx4all.script.FxScriptUIHelper.createToolBar(FxScriptUIHelper.java:65) >>>> at >>>> org.docx4all.ui.main.WordMLEditor.createMainPanel(WordMLEditor.java:503) >>>> at >>>> org.docx4all.ui.main.WordMLEditor.startup(WordMLEditor.java:145) >>>> at >>>> org.jdesktop.application.Application$1.run(Application.java:171) >>>> at >>>> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) >>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) >>>> at java.awt.EventDispatchThread.pumpOneEventForFilters(Ev > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
