[jboss-jira] [JBoss JIRA] Updated: (JBAS-6983) Error configuring property: sessionIdAlphabet for WarDeployer

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Jun 2 12:10:57 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated JBAS-6983:
-----------------------------------

    Workaround Description: Move the <property name="sessionIdAlphabet">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-_</property> configuration element out of war-deployers-jboss-beans.xml and into the <bean name="WebServer"  class="org.jboss.web.tomcat.service.deployers.TomcatService"> bean in deploy/jbossweb.sar/META-INF/jboss-beans.xml.
                Workaround: [Workaround Exists]


Posted a workaround for those who need to configure this. The workaround is a kludge, but it works.

Remy, TBH the clustering code's use of it's own session id generation algorithm predates my involvement so I'm not familiar with the subtleties of why Ben went that way. I'll try and ping him. I know a year or two ago there were reports of session id collisions with the Tomcat algorithm and I never heard of any with the SessionIdGenerator, so I just left well enough alone. :)  I'd prefer though to get rid of SessionIdGenerator if possible.

Manuel, I'm curious as to why you wanted to configure this. If for future releases getting rid of SessionIdGenerator isn't practical, then changing to config via system property is a possibility. That's not as controllable via management tools like embedded console/Jopr/JON, so before doing that I'd like to get a better feel as to why/how often people would want to configure this.

> Error configuring property: sessionIdAlphabet for WarDeployer
> -------------------------------------------------------------
>
>                 Key: JBAS-6983
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6983
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Tomcat) service
>    Affects Versions: JBossAS-5.0.1.GA, JBossAS-5.1.0.GA
>         Environment: JBoss 5.0.1.GA or JBoss 5.1.0.GA
>            Reporter: Manuel Aznar Perez
>            Assignee: Brian Stansberry
>            Priority: Minor
>
> At "server/default/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml" when i uncomment "<property name="sessionIdAlphabet">" and run JBoss. Launch exception:
> 2009-05-28 08:34:34,670 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Configured: name=WarDeployer state=Instantiated
> java.lang.RuntimeException: Error configuring property: sessionIdAlphabet for WarDeployer
>         at org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:112)
>         at org.jboss.kernel.plugins.dependency.ConfigureAction.setAttributes(ConfigureAction.java:85)
>         at org.jboss.kernel.plugins.dependency.ConfigureAction.installActionInternal(ConfigureAction.java:44)
>         at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
>         at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
>         at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
>         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
>         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
>         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
>         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
>         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
>         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
>         at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
>         at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
>         at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
>         at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
>         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
>         at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
>         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
>         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
>         at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
>         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
>         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
>         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
>         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
>         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
>         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
>         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
>         at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
>         at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
> That is because don't have "jboss-web-service.jar" in deployer. 
> This jar is in "deploy/jbossweb.sar".
> This is fixed copy jar file to deployer directory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list