Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7708263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:34:07+00:00 2026-06-01T00:34:07+00:00

I have an application (CC) containing two modules: CC-ejb and CC-war. CC-ejb contains JPA

  • 0

I have an application (“CC”) containing two modules: CC-ejb and CC-war. CC-ejb contains JPA entities and facades which CC-war uses. This application works correctly. Now I create another one (“CINT”) with also two modules: CINT-ejb and CINT-war. In web module I need to access objects provided by CC-ejb. I use NetBeans 7.1 for development and Glassfish 3.1.1 for deployment.


In CC-ejb I have an interface:

/* ... */
import javax.ejb.Local;

@Local
public interface CallDetailsFacadeLocal {
        /* ... */

and an implementing class:

/* ... */
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
/* ... */
import tp.coma.data.entities.CallDetails;

@Stateless
public class CallDetailsFacade
            extends AbstractFacade<CallDetails>
            implements CallDetailsFacadeLocal {
    @PersistenceContext(unitName = "CC-ejbPU")
    private EntityManager em;
    /* ... */

In CINT-war I refer to it in one of my beans:

/* ... */
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import tp.coma.data.beans.CallDetailsFacadeLocal;
/* ... */

@ManagedBean(name = "bookingController")
@SessionScoped
public class BookingController implements Serializable {
    /* ... */
    @EJB
    private CallDetailsFacadeLocal cdrFacade;
    /* ... */

When deploying CINT (CC is already up and running) I get the following message:

Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Ltp/coma/data/beans/CallDetailsFacadeLocal;java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Ltp/coma/data/beans/CallDetailsFacadeLocal;. Please see server.log for more details.

In server log I can see:

[#|2012-03-28T12:42:42.236+0200|SEVERE|glassfish3.1.1|global|_ThreadID=22;_ThreadName=Thread-2;|Class [ Ltp/coma/data/beans/CallDetailsFacadeLocal; ] not found. Error while loading [ class tp.coma.cint.jsf.BookingController ]|#]
[#|2012-03-28T12:42:42.252+0200|SEVERE|glassfish3.1.1|global|_ThreadID=22;_ThreadName=Thread-2;|Class [ Ltp/coma/data/beans/CallDetailsFacadeLocal; ] not found. Error while loading [ class tp.coma.cint.jsf.BookingController ]|#]

And a few (eight) exception stack traces.

What am I doing wrong??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:34:09+00:00Added an answer on June 1, 2026 at 12:34 am

    If you are doing builds with maven, read about generating a client jar along with your ejb jar. http://maven.apache.org/plugins/maven-ejb-plugin/examples/ejb-client-dependency.html

    If you are doing ant builds, create a task that generates a client jar, just include **/*Local.jar, or whatever pattern makes sense for your project.

    And don’t forget about the *$1.class files, they can bite you later. For example if you do a switch on an Enum, java generates a anonymous class, and you’ll end up with XYZ$1.class, and depending on what it is, you’ll need to exclude or include it. In my case maven included the generated $1.class from a session bean implementation. Then the different classloaders got mad that there were two copies of this anonymous class. (IllegalAccessError)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application containing two web services, let's say PublicHello.asmx and RestrictedHello.asmx
I have made a simple test application for the issue, two winforms each containing
We have a distributed application containing C++ and Java modules, interacting via CORBA. Are
I have a Websphere Portal application containing several portlets for which I'm currently working
I have an iphone application containing two views The first view have a button,
I have an eclipse workspace containing two projects, which I'll call foo-lib and foo-app.
I have a WPF application with a screen containing a tab control with two
I currently have a J2EE project containing an EJB and a WAR. Everything goes
We have an application containing a lot of user controls that update frequently based
I have an application containing a variety of view controllers linked together in different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.