Problem integrating Slide with Jboss 3.2.7
Hi, I am using Slide with Jboss 3.2.7. I have been able to successfully integrate it with JBoss 3.2.7 by doing the entire configuration mentioned at this page: http://wiki.apache.org/jakarta-slide/JbossSetup However I need to provide password protected access to jmx-console in production. When I enable the authentication to jmx-console I get a slide error with the following trace: 14:09:26,823 WARN [JAASRealm] Login exception authenticating username null javax.security.auth.login.LoginException: unable to find LoginModule class: org.apache.slide.jaas.spi.SlideLoginModule at javax.security.auth.login.LoginContext.invoke(LoginContext.java:711) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:376) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe nticator.java:129) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:504) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:536) Any help would be appreciated. Thanks, Amit Sharma.
Re: Problem integrating Slide with Jboss 3.2.7
Hi Are u sure that you have slide-jaas2.1.jar in slide folder? it seems JBoss doesn't find it.. I have correctly installed slide in JBoss with authentication but I had many problems with jar positioning! Be sure aren't duplicated jar. - Original Message - From: Amit Sharma [EMAIL PROTECTED] To: Slide slide-user@jakarta.apache.org Sent: Monday, October 03, 2005 10:40 AM Subject: Problem integrating Slide with Jboss 3.2.7 Hi, I am using Slide with Jboss 3.2.7. I have been able to successfully integrate it with JBoss 3.2.7 by doing the entire configuration mentioned at this page: http://wiki.apache.org/jakarta-slide/JbossSetup However I need to provide password protected access to jmx-console in production. When I enable the authentication to jmx-console I get a slide error with the following trace: 14:09:26,823 WARN [JAASRealm] Login exception authenticating username null javax.security.auth.login.LoginException: unable to find LoginModule class: org.apache.slide.jaas.spi.SlideLoginModule at javax.security.auth.login.LoginContext.invoke(LoginContext.java:711) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:376) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe nticator.java:129) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:504) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:536) Any help would be appreciated. Thanks, Amit Sharma. __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.nod32.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Slide, Tomcat, JBoss, and the JCA test servlet
After doing a little work, I succeeded in firing up Slide 2.1 with the following configuration: Tomcat 5.0.28: - Slide servlet JBoss 4.0.1sp1: - Slide JCA connector - another Tomcat instance, running the connector-example.war distributed with the Slide client Whenever I try to access the connector-example servlet, however, I run into trouble at the line where the TestServlet code tries to retrieve a non-existent file using a second WebdavResource handle. (That's the line of code that declares and initializes the thisIsWhatTx2Sees variable.) I expect that line to result in a 404. In reality, that line causes the Tomcat instance hosting Slide to hang. When I try to shut down the Tomcat, I see the following: Jun 28, 2005 4:20:33 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 28 Jun 2005 16:20:36 - org.apache.slide.common.Namespace - INFO - Shutting down service tx(org.apache.slide.store.ExtendedStore) 28 Jun 2005 16:20:36 - org.apache.commons.transaction.file.FileResourceManager - INFO - Stopping RM at 'store/metadata' / 'work/metadata' 28 Jun 2005 16:20:36 - org.apache.commons.transaction.file.FileResourceManager - INFO - Waiting for tx [EMAIL PROTECTED] to finish for 24 milli seconds 28 Jun 2005 16:20:46 - file-content-store - INFO - DEADLOCK VICTIM: Thread Thread[http-80-Processor24,5,main] marked transaction branch [EMAIL PROTECTED] for rollback http-80-Processor24, 28-Jun-2005 16:18:46, unauthenticated, GET, 409 Conflict, 120171 ms, /files/file1 When I comment out the parts of the TestServlet code that use a second WebdavResource, everything works fine. I don't understand why there might be deadlock here. Is anyone successfully using a configuration similar to mine? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
slide on JBoss 3.2.6 deploy problem
Hi there, I'm realy new to Slide, just downloaded the last version and trying to deploy it on a JBoss 3.2.6 server instance. I've copyied slide.war into the deploy dir of the server, and the following exception is throwned. Is there anything else that i should do? do you have any ideea about what could be the problem? here is stack trace: 2005-01-28 11:49:15,500 INFO [STDOUT] 28 Jan 2005 11:49:15 - org.apache.slide.common.Domain - INFO - Namespace configuration complete 2005-01-28 11:49:15,656 INFO [STDOUT] org.apache.slide.util.conf.ConfigurationException: Could not create xPath from given attribute @ null 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.SimpleXmlExtractor.createInstruction(SimpleXmlExtractor.java:114) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.SimpleXmlExtractor.configure(SimpleXmlExtractor.java:79) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.ExtractorManager.configure(ExtractorManager.java:123) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:445) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:366) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:329) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:253) 2005-01-28 11:49:15,656 INFO [STDOUT] at javax.servlet.GenericServlet.init(GenericServlet.java:211) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:195) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2005-01-28 11:49:15,656 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2005-01-28 11:49:15,656 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:316) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:76) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:320) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.WebModule.startModule(WebModule.java:62) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.WebModule.startService(WebModule.java:40) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) 2005-01-28 11:49:15,656 INFO
Re: slide on JBoss 3.2.6 deploy problem
Your SimpleXMLExtractor config most likely has an invalid xpath, what does it look like? -Eirikur, idega. On 28.1.2005, at 09:54, Catalin Kormos wrote: Hi there, I'm realy new to Slide, just downloaded the last version and trying to deploy it on a JBoss 3.2.6 server instance. I've copyied slide.war into the deploy dir of the server, and the following exception is throwned. Is there anything else that i should do? do you have any ideea about what could be the problem? here is stack trace: 2005-01-28 11:49:15,500 INFO [STDOUT] 28 Jan 2005 11:49:15 - org.apache.slide.common.Domain - INFO - Namespace configuration complete 2005-01-28 11:49:15,656 INFO [STDOUT] org.apache.slide.util.conf.ConfigurationException: Could not create xPath from given attribute @ null 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.SimpleXmlExtractor.createInstruction(SimpleX mlExtractor.java:114) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.SimpleXmlExtractor.configure(SimpleXmlExtrac tor.java:79) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.ExtractorManager.configure(ExtractorManager. java:123) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:445) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:366) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:329) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:253) 2005-01-28 11:49:15,656 INFO [STDOUT] at javax.servlet.GenericServlet.init(GenericServlet.java:211) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:195) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:1029) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. java:4013) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4357) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava:823) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) 2005-01-28 11:49:15,656 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java: 503) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java: 149) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardContext.init(StandardContext.java: 5441) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) 2005-01-28 11:49:15,656 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java: 503) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java: 149) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDep loyer.java:316) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.ja va:76) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:320) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.WebModule.startModule(WebModule.java:62) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.jboss.web.WebModule.startService(WebModule.java:40) 2005-01-28 11:49:15,656 INFO [STDOUT] at
RE: slide on JBoss 3.2.6 deploy problem
Have you seen this page? http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide You can't just deploy the war in Jboss, you need to add jboss-web.xml as described. I got it working on JBoss 3.2.5 - haven't tried 3.2.6 yet. Hope this helps. Patrick -Original Message- From: Catalin Kormos [mailto:[EMAIL PROTECTED] Sent: 28 January 2005 12:59 To: Slide Users Mailing List Subject: Re: slide on JBoss 3.2.6 deploy problem I've found it, did't look in the right place; here it is, i did't change anything, i've just deployed the .war inside jboss: !-- Extractor configuration -- extractors extractor classname=org.apache.slide.extractor.SimpleXmlExtractor uri=/files/articles/test.xml configuration instruction property=title xpath=/article/title/text() / instruction property=summary xpath=/article/summary/text() / /configuration /extractor extractor classname=org.apache.slide.extractor.OfficeExtractor uri=/files/docs/ configuration instruction property=author id=SummaryInformation-0-4 / instruction property=application id=SummaryInformation-0-18 / /configuration /extractor /extractors --- Catalin Kormos [EMAIL PROTECTED] wrote: What do you mean? where should i look for the SimpleXMLExtractor config?, i can't find it; thanks for you reply. --- Eirikur Hrafnsson [EMAIL PROTECTED] wrote: Your SimpleXMLExtractor config most likely has an invalid xpath, what does it look like? -Eirikur, idega. On 28.1.2005, at 09:54, Catalin Kormos wrote: Hi there, I'm realy new to Slide, just downloaded the last version and trying to deploy it on a JBoss 3.2.6 server instance. I've copyied slide.war into the deploy dir of the server, and the following exception is throwned. Is there anything else that i should do? do you have any ideea about what could be the problem? here is stack trace: 2005-01-28 11:49:15,500 INFO [STDOUT] 28 Jan 2005 11:49:15 - org.apache.slide.common.Domain - INFO - Namespace configuration complete 2005-01-28 11:49:15,656 INFO [STDOUT] org.apache.slide.util.conf.ConfigurationException: Could not create xPath from given attribute @ null 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.slide.extractor.SimpleXmlExtractor.createInstruction(SimpleX mlExtractor.java:114) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.slide.extractor.SimpleXmlExtractor.configure(SimpleXmlExtrac tor.java:79) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.slide.extractor.ExtractorManager.configure(ExtractorManager. java:123) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.slide.common.Domain.init(Domain.java:445) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.slide.common.Domain.init(Domain.java:366) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.slide.common.Domain.init(Domain.java:329) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:253) 2005-01-28 11:49:15,656 INFO [STDOUT]at javax.servlet.GenericServlet.init(GenericServlet.java:211) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:195) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:1029) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. java:4013) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4357) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava:823) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) 2005-01-28 11:49:15,656 INFO [STDOUT]at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2005-01-28 11:49:15,656 INFO [STDOUT]at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39) 2005-01-28 11:49:15,656 INFO [STDOUT]at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) 2005-01-28 11:49:15,656 INFO [STDOUT]at java.lang.reflect.Method.invoke(Method.java:324) 2005-01-28 11:49:15,656 INFO [STDOUT]at org.apache.commons.modeler.BaseModelMBean.invoke
RE: slide on JBoss 3.2.6 deploy problem
Thanks a lot, it works now :) --- Patrick van Kann [EMAIL PROTECTED] wrote: Have you seen this page? http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide You can't just deploy the war in Jboss, you need to add jboss-web.xml as described. I got it working on JBoss 3.2.5 - haven't tried 3.2.6 yet. Hope this helps. Patrick -Original Message- From: Catalin Kormos [mailto:[EMAIL PROTECTED] Sent: 28 January 2005 12:59 To: Slide Users Mailing List Subject: Re: slide on JBoss 3.2.6 deploy problem I've found it, did't look in the right place; here it is, i did't change anything, i've just deployed the .war inside jboss: !-- Extractor configuration -- extractors extractor classname=org.apache.slide.extractor.SimpleXmlExtractor uri=/files/articles/test.xml configuration instruction property=title xpath=/article/title/text() / instruction property=summary xpath=/article/summary/text() / /configuration /extractor extractor classname=org.apache.slide.extractor.OfficeExtractor uri=/files/docs/ configuration instruction property=author id=SummaryInformation-0-4 / instruction property=application id=SummaryInformation-0-18 / /configuration /extractor /extractors --- Catalin Kormos [EMAIL PROTECTED] wrote: What do you mean? where should i look for the SimpleXMLExtractor config?, i can't find it; thanks for you reply. --- Eirikur Hrafnsson [EMAIL PROTECTED] wrote: Your SimpleXMLExtractor config most likely has an invalid xpath, what does it look like? -Eirikur, idega. On 28.1.2005, at 09:54, Catalin Kormos wrote: Hi there, I'm realy new to Slide, just downloaded the last version and trying to deploy it on a JBoss 3.2.6 server instance. I've copyied slide.war into the deploy dir of the server, and the following exception is throwned. Is there anything else that i should do? do you have any ideea about what could be the problem? here is stack trace: 2005-01-28 11:49:15,500 INFO [STDOUT] 28 Jan 2005 11:49:15 - org.apache.slide.common.Domain - INFO - Namespace configuration complete 2005-01-28 11:49:15,656 INFO [STDOUT] org.apache.slide.util.conf.ConfigurationException: Could not create xPath from given attribute @ null 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.SimpleXmlExtractor.createInstruction(SimpleX mlExtractor.java:114) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.SimpleXmlExtractor.configure(SimpleXmlExtrac tor.java:79) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.extractor.ExtractorManager.configure(ExtractorManager. java:123) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:445) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:366) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.common.Domain.init(Domain.java:329) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:253) 2005-01-28 11:49:15,656 INFO [STDOUT] at javax.servlet.GenericServlet.init(GenericServlet.java:211) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.slide.webdav.WebdavServlet.init(WebdavServlet.java:195) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:1029) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. java:4013) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4357) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava:823) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) 2005-01-28 11:49:15,656 INFO [STDOUT] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39) 2005-01-28 11:49:15,656 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke
RE: slide and jboss
I got it working with JBoss 3.2.5 by following the advice on the JBoss wiki: http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide I am not using the Slide authentication - I am using the JBoss RDBMS realm. This means that you either need to use the auto-create-users = true setting in Domain.xml or manually synchronise users in your Realm with the Slide users at /slide/users. Hope this helps. Patrick -Original Message- From: Roy Russo [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 2:29 PM To: 'Slide Users Mailing List' Subject: slide and jboss I'm curious if anyone has been able to get authentication to work in jboss. Commenting out the lines in web.xml, brings up a login prompt, using DAVExplorer, but no username or passwords are accepted. My log spits out the following: 09:21:29,624 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files java.io.IOException: Properties file users.properties not found at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:217) at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:234) at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:100) 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:324) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:491) at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:442) ... Moving a users.properties file around in the slide.war seems to do absolutely nothing. I'm not sure if this is the way to go, either, and I may be missing something simple. I'm currently evaluating slide for use in JBoss Portal. Roy Russo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: slide and jboss
wahoo! Good news! I have that on my list for Slide integration with Jboss/user-auth as a big requirement to help reduce administration. Glad to hear you have had success! -D -Original Message- From: Patrick van Kann [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:02 AM To: Slide Users Mailing List Subject: RE: slide and jboss I got it working with JBoss 3.2.5 by following the advice on the JBoss wiki: http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide I am not using the Slide authentication - I am using the JBoss RDBMS realm. This means that you either need to use the auto-create-users = true setting in Domain.xml or manually synchronise users in your Realm with the Slide users at /slide/users. Hope this helps. Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: slide and jboss
Well, its definitely good news to hear that someone got it working. I'm building on jboss-4.0. Shouldn't be too different, save the fact that its sitting on Tomcat 5. I tried adding the auto-create-users node to domain.xml and it had no effect. Could you give me an example of of configuring the SlideRealm? Once I get this working, I'll update the wiki page as well... it leaves a lot of loose ends. Roy Russo JBoss Portal Developer JBoss, Inc. 404-467-8555 x223 [EMAIL PROTECTED] - Original Message - From: Patrick van Kann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:01 AM Subject: RE: slide and jboss I got it working with JBoss 3.2.5 by following the advice on the JBoss wiki: http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide I am not using the Slide authentication - I am using the JBoss RDBMS realm. This means that you either need to use the auto-create-users = true setting in Domain.xml or manually synchronise users in your Realm with the Slide users at /slide/users. Hope this helps. Patrick -Original Message- From: Roy Russo [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 2:29 PM To: 'Slide Users Mailing List' Subject: slide and jboss I'm curious if anyone has been able to get authentication to work in jboss. Commenting out the lines in web.xml, brings up a login prompt, using DAVExplorer, but no username or passwords are accepted. My log spits out the following: 09:21:29,624 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files java.io.IOException: Properties file users.properties not found at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:217) at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:234) at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:100) 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:324) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:491) at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:442) ... Moving a users.properties file around in the slide.war seems to do absolutely nothing. I'm not sure if this is the way to go, either, and I may be missing something simple. I'm currently evaluating slide for use in JBoss Portal. Roy Russo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: slide and jboss
Hi Richard, That should be added to the Wiki page - the author had been unable to solve the classloader issue you are refering to. Would you be willing to do that? Kind regards, Patrick -Original Message- From: Richard Emberson [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 3:41 PM To: Slide Users Mailing List Subject: Re: slide and jboss A couple of weeks ago I had to see if I could get Slide to work with JBoss. Someone pointed me to the Slide/JBoss Wiki or I arrived at the page by following links from the JBoss home page. At any rate, I then created an ant task for creating the war file. While the Slide war file worked in isolation, dropping our application's ear file in afterwards did not work - there were classloader issues. So, I added the Ant task to make a Slile ear and that was just right. one needs an application.xml file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN http://java.sun.com/dtd/application_1_3.dtd; application display-nameSlide/display-name module id=Slide_WAR web web-urislide.war/web-uri context-root/foobarcompany/slide/context-root /web /module /application and the file META-INF/jboss-app.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss-app PUBLIC -//JBoss//DTD J2EE Application 1.3V2//EN http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd; jboss-app loader-repositorycom.foobarcompany:loader=slide.ear/loader-repository /jboss-app Richard Patrick van Kann wrote: I got it working with JBoss 3.2.5 by following the advice on the JBoss wiki: http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide I am not using the Slide authentication - I am using the JBoss RDBMS realm. This means that you either need to use the auto-create-users = true setting in Domain.xml or manually synchronise users in your Realm with the Slide users at /slide/users. Hope this helps. Patrick -Original Message- From: Roy Russo [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 2:29 PM To: 'Slide Users Mailing List' Subject: slide and jboss I'm curious if anyone has been able to get authentication to work in jboss. Commenting out the lines in web.xml, brings up a login prompt, using DAVExplorer, but no username or passwords are accepted. My log spits out the following: 09:21:29,624 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files java.io.IOException: Properties file users.properties not found at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:217) at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:234) at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:100) 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:324) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:491) at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:442) ... Moving a users.properties file around in the slide.war seems to do absolutely nothing. I'm not sure if this is the way to go, either, and I may be missing something simple. I'm currently evaluating slide for use in JBoss Portal. Roy Russo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail
RE: slide and jboss
auto-create-users will have no effect until you secure slide using a non-Slide realm. You have to get that working first - and the wiki page doesn't really describe this properly. The effect it will have is that when you authenticate against the external realm, Slide will automatically create a collection in /slide/users named after the principal you have logged in as. I believe there is also a setting for auto-create-roles that will do the same with any of the roles that the principal has in /slide/roles. The effect of this is that you will then be able to set ACLS on specific URIs based on these users and roles. If you don't use auto-create-users and auto-create-roles, you can use application logic (say in the portlet itself, assuming this is what you are developing) that can create these collections for you. These settings got non-slide authentication working for me: server/default/deploy/slide.war/WEB-INF/jboss-web.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss-web PUBLIC -//JBoss//DTD Web Application 2.3//EN http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd; jboss-web class-loading java2ClassLoadingCompliance=false loader-repositoryorg.apache.slide:loader=slide.war/loader-repository /class-loading security-domainjava:/jaas/slide-domain/security-domain resource-ref res-ref-namejdbc/SlideDS/res-ref-name res-typejavax.sql.DataSource/res-type jndi-namejava:/jdbc/SlideDS/jndi-name /resource-ref /jboss-web in server/default/conf/login-config.xml I added a policy application-policy name = slide-domain authentication login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule flag=required module-option name = dsJndiNamejava:/jdbc/SecurityDS/module-option module-option name = principalsQuery select password from Users where username=? /module-option module-option name = rolesQuery select groupname, null from GroupMembers m where m.username = ? /module-option /login-module /authentication /application-policy Hope it helps. Patrick -Original Message- From: Roy Russo [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 3:29 PM To: Slide Users Mailing List Subject: Re: slide and jboss Well, its definitely good news to hear that someone got it working. I'm building on jboss-4.0. Shouldn't be too different, save the fact that its sitting on Tomcat 5. I tried adding the auto-create-users node to domain.xml and it had no effect. Could you give me an example of of configuring the SlideRealm? Once I get this working, I'll update the wiki page as well... it leaves a lot of loose ends. Roy Russo JBoss Portal Developer JBoss, Inc. 404-467-8555 x223 [EMAIL PROTECTED] - Original Message - From: Patrick van Kann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:01 AM Subject: RE: slide and jboss I got it working with JBoss 3.2.5 by following the advice on the JBoss wiki: http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide I am not using the Slide authentication - I am using the JBoss RDBMS realm. This means that you either need to use the auto-create-users = true setting in Domain.xml or manually synchronise users in your Realm with the Slide users at /slide/users. Hope this helps. Patrick -Original Message- From: Roy Russo [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 2:29 PM To: 'Slide Users Mailing List' Subject: slide and jboss I'm curious if anyone has been able to get authentication to work in jboss. Commenting out the lines in web.xml, brings up a login prompt, using DAVExplorer, but no username or passwords are accepted. My log spits out the following: 09:21:29,624 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files java.io.IOException: Properties file users.properties not found at org.jboss.security.auth.spi.UsersRolesLoginModule.loadProperties(UsersRolesLoginModule.java:217) at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:234) at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:100) 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:324) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run
Re: slide and jboss
ok... I got it working, without going to the DB for now, and heres what I did. (I will update our wiki page this week) It is exactly the same as securing the jmx-console: http://www.jboss.org/wiki/Wiki.jsp?page=SecureTheJmxConsole 1. Upack the slide.war and place it under the deploy dir. 2. Create /WEB-INF/classes/slide-users.properties and /WEB-INF/classes/slide-roles.properties 3. Edit the /server/standard/conf/login-config.xml and add a security domain for slide-domain: !-- Security domain for JBoss Portal - Jakarta Slide -- application-policy name = slide-domain authentication login-module code=org.jboss.security.auth.spi.UsersRolesLoginModule flag = required module-option name=usersPropertiesslide-users.properties/module-option module-option name=rolesPropertiesslide-roles.properties/module-option /login-module /authentication /application-policy 4. Create /WEB-INF/jboss-web.xml and add this to it: jboss-web security-domainjava:/jaas/slide-domain/security-domain /jboss-web 5. Go in to /WEB-INF/web.xml and uncomment the security contraint blocks at the bottom. 6. Start jboss. 7. Go to http://localhost:8080/slide and you should be prompted for a login. I think I got it all. Thank you very much, Pat. Roy Russo JBoss Portal Developer JBoss, Inc. 404-467-8555 x223 [EMAIL PROTECTED] - Original Message - From: Patrick van Kann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED]; Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:54 AM Subject: RE: slide and jboss auto-create-users will have no effect until you secure slide using a non-Slide realm. You have to get that working first - and the wiki page doesn't really describe this properly. The effect it will have is that when you authenticate against the external realm, Slide will automatically create a collection in /slide/users named after the principal you have logged in as. I believe there is also a setting for auto-create-roles that will do the same with any of the roles that the principal has in /slide/roles. The effect of this is that you will then be able to set ACLS on specific URIs based on these users and roles. If you don't use auto-create-users and auto-create-roles, you can use application logic (say in the portlet itself, assuming this is what you are developing) that can create these collections for you. These settings got non-slide authentication working for me: server/default/deploy/slide.war/WEB-INF/jboss-web.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss-web PUBLIC -//JBoss//DTD Web Application 2.3//EN http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd; jboss-web class-loading java2ClassLoadingCompliance=false loader-repositoryorg.apache.slide:loader=slide.war/loader-repository /class-loading security-domainjava:/jaas/slide-domain/security-domain resource-ref res-ref-namejdbc/SlideDS/res-ref-name res-typejavax.sql.DataSource/res-type jndi-namejava:/jdbc/SlideDS/jndi-name /resource-ref /jboss-web in server/default/conf/login-config.xml I added a policy application-policy name = slide-domain authentication login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule flag=required module-option name = dsJndiNamejava:/jdbc/SecurityDS/module-option module-option name = principalsQuery select password from Users where username=? /module-option module-option name = rolesQuery select groupname, null from GroupMembers m where m.username = ? /module-option /login-module /authentication /application-policy Hope it helps. Patrick -Original Message- From: Roy Russo [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 3:29 PM To: Slide Users Mailing List Subject: Re: slide and jboss Well, its definitely good news to hear that someone got it working. I'm building on jboss-4.0. Shouldn't be too different, save the fact that its sitting on Tomcat 5. I tried adding the auto-create-users node to domain.xml and it had no effect. Could you give me an example of of configuring the SlideRealm? Once I get this working, I'll update the wiki page as well... it leaves a lot of loose ends. Roy Russo JBoss Portal Developer JBoss, Inc. 404-467-8555 x223 [EMAIL PROTECTED] - Original Message - From: Patrick van Kann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:01 AM Subject: RE: slide and jboss I got it working with JBoss 3.2.5 by following the advice on the JBoss wiki: http://www.jboss.org/wiki/Wiki.jsp?page=JakartaSlide I am not using the Slide authentication - I am using the JBoss RDBMS realm. This means that you either need to use the auto-create-users = true setting in Domain.xml or manually synchronise users in your Realm with the Slide users at /slide/users. Hope this helps. Patrick -Original
Re: slide and jboss
Hi Roy, Another option besides auto-create-users is to use Slide as the actual authentication realm. That way you can manage your users in Slide, and let Tomcat pull its usernames and passwords from Slide when you try to login. A SlideLoginModule that works with jboss was posted to the list by James Higginbotham. I don't think I had to make any changes to it for jboss 3.2.5 - 3.2.7. You can find it here: http://www.mail-archive.com/slide-user@jakarta.apache.org/msg03493.html Here is a policy file that you can use for this: application-policy name = slide-domain authentication login-module code=com.greenmud.auth.SlideLoginModule flag=required module-option name=namespaceslide/module-option /login-module /authentication /application-policy Good Luck, Ryan Rhodes From: Roy Russo [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED] Subject: Re: slide and jboss Date: Tue, 30 Nov 2004 11:50:59 -0500 ok... I got it working, without going to the DB for now, and heres what I did. (I will update our wiki page this week) It is exactly the same as securing the jmx-console: http://www.jboss.org/wiki/Wiki.jsp?page=SecureTheJmxConsole 1. Upack the slide.war and place it under the deploy dir. 2. Create /WEB-INF/classes/slide-users.properties and /WEB-INF/classes/slide-roles.properties 3. Edit the /server/standard/conf/login-config.xml and add a security domain for slide-domain: !-- Security domain for JBoss Portal - Jakarta Slide -- application-policy name = slide-domain authentication login-module code=org.jboss.security.auth.spi.UsersRolesLoginModule flag = required module-option name=usersPropertiesslide-users.properties/module-option module-option name=rolesPropertiesslide-roles.properties/module-option /login-module /authentication /application-policy 4. Create /WEB-INF/jboss-web.xml and add this to it: jboss-web security-domainjava:/jaas/slide-domain/security-domain /jboss-web 5. Go in to /WEB-INF/web.xml and uncomment the security contraint blocks at the bottom. 6. Start jboss. 7. Go to http://localhost:8080/slide and you should be prompted for a login. I think I got it all. Thank you very much, Pat. Roy Russo JBoss Portal Developer JBoss, Inc. 404-467-8555 x223 [EMAIL PROTECTED] - Original Message - From: Patrick van Kann [EMAIL PROTECTED] To: Slide Users Mailing List [EMAIL PROTECTED]; Slide Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:54 AM Subject: RE: slide and jboss auto-create-users will have no effect until you secure slide using a non-Slide realm. You have to get that working first - and the wiki page doesn't really describe this properly. The effect it will have is that when you authenticate against the external realm, Slide will automatically create a collection in /slide/users named after the principal you have logged in as. I believe there is also a setting for auto-create-roles that will do the same with any of the roles that the principal has in /slide/roles. The effect of this is that you will then be able to set ACLS on specific URIs based on these users and roles. If you don't use auto-create-users and auto-create-roles, you can use application logic (say in the portlet itself, assuming this is what you are developing) that can create these collections for you. These settings got non-slide authentication working for me: server/default/deploy/slide.war/WEB-INF/jboss-web.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss-web PUBLIC -//JBoss//DTD Web Application 2.3//EN http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd; jboss-web class-loading java2ClassLoadingCompliance=false loader-repositoryorg.apache.slide:loader=slide.war/loader-repository /class-loading security-domainjava:/jaas/slide-domain/security-domain resource-ref res-ref-namejdbc/SlideDS/res-ref-name res-typejavax.sql.DataSource/res-type jndi-namejava:/jdbc/SlideDS/jndi-name /resource-ref /jboss-web in server/default/conf/login-config.xml I added a policy application-policy name = slide-domain authentication login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule flag=required module-option name = dsJndiNamejava:/jdbc/SecurityDS/module-option module-option name = principalsQuery select password from Users where username=? /module-option module-option name = rolesQuery select groupname, null from GroupMembers m where m.username = ? /module-option /login-module /authentication /application-policy Hope it helps. Patrick -Original Message- From: Roy Russo [mailto:[EMAIL PROTECTED] Sent: Tue 11/30/2004 3:29 PM To: Slide Users Mailing List Subject: Re: slide and jboss Well, its definitely good news to hear that someone got it working
Slide with JBoss
hi, first, thx for any help before. I have successfully use Slide with Tomcat. So far, I want to use Jboss+Tomcat with slide. I put all slide server jar and JDBC driver into $Jboss/lib, and slide.war into $JBoss/default/deploy. After I start the JBoss, and open a IE to connect http://localhost:8080/slide, the error is following: any help would be very appreciate. --- 09:47:34,030 ERROR [STDERR] org.jdom.JDOMException: Error on line 1: expected ¡°/D:href¡±terminate 09:47:37,095 ERROR [STDERR] at org.apache.slide.util.XMLValue.add(XMLValue.java:339) 09:47:37,095 ERROR [STDERR] at org.apache.slide.util.XMLValue.init(XMLValue.java:154) 09:47:37,105 ERROR [STDERR] at org.apache.slide.util.XMLValue.init(XMLValue.java:136) 09:47:37,115 ERROR [STDERR] at org.apache.slide.security.SecurityImpl.matchPrincipal(SecurityImpl.java:1212) 09:47:37,115 ERROR [STDERR] at org.apache.slide.security.SecurityImpl.matchPrincipal(SecurityImpl.java:1182) 09:47:37,125 ERROR [STDERR] at org.apache.slide.security.ACLSecurityImpl.matchSubject(ACLSecurityImpl.java:335) 09:47:37,125 ERROR [STDERR] at org.apache.slide.security.ACLSecurityImpl.match(ACLSecurityImpl.java:310) 09:47:37,135 ERROR [STDERR] at org.apache.slide.security.ACLSecurityImpl.evaluateAcl(ACLSecurityImpl.java:300) 09:47:37,145 ERROR [STDERR] at org.apache.slide.security.ACLSecurityImpl.hasPermission(ACLSecurityImpl.java:123) 09:47:37,145 ERROR [STDERR] at org.apache.slide.security.SecurityImpl.checkPermission(SecurityImpl.java:461) 09:47:37,155 ERROR [STDERR] at org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:393) 09:47:37,155 ERROR [STDERR] at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:159) 09:47:37,165 ERROR [STDERR] at org.apache.slide.structure.StructureImpl.retrieve(StructureImpl.java:143) 09:47:37,175 ERROR [STDERR] at org.apache.slide.webdav.util.DirectoryIndexGenerator.generate(DirectoryIndexGenerator .java:158) 09:47:37,185 ERROR [STDERR] at org.apache.slide.webdav.WebdavServlet.doGet(WebdavServlet.java:345) 09:47:37,195 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 09:47:37,195 ERROR [STDERR] at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:159) 09:47:37,205 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 09:47:37,205 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha in.java:247) 09:47:37,215 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 193) 09:47:37,235 ERROR [STDERR] at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139) 09:47:37,235 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha in.java:213) 09:47:37,245 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 193) 09:47:37,265 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) 09:47:37,265 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Sta ndardPipeline.java:643) 09:47:37,285 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 09:47:37,285 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) 09:47:37,295 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 09:47:37,295 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Sta ndardPipeline.java:643) 09:47:37,305 ERROR [STDERR] at org.jboss.web.catalina.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.ja va:227) 09:47:37,325 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Sta ndardPipeline.java:641) 09:47:37,335 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551 ) 09:47:37,345 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Sta ndardPipeline.java:641) 09:47:37,355 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) 09:47:37,355 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Sta ndardPipeline.java:641) 09:47:37,375 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 09:47:37,375 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) 09:47:37,385 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) 09:47
RE: Slide with JBoss
hi,friends, I can use slide in JBoss+Tomcat with unauthentication now. But when I uncomment the security-* in web.xml file, I cannot connect to slide by http:/localhost:8080/slide, the error is following: who can tell me how to build slide authentication in Jboss+Tomcat?(I use Jboss3.0.8+tomcat4.1.24) -- 11:07:52,129 ERROR [Engine] StandardWrapperValve[webdav]: Servlet.service() for servlet webdav threw exception java.lang.NullPointerException at java.lang.StringBuffer.replace(StringBuffer.java:717) at org.apache.slide.webdav.filter.LogFilter.logLine(LogFilter.java:178) at org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:150) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.jboss.web.catalina.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:227) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:534) From: Slide Tao [EMAIL PROTECTED] Reply-To: Slide Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Slide with JBoss Date: Tue, 20 Apr 2004 01:49:32 + hi, first, thx for any help before. I have successfully use Slide with Tomcat. So far, I want to use Jboss+Tomcat with slide. I put all slide server jar and JDBC driver into $Jboss/lib, and slide.war into $JBoss/default/deploy. After I start the JBoss, and open a IE to connect http://localhost:8080/slide, the error is following: any help would be very appreciate. --- 09:47:34,030 ERROR [STDERR
RE: Slide on JBoss (was Listing Revisions)
James, On step 6, why do you copy jboss-web.xml to slide.war/WEB-INF? Also, I would imagine that the context you use is localhost:8080/controlpanel based on you last comment. Is this correct? Could you provide a copy of your domain.xml, web.xml, and jboss-web.xml which make this all work? Thanks! Ivan Drinks Sr. Reality Technology, Inc. 3801 East Florida, Suite 400 Denver, CO 80237 [EMAIL PROTECTED] Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given or endorsed by it. -Original Message- From: James Higginbotham [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 7:32 AM To: Slide Users Mailing List Subject: RE: Slide on JBoss (was Listing Revisions) Ryan, Here is what I've done so far to get things to work using a nightly build on JBoss 3.0.4 + Tomcat - note, its not the optimum configuration yet: 1) Copy the following jars into server/default/lib - slide-kernel, slide-roles, slide-stores, slide-webdavservlet, jdom (you'll need to remove the .xml file from meta-inf, or else jboss will try to find a custom deployer for the jar), jdom-dev 2) I then, for easier overriding of the Domain.xml file, unjar the war and place it in the deploy under the folder slide.war 3) I remove the jars I copied to lib in step 1 from the slide.war/WEB-INF/lib to ensure I don't have duplicate jar files being deployed 4) I build a jar file with my log4j, commons-logging, and other properties files and put that into the server/default/lib so that I can better control the logging for Slide (not sure if I've really done much here yet come to think of it - it uses stdout which log4j catches using the default jboss settings) 5) Delete server/default/deploy/slide.war/Domain.xml and copy my Domain.xml to that location (since if I get an updated version of slide from CVS, that file may be newer than mine and ant refuses to copy it) 6) Copy my own custom web.xml and jboss-web.xml settings to slide.war/WEB-INF so that I can use my custom JBoss Slide login module and control web settings for the slide context 7) I build my own war, called controlpanel.war, with the JSPs the appropriate web.xml, jboss-web.xml settings 8) I build my ear file, called controlpanel.ear, and put in the war, any EJBs (none to this point), third party libs (like the slide taglibs, struts, etc) and deploy that I have an ant script to do most of this with an initserver target to build the exploded war structure under deploy and copy the appropriate jars to lib. I run this whenever I'm initilaizing a fresh copy of JBoss, such as when I've upgraded, done a manual clean of the jboss dir structure, etc. I have my war and ear built on each deploy. Hotdeploy works with this configuration on JBoss 3.0.4, but not on 3.0.6 - I have a bug outstanding with them on this. HTH, James -Original Message- From: Ryan McDonough [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 9:56 PM To: 'Slide Users Mailing List' Subject: Re: Listing Revisions Hey James, I know this probably isn't the email you might have been hoping for, but you seem like someone who might have the answers I'm looking for. You are doing some of the stuff I'd like to be doing but I'd say you're like 4 steps ahead of me right now. I would like to create a customized web interface to slide, but I don't seem to be able to. I'm using Slide 1.0.16. In one case, I tried to see if I could muck with the server implementation that comes with the distribution. The trouble for me there was that the wrapper classes have the paths to the WARs hard coded. Why, I do not know, and why the Wrapper classes in the 1st place? Anyway, I then tried using the web apps. The Slide web app worked fine, but the admin app bombs. I've realized that it bombs because the domain is not loaded. Now, I would like to use JBoss for this, and I see that Slide has an Mbean interface available and I have noticed that you have been doing some work with JBoss and Slide. Have you been able to get slide working as an Mbean or have you gotten slide working another way? Ryan- On 3/25/03 10:50 AM, James Higginbotham [EMAIL PROTECTED] wrote: Hi, I'm in the process of creating a web page to view the list of revisions for a resource. I am seeing only version 1.0 showing up in the web view (via the struts tag lib) but can see other versions being stored either via the file or jdbc (using hsql) stores using a Slide
RE: Slide on JBoss (was Listing Revisions)
Ryan, Here is what I've done so far to get things to work using a nightly build on JBoss 3.0.4 + Tomcat - note, its not the optimum configuration yet: 1) Copy the following jars into server/default/lib - slide-kernel, slide-roles, slide-stores, slide-webdavservlet, jdom (you'll need to remove the .xml file from meta-inf, or else jboss will try to find a custom deployer for the jar), jdom-dev 2) I then, for easier overriding of the Domain.xml file, unjar the war and place it in the deploy under the folder slide.war 3) I remove the jars I copied to lib in step 1 from the slide.war/WEB-INF/lib to ensure I don't have duplicate jar files being deployed 4) I build a jar file with my log4j, commons-logging, and other properties files and put that into the server/default/lib so that I can better control the logging for Slide (not sure if I've really done much here yet come to think of it - it uses stdout which log4j catches using the default jboss settings) 5) Delete server/default/deploy/slide.war/Domain.xml and copy my Domain.xml to that location (since if I get an updated version of slide from CVS, that file may be newer than mine and ant refuses to copy it) 6) Copy my own custom web.xml and jboss-web.xml settings to slide.war/WEB-INF so that I can use my custom JBoss Slide login module and control web settings for the slide context 7) I build my own war, called controlpanel.war, with the JSPs the appropriate web.xml, jboss-web.xml settings 8) I build my ear file, called controlpanel.ear, and put in the war, any EJBs (none to this point), third party libs (like the slide taglibs, struts, etc) and deploy that I have an ant script to do most of this with an initserver target to build the exploded war structure under deploy and copy the appropriate jars to lib. I run this whenever I'm initilaizing a fresh copy of JBoss, such as when I've upgraded, done a manual clean of the jboss dir structure, etc. I have my war and ear built on each deploy. Hotdeploy works with this configuration on JBoss 3.0.4, but not on 3.0.6 - I have a bug outstanding with them on this. HTH, James -Original Message- From: Ryan McDonough [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 9:56 PM To: 'Slide Users Mailing List' Subject: Re: Listing Revisions Hey James, I know this probably isn't the email you might have been hoping for, but you seem like someone who might have the answers I'm looking for. You are doing some of the stuff I'd like to be doing but I'd say you're like 4 steps ahead of me right now. I would like to create a customized web interface to slide, but I don't seem to be able to. I'm using Slide 1.0.16. In one case, I tried to see if I could muck with the server implementation that comes with the distribution. The trouble for me there was that the wrapper classes have the paths to the WARs hard coded. Why, I do not know, and why the Wrapper classes in the 1st place? Anyway, I then tried using the web apps. The Slide web app worked fine, but the admin app bombs. I've realized that it bombs because the domain is not loaded. Now, I would like to use JBoss for this, and I see that Slide has an Mbean interface available and I have noticed that you have been doing some work with JBoss and Slide. Have you been able to get slide working as an Mbean or have you gotten slide working another way? Ryan- On 3/25/03 10:50 AM, James Higginbotham [EMAIL PROTECTED] wrote: Hi, I'm in the process of creating a web page to view the list of revisions for a resource. I am seeing only version 1.0 showing up in the web view (via the struts tag lib) but can see other versions being stored either via the file or jdbc (using hsql) stores using a Slide daily build from mid November. I am performing the following steps and seeing the following results: 1. Putting files into Slide via Windows XP Web folders - a v1.0 is created for each file 2. Navigating to the folder that contains my resource I'm interested in, and putting a new copy of the same file using MS web folders 3. I can see within the hsql files the SQL commands that create a 1.1 version into the DB 4. I use the following JSP code to view the revisions, which only shows a version 1.0: %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/struts-template.tld prefix=template % %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % %@ taglib uri=/WEB-INF/slide-struts.tld prefix=slide % %@ taglib uri=/WEB-INF/display.tld prefix=display % %@ taglib uri=/WEB-INF/calvary.tld prefix=calvary % p slide:node id=node uriName='viewer' uriProperty='computedUri' resolveLinks='true' bean:define id=latestRevision name=node property=latestRevision/ p class=viewerNamebean:write name
RE: Slide and JBoss Authentication
Hi James, I haven't put the JBoss login module together yet but will be in the next week or so, whenever I get some time. I'll post when its ready so you can get a copy. If in the mean time anyone happens across one that is already done... Cheers, Adam -Original Message- From: James Higginbotham [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 00:30 To: Slide Users Mailing List; Adam Booth Subject: RE: Slide and JBoss Authentication Adam, Did you ever compose that JBoss login module? Just wondering if someone submitted one to you or if you composed one that you could share.. Thanks, James -Original Message- From: Adam Booth [mailto:[EMAIL PROTECTED] Sent: Thursday, February 13, 2003 4:47 AM To: [EMAIL PROTECTED] Subject: Slide and JBoss Authentication Hi all, I'm in the process of deploying slide with JBoss 3.0 / Jetty using realm authentication. I was wonder if anyone has already done this and written the custom authentication class needed. If so would it possible get a copy. Any assistance would be greatly appreciated. Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Slide and JBoss Authentication
Ok.. I needed it today, so I went ahead and wrote it and javadoc'ed its use for those interested. Hopefully, the slide maintainers will change the package to whatever they like, update the single javadoc like that refs the package, and commit this into CVS. I built it against JBoss 3.0.4 but it should work for any 3.0.x and probably 3.2/4.0+ - AFAIK, they aren't changing the security APIs on those trees. Slide maintainers - please let me know if there is a preferred way for me to submit contribs in the future.. It's a small file, so I figured attaching here would be ok for now. Regards, James -Original Message- From: Adam Booth [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:20 AM To: James Higginbotham; Slide Users Mailing List Subject: RE: Slide and JBoss Authentication Hi James, I haven't put the JBoss login module together yet but will be in the next week or so, whenever I get some time. I'll post when its ready so you can get a copy. If in the mean time anyone happens across one that is already done... Cheers, Adam -Original Message- From: James Higginbotham [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 00:30 To: Slide Users Mailing List; Adam Booth Subject: RE: Slide and JBoss Authentication Adam, Did you ever compose that JBoss login module? Just wondering if someone submitted one to you or if you composed one that you could share.. Thanks, James -Original Message- From: Adam Booth [mailto:[EMAIL PROTECTED] Sent: Thursday, February 13, 2003 4:47 AM To: [EMAIL PROTECTED] Subject: Slide and JBoss Authentication Hi all, I'm in the process of deploying slide with JBoss 3.0 / Jetty using realm authentication. I was wonder if anyone has already done this and written the custom authentication class needed. If so would it possible get a copy. Any assistance would be greatly appreciated. Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Slide and JBoss Authentication
) { e.printStackTrace(); return null; } String passwordValue = null; try { NodeRevisionDescriptors revisionDescriptors = contentHelper.retrieve(slideToken, usersPath + / + username); NodeRevisionDescriptor revisionDescriptor = contentHelper.retrieve(slideToken, revisionDescriptors); NodeProperty password = revisionDescriptor.getProperty (password, NodeProperty.SLIDE_NAMESPACE); if (password != null) { passwordValue = (String) password.getValue(); } } catch (SlideException e) { // Whatever happens doesn't really matter // The stack trace is displayed for now for debug purposes log.debug(Caught during password fetch,e); } if (passwordValue == null) { log.warn(User + username + doesn't have his password property set : + can't authenticate); } return passwordValue; } /** * Return an array of Groups that will be attached to the user's Principal. JBoss * has a default 'Roles' group that is created with all of the roles found for the * user (usually the default Slide set of nobody and guest, user, or root) * @see org.jboss.security.auth.spi.AbstractServerLoginModule#getRoleSets() */ protected Group[] getRoleSets() throws LoginException { SimpleGroup rolesGroup = new SimpleGroup(Roles); Group[] groups = new Group[1]; groups[0] = rolesGroup; String username = getUsername(); Principal userPrincipal = getPrincipal(username); CredentialsToken credToken = new CredentialsToken(userPrincipal); SlideToken slideToken = new SlideTokenImpl(credToken); try { Enumeration e = securityHelper.getRoles(slideToken); while(e.hasMoreElements()) { // convert to an array String role = (String)e.nextElement(); log.debug(Adding new SimplePrincipal with role=+role); rolesGroup.addMember( new SimplePrincipal( role ) ); } } catch (SlideException e) { // The stack trace is displayed for now for debug purposes e.printStackTrace(); log.debug(Caught during roles fetch,e); } return groups; } /** * Returns an internal slide principal for the given username * @param username * @return Principal */ private Principal getPrincipal(String username) { return new SlideRealmPrincipal(username); } /** * Set of access tokens. */ private NamespaceAccessToken accessToken; /** * Content helper. */ private Content contentHelper; /** * Security halper. */ private Security securityHelper; /** * Users path. */ private String usersPath; /** * Root credentials token. */ private CredentialsToken rootCredentials; /** * Namepsace to which this realm will connect. */ private String namespace; /** * Static logger */ private static final Log log = LogFactory.getLog( SlideLoginModule.class );; } /** * Private class representing an individual user's Principal object. */ final class SlideRealmPrincipal implements Principal { /** * The username for this Principal. */ private String username = null; /** * Construct a new MemoryRealmPrincipal instance. * * @param username The username for this Principal */ public SlideRealmPrincipal(String username) { this.username = username; } /** * Return the name of this Principal. */ public String getName() { return (username); } } -Original Message- From: James Higginbotham Sent: Tuesday, February 25, 2003 8:31 PM To: Adam Booth; Slide Users Mailing List Subject: RE: Slide and JBoss Authentication Ok.. I needed it today, so I went ahead and wrote it and javadoc'ed its use for those interested. Hopefully, the slide maintainers will change the package to whatever they like, update the single javadoc like that refs the package, and commit this into CVS. I built it against JBoss 3.0.4 but it should work for any 3.0.x and probably 3.2/4.0+ - AFAIK, they aren't changing the security APIs on those trees. Slide maintainers - please let me know if there is a preferred way for me to submit contribs in the future.. It's a small file, so I figured attaching here would be ok for now. Regards, James -Original Message- From: Adam Booth [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:20
RE: Slide and JBoss Authentication
Adam, Did you ever compose that JBoss login module? Just wondering if someone submitted one to you or if you composed one that you could share.. Thanks, James -Original Message- From: Adam Booth [mailto:[EMAIL PROTECTED] Sent: Thursday, February 13, 2003 4:47 AM To: [EMAIL PROTECTED] Subject: Slide and JBoss Authentication Hi all, I'm in the process of deploying slide with JBoss 3.0 / Jetty using realm authentication. I was wonder if anyone has already done this and written the custom authentication class needed. If so would it possible get a copy. Any assistance would be greatly appreciated. Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Slide and JBoss Authentication
Hi all, I'm in the process of deploying slide with JBoss 3.0 / Jetty using realm authentication. I was wonder if anyone has already done this and written the custom authentication class needed. If so would it possible get a copy. Any assistance would be greatly appreciated. Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploy Slide in JBoss/Tomcat
I have minor success in deploying Slide in JBoss 3.0.4/Tomcat 4.1.12. I copy the slide.war into the deploy directory. Once JBoss started, I can browse the slide namespace. However, browsing is all I can do. I cannot edit any files. How do I configure Slide for editing in Jboss/Tomcat environment? Correct me if I'm wrong. I think I have to configure a 8081 port using the WebdavHost wrapper. I can't find any document that helps me do that. Another question. I want to create a web GUI for WebDAV editing. Do I need to build it from scratch (probably using Slide's taglib), or is there something that does it already? -- Willie Vu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Deploy Slide in JBoss/Tomcat
Funny, I'm doing the same thing.. I unjar'ed the war and put it in deploy as a folder called slide.war, using JB 3.0.4 + Tomcat.. It works fine for me, thought the repos is in bin/repository until I change it. I too am planning to put together a GUI to manage webdav.. Sort of a poor man's CMS system, with workflow needs coming later.. Want to pair up? Is this for OSS or for a private product? -Original Message- From: Willie Vu [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 3:18 AM To: [EMAIL PROTECTED] Subject: Deploy Slide in JBoss/Tomcat I have minor success in deploying Slide in JBoss 3.0.4/Tomcat 4.1.12. I copy the slide.war into the deploy directory. Once JBoss started, I can browse the slide namespace. However, browsing is all I can do. I cannot edit any files. How do I configure Slide for editing in Jboss/Tomcat environment? Correct me if I'm wrong. I think I have to configure a 8081 port using the WebdavHost wrapper. I can't find any document that helps me do that. Another question. I want to create a web GUI for WebDAV editing. Do I need to build it from scratch (probably using Slide's taglib), or is there something that does it already? -- Willie Vu -- To unsubscribe, e-mail: mailto:slide-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]