You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Luc Fouin <lu...@free.fr> on 2005/04/06 11:29:35 UTC

PSML hot modifications

hi,

is that me or the modifications in the PSML files (in my case, 
default-page.psml) are not loaded without restart jetspeed with the last 
cvs HEAD version??

before yesterday i used to change my psml and it was nice, and now i 
can't and i often have

> Etat HTTP 403 - SecurityConstraintsImpl.checkConstraints(): Access for view not permitted.
> 
> type Rapport d'état
> 
> message SecurityConstraintsImpl.checkConstraints(): Access for view not permitted.
> 
> description L'accès à la ressource demandée (SecurityConstraintsImpl.checkConstraints(): Access for view not permitted.) a été interdit.
> Apache Tomcat/5.5.7

when i try to access jetspeed...

thanks, Luc


PS: Tomcat 5.5.7, Jdk 1.5.0_02

-- 
Luc FOUIN - Stagiaire Aptiwan
14 rue Niepce
75014 Paris
Tél : (+33) 6 77 95 17 24
Mél : luc.fouin@aptiwan.com

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


Re: PSML hot modifications

Posted by Luc Fouin <lu...@free.fr>.
Luc Fouin a écrit :
> hi,
again...

i found my error concerning the Error HTTP 403 (a pb with the deployment 
of jetspeed-layout.jar causing psml parsing errors)

> before yesterday i used to change my psml and it was nice, and now i 
> can't and i often have
> 
>> Etat HTTP 403 - SecurityConstraintsImpl.checkConstraints(): Access for 
>> view not permitted.
>>
>> type Rapport d'état
>>
>> message SecurityConstraintsImpl.checkConstraints(): Access for view 
>> not permitted.
>>
>> description L'accès à la ressource demandée 
>> (SecurityConstraintsImpl.checkConstraints(): Access for view not 
>> permitted.) a été interdit.
>> Apache Tomcat/5.5.7


Luc

-- 
Luc FOUIN - Stagiaire Aptiwan
14 rue Niepce
75014 Paris
Tél : (+33) 6 77 95 17 24
Mél : luc.fouin@aptiwan.com

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


Re: Creation of PSML files

Posted by Deep Kumar <de...@comcreation.com>.
Hi All,
    I got the solution, I was missing three lines of code...  Here is the
new code.


                            String userName = "Sample", password =
"Sample1";
                            JetspeedUser user =
JetspeedSecurity.getUserInstance();

                           ServletConfig config = getServletConfig();
                           RunData runData =
RunDataFactory.getRunData(request, response, config);
                           runData.getParameters().setProperties(user);

user.setUserName(JetspeedSecurity.convertUserName(userName));
                           user.setPassword(password);
                           System.out.println("Password : "+password);
                           user.setLastName("lastName");
                           user.setFirstName("firstName");
                           user.setEmail("Sample@Sample.com");

                           Date now = new Date();
                           user.setCreateDate(now);
                           user.setLastLogin(now);

user.setConfirmed(JetspeedResources.CONFIRM_VALUE);
                           JetspeedSecurity.addUser(user);



Regards
Deep Kumar
Chief Architect, ComCreation


----- Original Message -----
From: "Deep Kumar" <de...@comcreation.com>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Monday, February 07, 2005 12:49 PM
Subject: Creation of PSML files


> Hi Guys,
>        We have coded to add the users in jetspeed as below
>
>                        String userName = "Sample", password = "Sample1";
>                        JetspeedUser user =
> JetspeedSecurity.getUserInstance();
>
> user.setUserName(JetspeedSecurity.convertUserName(userName));
>                        user.setPassword(password);
>                        System.out.println("Password : "+password);
>                        user.setLastName("lastName");
>                        user.setFirstName("firstName");
>                        user.setEmail("Sample@Sample.com");
>
>                        Date now = new Date();
>                        user.setCreateDate(now);
>                        user.setLastLogin(now);
>                        user.setConfirmed(JetspeedResources.CONFIRM_VALUE);
>                        //JetspeedSecurity.addUser(user);     tried with
this
> also but not working
>                        JetspeedUserManagement.addUser(user);
>
>
>         However with this piece of code user "Sample1" is being created in
> jetspeed, but the PSML files are not being created for the user. Am i
> missing somthing in this code..... ?????
>
>         Any help would be much appreciated......
>
>
> Regards
> Deep Kumar
> Chief Architect, ComCreation
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>


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


Creation of PSML files

Posted by Deep Kumar <de...@comcreation.com>.
Hi Guys,
       We have coded to add the users in jetspeed as below

                       String userName = "Sample", password = "Sample1";
                       JetspeedUser user =
JetspeedSecurity.getUserInstance();

user.setUserName(JetspeedSecurity.convertUserName(userName));
                       user.setPassword(password);
                       System.out.println("Password : "+password);
                       user.setLastName("lastName");
                       user.setFirstName("firstName");
                       user.setEmail("Sample@Sample.com");

                       Date now = new Date();
                       user.setCreateDate(now);
                       user.setLastLogin(now);
                       user.setConfirmed(JetspeedResources.CONFIRM_VALUE);
                       //JetspeedSecurity.addUser(user);     tried with this
also but not working
                       JetspeedUserManagement.addUser(user);


        However with this piece of code user "Sample1" is being created in
jetspeed, but the PSML files are not being created for the user. Am i
missing somthing in this code..... ?????

        Any help would be much appreciated......


Regards
Deep Kumar
Chief Architect, ComCreation


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