2 Replies Latest reply on Jul 14, 2003 4:22 AM by mrtom

    JNDI/EJB problem

    mrtom

      Hello,

      I'm trying to deploy our app under JBoss but I'm having problems getting a remote Tomcat instance to use the EJBs. I'm using JBoss 4.0DR2 - as I am testing for future migration.
      I've created a standalone application which successfully connects and runs fine but under Tomcat I end up with...

      ERROR [main] (ServiceMBeanSupport.java:240) - Starting failed: javax.naming.NamingException: Context is read only
      FATAL [main] (ClientServiceMBeanSupport.java:76) - Could not set up mbean server or mbeans in client.naming.NamingException: Context is read only

      So I'm wondering if any Tomcat libs are getting in the way. I've tried hardcoded values, and env variables for tomcat to make sure the JBoss client libs are used and also tried creating a jndi.properties.
      The libs I have on the client include _all_ jars from $JBOSS/client/ (just to be sure) and jboss-system.jar, jboss-jmx.jar + jboss-remoting.jar from $JBOSS/lib/ dir as they seemed to be required.
      I have the feeling it's something simple but I can't think of anything more to try :-P
      Thanks,
      Tom.

        • 1. Re: JNDI/EJB problem
          viz

          Have you tried accessing your bean from a bootstrap?

          public class something
          {
          public static void main( String[] args )
          {
          ...
          }
          }

          Regards,
          --
          Marc

          • 2. Re: JNDI/EJB problem
            mrtom

            Yes, and it gives the same error. I've also taken everything else out so that just the one bean and the client is left.

            Tom.