0 Replies Latest reply on Oct 11, 2006 12:18 AM by Scott Stark

    Property name compatibility issue

    Scott Stark Master

      One issue I'm having is with translating legacy service descriptors to bean descriptor. There is a minor case problem with properties translated from mbean attribute names. The tomcat deployer is expecting lower case names for the properties, which were upper case in the jboss-service.xml:

      21:07:22,475 ERROR [AbstractKernelController] Error installing to Configured: name=WarDeployer state=Instantiated
      org.jboss.joinpoint.spi.JoinpointException: Property DefaultSecurityDomain not found for AbstractBeanInfo@536c21db{name=org.jboss.web.tomcat.tc6.deployers.TomcatDeployer classInfo= properties=[useJBossWebLoader, authenticators, deleteWorkDirOnContextDestroy, defaultSecurityDomain, cacheName, java2ClassLoadingCompliance, snapshotInterval, useLocalCache, managerClass, httpHeaderForSSOAuth, lenientEjbLink, relativeOrder, acceptNonWarDirs, allowSelfPrivilegedWebApps, name, unpackWars, class, filteredPackages, snapshotMode, useJK, securityManagerService, deployedApplications, configFile, domain, subjectAttributeName, contextMBeanCode, sessionCookieForSSOAuth, sessionIdAlphabet] methods=[hashCode, setSubjectAttributeName, setSubjectAttributeName, addDeployedApp, setHttpHeaderForSSOAuth, clone0, getSnapshotInterval, setSessionCookieForSSOAuth, getDefaultSecurityDomain, setAllowSelfPrivilegedWebApps, getDeployedApp, setFilteredPackages, getDeployedApplications, getSessionIdAlphabet, commitUndeploy, setDeleteWorkDirOnContextDestroy, getJava2ClassLoadingCompliance, prepareUndeploy, wait, wait, wait, notify, getDomain, getLenientEjbLink, getSnapshotMode, setManagerClass, setSnapshotMode, getFilteredPackages, getDeleteWorkDirOnContextDestroy, isAllowSelfPrivilegedWebApps, setDefaultSecurityDomain, getSessionCookieForSSOAuth, getServer, isRelevant, setSecurityManagerService, getObjectName, getManagerClass, setCacheName, addURLs, getName, setUseJBossWebLoader, setAuthenticators, getSubjectAttributeName, getSubjectAttributeName, getTmpLoader, setConfigFile, start, start, setSessionIdAlphabet, setDomain, clone, undeploy, undeploy, undeploy, undeploy, undeploy, setJava2ClassLoadingCompliance, deployWebModule, deploy, deploy, deploy, deploy, deploy, commitDeploy, getCacheName, setUnpackWars, setContextMBeanCode, getAcceptNonWarDirs, stop, stop, buildWebContext, handoff, isUseJK, getUseJBossWebLoader, equals, runFinalizer, setUseLocalCache, startConnectors, getClass, toString, getClassLoaderURLs, getUnpackWars, setLenientEjbLink, notifyAll, getRelativeOrder, getRelativeOrder, getConfigFile, setUseJK, stopConnectors, prepareDeploy, finalize, getAuthenticators, handleNotification, getContextMBeanCode, setAcceptNonWarDirs, getDeployment, getDeployment, removeDeployedApp, getDeploymentType, getHttpHeaderForSSOAuth, setSnapshotInterval, isUseLocalCache] constructors=[] events=}
       at org.jboss.kernel.plugins.config.Configurator.resolveProperty(Configurator.java:668)
       at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:442)
       at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoints(Configurator.java:407)
       at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getPropertySetterJoinPoints(AbstractKernelConfigurator.java:120)
       at org.jboss.kernel.plugins.dependency.ConfigureAction.installAction(ConfigureAction.java:52)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:96)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
      
      


      Its easy enough to change the names in the descriptor.