Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110890 - Octopus-3.0.1 gets NoClassDef error when trying to create a new project
Summary: Octopus-3.0.1 gets NoClassDef error when trying to create a new project
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 06:16 UTC by Mark
Modified: 2005-12-19 20:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2005-10-30 06:16:01 UTC
After emerging Octopus I try and run it with  java -jar
/usr/share/octopus-3.0/lib/OctopusGenerator.jar. It start up but when i click on
new project I get an error about a class def not found

java.lang.NoClassDefFoundError: org/webdocwf/util/loader/LoaderException
        at
org.webdocwf.util.loader.wizard.OctopusGeneratorData.<init>(OctopusGeneratorData.java:97)
        at
org.webdocwf.util.loader.wizard.WizardFrame.createOctopusProjectFrame(WizardFrame.java:261)
        at org.webdocwf.util.loader.wizard.WizardFrame.access$4(WizardFrame.java:30)
        at
org.webdocwf.util.loader.wizard.WizardFrame$NewOctopusProjectItem.actionPerformed(WizardFrame.java:355)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:5100)
        at java.awt.Component.processEvent(Component.java:4897)
        at java.awt.Container.processEvent(Container.java:1569)
        at java.awt.Component.dispatchEventImpl(Component.java:3615)
        at java.awt.Container.dispatchEventImpl(Container.java:1627)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at java.awt.Container.dispatchEventImpl(Container.java:1613)
        at java.awt.Window.dispatchEventImpl(Window.java:1606)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

 

Reproducible: Always
Steps to Reproduce:
1.emerge octopus
2.java -jar ... .jar
3.

Actual Results:  
Application crashes when a new project is started

Expected Results:  
Application should create a new project
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2005-11-23 23:12:13 UTC
I don't think that you're not putting all the libraries it expects on the
classpath. I found that missing class in
/usr/share/octopus-3.0/lib/Octopus.jar... so could you try:
java -cp /usr/share/octopus-3.0/lib/Octopus.jar -jar
/usr/share/octopus-3.0/lib/OctopusGenerator.jar
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2005-11-24 13:18:44 UTC
(In reply to comment #1)
> I don't think that you're not putting all the libraries it expects on the
> classpath.
Double negative... whoops. I don't think you're putting all the libraries it
expects on the classpath.
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2005-11-25 15:19:14 UTC
Please try with the following command. Re-open if that doesn't work.

java -cp /usr/share/octopus-3.0/lib/Octopus.jar -jar
/usr/share/octopus-3.0/lib/OctopusGenerator.jar
Comment 4 Mark 2005-11-25 18:21:08 UTC
Hi there,

Ok I tried explicitly setting the classpath to the Octopus.jar as stated and it
works. I also did a java-config -B octopuse-3.0 and I dont have to explicitly
set the classpath on the command line

Thanks
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2005-11-25 18:26:17 UTC
Excellent. Thanks for reporting back!
Comment 6 Mark 2005-11-25 18:32:40 UTC
sorry -- I just tried to create a new project and still get the error. I have
been using the web start version just fine though. 

Comment 7 Josh Nichols (RETIRED) gentoo-dev 2005-11-25 18:41:13 UTC
If you used java-config -B, you would need to source the appropriate environment
files. Otherwise, you're shell wouldn't get the new classpath.
Comment 8 Mark 2005-11-26 02:37:22 UTC
i had forgotten what the error was when i tried your suggestions. I thought it
was just failure to launch the application but the application launches fine.
Its when you clikc on the Project=>New Project menu item and try to save the
project that the error occurs. In the console it give the error about the class
definition set out above. There must be some other class missing from the
classpath but I dont know which one it is.

Does it work fine for you or do you also have the same problem when creating a
new project?
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2005-11-26 03:13:01 UTC
Reopening 
Comment 10 Josh Nichols (RETIRED) gentoo-dev 2005-12-18 16:05:17 UTC
Actually, the program just seems to hang for me when I start a new project. Out of curiousity, have you tried using pre-built jars from upstream?
Comment 11 Josh Nichols (RETIRED) gentoo-dev 2005-12-18 16:09:25 UTC
Alright, seems it was my gtk engine (clearlooks), that was causing the hang.

Could you try running:
java -classpath $(java-config -p octopus-3.0) org.webdocwf.util.loader.wizard.WizardFrame

With this, I was able to create a new project.
Comment 12 Mark 2005-12-19 20:21:45 UTC
hi there,

Yes it worked. I could create a new project. I get errors in the console like 
  "Engine "crux-engine" is unsupported, ignoring"
But I could get past the create new project screen to the setup dialog form.

thanks
Comment 13 Josh Nichols (RETIRED) gentoo-dev 2005-12-19 20:27:52 UTC
Re-openning, so I can resolve as fixed...
Comment 14 Josh Nichols (RETIRED) gentoo-dev 2005-12-19 20:29:40 UTC
Glad to hear it works. If you want wrapper scripts for the octopus stuff, please file a new bug.