I have the following configuration:
tomcat 5.5 Ubuntu Linux (Edgy Eft) I have followed the instructions on the website, including downloading the policy file for running in a security manager and setting the mentioned properties in the system properties file ($CATALINA_HOME/conf/catalina.properties), however, I'm still getting AccessControlExceptions. SEVERE: Allocate exception for servlet ops-main-servlet java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader) at java.security.AccessControlContext.checkPermission(AccessControlConte xt.java:264) at java.security.AccessController.checkPermission(AccessController.java: 427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.Thread.setContextClassLoader(Thread.java:1306) at org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:61) at javax.servlet.GenericServlet.init(GenericServlet.java:211) ... It runs just fine if I don't run tomcat with a security manager. Any help would be appreciated. Thanks, Jeff -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Jeff,
I don't think the policy file is quite up to date. In fact, it is hell to setup a correct policy file! But for this particular issue, try, in your web.xml, to replace occurrences of OPSServlet with OPSServletDelegate. That may solve your problem. -Erik [hidden email] wrote: > I have the following configuration: > > tomcat 5.5 > Ubuntu Linux (Edgy Eft) > > I have followed the instructions on the website, including downloading the > policy file for running in a security manager and setting the mentioned > properties in the system properties file > ($CATALINA_HOME/conf/catalina.properties), however, I'm still getting > AccessControlExceptions. > > SEVERE: Allocate exception for servlet ops-main-servlet > java.security.AccessControlException: access denied > (java.lang.RuntimePermission > setContextClassLoader) > at > java.security.AccessControlContext.checkPermission(AccessControlConte > xt.java:264) > at > java.security.AccessController.checkPermission(AccessController.java: > 427) > at > java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > at java.lang.Thread.setContextClassLoader(Thread.java:1306) > at org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:61) > at javax.servlet.GenericServlet.init(GenericServlet.java:211) > ... > > > It runs just fine if I don't run tomcat with a security manager. > > Any help would be appreciated. > > Thanks, > Jeff Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 The change mentioned below didn't help. Here now are the errors I'm getting. Note, I only get these errors when running with a SecurityManager in tomcat. If I don't run tomcat that way, it works. jeff@CanisMajor:~$ tail -n0 -f /var/log/tomcat5.5/catalina_2007-01-04.log Using CATALINA_BASE: /var/lib/tomcat5.5 Using CATALINA_HOME: /usr/share/tomcat5.5 Using CATALINA_TMPDIR: /var/lib/tomcat5.5/temp Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.08 Using Security Manager Jan 4, 2007 1:52:34 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/../lib/i386 Jan 4, 2007 1:52:34 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8180 Jan 4, 2007 1:52:34 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1028 ms Jan 4, 2007 1:52:34 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 4, 2007 1:52:34 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5 Jan 4, 2007 1:52:35 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jan 4, 2007 1:52:35 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/share/tomcat5.5/webapps/balancer inside the host appBase has been specified, and will be ignored Jan 4, 2007 1:52:35 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Jan 4, 2007 1:52:35 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/share/tomcat5.5/webapps/tomcat-docs inside the host appBase has been specified, and will be ignored Jan 4, 2007 1:52:36 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive ops.war Jan 4, 2007 1:52:36 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /ops threw load() exception java.lang.ExceptionInInitializerError at org.orbeon.oxf.xml.TomcatClasspathFix.<clinit>(TomcatClasspathFix.java:131) at org.orbeon.oxf.webapp.WebAppContext.<clinit>(WebAppContext.java:43) at org.orbeon.oxf.servlet.OPSServletDelegate.init(OPSServletDelegate.java:69) at javax.servlet.GenericServlet.init(GenericServlet.java:211) 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:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) 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.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) 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:585) 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.lang.RuntimePermission accessClassInPackage.org.apache.catalina.loader) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512) at java.lang.Class.checkMemberAccess(Class.java:2132) at java.lang.Class.getMethod(Class.java:1578) at org.orbeon.oxf.xml.TomcatClasspathFix.processManifest(TomcatClasspathFix.java:34) at org.orbeon.oxf.xml.TomcatClasspathFix.<clinit>(TomcatClasspathFix.java:98) ... 42 more Jan 4, 2007 1:52:36 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /ops threw load() exception java.lang.NoClassDefFoundError at org.orbeon.oxf.servlet.OPSServletDelegate.init(OPSServletDelegate.java:69) at javax.servlet.GenericServlet.init(GenericServlet.java:211) 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:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) 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.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Jan 4, 2007 1:52:37 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Jan 4, 2007 1:52:37 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Jan 4, 2007 1:52:37 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /ops threw load() exception java.lang.NoClassDefFoundError at org.orbeon.oxf.xml.XercesSAXParserFactoryImpl.<clinit>(XercesSAXParserFactoryImpl.java:39) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:100) at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:278) at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185) at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107) at org.apache.commons.digester.Digester.getFactory(Digester.java:512) at org.apache.commons.digester.Digester.getParser(Digester.java:686) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:902) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) at javax.servlet.GenericServlet.init(GenericServlet.java:211) 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:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) 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.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jan 4, 2007 1:52:37 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8180 Jan 4, 2007 1:52:37 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jan 4, 2007 1:52:37 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/211 config=null Jan 4, 2007 1:52:37 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Jan 4, 2007 1:52:38 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3186 ms > Jeff, > > I don't think the policy file is quite up to date. In fact, it is hell > to setup a correct policy file! > > But for this particular issue, try, in your web.xml, to replace > occurrences of OPSServlet with OPSServletDelegate. That may solve your > problem. > > -Erik > > [hidden email] wrote: >> I have the following configuration: >> >> tomcat 5.5 >> Ubuntu Linux (Edgy Eft) >> >> I have followed the instructions on the website, including downloading >> the >> policy file for running in a security manager and setting the mentioned >> properties in the system properties file >> ($CATALINA_HOME/conf/catalina.properties), however, I'm still getting >> AccessControlExceptions. >> >> SEVERE: Allocate exception for servlet ops-main-servlet >> java.security.AccessControlException: access denied >> (java.lang.RuntimePermission >> setContextClassLoader) >> at >> java.security.AccessControlContext.checkPermission(AccessControlConte >> xt.java:264) >> at >> java.security.AccessController.checkPermission(AccessController.java: >> 427) >> at >> java.lang.SecurityManager.checkPermission(SecurityManager.java:532) >> at java.lang.Thread.setContextClassLoader(Thread.java:1306) >> at org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:61) >> at javax.servlet.GenericServlet.init(GenericServlet.java:211) >> ... >> >> >> It runs just fine if I don't run tomcat with a security manager. >> >> Any help would be appreciated. >> >> Thanks, >> Jeff > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFomwWcZdQORGez0sRAuT9AKC5itBmnKPODJNe2EbXk6TLcg90NgCgy0uk 7qfIDanC0PyLTueKK/E+5TA= =syRy -----END PGP SIGNATURE----- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Jeff,
Ok. First, do you *really* want that security manager? Second, if so, the question is whether we can get rid of this hack, or just log the exception instead of stopping the initialization. This was implemented to work around a bug in Tomcat (maybe tomcat 4.x), but I don't know if the bug is fixed in Tomcat 5 or later. -Erik [hidden email] wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > The change mentioned below didn't help. Here now are the errors I'm > getting. Note, I only get these errors when running with a SecurityManager > in tomcat. If I don't run tomcat that way, it works. > > jeff@CanisMajor:~$ tail -n0 -f /var/log/tomcat5.5/catalina_2007-01-04.log > Using CATALINA_BASE: /var/lib/tomcat5.5 > Using CATALINA_HOME: /usr/share/tomcat5.5 > Using CATALINA_TMPDIR: /var/lib/tomcat5.5/temp > Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.08 > Using Security Manager > Jan 4, 2007 1:52:34 PM org.apache.catalina.core.AprLifecycleListener > lifecycleEvent > INFO: The Apache Tomcat Native library which allows optimal performance in > production environments was not found on the java.library.path: > /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/../lib/i386 > Jan 4, 2007 1:52:34 PM org.apache.coyote.http11.Http11BaseProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-8180 > Jan 4, 2007 1:52:34 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1028 ms > Jan 4, 2007 1:52:34 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Jan 4, 2007 1:52:34 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.5 > Jan 4, 2007 1:52:35 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Jan 4, 2007 1:52:35 PM org.apache.catalina.startup.HostConfig > deployDescriptor > WARNING: A docBase /usr/share/tomcat5.5/webapps/balancer inside the host > appBase has been specified, and will be ignored > Jan 4, 2007 1:52:35 PM org.apache.catalina.core.ApplicationContext log > INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: > [org.apache.webapp.balancer.RuleChain: > [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News > / Redirect URL: http://www.cnn.com], > [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: > paramName / Target param value: paramValue / Redirect URL: > http://www.yahoo.com], > [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: > http://jakarta.apache.org]] > Jan 4, 2007 1:52:35 PM org.apache.catalina.startup.HostConfig > deployDescriptor > WARNING: A docBase /usr/share/tomcat5.5/webapps/tomcat-docs inside the > host appBase has been specified, and will be ignored > Jan 4, 2007 1:52:36 PM org.apache.catalina.startup.HostConfig deployWAR > INFO: Deploying web application archive ops.war > Jan 4, 2007 1:52:36 PM org.apache.catalina.core.StandardContext loadOnStartup > SEVERE: Servlet /ops threw load() exception > java.lang.ExceptionInInitializerError > at > org.orbeon.oxf.xml.TomcatClasspathFix.<clinit>(TomcatClasspathFix.java:131) > at > org.orbeon.oxf.webapp.WebAppContext.<clinit>(WebAppContext.java:43) > at > org.orbeon.oxf.servlet.OPSServletDelegate.init(OPSServletDelegate.java:69) > at javax.servlet.GenericServlet.init(GenericServlet.java:211) > 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:585) > at > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) > at > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) > at > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) > at > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) > at > org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) > 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.deployWAR(HostConfig.java:809) > at > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) > 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:585) > 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.lang.RuntimePermission > accessClassInPackage.org.apache.catalina.loader) > at > java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) > at > java.security.AccessController.checkPermission(AccessController.java:427) > at > java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > at > java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512) > at java.lang.Class.checkMemberAccess(Class.java:2132) > at java.lang.Class.getMethod(Class.java:1578) > at > org.orbeon.oxf.xml.TomcatClasspathFix.processManifest(TomcatClasspathFix.java:34) > at > org.orbeon.oxf.xml.TomcatClasspathFix.<clinit>(TomcatClasspathFix.java:98) > ... 42 more > Jan 4, 2007 1:52:36 PM org.apache.catalina.core.StandardContext loadOnStartup > SEVERE: Servlet /ops threw load() exception > java.lang.NoClassDefFoundError > at > org.orbeon.oxf.servlet.OPSServletDelegate.init(OPSServletDelegate.java:69) > at javax.servlet.GenericServlet.init(GenericServlet.java:211) > 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:585) > at > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) > at > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) > at > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) > at > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) > at > org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) > 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.deployWAR(HostConfig.java:809) > at > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) > 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:585) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) > Jan 4, 2007 1:52:37 PM org.apache.struts.util.PropertyMessageResources <init> > INFO: Initializing, config='org.apache.struts.util.LocalStrings', > returnNull=true > Jan 4, 2007 1:52:37 PM org.apache.struts.util.PropertyMessageResources <init> > INFO: Initializing, config='org.apache.struts.action.ActionResources', > returnNull=true > Jan 4, 2007 1:52:37 PM org.apache.catalina.core.StandardContext loadOnStartup > SEVERE: Servlet /ops threw load() exception > java.lang.NoClassDefFoundError > at > org.orbeon.oxf.xml.XercesSAXParserFactoryImpl.<clinit>(XercesSAXParserFactoryImpl.java:39) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at > javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:100) > at > javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:278) > at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185) > at > javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107) > at org.apache.commons.digester.Digester.getFactory(Digester.java:512) > at org.apache.commons.digester.Digester.getParser(Digester.java:686) > at > org.apache.commons.digester.Digester.getXMLReader(Digester.java:902) > at org.apache.commons.digester.Digester.parse(Digester.java:1567) > at > org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433) > at > org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) > at javax.servlet.GenericServlet.init(GenericServlet.java:211) > 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:585) > at > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) > at > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) > at > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) > at > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) > at > org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) > 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.deployWAR(HostConfig.java:809) > at > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) > 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:585) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) > Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextInitialized() > Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextInitialized() > Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log > INFO: ContextListener: contextInitialized() > Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log > INFO: SessionListener: contextInitialized() > Jan 4, 2007 1:52:37 PM org.apache.coyote.http11.Http11BaseProtocol start > INFO: Starting Coyote HTTP/1.1 on http-8180 > Jan 4, 2007 1:52:37 PM org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > Jan 4, 2007 1:52:37 PM org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/211 config=null > Jan 4, 2007 1:52:37 PM org.apache.catalina.storeconfig.StoreLoader load > INFO: Find registry server-registry.xml at classpath resource > Jan 4, 2007 1:52:38 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 3186 ms > > > > > > >> Jeff, >> >> I don't think the policy file is quite up to date. In fact, it is hell >> to setup a correct policy file! >> >> But for this particular issue, try, in your web.xml, to replace >> occurrences of OPSServlet with OPSServletDelegate. That may solve your >> problem. >> >> -Erik >> >> [hidden email] wrote: >>> I have the following configuration: >>> >>> tomcat 5.5 >>> Ubuntu Linux (Edgy Eft) >>> >>> I have followed the instructions on the website, including downloading >>> the >>> policy file for running in a security manager and setting the mentioned >>> properties in the system properties file >>> ($CATALINA_HOME/conf/catalina.properties), however, I'm still getting >>> AccessControlExceptions. >>> >>> SEVERE: Allocate exception for servlet ops-main-servlet >>> java.security.AccessControlException: access denied >>> (java.lang.RuntimePermission >>> setContextClassLoader) >>> at >>> java.security.AccessControlContext.checkPermission(AccessControlConte >>> xt.java:264) >>> at >>> java.security.AccessController.checkPermission(AccessController.java: >>> 427) >>> at >>> java.lang.SecurityManager.checkPermission(SecurityManager.java:532) >>> at java.lang.Thread.setContextClassLoader(Thread.java:1306) >>> at org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:61) >>> at javax.servlet.GenericServlet.init(GenericServlet.java:211) >>> ... >>> >>> >>> It runs just fine if I don't run tomcat with a security manager. >>> >>> Any help would be appreciated. >>> >>> Thanks, >>> Jeff >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > > iD8DBQFFomwWcZdQORGez0sRAuT9AKC5itBmnKPODJNe2EbXk6TLcg90NgCgy0uk > 7qfIDanC0PyLTueKK/E+5TA= > =syRy > -----END PGP SIGNATURE----- > > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Erik, Thanks for your responses. My comments are inline below. > Jeff, > > Ok. First, do you *really* want that security manager? > The security manager issue seems to be the suggestion of the tomcat documentation, which is why I'm trying to get it to work. The docs seem to recommend running production servers with a security manager. In this instance, I'm trying to setup my dev box as much like a production server as possible. We (the company for which I'm working) is just now starting to use tomcat and orbeon and xforms etc. So none of us really have any experience setting this stuff up. I think I would like to get this working in the SM. If that can happen, then perhaps the documentation on the install can be updated to help others setup their systems. I'm happy to help with that. > Second, if so, the question is whether we can get rid of this hack, or > just log the exception instead of stopping the initialization. > I don't know how to respond to this. I'm happy to help though. I do have some experience writing code, just not really any running tomcat servers. > This was implemented to work around a bug in Tomcat (maybe tomcat 4.x), > but I don't know if the bug is fixed in Tomcat 5 or later. > > -Erik > > [hidden email] wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> The change mentioned below didn't help. Here now are the errors I'm >> getting. Note, I only get these errors when running with a >> SecurityManager >> in tomcat. If I don't run tomcat that way, it works. >> >> jeff@CanisMajor:~$ tail -n0 -f >> /var/log/tomcat5.5/catalina_2007-01-04.log >> Using CATALINA_BASE: /var/lib/tomcat5.5 >> Using CATALINA_HOME: /usr/share/tomcat5.5 >> Using CATALINA_TMPDIR: /var/lib/tomcat5.5/temp >> Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.08 >> Using Security Manager >> Jan 4, 2007 1:52:34 PM org.apache.catalina.core.AprLifecycleListener >> lifecycleEvent >> INFO: The Apache Tomcat Native library which allows optimal performance >> in >> production environments was not found on the java.library.path: >> /usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/../lib/i386 >> Jan 4, 2007 1:52:34 PM org.apache.coyote.http11.Http11BaseProtocol init >> INFO: Initializing Coyote HTTP/1.1 on http-8180 >> Jan 4, 2007 1:52:34 PM org.apache.catalina.startup.Catalina load >> INFO: Initialization processed in 1028 ms >> Jan 4, 2007 1:52:34 PM org.apache.catalina.core.StandardService start >> INFO: Starting service Catalina >> Jan 4, 2007 1:52:34 PM org.apache.catalina.core.StandardEngine start >> INFO: Starting Servlet Engine: Apache Tomcat/5.5 >> Jan 4, 2007 1:52:35 PM org.apache.catalina.core.StandardHost start >> INFO: XML validation disabled >> Jan 4, 2007 1:52:35 PM org.apache.catalina.startup.HostConfig >> deployDescriptor >> WARNING: A docBase /usr/share/tomcat5.5/webapps/balancer inside the host >> appBase has been specified, and will be ignored >> Jan 4, 2007 1:52:35 PM org.apache.catalina.core.ApplicationContext log >> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: >> [org.apache.webapp.balancer.RuleChain: >> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: >> News >> / Redirect URL: http://www.cnn.com], >> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param >> name: >> paramName / Target param value: paramValue / Redirect URL: >> http://www.yahoo.com], >> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: >> http://jakarta.apache.org]] >> Jan 4, 2007 1:52:35 PM org.apache.catalina.startup.HostConfig >> deployDescriptor >> WARNING: A docBase /usr/share/tomcat5.5/webapps/tomcat-docs inside the >> host appBase has been specified, and will be ignored >> Jan 4, 2007 1:52:36 PM org.apache.catalina.startup.HostConfig deployWAR >> INFO: Deploying web application archive ops.war >> Jan 4, 2007 1:52:36 PM org.apache.catalina.core.StandardContext >> loadOnStartup >> SEVERE: Servlet /ops threw load() exception >> java.lang.ExceptionInInitializerError >> at >> org.orbeon.oxf.xml.TomcatClasspathFix.<clinit>(TomcatClasspathFix.java:131) >> at >> org.orbeon.oxf.webapp.WebAppContext.<clinit>(WebAppContext.java:43) >> at >> org.orbeon.oxf.servlet.OPSServletDelegate.init(OPSServletDelegate.java:69) >> at javax.servlet.GenericServlet.init(GenericServlet.java:211) >> 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:585) >> at >> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) >> at java.security.AccessController.doPrivileged(Native Method) >> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) >> at >> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) >> at >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) >> at >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) >> at >> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) >> at >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) >> at >> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) >> at >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) >> at >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) >> at >> org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) >> 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.deployWAR(HostConfig.java:809) >> at >> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) >> at >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) >> 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:585) >> 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.lang.RuntimePermission >> accessClassInPackage.org.apache.catalina.loader) >> at >> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) >> at >> java.security.AccessController.checkPermission(AccessController.java:427) >> at >> java.lang.SecurityManager.checkPermission(SecurityManager.java:532) >> at >> java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512) >> at java.lang.Class.checkMemberAccess(Class.java:2132) >> at java.lang.Class.getMethod(Class.java:1578) >> at >> org.orbeon.oxf.xml.TomcatClasspathFix.processManifest(TomcatClasspathFix.java:34) >> at >> org.orbeon.oxf.xml.TomcatClasspathFix.<clinit>(TomcatClasspathFix.java:98) >> ... 42 more >> Jan 4, 2007 1:52:36 PM org.apache.catalina.core.StandardContext >> loadOnStartup >> SEVERE: Servlet /ops threw load() exception >> java.lang.NoClassDefFoundError >> at >> org.orbeon.oxf.servlet.OPSServletDelegate.init(OPSServletDelegate.java:69) >> at javax.servlet.GenericServlet.init(GenericServlet.java:211) >> 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:585) >> at >> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) >> at java.security.AccessController.doPrivileged(Native Method) >> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) >> at >> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) >> at >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) >> at >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) >> at >> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) >> at >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) >> at >> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) >> at >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) >> at >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) >> at >> org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) >> 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.deployWAR(HostConfig.java:809) >> at >> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) >> at >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) >> 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:585) >> at >> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) >> at >> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) >> Jan 4, 2007 1:52:37 PM org.apache.struts.util.PropertyMessageResources >> <init> >> INFO: Initializing, config='org.apache.struts.util.LocalStrings', >> returnNull=true >> Jan 4, 2007 1:52:37 PM org.apache.struts.util.PropertyMessageResources >> <init> >> INFO: Initializing, config='org.apache.struts.action.ActionResources', >> returnNull=true >> Jan 4, 2007 1:52:37 PM org.apache.catalina.core.StandardContext >> loadOnStartup >> SEVERE: Servlet /ops threw load() exception >> java.lang.NoClassDefFoundError >> at >> org.orbeon.oxf.xml.XercesSAXParserFactoryImpl.<clinit>(XercesSAXParserFactoryImpl.java:39) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at >> java.lang.reflect.Constructor.newInstance(Constructor.java:494) >> at java.lang.Class.newInstance0(Class.java:350) >> at java.lang.Class.newInstance(Class.java:303) >> at >> javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:100) >> at >> javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:278) >> at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185) >> at >> javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107) >> at >> org.apache.commons.digester.Digester.getFactory(Digester.java:512) >> at >> org.apache.commons.digester.Digester.getParser(Digester.java:686) >> at >> org.apache.commons.digester.Digester.getXMLReader(Digester.java:902) >> at >> org.apache.commons.digester.Digester.parse(Digester.java:1567) >> at >> org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433) >> at >> org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) >> at javax.servlet.GenericServlet.init(GenericServlet.java:211) >> 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:585) >> at >> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) >> at java.security.AccessController.doPrivileged(Native Method) >> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) >> at >> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) >> at >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) >> at >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114) >> at >> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) >> at >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) >> at >> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) >> at >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) >> at >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) >> at >> org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) >> 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.deployWAR(HostConfig.java:809) >> at >> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698) >> at >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) >> 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:585) >> at >> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) >> at >> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) >> Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log >> INFO: ContextListener: contextInitialized() >> Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log >> INFO: SessionListener: contextInitialized() >> Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log >> INFO: ContextListener: contextInitialized() >> Jan 4, 2007 1:52:37 PM org.apache.catalina.core.ApplicationContext log >> INFO: SessionListener: contextInitialized() >> Jan 4, 2007 1:52:37 PM org.apache.coyote.http11.Http11BaseProtocol start >> INFO: Starting Coyote HTTP/1.1 on http-8180 >> Jan 4, 2007 1:52:37 PM org.apache.jk.common.ChannelSocket init >> INFO: JK: ajp13 listening on /0.0.0.0:8009 >> Jan 4, 2007 1:52:37 PM org.apache.jk.server.JkMain start >> INFO: Jk running ID=0 time=0/211 config=null >> Jan 4, 2007 1:52:37 PM org.apache.catalina.storeconfig.StoreLoader load >> INFO: Find registry server-registry.xml at classpath resource >> Jan 4, 2007 1:52:38 PM org.apache.catalina.startup.Catalina start >> INFO: Server startup in 3186 ms >> >> >> >> >> >> >>> Jeff, >>> >>> I don't think the policy file is quite up to date. In fact, it is hell >>> to setup a correct policy file! >>> >>> But for this particular issue, try, in your web.xml, to replace >>> occurrences of OPSServlet with OPSServletDelegate. That may solve your >>> problem. >>> >>> -Erik >>> >>> [hidden email] wrote: >>>> I have the following configuration: >>>> >>>> tomcat 5.5 >>>> Ubuntu Linux (Edgy Eft) >>>> >>>> I have followed the instructions on the website, including downloading >>>> the >>>> policy file for running in a security manager and setting the >>>> mentioned >>>> properties in the system properties file >>>> ($CATALINA_HOME/conf/catalina.properties), however, I'm still getting >>>> AccessControlExceptions. >>>> >>>> SEVERE: Allocate exception for servlet ops-main-servlet >>>> java.security.AccessControlException: access denied >>>> (java.lang.RuntimePermission >>>> setContextClassLoader) >>>> at >>>> java.security.AccessControlContext.checkPermission(AccessControlConte >>>> xt.java:264) >>>> at >>>> java.security.AccessController.checkPermission(AccessController.java: >>>> 427) >>>> at >>>> java.lang.SecurityManager.checkPermission(SecurityManager.java:532) >>>> at java.lang.Thread.setContextClassLoader(Thread.java:1306) >>>> at org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:61) >>>> at javax.servlet.GenericServlet.init(GenericServlet.java:211) >>>> ... >>>> >>>> >>>> It runs just fine if I don't run tomcat with a security manager. >>>> >>>> Any help would be appreciated. >>>> >>>> Thanks, >>>> Jeff >>> -- >>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >>> http://www.orbeon.com/ >>> >>> >> >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.2.2 (GNU/Linux) >> >> iD8DBQFFomwWcZdQORGez0sRAuT9AKC5itBmnKPODJNe2EbXk6TLcg90NgCgy0uk >> 7qfIDanC0PyLTueKK/E+5TA= >> =syRy >> -----END PGP SIGNATURE----- >> >> >> >> >> ------------------------------------------------------------------------ >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFForHYcZdQORGez0sRApDyAJ9NlkFEK3vUHQY6ptqogb7k9gOzPgCfcTsN o0+6V+O6f9k4sYk66XDp7HM= =D5SW -----END PGP SIGNATURE----- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
On 1/8/07, [hidden email] <[hidden email]> wrote:
> The security manager issue seems to be the suggestion of the tomcat > documentation, which is why I'm trying to get it to work. The docs seem to > recommend running production servers with a security manager. In this > instance, I'm trying to setup my dev box as much like a production server > as possible. We (the company for which I'm working) is just now starting > to use tomcat and orbeon and xforms etc. So none of us really have any > experience setting this stuff up. I think I would like to get this working > in the SM. If that can happen, then perhaps the documentation on the > install can be updated to help others setup their systems. I'm happy to > help with that. If you are starting with Orbeon Forms and Tomcat, for now I wouldn't bother setting up a security manager. Most likely, even later on you won't need to setup a security manager. In fact, most the deployments we see do not use a security manager. Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 I would like to specify the width of an input field but this doesn't work: <xforms:input ref="/myform/zipcode" style="width: 6em;"/> nor does <xforms:input ref="/myform/zipcode" size="6" /> in the first case this code is rendered: <span id="xforms-element-16" style="width: 5em;" class="xforms-control xforms-input"><span class="xforms-date-display></span><input type="text" name="xforms-element-16" value="" class="xforms-input-input xforms-type-string"> ... but the field never changes width. in the second case, the 'size' is lost completely (ie not rendered anywhere I could find). I tried reading the docs on the orbeon site as well as the xforms doc on the w3 site and looking in a friend's book which mentioned also width which also didn't work (seems to be dropped just like size is). So how do I control the size of the input field? Thanks, Jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFq+6mcZdQORGez0sRAjhBAJ4jGXdaE/Ma+c1zm+PU1xPEF+bF6wCgn0Kc x5DEFL1PKScWlCp+mZwmFyw= =PvNn -----END PGP SIGNATURE----- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Jeff,
> I would like to specify the width of an input field but this doesn't work: > > <xforms:input ref="/myform/zipcode" style="width: 6em;"/> > > nor does > > <xforms:input ref="/myform/zipcode" size="6" /> > > in the first case this code is rendered: > > <span id="xforms-element-16" style="width: 5em;" class="xforms-control > xforms-input"><span class="xforms-date-display></span><input type="text" > name="xforms-element-16" value="" class="xforms-input-input > xforms-type-string"> ... > > but the field never changes width. > > in the second case, the 'size' is lost completely (ie not rendered > anywhere I could find). > > I tried reading the docs on the orbeon site as well as the xforms doc on > the w3 site and looking in a friend's book which mentioned also width > which also didn't work (seems to be dropped just like size is). > > So how do I control the size of the input field? Try: o The xxforms:size attribute, e.g. xxforms:size="6" o CSS like .xforms-input input { width: 6em } Note that these don't do the same thing: size sets a maximum number of characters the user can type, and width sets a physical width for the field. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 > Jeff, > > > I would like to specify the width of an input field but this doesn't > work: > > > > <xforms:input ref="/myform/zipcode" style="width: 6em;"/> > > > > nor does > > > > <xforms:input ref="/myform/zipcode" size="6" /> > > > > in the first case this code is rendered: > > > > <span id="xforms-element-16" style="width: 5em;" class="xforms-control > > xforms-input"><span class="xforms-date-display></span><input > type="text" > > name="xforms-element-16" value="" class="xforms-input-input > > xforms-type-string"> ... > > > > but the field never changes width. > > > > in the second case, the 'size' is lost completely (ie not rendered > > anywhere I could find). > > > > I tried reading the docs on the orbeon site as well as the xforms doc > on > > the w3 site and looking in a friend's book which mentioned also width > > which also didn't work (seems to be dropped just like size is). > > > > So how do I control the size of the input field? > > Try: > > o The xxforms:size attribute, e.g. xxforms:size="6" > o CSS like .xforms-input input { width: 6em } > > Note that these don't do the same thing: size sets a maximum number of > characters the user can type, and width sets a physical width for the > field. > > -Erik > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > > Thanks. The goal is to cause the width of the form element to change (<input type="text"> in this case). However, I'd only want specific inputs to change, not all of them. The suggestion for css worked great for all fields on the form. I tried adding an id, but wasn't successful. These are the iterations: .xforms-input input#zipcode { width: 6em; } .xforms-input input zipcode { width: 6em; } .xforms-input input #zipcode { width: 6em; } <xforms:input ref="/myform/zipcode" class="xforms-input input#zipcode"/> <xforms:input ref="/myform/zipcode" class="xforms-input input zipcode"/> <xforms:input ref="/myform/zipcode" class="xforms-input input #zipcode"/> all failed to actually change the width of the form field for the single zipcode field on the screen. I'm (clearly) not a css wizard so maybe a pointer or two in the right rtfm direction would help (and/or an explanation of where I went wrong). I hate to create noise here on what is likely a simple problem - I'm just not getting it. Thanks, Jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFrA20cZdQORGez0sRAuy2AJ9j8dW/olIrf/J7Z5hEuw7hIEIerwCgqSnp W1CJef7lOIyZNCLyv/RjtX8= =klrO -----END PGP SIGNATURE----- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Jeff,
That's easy, and don't worry this is actually a good question. Our new tutorial, which is now already in the nightly builds, actually tackles part of this, but otherwise there was no documentation on this. So add a class on the xforms:input you want to style, e.g.: <xforms:input class="my-class" ...> And then style with CSS like this: .my-class input { width: 6em } That should do the trick. -Erik [hidden email] wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > >> Jeff, >> >> > I would like to specify the width of an input field but this doesn't >> work: >> > >> > <xforms:input ref="/myform/zipcode" style="width: 6em;"/> >> > >> > nor does >> > >> > <xforms:input ref="/myform/zipcode" size="6" /> >> > >> > in the first case this code is rendered: >> > >> > <span id="xforms-element-16" style="width: 5em;" class="xforms-control >> > xforms-input"><span class="xforms-date-display></span><input >> type="text" >> > name="xforms-element-16" value="" class="xforms-input-input >> > xforms-type-string"> ... >> > >> > but the field never changes width. >> > >> > in the second case, the 'size' is lost completely (ie not rendered >> > anywhere I could find). >> > >> > I tried reading the docs on the orbeon site as well as the xforms doc >> on >> > the w3 site and looking in a friend's book which mentioned also width >> > which also didn't work (seems to be dropped just like size is). >> > >> > So how do I control the size of the input field? >> >> Try: >> >> o The xxforms:size attribute, e.g. xxforms:size="6" >> o CSS like .xforms-input input { width: 6em } >> >> Note that these don't do the same thing: size sets a maximum number of >> characters the user can type, and width sets a physical width for the >> field. >> >> -Erik >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> >> > > Erik, > > Thanks. > > The goal is to cause the width of the form element to change (<input > type="text"> in this case). However, I'd only want specific inputs to > change, not all of them. The suggestion for css worked great for all > fields on the form. I tried adding an id, but wasn't successful. These are > the iterations: > > .xforms-input input#zipcode { width: 6em; } > .xforms-input input zipcode { width: 6em; } > .xforms-input input #zipcode { width: 6em; } > > <xforms:input ref="/myform/zipcode" class="xforms-input input#zipcode"/> > <xforms:input ref="/myform/zipcode" class="xforms-input input zipcode"/> > <xforms:input ref="/myform/zipcode" class="xforms-input input #zipcode"/> > > all failed to actually change the width of the form field for the single > zipcode field on the screen. > > I'm (clearly) not a css wizard so maybe a pointer or two in the right rtfm > direction would help (and/or an explanation of where I went wrong). I hate > to create noise here on what is likely a simple problem - I'm just not > getting it. > > Thanks, > Jeff > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > > iD8DBQFFrA20cZdQORGez0sRAuy2AJ9j8dW/olIrf/J7Z5hEuw7hIEIerwCgqSnp > W1CJef7lOIyZNCLyv/RjtX8= > =klrO > -----END PGP SIGNATURE----- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 > Jeff, > > That's easy, and don't worry this is actually a good question. Our new > tutorial, which is now already in the nightly builds, actually tackles > part of this, but otherwise there was no documentation on this. > > So add a class on the xforms:input you want to style, e.g.: > > <xforms:input class="my-class" ...> > > And then style with CSS like this: > > .my-class input { width: 6em } > > That should do the trick. > > -Erik > Thanks, that worked exactly as desired. Jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFrPrucZdQORGez0sRAmHCAJ4uVy7x4UHaML7azVZpMslOY/j6xQCeMX4b XYEO9uSfN/NJSvOlp1FZB9w= =oztX -----END PGP SIGNATURE----- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Erik Bruchez
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 I can't find in the documentation how to layout check boxes (<xforms:select appearance="full">) vertically. They layout by default horizontally. I have too many to fit in the width of the screen, so layout vertically would be nice. Thanks Jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFrWNYcZdQORGez0sRArfIAKChQC9UvSLJuXAxW54pcrSM37CHdQCdFR01 KJ/bTS+tQ0CdVKSRRtDEXOU= =jZVT -----END PGP SIGNATURE----- -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |