1 Reply Latest reply on Oct 20, 2002 12:51 PM by jbone

    3.0.3 not deploying jboss-service.xml mbean

    jbone

      I am using jboss 3.0.3 and can't get the jar file to start the mbean service I have in the jboss-service.xml file:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server>
      <!-- $Id: myapp-service.xml $ -->


      jboss:service=Hypersonic



      I am new to the mbean thing, so suspect its something Im doing wrong.

      I also tried making this into a sar - the problem there is that the myapp package contains EJB's which are not loaded when the sar is deployed.

      I have also tried making a myapp-service.xml file, dropping the jar into deploy, then dropping the myapp-service.xml file in. Jboss raises:

      java.lang.IllegalAccessError

      when trying to pick up a bean - yet the bean is in the same jar as the myapp stuff? There is only one jar file deployed.

      Any help appreciated - been on this for 14 hours now.

        • 1. Re: 3.0.3 not deploying jboss-service.xml mbean
          jbone

          Also tried putting jar file in a new directory /myapp (under jboss-3.0.3/server/default) and dropping the following myapp-service.xml into deploy:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE server>
          <!-- $Id: myapp-service.xml $ -->




          jboss:service=Hypersonic




          It starts up right, but gives me the following when the socket server spawns a class to find the loginbean by primary key:

          2002-10-20 11:57:46,143 DEBUG [SystemAction.class] checking login
          2002-10-20 11:57:46,153 DEBUG [SystemAction.class] finding by PK
          2002-10-20 11:57:46,163 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.LoginBean.findByPrimaryKey] Executing SQL: SELECT username FROM LOGINBEAN WHERE username=?
          2002-10-20 11:57:46,193 ERROR [STDERR] java.lang.IllegalAccessError: try to access class myapp.Login from class $Proxy52
          2002-10-20 11:57:46,193 ERROR [STDERR] at $Proxy52.findByPrimaryKey(Unknown Source)
          2002-10-20 11:57:46,203 ERROR [STDERR] at myapp.SystemAction.run(SystemAction.java:222)