Programmtic login - from either a custom activity space or LoginAction PEI

I know how to programmatically logout using:<br>
Redirect redirect = null;<br>
redirect.SetLinkCreateNewSpace(LoginAS.STR_MVC_CLASS_NAME, null);<br>
redirect.SetControl(LoginControl.STR_MVC_CLASS_NAME);<br>
redirect.AddControlArgument(LoginHelper.PARAM_DOLOGOUT, true);<br>
redirect.AddControlArgument(ASConstants.CLEARSESSION, "true");<br>
return redirect;<br><br>
I got that code from right here in the forums - thanks.<br>
However, I need a snippet that will programatically login and return a Redirect now, too. Does anyone have a snippet that will do that?<br><br>
p.s. I'll be putting it into a LoginActions PEI in the OnFailedLoginDoRedirect(). In our use case, if someone tries to login and it fails, I'll be checking a custom sql table that maps old bad logins to new good ones and attempts programmatic re-login with the retrieved/mapped credentials.<br><br>
p.p.s I'll have all 3 items in my pocket - userId, username, and password - if that makes a difference in the possible solution that gets posted here. I could also get a login token for the mapped user if that's necessary, too. So I can get 4 things to help w/ the programmatic login.<br><br>
Thanks in advance.

LMah gets full credit for this answer (just mimic the login form!):<br><br>
Redirect redirect = new Redirect();<br>
redirect.SetLinkCreateNewSpace(LoginAS.STR_MVC_CLASS_NAME, null);<br>
          redirect.AddControlArgument("in_hi_space", "login");<br>
          redirect.AddControlArgument("in_hi_spaceID", 0);<br>
          redirect.SetControl(LoginControl.STR_MVC_CLASS_NAME);<br>
          redirect.AddControlArgument("in_hi_dologin", true);<br>
          redirect.AddControlArgument("in_tx_username", "administrator");<br>
          redirect.AddControlArgument("in_pw_userpass", "");<br>
          redirect.AddControlArgument("in_se_authsource", "");<br>
          return redirect;<br>
<br>If you'd like to use api constants instead of hard coding the input values, you can always do something like this:<br>
redirect.AddControlArgument(LoginHTML.PARAM_USERPASS, "");

