1 Reply Latest reply on Jul 31, 2002 3:29 AM by Mirza Mohsin Beg

    Unique security-domain for one single bean

    Oskar Milton Newbie

      When setting the security-domain for a specific bean jboss doesn't load it.

      I run 'JBoss-2.4.4_Tomcat-3.2.3'

      Has anyone succeded doing this?

      My jboss.xml looks like this:



      <security-domain>java:/jaas/snapshot</security-domain>
      <enterprise-beans>

      <ejb-name>User</ejb-name>
      <configuration-name>User Bean Config</configuration-name>

      </enterprise-beans>

      <container-configurations>
      <container-configuration>
      <container-name>User Bean Config</container-name>
      <security-domain>java:/jaas/other</security-domain>
      </container-configuration>
      </container-configurations>



      /OM

        • 1. Re: Unique security-domain for one single bean
          Mirza Mohsin Beg Newbie

          I get NullPointerException for the following jboss.xml on JBoss2.4.3 on Linux. What is happening here. If I put <security-domain> at the top level and remove the named container configuration, everything runs fine. Can someone please help ?



          <enterprise-beans>

          <configuration-name>SecurityConfiguration</configuration-name> <ejb-name>SRPEJB</ejb-name>
          <jndi-name>security.SRPHome</jndi-name>

          </enterprise-beans>
          <container-configurations>
          <container-configuration>
          <container-name>SecurityConfiguration</container-name>
          <security-domain>java:/jaas/anonymous</security-domain>
          </container-configuration>
          </container-configurations>




          [AutoDeployer] Auto deploy of file:/usr/local/certive/lib/deploy/talisman.ear
          [J2EE Deployer Default] Deploy J2EE application: file:/usr/local/certive/lib/deploy/talisman.ear
          [J2eeDeployer] Create application talisman.ear
          [J2eeDeployer] install EJB module jboss_Talisman.jar
          [J2eeDeployer] add all ejb jar files to the common classpath
          [Container factory] Deploying:file:/opt/JBoss_3/tmp/deploy/Default/talisman.ear
          [Container factory] failed to load jboss.xml. There could be a syntax error.
          [Container factory] java.lang.NullPointerException
          [Container factory] at org.jboss.metadata.ConfigurationMetaData.importJbossXml(ConfigurationMetaData.java:182)
          [Container factory] at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:342)
          [Container factory] at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:177)
          [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:438)
          [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
          [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
          [Container factory] at java.lang.reflect.Method.invoke(Native Method)
          [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
          [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
          [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
          [Container factory] at java.lang.reflect.Method.invoke(Native Method)
          [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
          [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
          [Container factory] at java.lang.Thread.run(Thread.java:479)
          [Container factory] java.lang.NullPointerException
          [Container factory] at org.jboss.metadata.ConfigurationMetaData.importJbossXml(ConfigurationMetaData.java:182)
          [Container factory] at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:342)
          [Container factory] at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:177)
          [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:438)
          [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
          [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
          [Container factory] at java.lang.reflect.Method.invoke(Native Method)
          [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [Container factory] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
          [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
          [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
          [Container factory] at java.lang.reflect.Method.invoke(Native Method)
          [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
          [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
          [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
          [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
          [Container factory] at java.lang.Thread.run(Thread.java:479)