1 Reply Latest reply on Jun 17, 2004 12:08 PM by daorriss

    Exceptions on redeploy of EJB Jar

    daorriss

      Hi,

      When I start Jboss with an ejb JAR file and a servlet WAR file that accesses a bean in the EJB file, everything works fine. However if I redeploy the EJB JAR file I'm getting either a java.lang.ClassCastException *or* I'm getting the following (I've included a partial stacktrace):

      javax.ejb.EJBException: Unexpected Error
      java.lang.LinkageError: loader constraints violated when linking com/arevatd/osm/common/RequestListData class
      at com.arevatd.osm.ejb.requests.SwitchRequestServiceStubBean.getRequestList(SwitchRequestServiceStubBean.java:244)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)

        • 1. Re: Exceptions on redeploy of EJB Jar
          daorriss

          Just an FYI for posterity...

          After reading and finding that a "LinkageError" is basically reported when there's a object loading error I found that there was overlap between two libraries containing the same objects. After I reorganized the projects to make sure they didn't load overlapping class dependencies into their own WAR/JAR files everything works fine and JBoss hot deploys like a dream