8 Replies Latest reply on Apr 22, 2002 2:54 PM by starco

    [RARMetaData] Required license terms present...

    starco

      Hello.

      I use JBoss3.0 RC1. I have tried to deploy a bean and have got strange messages:


      18:06:47,899 INFO [Server] JBoss (MX MicroKernel) [3.0.0RC1 Date:200204150356] Started in 3m:12s:677ms
      18:29:36,887 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0RC1/server/default/deploy/EISFacade.jar
      18:29:36,977 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0RC1/server/default/deploy/
      18:29:38,750 INFO [RARMetaData] Loading Minerva Resource Adapter for JDBC 1/2 drivers
      18:29:38,760 INFO [RARMetaData] Required license terms present. See deployment descriptor.
      18:29:39,641 INFO [RARMetaData] Loading Minerva Resource Adapter for JDBC 2 XA drivers
      18:29:39,661 INFO [RARMetaData] Required license terms present. See deployment descriptor.
      18:29:39,931 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0RC1/server/default/deploy/
      18:29:39,941 INFO [STDOUT] UnifiedLoaderRepository skipping duplicate UnifiedClassLoader for key URL file:/C:/jboss-3.0.0RC1/server/default/deploy/
      18:29:41,894 INFO [RARMetaData] Loading Minerva Resource Adapter for JDBC 1/2 drivers
      18:29:41,904 INFO [RARMetaData] Required license terms present. See deployment descriptor.
      18:29:42,786 INFO [RARMetaData] Loading Minerva Resource Adapter for JDBC 2 XA drivers
      18:29:42,806 INFO [RARMetaData] Required license terms present. See deployment descriptor.
      18:29:43,076 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0RC1/server/default/deploy/
      18:29:43,086 INFO [STDOUT] UnifiedLoaderRepository skipping duplicate UnifiedClassLoader for key URL file:/C:/jboss-3.0.0RC1/server/default/deploy/
      18:29:45,069 INFO [RARMetaData] Loading Minerva Resource Adapter for JDBC 1/2 drivers
      ....
      and so on. The last 6 lines are repeated all time during server is running. The free space on HDD decreases (may be to 0). Finally the server throws an exception
      and fails.

      I do not a reason of this strange behaviour. Can anybode help me?

      There jboss.xml and ejb-jar.xml too. Sorry, the attachment servis does not work now for me.

      jboss.xml
      <?xml version="1.0" encoding="Cp1252"?>

      <enforce-ejb-restrictions>false</enforce-ejb-restrictions>
      <enterprise-beans>

      <ejb-name>EISFacadeBean</ejb-name>
      <jndi-name>MyEISFacadeBean</jndi-name>
      <ejb-ref>
      <ejb-ref-name>ejb/LookupCacheRef</ejb-ref-name>
      <jndi-name>MyLookupCacheBean</jndi-name>
      </ejb-ref>


      <ejb-name>LookupCacheBean</ejb-name>
      <jndi-name>MyLookupCacheBean</jndi-name>
      <ejb-ref>
      <ejb-ref-name>ejb/XMLRepository</ejb-ref-name>
      <jndi-name>MyXMLRepositoryBean</jndi-name>
      </ejb-ref>
      <ejb-ref>
      <ejb-ref-name>ejb/BusinessObjectRegistry</ejb-ref-name>
      <jndi-name>MyBusinessObjectRegistryBean</jndi-name>
      </ejb-ref>
      <ejb-ref>
      <ejb-ref-name>ObjectStore</ejb-ref-name>
      <jndi-name>MyObjectStoreBean</jndi-name>
      </ejb-ref>
      <ejb-ref>
      <ejb-ref-name>SAPSystem</ejb-ref-name>
      <jndi-name>MyERPBean</jndi-name>
      </ejb-ref>

      </enterprise-beans>
      <resource-managers/>
      <container-configurations/>


      =========================================
      ejb-jar.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by ypaseyshvili (BelDTS) -->
      <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
      <ejb-jar>
      <display-name>EISFacadeJAR</display-name>
      <enterprise-beans>

      <display-name>EISFacadeBean</display-name>
      <ejb-name>EISFacadeBean</ejb-name>
      de.dts.businessobject.impl.EISFacadeHome
      de.dts.businessobject.EISFacade
      <ejb-class>de.dts.businessobject.impl.EISFacadeBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <ejb-ref>
      <ejb-ref-name>ejb/LookupCacheRef</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      de.dts.common.impl.LookupCacheHome
      de.dts.common.LookupCache
      </ejb-ref>
      <security-identity>

      <use-caller-identity/>
      </security-identity>


      <display-name>LookupCacheBean</display-name>
      <ejb-name>LookupCacheBean</ejb-name>
      de.dts.common.impl.LookupCacheHome
      de.dts.common.LookupCache
      <ejb-class>de.dts.common.impl.LookupCacheBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <ejb-ref>
      <ejb-ref-name>ejb/XMLRepository</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      de.dts.common.impl.XMLRepositoryHome
      de.dts.common.XMLRepository
      </ejb-ref>
      <ejb-ref>
      <ejb-ref-name>ejb/BusinessObjectRegistry</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      de.dts.businessobject.impl.BusinessObjectRegistryHome
      de.dts.businessobject.BusinessObjectRegistry
      </ejb-ref>
      <ejb-ref>
      <ejb-ref-name>ObjectStore</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      de.dts.eistier.impl.EISSystemHome
      de.dts.eistier.EISSystem
      </ejb-ref>
      <ejb-ref>
      <ejb-ref-name>SAPSystem</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      de.dts.eistier.impl.EISSystemHome
      de.dts.eistier.EISSystem
      </ejb-ref>
      <security-identity>

      <use-caller-identity/>
      </security-identity>

      </enterprise-beans>
      <assembly-descriptor>
      <method-permission>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Home</method-intf>
      <method-name>remove</method-name>
      <method-params>
      <method-param>java.lang.Object</method-param>
      </method-params>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getHandle</method-name>
      <method-params/>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getEISSystem</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      </method-params>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Home</method-intf>
      <method-name>remove</method-name>
      <method-params>
      <method-param>javax.ejb.Handle</method-param>
      </method-params>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Home</method-intf>
      <method-name>getHomeHandle</method-name>
      <method-params/>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getBusinessObjectRegistry</method-name>
      <method-params/>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getPrimaryKey</method-name>
      <method-params/>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Home</method-intf>
      <method-name>getEJBMetaData</method-name>
      <method-params/>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>remove</method-name>
      <method-params/>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getXMLRepository</method-name>
      <method-params/>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Home</method-intf>
      <method-name>create</method-name>
      <method-params/>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>isIdentical</method-name>
      <method-params>
      <method-param>javax.ejb.EJBObject</method-param>
      </method-params>


      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getEJBHome</method-name>
      <method-params/>

      </method-permission>
      <container-transaction>

      <ejb-name>EISFacadeBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>findBusinessObjectByIdentity</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      <method-param>java.lang.String</method-param>
      <method-param>de.dts.businessobject.LoadingProperties</method-param>
      </method-params>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction>

      <ejb-name>EISFacadeBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>findBusinessObjectByIdentifier</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      <method-param>de.dts.businessobject.LoadingProperties</method-param>
      </method-params>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction>

      <ejb-name>EISFacadeBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>createBusinessObject</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      <method-param>java.lang.String</method-param>
      </method-params>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction>

      <ejb-name>EISFacadeBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>deleteBusinessObject</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      </method-params>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction>

      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getBusinessObjectRegistry</method-name>
      <method-params/>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction>

      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getXMLRepository</method-name>
      <method-params/>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      <container-transaction>

      <ejb-name>LookupCacheBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>getEISSystem</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      </method-params>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>

      Thanks in advance.

        • 1. Re: [RARMetaData] Required license terms present...
          davidjencks

          This is really bizarre. Does this happen if take a clean version of rc1, do not add anything, and start it?

          3 minutes to start is a very long time. What is your hardware? OS?

          For some reason the deployment scanner is trying to deploy the directory it is supposed to be scanning...

          • 2. Re: [RARMetaData] Required license terms present...
            starco

            >This is really bizarre. Does this happen if take a clean version of rc1, do not add anything, and start it?
            I have added the sybase database and have deployed four beans.

            >3 minutes to start is a very long time. What is your hardware? OS?
            I think that in this time I have started other applications. Usually server starts for 1 min 20 sec.

            >For some reason the deployment scanner is trying to deploy the directory it is supposed to be scanning...
            How I can correct it? May be reason is wrog ejb-jar.xml or jboss.xml?

            • 3. Re: [RARMetaData] Required license terms present...
              starco

              >3 minutes to start is a very long time. What is your hardware? OS?
              just I started the server in debug mode

              • 4. Re: [RARMetaData] Required license terms present...
                davidjencks

                I'd still like to know what your hardware and os are, and the mbean config for jboss.deployment:type=DeploymentScanner,flavor=URL.

                If you are tracing what is going on start there (org.jboss.deployment.scanner.URLDeploymentScanner)

                • 5. Re: [RARMetaData] Required license terms present...
                  starco

                  >I'd still like to know what your hardware and os are, and the mbean config for jboss.deployment:type=DeploymentScanner,flavor=URL.
                  hardware: P3 700Mh, RAM 380MB, HDD 10GB, no peripheral
                  devices
                  OS: win2000
                  jboss-service.xml:


                  <!-- Uncomment (and comment/remove version below) to enable usage of the DeploymentCache
                  <depends optional-attribute-name="Deployer">jboss.deployment:type=DeploymentCache
                  -->
                  <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer

                  5000

                  <!--
                  | URLs are comma seperated and unprefixed arguments are considered
                  | file URLs and resolve relative to server home unless the given path
                  | is absolute.
                  -->

                  ./deploy



                  I change nothing there.

                  • 6. Re: [RARMetaData] Required license terms present...
                    starco

                    Hello

                    I was is surprised when have found the reason of this behaviour. Me ejb has the following META-INF\Manifest.mf:
                    Manifest-Version: 1.0
                    Class-Path: . /ejb-jar-ic646.jar

                    When I have deleted the last line all became to work. :-)

                    Thank you for responds, David.

                    • 7. Re: [RARMetaData] Required license terms present...
                      davidjencks

                      I take it that that jar does not exist? I saw a similar bug a while back... it had pretty much the same effect, too;-)

                      Thanks for reporting the issue and solution.

                      david jencks

                      • 8. Re: [RARMetaData] Required license terms present...
                        starco

                        Yes. You are right. This jar-file does not exist.