0 Replies Latest reply on Mar 13, 2003 12:55 PM by ertdredge

    Petstore won't run as exploded EAR?

    ertdredge

      I'm playing around with Sun's Petstore demo (v1.1.2, an old version so I can apply the JBoss patch) on JBoss 3.0.4. Everything works fine, I can log in, and I've updated it to run on Postgres instead of Cloudscape.

      However, when I take the EAR, explode it, and deploy the exploded version, I get several errors like the following:

      12:45:32,540 INFO [EJBDeployer]
      Bean : TheCart
      Method : public abstract ShoppingCart create() throws RemoteException, CreateException
      Section: 7.10.6
      Warning: The return type for a create(...) method must be the session bean's remote interface type.

      12:46:10,544 ERROR [LogInterceptor] Unexpected Error:
      java.lang.LinkageError: loader constraints violated when linking com/sun/j2ee/blueprints/shoppingcart/cart/ejb/ShoppingCart class
      at com.sun.j2ee.blueprints.petstore.control.ejb.ShoppingClientControllerEJB.getShoppingCart(ShoppingClientControllerEJB.java:92)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [...]


      Anyone have any thoughts? I see a few posts that comment on different behaviour between exploded and packaged deployments, but nothing conclusive.

      - Ert