0 Replies Latest reply on Jan 20, 2008 10:09 PM by Mike Dougherty

    Shared Tomcat/JVM

    Mike Dougherty Newbie

      Hello,

      I am building a Seam application which will be hosted in a share instance of Tomcat when it is done. I've been able to get the application to load. But there are permission problems with the JSF implementation I try to access one of the pages.

      Jan 20, 2008 3:20:47 PM org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      javax.faces.FacesException: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:387)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
       at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:121)
       at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:737)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
       at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
       at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
       at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
       at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
       at org.apache.catalina.core.StandardService.start(StandardService.java:450)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
      Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
       at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
       at java.security.AccessController.checkPermission(AccessController.java:546)
       at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
       at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1252)
       at java.beans.PropertyEditorManager.registerEditor(PropertyEditorManager.java:56)
       at com.sun.faces.application.ApplicationImpl.addPropertyEditorIfNecessary(ApplicationImpl.java:706)
       at com.sun.faces.application.ApplicationImpl.addConverter(ApplicationImpl.java:660)
       at org.jboss.seam.jsf.SeamApplication.addConverter(SeamApplication.java:78)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:727)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:489)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
       ... 27 more
      


      I've been doing some research to see if there is an alternative JSF implementation I could use. But everything seems to require this Sun library be included.

      Has anyone been successful in deploying a Seam application in a shared Tomcat environment? If so, I could use some pointers on how to configure mine.

      Thanks for your help.