You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Paul Hussein <pa...@terma.it> on 2005/01/13 15:13:43 UTC

possible bug or misconfiguration with auto-create-users?

I am trying to configure the development version of slide from cvs with 
tomcat 5 to use the auto-create-user option available in Domain.xml.


I have changed Domain.xml as in wck Domain.xml to have

            <auto-create-users>true</auto-create-users>
            
<!--auto-create-users-role>org.apache.slide.structure.SubjectNode</auto-create-users-role-->
            
<!auto-create-users-role>slideroles.basic.RootRoleImpl</auto-create-users-role>

and have hardcoded a username and password in the SlideLoginModule, and 
changed nothing else from the

jaas-deploy-tomcat-5

target ( except for adding a little more debug ).


With these settings i get :


SlideLoginModule.login : enter
SlideLoginModule.login : got username and password
SecurityImpl.getPrincipal : enter
SecurityImpl.getPrincipal : isAutoCreateUsers : true
SecurityImpl.getPrincipal : we are trying to auto create user
SecurityImpl.getPrincipal : namespaceConfig.getAutoCreateUsersRole() : 
slideroles.basic.RootRoleImpl
13 Jan 2005 14:47:52 - WARNING - WARNING: No active transaction
13 Jan 2005 14:47:52 - file-meta-store - WARNING - Thread 
Thread[http-8080-Processor25,5,main] marked transaction branch null for 
rollback. Cause: Not inside tx
13 Jan 2005 14:47:52 - org.apache.slide.common.Domain - ERROR - 
[SlideLoginModule] - Failure loading user object - Service 
TxXMLFileDescriptorsStore at 
/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/store/metadata  
working on 
/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/work/metadata 
access error : Invalid transaction id
13 Jan 2005 14:47:52 - org.apache.slide.common.Domain - ERROR - 
org.apache.slide.common.ServiceAccessException: Service 
TxXMLFileDescriptorsStore at 
/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/store/metadata  
working on 
/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/work/metadata 
access error : Invalid transaction id
org.apache.slide.common.ServiceAccessException: Service 
TxXMLFileDescriptorsStore at 
/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/store/metadata  
working on 
/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/work/metadata 
access error : Invalid transaction id
        at 
org.apache.slide.store.txfile.AbstractTxFileStoreService.throwInternalError(AbstractTxFileStoreService.java:365)
        at 
org.apache.slide.store.txfile.XMLResourceDescriptor.create(XMLResourceDescriptor.java:130)
        at 
org.apache.slide.store.txfile.TxXMLFileDescriptorsStore.createObject(TxXMLFileDescriptorsStore.java:121)
        at 
org.apache.slide.store.AbstractStore.createObject(AbstractStore.java:762)
        at 
org.apache.slide.store.ExtendedStore.createObject(ExtendedStore.java:642)
        at 
org.apache.slide.security.SecurityImpl.getPrincipal(SecurityImpl.java:1030)
        at 
org.apache.slide.jaas.spi.SlideLoginModule.login(SlideLoginModule.java:178)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25 I 
get :


Are there some more settings I need to configure. I did try the wck 
build. but the Domain.xml does not seem to be a valid XML file.



Regards


Paul.










---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


RE: possible bug or misconfiguration with auto-create-users?

Posted by Sven Pfeiffer <sv...@innoface.de>.
Hi Paul

I guess you should set <parameter name="all-methods-in-transactions">true</parameter> in configuration-element in Domain.xml.

hth

SVen

>-----Original Message-----
>From: Paul Hussein [mailto:pah@terma.it]
>Sent: Thursday, January 13, 2005 3:14 PM
>To: Slide Users Mailing List
>Subject: possible bug or misconfiguration with auto-create-users?
>
>
>I am trying to configure the development version of slide from cvs with 
>tomcat 5 to use the auto-create-user option available in Domain.xml.
>
>
>I have changed Domain.xml as in wck Domain.xml to have
>
>            <auto-create-users>true</auto-create-users>
>            
><!--auto-create-users-role>org.apache.slide.structure.SubjectNode</auto-create-users-role-->
>            
><!auto-create-users-role>slideroles.basic.RootRoleImpl</auto-create-users-role>
>
>and have hardcoded a username and password in the SlideLoginModule, and 
>changed nothing else from the
>
>jaas-deploy-tomcat-5
>
>target ( except for adding a little more debug ).
>
>
>With these settings i get :
>
>
>SlideLoginModule.login : enter
>SlideLoginModule.login : got username and password
>SecurityImpl.getPrincipal : enter
>SecurityImpl.getPrincipal : isAutoCreateUsers : true
>SecurityImpl.getPrincipal : we are trying to auto create user
>SecurityImpl.getPrincipal : namespaceConfig.getAutoCreateUsersRole() : 
>slideroles.basic.RootRoleImpl
>13 Jan 2005 14:47:52 - WARNING - WARNING: No active transaction
>13 Jan 2005 14:47:52 - file-meta-store - WARNING - Thread 
>Thread[http-8080-Processor25,5,main] marked transaction branch null for 
>rollback. Cause: Not inside tx
>13 Jan 2005 14:47:52 - org.apache.slide.common.Domain - ERROR - 
>[SlideLoginModule] - Failure loading user object - Service 
>TxXMLFileDescriptorsStore at 
>/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/store/metadata  
>working on 
>/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/work/metadata 
>access error : Invalid transaction id
>13 Jan 2005 14:47:52 - org.apache.slide.common.Domain - ERROR - 
>org.apache.slide.common.ServiceAccessException: Service 
>TxXMLFileDescriptorsStore at 
>/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/store/metadata  
>working on 
>/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/work/metadata 
>access error : Invalid transaction id
>org.apache.slide.common.ServiceAccessException: Service 
>TxXMLFileDescriptorsStore at 
>/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/store/metadata  
>working on 
>/net/devserver/home/paulh/jakarta-tomcat-5.0.28/webapps/slide/work/metadata 
>access error : Invalid transaction id
>        at 
>org.apache.slide.store.txfile.AbstractTxFileStoreService.throwInternalError(AbstractTxFileStoreService.java:365)
>        at 
>org.apache.slide.store.txfile.XMLResourceDescriptor.create(XMLResourceDescriptor.java:130)
>        at 
>org.apache.slide.store.txfile.TxXMLFileDescriptorsStore.createObject(TxXMLFileDescriptorsStore.java:121)
>        at 
>org.apache.slide.store.AbstractStore.createObject(AbstractStore.java:762)
>        at 
>org.apache.slide.store.ExtendedStore.createObject(ExtendedStore.java:642)
>        at 
>org.apache.slide.security.SecurityImpl.getPrincipal(SecurityImpl.java:1030)
>        at 
>org.apache.slide.jaas.spi.SlideLoginModule.login(SlideLoginModule.java:178)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25 I 
>get :
>
>
>Are there some more settings I need to configure. I did try the wck 
>build. but the Domain.xml does not seem to be a valid XML file.
>
>
>
>Regards
>
>
>Paul.
>
>
>
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: slide-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org