Similar Messages

  • Pls Help - ClassNotFoundException error - custom activity space and control

    I am encoutnering the following error when I deploy and run my custom
    Login Activity Space and Control to the Java 5.0.2 Portal. I have created a custom Java project and built successfully(I think) using Ant and have modified the customactivityspaces.xml file appropriately. I have checked that the custom jar file is in the portal.war and PORTAL_HOME\lib\java\ folder. Any help with this would be extremely appreciated.
    Please let me know if I can provide more info.
    Thanks.
    46323     07-20     14:16:24     Fatal     UI Infrastructure     6000     5880 (main)     com.plumtree.uiinfrastructure.activityspace.ASManager.InternalLoadClasses(ASManager.java:497)     Fatal Exception loading lib file: stapleskiosklogin_java.lang.ClassNotFoundException: com.my.kiosk.login.KioskLoginControl_     at java.net.URLClassLoader.findClass(URLClassLoader.java:241)_     at java.lang.ClassLoader.loadClass(ClassLoader.java:516)_     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:460)_     at java.lang.ClassLoader.loadClass(ClassLoader.java:448)_     at java.lang.Class.forName1(Native Method)_     at java.lang.Class.forName(Class.java:142)_     at com.plumtree.openfoundation.util.XPDynamicDiscovery.GetClass(XPDynamicDiscovery.java:344)_     at com.plumtree.openfoundation.util.XPDynamicDiscovery.GetClassesForWar(XPDynamicDiscovery.java:266)_     at com.plumtree.openfoundation.util.XPDynamicDiscovery.GetInstancesFromLib(XPDynamicDiscovery.java:121)_     at com.plumtree.uiinfrastructure.activityspace.ASManager.InternalLoadClasses(ASManager.java:490)_     at com.plumtree.uiinfrastructure.activityspace.ASManager.LoadCustomClasses(ASManager.java:437)_     at com.plumtree.uiinfrastructure.application.AppWarmUp.Init(AppWarmUp.java:442)_     at com.plumtree.portal50.application.AppWarmUpServlet.init(AppWarmUpServlet.java:109)_     at javax.servlet.GenericServlet.init(GenericServlet.java:256)_     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)_     at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)_     at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)_     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)_     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)_     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)_     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)_     at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)_     at java.lang.reflect.Method.invoke(Native Method)_     at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)_     at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)_     at org.apache.commons.digester.Rule.end(Rule.java:276)_     at org.apache.commons.digester.Digester.endElement(Digester.java:1058)_     at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)_     at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)_     at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809)_     at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:949)_     at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)_     at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)_     at org.apache.commons.digester.Digester.parse(Digester.java:1567)_     at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:385)_     at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)_     at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:442)_     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:399)_     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)_     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)_     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)_     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)_     at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)_     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)_     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)_     at org.apache.catalina.core.StandardService.start(StandardService.java:497)_     at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)_     at org.apache.catalina.startup.Catalina.start(Catalina.java:512)_     at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)_     at org.apache.catalina.startup.Catalina.process(Catalina.java:180)_     at java.lang.reflect.Method.invoke(Native Method)_     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

    Thanks a lot for your help Julie! That worked.
    I have a followup question. Now, I get the Login view even though I didn't include a login view in my custom activity space.
    I am trying to develop the custom login activity space and don't want to display the default loginview and want to auto login. So I have created a custom activity space and a custom control. I am not sure if I have everything coded correctly yet. How do I make sure I don't display the login view if I go to my custom space directly?
    What's the best way to do this? I am still trying to go through the PT code and understand it. Any pointers would be very helpful.
    Additionally, for the custom activity space: do I need to extend PlumtreeAS or AActivitySpace ?
    I have my code listed below:
    package com.my.kiosk.login;
    import com.plumtree.portalpages.common.uiparts.*;
    import com.plumtree.uiinfrastructure.activityspace.*;
    import com.plumtree.xpshared.htmlelements.*;
    * Activity Space for Kiosk login.
    public class KioskLoginSpace extends AActivitySpace // AActivitySpace or PlumtreeAS ??
         public static final String STR_MVC_CLASS_NAME = "KioskLogin";
         * @see com.plumtree.uiinfrastructure.activityspace.IManagedObject#Create()
         public Object Create()
              return new KioskLoginSpace();
         * @return
         public String GetName()
              return STR_MVC_CLASS_NAME;
         * @see com.plumtree.xpshared.activityspace.AActivitySpace#Init()
         public void Init()
              super.Init();
              //RegisterPage(new LoginDP());
              //RegisterModel(LoginModel.STR_MVC_CLASS_NAME);
              //IModel myModel = GetModel(LoginModel.STR_MVC_CLASS_NAME);
              //RegisterView(LoginView.STR_MVC_CLASS_NAME, myModel);
              // Register the control in this space
              RegisterControl(KioskLoginControl.STR_MVC_CLASS_NAME, null);
         * Determine whether or not the current user has the security
         * privileges necessary to view the requested page.
         * @see com.plumtree.uiinfrastructure.activityspace.AActivitySpace#CheckBasicAccess(String, String, boolean)
         public boolean CheckBasicAccess(String strPage, String strControl,
                                                 boolean _bSameSpace)
              // All users are allowed to access this space
              return true;
         /* (non-Javadoc)
         * @see com.plumtree.uiinfrastructure.activityspace.AActivitySpace#GetStyleSheetLinks()
         public HTMLElementCollection GetStyleSheetLinks() {
              // TODO Auto-generated method stub
              return null;
    package com.my.kiosk.login;
    import com.plumtree.debug.*;
    import com.plumtree.openfoundation.util.*;
    import com.plumtree.openfoundation.web.*;
    import com.plumtree.portalpages.browsing.myportal.*;
    import com.plumtree.portalpages.browsing.myportal.mypages.*;
    import com.plumtree.portalpages.common.login.*;
    import com.plumtree.portaluiinfrastructure.login.*;
    import com.plumtree.server.*;
    import com.plumtree.uiinfrastructure.activityspace.*;
    import com.plumtree.uiinfrastructure.application.varpacks.*;
    import com.plumtree.uiinfrastructure.login.*;
    //import com.plumtree.portalpages.browsing.login.*;
    * This class handles the control logic for Store Kiosk login.
    public class KioskLoginControl implements ILoginControl, IHTTPControl
         /** object name */
         public static final String STR_MVC_CLASS_NAME = "KioskLogin";
         /** Query String parameters */
    //     public static final String PARAM_CREATE_ACCT = "createacct";
         /** MVC Objects */
         private AActivitySpace m_asOwner;
    //     private LoginModel m_asModel;
         /** these need to be nulled out after execution. */
         private IWebData m_WebData = null;
         private IXPRequest m_xpRequest = null;
         private IPTSession m_userSession = null;
         * @see IHTTPControl
         * @param r
         * @param pageData
         public void SetHTTPItems(IXPRequest r, IWebData pageData)
    //          In a given request, this method is called first.
              m_xpRequest = r;
              m_WebData = pageData;
         * @see com.plumtree.xpshared.activityspace.ILoginControl#SetRedirectForUseAfterLogin(Redirect)
         public void SetRedirectForUseAfterLogin(Redirect r)
              // In a given request, this method is called second.
              return;
         * @see com.plumtree.xpshared.activityspace.IControl#execute()
         public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
              // In a given request, this method is called third.
              if (PTDebug.IsDebugTracingEnabled(Component.Portal_Browsing))
                   PTDebug.Trace(Component.Portal_Browsing, TraceType.Error,
                        "KioskLoginControl CheckActionSecurityAndExecute() creating redirect to the Kiosk subportal");
              // In a given request, this method is called third.
              if (PTDebug.IsInfoTracingEnabled(Component.Portal_UI_Infrastructure))
                   PTDebug.Trace(Component.Portal_UI_Infrastructure, TraceType.Error,
                                  "GuestSubportalLoginControl Execute() creating redirect to MarkAsGuestControl.");
              // Redirect to the MarkAsGuestControl to mark this session as a guest user.
              // redirect to myPage
              Redirect myRedirect = new Redirect();
              myRedirect.SetLinkCreateNewSpace(MyPageAS.STR_MVC_CLASS_NAME,
                   m_asOwner);
              myRedirect.SetControl(SetPageControl.STR_MVC_CLASS_NAME);
              //int iId = mySession.GetSessionInfo().GetCurrentUserID();
              IPTSession mySession = (IPTSession)(m_asOwner.GetUserSession());
              int iId = mySession.GetSessionInfo().GetCurrentUserID();
              iId = -1 * iId;
              String sId = XPConvert.ToString(iId);
              myRedirect.AddControlArgument(SetPageControl.STR_PAGE_ID, sId);
              // Make this use a true 302 redirect
              myRedirect.SetIsHTTPRedirect(true);
              return myRedirect;
              //return null;
         * This method is used to determine if the guest user should
         * be redirected to their default page or to the login page
         * if a space is not specified.
         * @param RequestData
         * @return boolean true implies the guest should redirect to
         * login if no space is specified. Login is default.
    /*     private boolean IsRedirectOnLogoutEnabled()
              ConfigVarPack vpConfig = (ConfigVarPack) m_asOwner.GetApplication().GetVarPackManager().GetVariablePackage
                   (ConfigVarPack.VARPACK_ID);
              String strGuestRedirect = vpConfig.GetConfigValueAsString(
                   ConfigConstants.AUTHENTICATION_SECTION, "RedirectOnLogout",
                   ConfigConstants.VALUE_ATTRIBUTE);
              // default value
              boolean bResult = true;
              if ((strGuestRedirect != null) && (!"".equals(strGuestRedirect)))
                   if (XPConvert.ToInteger(strGuestRedirect) == 0)
                        bResult = false;
              return bResult;
         // IMVCObject
         * @see com.plumtree.uiinfrastructure.activityspace.IManagedObject#Create()
         public Object Create()
              return new KioskLoginControl();
         // Methods from ILoginControl
         * @see com.plumtree.xpshared.activityspace.ILoginControl#DoGetSession()
         public boolean DoGetSession()
              // The interpreter should ask us for the session.
              // In a given request, this method is called fourth.
              // Attempt to login as the custom guest user here, rather than in GetSession()
              // so that if we are unable to connect, we can abort the login attempt.
              // Otherwise, we have no way of knowing in the PEI whether or not login
              // has previously failed, and we can get in an infinite loop.
              try
                   //Add code to derive Kisok user name after Store lookup
                   String strKioskUserName = "kiosk0000";
                   String strKioskUserPassword = "";
                   // Look at the request URL to determine what URL this user
                   // is trying to access.
                   // Switch strCustomGuestName to your first custom guest here
    /*               if (XPStringUtility.IndexOf(m_asOwner.GetCurrentRequestURL(),
                                                           "firstsubportal") != -1)
                   // Switch strCustomGuestName to your second custom guest here
                   else if (XPStringUtility.IndexOf(m_asOwner.GetCurrentRequestURL(),
                                                                "secondsubportal") != -1)
                   // Connect as the custom guest user
                   m_userSession = PortalObjectsFactory.CreateSession();
                   m_userSession.Connect(strKioskUserName, strKioskUserPassword,
                                            null);
              catch (Exception e)
                   if (PTDebug.IsErrorTracingEnabled(Component.Portal_UI_Infrastructure))
                        PTDebug.Trace(Component.Portal_UI_Infrastructure,
                                       TraceType.Error,
                                       "Unable to connect to Kiosk user.", e);
                   m_userSession = null;
                   // Since we are unable to connect to our custom guest user, we do not
                   // want to login right now.
                   return false;
              return true;
         * @see com.plumtree.xpshared.activityspace.IControl#GetName()
         public String GetName()
              return STR_MVC_CLASS_NAME;
         * @see com.plumtree.xpshared.activityspace.ILoginControl#GetSession()
         public Object GetSession()
              // In a given request, this method is called fifth.
              if (null != m_userSession)
                   LoginResult rReturn = null;
                   try
                        // Login the custom guest user. This calls the login PEIs.
                        rReturn = LoginHelper.INSTANCE.AttemptLogin(m_userSession,
                                                                               m_asOwner,
                                                                               m_xpRequest,
                                                                               m_WebData);
                   catch (Exception e)
                        if (PTDebug.IsErrorTracingEnabled(Component.Portal_UI_Infrastructure))
                             PTDebug.Trace(Component.Portal_UI_Infrastructure,
                                            TraceType.Error, "AttemptLogin() failed.", e);
                   if (!rReturn.m_bSuccess)
                        if (PTDebug.IsErrorTracingEnabled(Component.Portal_UI_Infrastructure))
                             PTDebug.Trace(Component.Portal_UI_Infrastructure,
                                            TraceType.Error,
                                            "KioskLoginControl AttemptLogin() failed: " +
                                            rReturn.m_strError);
                   if (null != rReturn.m_Redirect)
                        if (PTDebug.IsErrorTracingEnabled(Component.Portal_UI_Infrastructure))
                             PTDebug.Trace(Component.Portal_UI_Infrastructure,
                                            TraceType.Error,
                                            "KioskLoginControl AttemptLogin() return redirect ignored.");
              IPTSession userSession = m_userSession;
              // Null out the IHTTPControl data so we don't retain the memory after the
              // request is done (i.e. leak the memory)
              m_xpRequest = null;
              m_WebData = null;
              m_userSession = null;
              return userSession;
         * @see com.plumtree.xpshared.activityspace.IControl#Init(IModelRW)
         public void Init(IModel model, AActivitySpace space)
    //          m_asModel = (LoginModel) model;
              m_asOwner = space;

  • HTMLTextarea in a custom activity space - _htFormData problem

    I can create a form in a custom activity space and read the HTMLInput form types after the form post in the XPHashtable available in both the Model's SavePage() method and the RepostControl's PerformAction() method - they're all in the htFormData hashtable just fine.  But when I try to use an HTMLTextarea - the textarea never shows up.  I know other input types require a certain naming convention to be followed or they blow up the form post (e.g. textbox names must start w/ 'intx_' and buttons must be 'in_bu_'). I looked at code the in the plumtree_ui_source portalpages project and found a textarea there called 'in_ta_yadayada' - so I named mine 'in_ta_yadayada' - but that didn't fix it.
    Any ideas?

    Greetings,
    When I use an IControl and post form data to it that includes an HTMLTextArea, I am able to grab the textarea's entered value from CheckActionSecurityAndExecute's arguments. The name of my HTMLTextArea is "in_tx_test":
    public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
    String[] sValues = (String[]) arguments.GetElement("in_tx_test");
    sValues[0] will then contain whatever was entered into the textarea. Could you perhaps try implementing your solution this way?
    Regards,
    Andrew Bays | bdg | [email protected] | http://www.thebdgway.com

  • Using JSF in custom activity spaces

    Has anyone tried using JSF to build a custom activity space?

    Hi Badri,
    Please refer : 7.12.4 How to Generate a Task Display Form in http://download-west.oracle.com/docs/cd/B31017_01/core.1013/b28764/bpel012.htm
    Hope that answers your question!
    Cheers
    Anirudh Pucha

  • Activity space to change portal language

    Hello,
    I am trying to build an activity space that works as follows:
    In the page header I want to have a link that points to my custom activity space and that when clicked, will alternate the portal's locale between French and English and keep the user on his current page.
    This activity space will need to work for both guest users and logged in users.
    I have seen on previous posts that people have done this before but not enough details are ever provided to be able to figure out how to do it properly.
    Essentially I need an activity space without a view or display since the user is not taken to any page when they click on the link. It simply refreshes the page in the new language.
    Could someone provide me some guidance as to which Activity Space , Control and Model class I should be extending to be able to code this functionality since there are so many classes available and examples with most of them implementing a View class that I can't figure out what I need and how to setup the proper execution flow.
    No details are too much.
    Thank you from this confused newbie

    Hello DJ,
    When you get time would you mind provide short description (ideas) how to do this? I mean that may be useful for others if they need to do this in future.
    In aqualogic the same things can be done by different ways sometimes and you may have the best solution.
    Thank you.
    Dmitry

  • How to export & import customer table space from non-unicode to unicode sys

    hello all,
    I have performed a migration of Single code to Unicode system. -
    (ECC 6.0 SR2)
    After completion of export & import i have noticed  there is one customer table space which is missing.
    eg - PSAPABCD
    I have checked in source system & noticed that Table space is created by customer & not maintained properly as required,
    therefore it is not either exported or imported.
    Please advice me how should i manage to export tablespace from Non - unicode system & import in Unicode.
    Is there any work out.
    Thanks & rgds,
    -rahul

    Hi Rahul,
    please have a look at
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0f9f37c-be11-2a10-3baf-d5d7de5fb78d
    point 3) f. and g.
    However in order to keep consistency I would highly recommend to export and import all tables at the same time.
    Best regards,
    Nils Buerckel
    SAP AG

  • Secure Zone Customer Activity Tracking

    I'm new to Business Catalyst, so this may be obvious to some of you, but I have a question about tracking customer activity on my Business Catalyst site. I can track logins into Secure Zones, but only whether/not the customer has logged into the site.
    What I'd really like to do is track a customer's usage of the site - in other words, I'd like to see what a customer's activity looks like on the site. So if a customer goes from Home (secure zone login), to About, to whatever other page. I suppose how much time they spend is too granular, but if I could figure out how to track their site usage, it'd really help me with a client. The only way I can see how to do it on my own is to require users to log in to every single page, which compromises far too much usability.
    So, how about it? Is there anyone that can provide a suggestion, either using the BC interface, or using some other type of tracking mechanism?

    BC can't do that out of the box. You may want to use Google Analytics for that.
    Cheers,
    -m

  • Blank Activity Space

    Is there a way to inherit an AS class that does not include navgation or UI elements like PlumtreeAS and EditorAS do? Ive attempted to inherit from AActivitySpace and AFormAS. If I use either of those the portal will not start dying with a fatal error on load.
    If I use PlumtreeAS or EditorAS and just not run base.Init() at the beginning of my Init function then I can get the portal to load but when attempting to activity space the portal will get an error when attempting to register any model, view or control using the methods in AActivitySpace.
    What I am working on is a TOS Agreement page which will track mulplite TOS Agreements and which ones a user has agreed too. If the latest agreement has yet to be accepted the (LoginPEI) will redirect to a TOS agreement page and force the user to accept the agreement or cancel which will cause a logout and a return to the login page.
    I need an activity space seprate from PlumtreeAS and EditorAS as both of these provide UI elements that I do not need and I cant seem to force either to display nothing at all except my View in entiriety. I could modify PlumtreeAS but I would rather not.
    Are there any examples of blank activity spaces like I describe? What class/interface do I need to inherit to do this properly. Are there other interfaces I must use for my Model, Views and Controllers when doing this?
    Thanks in advance.

    Is there a way to inherit an AS class that does not include navgation or UI elements like PlumtreeAS and EditorAS do? Ive attempted to inherit from AActivitySpace and AFormAS. If I use either of those the portal will not start dying with a fatal error on load.
    If I use PlumtreeAS or EditorAS and just not run base.Init() at the beginning of my Init function then I can get the portal to load but when attempting to activity space the portal will get an error when attempting to register any model, view or control using the methods in AActivitySpace.
    What I am working on is a TOS Agreement page which will track mulplite TOS Agreements and which ones a user has agreed too. If the latest agreement has yet to be accepted the (LoginPEI) will redirect to a TOS agreement page and force the user to accept the agreement or cancel which will cause a logout and a return to the login page.
    I need an activity space seprate from PlumtreeAS and EditorAS as both of these provide UI elements that I do not need and I cant seem to force either to display nothing at all except my View in entiriety. I could modify PlumtreeAS but I would rather not.
    Are there any examples of blank activity spaces like I describe? What class/interface do I need to inherit to do this properly. Are there other interfaces I must use for my Model, Views and Controllers when doing this?
    Thanks in advance.

  • Cannot deploy a shared library from jdeveloper to oracle webcenter spaces

    Hi guys,
    i used oracle jdeveloper 11.1.1.6  with extendwebcenterspaces workspace. I use WebcenterSpacesSharedLibExtension project.
    I have deployed with jdeveloper directly to webcenter by using a connection and deployed as shared library.
    Afther that i used DesignWebcenterSpaces and deployed with ant scripts: clean stage  and deploy as shared lib
    I get an error on deployment:
    Redeploying application webcenter ...
         [exec] <Sep 25, 2013 1:07:10 PM CEST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, webcenter#11.1.1.4.0 [archive: null], to WC_Spaces .>
         [exec] ..Failed to redeploy the application with status failed
         [exec] Current Status of your Deployment:
         [exec] Deployment command type: redeploy
         [exec] Deployment State       : failed
         [exec] Deployment Message     : weblogic.application.ModuleException: Failed to load webapp: '/wcsdocs'
         [exec] No stack trace available.
         [exec] None
         [exec] #########################################################
         [exec] #####     ReDeploy Spaces Failed #########
         [exec] #####     Contact support with Exception Stack #########
         [exec] #########################################################
         [exec]
    Can someone help with some fix for that error?
    I want to override the login page from webcenter spaces using CustomLandingPage project
    Also, i have tried the deployment by using SampleWebcenterSpacesExtensions workspace with WebcenterSpacesSharedLibExtension project and deployed with ant scripts: clean stage  and deploy as shared lib.
    Afther that i used DesignWebcenterSpaces and deployed with ant scripts: clean stage  and deploy as shared lib
    There the deployment succeed but i get an error on browser
    The error is:
    OracleJSP error: oracle.jsp.parse.JavaCodeException: Line # 13, oracle.jsp.parse.JspParseTagScriptlet@1dbc116
    Error: Java code in jsp source files is not allowed in ojsp.next mode.
    Thank you very much for help.

    ####<Sep 27, 2013 9:44:07 AM CEST> <Error> <Deployer> <webcenter-vm> <WC_Spaces> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <11d1def534ea1be0:-3d303652:141559d6da7:-8000-000000000000112a> <1380267847678> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1380267843425' for task '20'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: '/wcsdocs''
    weblogic.application.ModuleException: Failed to load webapp: '/wcsdocs'
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:395)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
        at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
        at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
        at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
        at weblogic.deploy.internal.targetserver.operations.RedeployOperation.createAndPrepareContainer(RedeployOperation.java:104)
        at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:128)
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
        at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
        at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@21596057[app:webcenter module:/wcsdocs path:/wcsdocs spec-version:2.5 version:11.1.1.4.0]", defined in weblogic.xml [Extension-Name: custom.webcenter.spaces, exact-match: false]
        at weblogic.servlet.internal.WebAppServletContext.processWebAppLibraries(WebAppServletContext.java:2750)
        at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:416)
        at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:494)
        at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418)
        at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:384)
        at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
        at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
        at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
        at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
        at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
        at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
        at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
        at weblogic.deploy.internal.targetserver.operations.RedeployOperation.createAndPrepareContainer(RedeployOperation.java:104)
        at weblogic.deploy.internal.targetserver.operations.RedeployOperation.doPrepare(RedeployOperation.java:128)
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
        at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
        at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
        at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >

  • Pt: opener tag with activity spaces

    Hi,
    Does anyone know a way of using a pt tag to render a link straight to the changePassword activity space?
    I have it hard coded at the moment, but obviously I want to use a tag to make it work between environments etc.
    the link I want to render looks like this
    http://myportal/portal/server.pt?space=ChangePassword&&control=EditorStart&editorType=10
    Thanks :-)

    First off, these are all excellent questions. It would be great if the community could come up with solid answers that we all could implement. I'm going to take a stab but someone wiser than myself is really needed to answer the questions.
    1) Is there a reason why you wouldn't want users to see the login page? I mean they can login right? Is it just that you want them to login from the page header instead of the login space? You could override the login space to get it to display whatever you want. I believe in the latest version of the portal the login space is even adaptive layout'd so it may be really easy to change.
    2) Great question / find. I don't think its really a security threat because security is still being obeyed...they only see folders that they have read access to. Again, you may be able to "turn off" this activity space (subspace?) on certain servers by diving into the ui source code.
    3) What would you expect to happen when the users changes the page id? Not trying to be snarky..but what would be better behavior. We have this issue all the time, but its caused by people linking to pages that have been deleted. I suppose you could use a PEI to redirect to a page that does exist...but it seems liek a lot of overhead and work.

  • Custom activity rights creation methodology....

    The Activity Manager allow creating custom activity rights that can be used in customs portlets for specific activity related to the purpose of the portlet:
    We plan to develop a lot of portlets using specific custom activity rights (for example Edit_Events, Edit_No_Conformity etc...). The challenge is to build a good set of customs activity rights.
    Example: The manager group can edit the Events form but cannot edit the Non-conformity form witch are part of a custom portlet functionnalities.... The Everybody group can create Events but cannot create Non-conformity elements etc...
    Does anybody have a methodology or experience or best practices concerning the creation (and use) of custom activity rights in portlets ???
    Thanks
    Georges SzczypiorskiQIT Fer et TitaneA business unit of the Rio Tinto group

    We are currently going down this road right now.  From what I have learned an Activity Right (AR) can only be added on the group level but is available through the EDK on portlets residing in either the MY PAGE or COMMUNITY level.  However, there is no grouping available for AR's (at least not in PT5) therefor all AR's should be named uniquely.  You do not, based on my experiences, need to name your URI's with the URI-type notation.  Just keep them unique to the portlet that will consume it.  'Edit_Event' is a little too generic.  We use something like 'Widget_Edit_Event'.
    Consider using the Community Access Levels.  They will not be available through the EDK for portlets existing on MY PAGE's but can be associated on the user level as well as the group level (I think).  I am still investigating this solution but the out-of-the-box access levels may be what you are looking for.
    vr, Rich

  • TS3367 I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling m

    I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling mine.

    Each device needs a separate address. Use an email address (gmail.com) on the iPad.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
     Cheers, Tom

  • How can i use my custom login page in a custom partner application ?

    Dear All,
    I'm trying to customize a login page displayed other than the default sso login page
    by submiting my form to the regular pl/sql procedure : "PORTAL.wwptl_login.login_url"
    but i tried to type the requested partner application url in the browser i got the sso
    login page other than my custom login page. So, How can i use my custom login page in a custom partner application ?
    Regards,
    Mohammed Amin
    [email protected]

    I cannot begin to express my level of frustration. I have been trying to use the composition widget light box display for some time now. I drag the widget to my document. The default widget has three small trigger boxes and a large area made up of a forward and backward button, a background, a text box and a frame for your image.
    My steps have been …
    I click on the little trigger box.
    I click on the frame that holds the main image.
    I go to the fill menu and browse my computer for my image and then click OK.
    IT shows up on my screen. Yay
    I attempt to continue using the next two trigger boxes provided in the widget.
    After that, I add more by clicking on the little plus sign.
    This is where all heck breaks loose.
    Every single time I attempt to add thumbnails, something messes up. When I go to preview, either not all of my main images show up, or it starts with the wrong one, or some are missing. I have looked and looked for help on this and the only thing I can find is how easy it is to create a great portfolio lightbox display.  But as we know, that only works when your thumbnails are the same image as the images in your lightbox. If you want something different, you have to use the composition wizard. I am finding it extremely difficult and confusing to customize.
    Is there an exact sequence you need to use to add images to the slideshow? I am my wits end.

  • Problem refering to a custom activity in a SharePoint 2013 workflow

    I have created a few custom activities to handle common tasks in a workflow. The activities are deployed in a separate sandbox solution from the workflows referencing them.
    This has been working fine for a couple of months now, but suddenly I get an error when trying to activate the feature that provisions the workflow that refers to the custom activity (WriteMessage). The error is:
    Error 1
    Error occurred in deployment step 'Activate Features': Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors:
    Cannot create unknown type '{wf://workflow.windows.net/default/f0b36ec0-d40f-4df8-a99b-39f6dc4854a8/09e1bc2d-1cc8-4cff-ae22-32a52f54b685/$Activities}WriteMessage'. HTTP headers received from the server - ActivityId: ac291077-6536-4c63-b7b0-7701b6d29268. NodeId:
    DKRDSSP15DEV03. Scope: /SharePoint/default/f0b36ec0-d40f-4df8-a99b-39f6dc4854a8/09e1bc2d-1cc8-4cff-ae22-32a52f54b685. Client ActivityId : e9d2bfd0-bb0e-4c28-bf55-8748368feb5b. ---> System.Net.WebException: The remote server returned an error: (400) Bad
    Request.
       at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
       at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
       --- End of inner exception stack trace ---
       at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
       at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
       at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)
       at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, ActivityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)
       at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementClient client, ActivityDescription activityDefinition, String serviceGroupName)
       at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4()
       at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)
       at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workflowDefinition)
       at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties properties)
    0 0
    Vestas.SP.CMS.AlarmReports
    I have tried creating a simple workflow using the custom activity, by referencing the sandbox solution. This works fine, if I create the simple workflow in a new project and deploys it and activate the workflow feature. However, if I create a similar simple
    workflow in the original solution and omit the original workflows. Then I still get the above error when deploying / activating the workflow feature. 
    How do I clean up my original project so it does not give me this error when deploying and activating the workflow feature?
    best regards
    Lars Kohsel
    Best regards Lars Kohsel

    Hi,
    As the error still occur when you create a simple workflow in the original project, maybe some configurations have been changed in the project.
    You can check with the new created project whether there are some difference configurations in the project.
    There is a similar article for your reference.
    http://blogs.msdn.com/b/cliffgreen/archive/2013/03/11/sharepoint-2013-workflow-deployment-errors.aspx
    What’s more, you can also copy your original project code to the new project, then check whether it works.
    If it works, the we can use the new project instead of the original project.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How to restrict transaction type in customized activity pop-up

    We have created a custom workcenter link for search enhancement of activities. We copied the work center link and are calling the same component as in std search but a different customized configuration with added and deleted fields in search criteria. This works fine. Now the requirement is to restrict the 'transaction types' available when we click on the 'new' button in the new custom activity search page. As this pop-up emanates from the std component, it can not be functionally configured (because that would restrict the 'transaction types' while creating new activity in std componnet) but should be technically handled. Please advise.

    Hi Amar,
    Solution here is to let the framework know who is caller ?
    That is, when pop up is opening, you have to put a code in this pop up view to understand who is invoking this pop up , Is it the search page of std. component configuration or is it the custom search page configuration ?
    So have a static attribute in some Z class, you can use your IMPL class also for that matter, Now whenever you know that its custom config i.e. in DO_CONFIG_DETERMINATION, read the role key( i assumed that you have a role key for your custom config)
    and if its custom role key, then set this static parameter say ZCUST_CONFIG = abap_true else abap_false (this is must to reset it using else as this is static attribute )
    Now, in your pop_up view, read this static attribute as XXXX_IMPL=>zcust_config , and if true, then you know that the pop up is invoking from custom config, so do the coding to remove the unwanted transaction types.
    and you are done !!
    Hope it helps you.
    Thanks & Regards,
    SUCHITA

Maybe you are looking for

  • Problem with opacity on my Mac

    Hi there, I have some trouble with the opacity with my Mac. Since i bought it (january 2013), when I watch a video in full screen, in Quicktime or VLC, I saw in transparency the windows that I have in background (Safari, Mail or anything it's opened)

  • How do I add a Mac to a Windows Server 2003 or 2008 domain?

    I recently started working for a public school district that runs Windows Server 2003 and Windows Server 2008 R2. There are several faculty members, myself included, that would like to get their Macs onto the domain and capable of file sharing, print

  • "iTunes has stopped working..." error when I sample songs on iTunes

    Whenever I try to sample a song on iTunes, I get the an error that says "iTunes has stopped working. Windows is trying to find a resolution to this problem." After windows is done searching for a solution I am only given the option to "Close Program"

  • Extended network often goes to zero

    Hi. Surprisingly my extended network often goes to zero. I've a traditional wep encripted extended network using two airport extreme. When the network goes to zero I see the indicator on the upper right corner disappear anche the green light of the a

  • ORA-302000 Error On client_text_io.fopen()

    i am using a webutil library - client_text_io.fopen() on the form that was compiled on 10.1.2.3 version and this webutil_file.file_selection_dialog() built-in package. the webutil_file.file_selection_dialog() works but not the client_text_io.fopen().