• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Glassfish return java.lang.NoClassDefFoundError when deploying while using library from external JAR

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I am currently developing an application using Glassfish v3 and Netbeans IDE 6.9 and currently having issues. I have an Enterprise Application project which consist of a project-ejb and project-war. I am trying to use an external library/har from the project-ejb.

In the project-ejb, I added the external library/jar using Properties > Libraries > Compile and used it on one of my session beans. The problem is that the server always return an error after I declared the variable that is using the library and deployed the project.




Compilation works fine but deployment does not. The weird thing is that when I use the external library from the project-war, it just deploys fine and it can use it properly. Please advise on what I am doing wrong. I have searched the forum thoroughly for solutions but it seems that I am the only one who cannot solve the problem. Thanks!

Regards,
Ace
 
Ace David
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After scouring google, I finally found a solution to a certain problem but tried it anyway. I just have to put the libraries in this directory: <glassfish_home>/domains/domain1/lib
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic