• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

NoClassDefFoundError

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm using third party library- JFree Chart Libraries
These jar file are placed in /WEB-INF/lib .
But when i deploy the app as war file on weblogic 9.2, the server throws following exception and the graphs are not generated:

java.lang.NoClassDefFoundError: org/jfree/chart/plot/MeterPlot
at com.xpedion.agentsettlement.bll.bo.AS_DashboardBO.createMeterPendingWireCreation(AS_DashboardBO.java:829)
at com.xpedion.agentsettlement.dashboard.ASDashboardServlet.doGet(ASDashboardServlet.java:175)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3211)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

This application runs fine when running through JDeveloper IDE and its inbuilt OC4J application server.


Kindly help.
thanks and regards,
Dipendra
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java.lang.NoClassDefFoundError: org/jfree/chart/plot/MeterPlot

Maybe the jar file was corrupted during the move.
Did you inspect it with the jar command?


This will dump the names of all the files (with directory structure) in the jar archive.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have not worked with jFreecharts..but does that have any other .jar in the bundle or that is the the only jar required to work with.If yes then try downloading that again.the version that you are using might be bad.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I guess you are deploying your war file using the JDeveloper.

I you add the third party jar in ProjectProperty >> Profiles >> Development >> Paths it will work in JDeveloper, but when you deploy (if you are deploying through JDev) the jar file won't be taken to WEB-INF/lib.

Make sure the third party jar file is included in ProjectProperty >> Profiles >> Development >> Libraries. In this case the jar file will be taken to the proper directory.

Sam
reply
    Bookmark Topic Watch Topic
  • New Topic