-
1. NoClassDefFound from EJB accessing third-party jar located in EAR
jaikiran Apr 6, 2011 1:38 AM (in response to rhinmass)simple.jar won't be available in the application classpath. You'll have to move it to .ear/lib folder (create the lib folder if it isn't there) so that jars within that folder are available to the entire .ear application.
-
2. NoClassDefFound from EJB accessing third-party jar located in EAR
philani Apr 6, 2011 1:56 AM (in response to rhinmass)Another option(cleaner) is to put the jar in your %JBOSS_HOME%/server/<profile>/lib folder to allow all apps access to the same version of the jar.
Saves you headaches down the line
-
3. NoClassDefFound from EJB accessing third-party jar located in EAR
wdfink Apr 6, 2011 2:56 AM (in response to philani)Hi Philani,
but in this case the scope is the hole server (as you mentioned) and this might not what you want because of different versions in different EARs.
Also you are not able to hotdeploy this during development time.
-
4. NoClassDefFound from EJB accessing third-party jar located in EAR
rhinmass Apr 6, 2011 12:19 PM (in response to jaikiran)Thank you. That was the problem.
Adding defaultLibBundleDir to the maven-ear-plugin configuration did the trick.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.5</version>
<configuration>
<defaultLibBundleDir>lib</defaultLibBundleDir>
<modules>
...
-
5. NoClassDefFound from EJB accessing third-party jar located in EAR
surajchhetry Apr 28, 2011 1:31 AM (in response to rhinmass)I am having same problem eventhough I have used <defaultLibBundleDir>lib</defaultLibBundleDir> but unable to resolve my issue . It is saying that my-ejb.jar not found so please help out.
-
6. NoClassDefFound from EJB accessing third-party jar located in EAR
jaikiran Apr 28, 2011 1:54 AM (in response to surajchhetry)Suraj, please create a separate topic with all the relevant details including the JBoss AS version, the Java vendor and version and the application packaging and the entire exception stacktrace.
-
7. NoClassDefFound from EJB accessing third-party jar located in EAR
surajchhetry Apr 28, 2011 2:16 AM (in response to jaikiran)Jaikiran, I have created seprate thread(http://community.jboss.org/message/602434) for it as per your suggestion.