Jump to content
Changes to the Jaspersoft community edition download ×

New report. java.lang.NoClassDefFoundError


6sic6

Recommended Posts

Hello

I've created a "Javabean set datasource"

my class (CreateBeanList.class) contains a method createList that return a List of javabeans of PrimoBean.class

If I "test" it all works well.

Now I want to create a "New report" with the wizard

I select the connection and it ask me the "JavaBean class"

If I try to put "PrimoBean" and I click to next..the next-button goes disabled and the ireport's console say me

 

Code:
Can't find the translation for key = pathToFonts: using default (Fonts path)
java.awt.Dimension[width=86,height=24]
Can't find the translation for key = pathToFonts: using default (Fonts path)
Can't find the translation for key = setHeader: using default (Get columndescrip
tions from datasource)
Exception in thread "Thread-5" java.lang.NoClassDefFoundError: PrimoBean (wrong
name: it/xxx/omc/action/report/PrimoBean)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at it.businesslogic.ireport.gui.WizardDialog.readFields(WizardDialog.jav
a:2192)
at it.businesslogic.ireport.gui.WizardDialog.run(WizardDialog.java:1410)

at java.lang.Thread.run(Unknown Source)

 

I set the classpath correctly.. when I create my connection I don't have problem..

someone can help me?

thanks a lot

martina

Post edited by: 6sic6, at: 2006/11/28 11:04

Link to comment
Share on other sites

  • 2 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...