Error In Annotation Processing Java.lang.noclassdeffounderror
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error deploying ear to Glassfish up vote 1 down vote favorite We have a EAR with 3 EJB modules. I am trying to deploy to glassfish but am hitting an error I can't explain or work out how best to identify. [#|2010-08-03T14:39:15.570+0100|INFO|glassfish3.0.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=28;_ThreadName=Thread-1;|[AutoDeploy] Selecting file /export/home/myapp/apps/domains/myapp/autodeploy/App-ear.ear for autodeployment.|#] [#|2010-08-03T14:39:18.654+0100|WARNING|glassfish3.0.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=28;_ThreadName=Thread-1;|Error in annotation processing: java.lang.NoClassDefFoundError: com/company/app/controller/IMessagingProcessor|#] [#|2010-08-03T14:39:20.470+0100|SEVERE|glassfish3.0.1|global|_ThreadID=28;_ThreadName=Thread-1;|Class [ Lcom/company/app/jms/IJmsSessionFactory; ] not found. Error while loading [ class com.company.app.eventprocessor.provider.EventProvider ]|#] I have checked the classes mentioned in the ClassNotFoundException and they are definetly in a Jar in the ear and I have no compilation issues in eclipse/maven. D:\Repository\App\AppEA\App-ear\target\App-ear.ear\CoreJms-1.0-SNAPSHOT.jar\com\company\app\controller\IMessagingProcessor.class D:\Repository\App\AppEA\App-ear\target\App-ear.ear\EventProcessor-ejb-1.0-
Sign in Pricing Blog Support Search GitHub This repository Watch 1,090 Star 7,723 Fork 7,526 spring-projects/spring-boot Code Issues 548 Pull requests 68 Projects 0 Wiki Pulse Graphs New issue Cannot deploy simple project on Glassfish 3.1.2 and 4.0.0+ #1355 Closed vemod opened this Issue Aug http://stackoverflow.com/questions/3397178/error-deploying-ear-to-glassfish 8, 2014 · 6 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants vemod commented Aug 8, 2014 I created new Spring Starter project in STS. Standalone mvn spring-boot:run works without https://github.com/spring-projects/spring-boot/issues/1355 issues. Changed jar to war Changed Application class @Configuration @ComponentScan @EnableAutoConfiguration public class Application extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(Application.class); } } my pom.xml
This Site Careers Other all forums Forum: EJB and other Java EE Technologies Glassfish return java.lang.NoClassDefFoundError when deploying while using library from external JAR Ace https://coderanch.com/t/507913/EJB-JEE/java/Glassfish-return-java-lang-NoClassDefFoundError David Greenhorn Posts: 2 posted 6 years ago Hi guys, I am currently developing an application using Glassfish v3 and Netbeans IDE 6.9 and currently having issues. I have https://vaadin.com/forum#!/thread/4783150 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 error in 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. package com.org.test; import com.ext.ExternalLibrary; @Singleton @LocalBean public class TestSessionBean { ExternalLibrary extLib; public void someMethod(){ } error in annotation } SEVERE: Class [ Lcom/ext/ExternalLibrary; ] not found. Error while loading [ class com.org.test ] WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: Lcom/ext/ExternalLibrary; org.glassfish.deployment.common.DeploymentException: java.lang.NoClassDefFoundError: Lcom/ext/ExternalLibrary; at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:167) . . 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 posted 6 years ago 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:
Comparison Elements Getting Started Videos Demos Docs Community Forum Blog Wiki Meetup Contribute Webinars Services Consulting Support Training Certification Success Stories Pro Tools Designer Charts TouchKit TestBench Spreadsheet Company Team Contact Us Newsletter Press Partners Jobs Success Stories Vaadin Pro Licenses Bugfix Feature Votes Vaadin Pro HB integration Pro Signup Licenses Bugfix Feature Votes I'm sorry, but your browser is not supportedThe version (3.8) of the browser you are using is outdated and not supported.You should consider upgrading to a more up-to-date browser. The most popular browsers are Chrome, Firefox, Internet Explorer, Opera and Safari.Upgrading to the latest version of one of these will make the web safer, faster and better looking.Continue without updating (not recommended) Star This is Tori–an open-source forum portlet for Liferay. Available at GitHub. Framework Demo Learn Documentation Add-ons Tutorials Features Roadmap Elements Getting Started Videos Demos Docs Pro Tools Charts TouchKit TestBench Spreadsheet Designer Download Book Maven Font Icons Community Forum Blog Wiki Meetups Contribute Services Consulting Support Plans Training Certification Company Team Open Positions Contact Us Newsletter Press Releases Partners Success Stories Logo & Trademarks © 2016 Vaadin Ltd. All rights reserved. Terms of Service and Use