Portal Server 7.2 and Portlet

Hi ,
I have a serious problem with Portlet and Sun Portal 7.2
I don't understand how I can retrive user information (like username,password, email..) from a portlet.
I read about
Map userInfoMap = (Map) request.getAttribute(PortletRequest.USER_INFO);but is always null.
is a portlet.xml problem ?!?!
thanks in advance.
Alessandro
Edited by: Peritus on Aug 6, 2008 2:08 AM

You'll need something like the following in portlet.xml (the attribute names are from the spec):
<user-attribute>
    <description>Given name of user.</description>
    <name>user.name.given</name>
</user-attribute>
<user-attribute>
    <description>Family name of user.</description>
    <name>user.name.family</name>
</user-attribute>And something like the following in a users.properties file which is referenced when you deploy the portlet in Portal Server 7.2:
givenName=user.name.given
sn=user.name.familyWhat happens is the portal server manages the LDAP attribute to portal attribute mapping (eg, user.givenName in LDAP maps to user.name.given in portal) and the portlet container maps the attribute into the read-only USER_INFO map. I'm sure someone will correct my terminology, but it's something like that anyway. Check it out with an LDAP browser if you need to figure what's available in the Directory Server. The result is being able to call something like:
Map userInfoMap = (Map) request.getAttribute(PortletRequest.USER_INFO);
String firstName = (String) userInfoMap.get("user.name.given");
String lastName = (String) userInfoMap.get("user.name.family");Also, roles are handled in a similar way, defining them in portlet.xml, web.xml, and finally mapping in roles.properties at deploy time.
web.xml:
<web-app ... >
     <security-role>
          <description>Sample role.</description>
          <role-name>Sample</role-name>
     </security-role>
</web-app>portlet.xml:
<portlet-app ... >
     <portlet>
          <security-role-ref>
               <role-name>Sample</role-name>
               <role-link>Sample</role-link>
          <security-role-ref/>
     </portlet>
</portlet-app>roles.properties:
cn\=Sample,o\=Sandbox,dc\=example,dc\=com=SampleSo after all that you can do:
if (request.isUserInRole("Sample")) {
    // do stuff...
}HTH,
Rich
Edited by: RichardBarrington on Nov 2, 2008 4:48 PM
description element must be ahead of name element.
Edited by: RichardBarrington on Nov 2, 2008 4:50 PM
Added more complete role example.

Similar Messages

  • PORTAL SERVER 6.0 and Directory Server 5.1 existing

    I have one istance on sunone directory server 5.1 . I want install secure portal server 6.0 and i want use this directory server? . In the installation manual there are't this procedure.
    When I install the portal I select the installation with existing ldap and the portal server is installed . When I started the portal server this don't work.
    Thank's

    Go to Identity Server v5.1 documentation. It's well documented there. In two words, after you installed it this way, you have to apply 'existing.ldif' file to create ACIs and roles, then to create all services.
    Please check existing.ldif before you will apply it. Depending on your DIT, it may be quite broken. Don't forget to change ums.xml to match your schema.

  • Portal Server (JES1 version)  and Trusted Solaris

    Federal Sales Opportunites are demanding more and more that Sun move to "Trusted Solaris" Does anyone know if the Portal Server that ships with JES would actually work on Trustes Solaris 8
    Any guidance would be greatly appreciated.
    Thanks
    Adam

    hi sushmac,
    I could start the portal server. basically it was a CACAO problem. I first checked whether my cacao was up or not. Actually the cacao was not up as I didn't had any JDMK home in my system . So, in the next step I downloaded SUNJDMK and then setted the jdmk home parameter for cacao as well as the Javahome parameter.. After this I rebuild the dependencies
    by ./cacaoadm rebuild-dependencies
    and started the cacaodm. using ./cacaoadm start
    after that I could easily run the configuration examples.
    thanks for ur help
    I want some more details on cacao... from where can I get them..
    thanks
    dhawanmayur

  • Sun ONE Portal Server 6.0 and struts.

    Hi all,
    Has anyone tried using struts with Portal Server?
    Can we use/migrate struts application to Portal Server 6.0?
    As far as I know both uses one gateway servlet.
    Pelase reply.
    Thanks.

    Hi,
    The problem with integration of struts based
    applications is usually the project funding :-)
    There is no generic struts provider, only some
    custom build pieces...
    I guess that is the reason, why "zero effort" proxy
    of a struts application via IFrame channel is the
    most implemented integration.
    Cheers,
    Alex :-)

  • Creator2 portlet on JBoss Portal Server 2.2

    Has anyone managed to get a JSF Portlet created with Creator2 to run on JBoss Portal server 2.2? I've found documents on getting Creator2 to work with JBoss AS, but not JBoss Portal.
    JBoss Portal Server uses MyFaces and I would like to keep for example the JBoss CMS portlet and add custom portlets created by Creator2 (so some portlets would use MyFaces and some would use RI).
    Thanks for any pointers,
    Lloyd

    Apparently JBoss is using MyFaces for some of their portlets. From what I can tell, I could replace the MyFaces jars with RI jars, which might work, but would cause all the JBoss portlets that are distributed (or at least the admin) portlet to not work.
    In short, you can use RI with JBoss portal, but then some/all of the JBoss portlets may not work.
    Lloyd

  • Proxy/Provider Portlets on same/multiple Portal Server instances

    Hello All,
    I would like to the Pros and Cons for the following architectural scenarios:
    Proxy Portlets and Provider Portlets on the same Portal Server Instance
    Vs
    Proxy Portlets and Provider Portlets on different Portal Server Instances
    Can some one explain me the same?
    Thanks a ton!
    Ananth

    Hi
    This seems like an architecture question. The best place to post this is @ http://swforum.sun.com/jive/forum.jspa?forumID=80
    Thanks
    Srini

  • Proxy/Provider Portlets on multiple Portal Server Instances

    Hello All,
    I would like to the Pros and Cons for the following architectural scenarios:
    Proxy Portlets and Provider Portlets on the same Portal Server Instance
    Vs
    Proxy Portlets and Provider Portlets on different Portal Server Instances
    Can some one explain me the same?
    Thanks a ton!
    Ananth

    Hi
    This seems like an architecture question. The best place to post this is @ http://swforum.sun.com/jive/forum.jspa?forumID=80
    Thanks
    Srini

  • Portal Server 7.2 corruption?

    We are running a number of Solaris zones with Portal Server 7.2, and experience that something has caused every one of them to become corrupted. The logs show the following when trying to deploy or undeploy portlets:
    admin log message that seems to indicate some attribute has disappeared from database or config:
    [#|2008-08-04T12:09:22.840+0200|SEVERE|SJS Portal Server|debug.com.sun.portal.portlet.admin.mbeans|ThreadID=61;
    ClassName=com.sun.portal.portlet.admin.mbeans.PortletAdmin;
    MethodName=logPortletDeployerException; |PSPL_CSPPAM0004 : PortletDeployerException: <global>,
    com.sun.portal.portlet.admin.mbeans.tasks.PortletDeployerException: errorRetrieveDP
    Caused by: com.sun.portal.desktop.context.ContextError: DSAMEConnection.getGlobalAttributes(): SunPortalportal1DesktopServiceadmin desktop log says the following which seems to indicate a classpath problem:
    [#|2008-08-04T12:09:22.911+0200|SEVERE|SJS Portal Server|debug.com.sun.portal.admin.console|ThreadID=59;
    ClassName=com.sun.portal.admin.console.common.PSBaseBean; MethodName=log; |Exception in DeployPortletBean.doUndeploy()
    java.io.IOException: java.lang.ClassNotFoundException: com.sun.portal.desktop.context.ContextErrorThe only thing I remember we did different just before it stopped working was that I set -Dfile.encoding=iso8859-1 on only one of the zones to try to work around a problem with using Norwegian characters in Wicket-portlet HTML pages.
    Any ideas?

    Has anyone found the root cause of this problem? I am facing the same problem it seems like if solaris is not shutdown properly u get this problem, but I dont know how to resolve it any help would be greatly apprecialted.
    I get the following error on my browser:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: DSAMEConnection.getGlobalAttributes(): SunPortalportal1DesktopService
    root cause
    com.sun.portal.desktop.context.ContextError: DSAMEConnection.getGlobalAttributes(): SunPortalportal1DesktopService
    root cause
    java.lang.NullPointerException

  • New To WL Portal Server - Please Help!!

    Hi-
    I practially started reading about WL Portal server this morning and I
    do not even have an installation accesssible to me. But, I need to
    figure out a quick thing and I am pretty sure that it is staraight
    forward, but due to my ignorance with WL Portal server & portlets, I
    am posting for some getting help and direction..
    I have 2 portlets (PortletA and PortletB) on a page. Portlet A has
    links (news.html, aboutus.html etc). Once the user clicks on one of
    the links on PortletA, the contents of the links should be displayed
    in PortletB. (Similar to frames)...
    Can some one please point me in the right direction, how to do it? I
    will keep looking.
    Thanks for your time and help!
    Prasad

    Your problem lies with the code. You have tried to use the System.setSecurityManager in the applet. Applet unlike standalone application run inside an environment such as a browser, therefore it does not allow to create the security manager. If u do not use System.setSecurityManager(new RMISecurityManager()) u will get the RMI classloader disabled error at the client side. So the solution to this is add the setSecurityManager to the server program

  • Display a Calendar View in the Portale Server

    Hi, we use portal server 6.2 and we want to display a view of the calendar inside a channel of the portal.
    We know that portal have a calendar provider but we really didn't understand how can we use this provider to call a custom view of the calendar.
    Is it possible to display a custom view of the calendar inside a page of the portal ?
    Thanx

    Probably better to be posting this in the Calendar forum.

  • Sun Java System Portal Server 6.0 FAQs

    Sun Java System Portal Server 6.0 FAQs.
    Author: Sanjeev Agarwal
    Q. How to connect to external URLs from Sun ONE Portal Server? I want to use URL Scrapper for some of external sites/URLs.
    Ans:
    You can connect to external URLs if you have a Proxy Server running.
    If you are using Web Server addition of Sun ONE the Portal Server then
    go to /opt/SUNWam/servers/https-hostname.domainname/config/ dir
    In the jvm12.conf file, enter the followings:
    http.proxyHost=proxyservername.domainname
    http.proxyPort=80 (or the appropriate proxy server port number)
    https.proxyHost=proxyservername.domainname
    https.proxyPort=80 (or the appropriate proxy server port number)
    If you are using Sun ONE AppServer addition of Sun ONE Portal Server then
    go to /var/opt/SUNWappserver/domains/domain1/<server-instance>/config dir
    In the server.xml file, enter the followings:
    <jvm-options>-Dhttp.proxyHost=proxyservername.domainname </jvm-options>
    <jvm-options>-Dhttp.proxyPort=80 (or the appropriate proxy server port number) </jvm-options>
    <jvm-options>-Dhttps.proxyHost=proxyservername.domainname </jvm-options>
    <jvm-options>-Dhttps.proxyPort=80 (or the appropriate proxy server port number) </jvm-options>
    After this modification restart the server.
    Q. Explain all the processes (solaris 8 and S1 Portal Server 6.0) which runs when I start the Sun ONE Portal Server.
    Ans.
    These are the processes that a running Portal Server installation (Sun ONE WebServer addition, without SRAP) generally has by default.
    1. Directory server processes:
    - ns-slapd (LDAP server instance)
    - uxwdog (admin server process) (parent process)
    --- ns-httpd
    ----- ns-httpd
    2. Auth Helper processes:
    - doUnix
    3. Web-Server/Identity-Server/Portal-Server processes:
    As the Portal Server and Identity Server runs as web application on the Web Server, so they share the same JVM and processes.
    - uxwdog (web server admin server process) (parent process)
    --- ns-httpd
    ----- ns-httpd
    (for each web server instance)
    - uxwdog (parent process)
    - ns-httpd
    - ns-httpd
    or (in case of MaxProc=n )
    - uxwdog (parent process)
    --- ns-httpd
    ----- ns-httpd
    ----- ns-httpd
    ----- n
    Q. I have created a custom Provider but getting this error when I access the desktop, what do I do?
    > error in the desktop.debug file:
    > ERROR: DesktopServlet.handleException()
    > java.util.MissingResourceException: Can't find bundle for base name CustomTabContainerProvider,
    Ans:
    It needs a resource bundle for the custom provider. You need to create a file CustomTabContainerProvider.properties (as mentioned in the error message) and put it into the /etc/opt/desktop/classes directory. If you are not using any properties defined in this resource file then it can be a empty file. Have a look on the properties files that bundled containerProviders uses in dir <portal-install-dir>/SUNWps/web-apps/https-<host.domain>/portal/WEB-INF/classes.
    As you are extending JSPTabContainerProvider class, you can just copy the file JSPTabContainerProvider.properties from the above directory after renaming it to the <defined-provider-name>.properties (in your case CustomTabContainerProvider.properties) and move it into /etc/opt/desktop/classes directory.
    Q. what is actually multiple instances of Portal Server means?
    Ans:
    Multiple instance of Portal Server means, you will have more http listeners for the same desktop contents and the same identity profiles stored in a single Directory Server which all the instances share.
    In simple words you can have your Portal Server listening on different http ports, but uses same configuration, desktop and identities.
    It can help you to share the load for Portal Server http requests. The alternate methods are to create more web server virtual server processes (maxProc=n, but in this case the listening port will be 1 only) or use some hardware load balancer.
    You can achieve more from multiple instances if you have a multi level organization, you can change the look and feel of all the instances, images, services, components and can assign each instance to different organization or sub-organization.
    Q. How do I check the availability of the Sun ONE Portal Server/Identity Server services.
    Ans:
    You can check the availability of Sun ONE Identity Server services from following urls.
    http://<host.domainname>:<port>/amserver/sessionservice
    http://<host.domainname>:<port>/amserver/loggingservice
    To know the availability of components of Sun ONE Portal Server like Desktop/providers/Rewriter/Netmail you have to login into desktop. These are not services, but just the programming identities which will work if your Web Server and Identity Server is running.
    Just go to URL http://<server>:<port>/portal/dt , if it shows up that means your portal server is fine, and these entities will work for sure.
    Q. I am able to add the yahoo channels to existing users. But I am getting the weather for London not for local New Jersey. My language pref is to en|en_US and also the server is the default U.S server and not europe. How do I add the cities I want to see on weather channel?
    Ans:
    A Portal user himself (after login) can select what cities he want to see in weather channel.
    Steps:
    - click the edit button of weather channel
    - click on the area you belong to from Available Sections
    - select the cities from Available Cities select box and add them to Your Choices.
    - click finished from select city page and then again click finished from select area page.
    It will come back to the Portal Desktop and you will see all the cities you have selected in the weather channel.
    Q. How to use getContent() method to use in custom jsp providers (developed by ourselves) so that it can be used to retrieve a jsp page. I have already placed the JSP file in the directory structure /etc/opt/SUNWps/desktop/default/channel_dir. But still the jsp is not being displayed.
    Ans:
    You don't have to do anything in the custom JSPProvider's getContent method except the call { return super.getContent(request,response); } . If all you want is just to show your jsp, then create a channel from the default JSPProvider, and edit the property contentPage of that channel from samplecontent.jsp to your jsp name, save the changes and login again. You should see your JSP.
    Q. I want to remove all the buttons (help/edit etc.) from all the channels/one particular channel in my desktop?
    Ans:
    You can hide any buttons you want from any channel.
    These steps show how to hide all the buttons.
    1. Create a channel say "myNetlet" from netlet provider.
    2. Set the channel title to "myNetlet"
    3. Go to the dir /etc/opt/SUNWps/desktop/default/JSPTableContainerProvider and edit the file providerCommands.jsp, and modify the last line :
    from :
    <%=minMaximizeCommand%><%=helpCommand%><%=editCommand%><%=detachAtachCommand%><%=removeCommand%>
    to:
    <% if ( !(title.equals("myNetlet"))){ %><%=minMaximizeCommand%><%=helpCommand%><%=editCommand%><%=detachAtachCommand%><%=removeCommand%><% } %>
    4. Clean the dir mentioned below which contains compiled JSPs. /var/opt/SUNWps/https-<host>.<domain>/portal/tmp/_jsps/_etc/_opt/_SUNWps/_desktop/_default_en/_JSPTableContainerProvider/_html and reload the page.
    Relogin, and you would not see any buttons on "myNetlet" channel. You can customize this logic as per your needs.
    Q. How to change the title of SampleJSP Channel. I tried to change the channel properties title value via iplanet directory Server Access Management GUI. But it is not getting reflected.
    Ans:
    Through Admin console you can change the channel property "title", and as soon as you refresh the page (Shift reload) of relogin in the portal it get's reflected.
    The reason to this problem may be due to the channel property "title" is having "propagate" value as false and you are setting the channel title in the org level display profile not in the user level display profile.
    So better you change the channel name in user's display profile also.
    For this login into admin console and go to :
    - View: "User Management" -> click on organization -> Show: Users
    - click on the blue arrow of that user
    - click on Edit in section Desktop (this will open a window)
    - then change the channel properties same way you do for Organization display profile.
    Q. Login Problem with SunOne Portal 6.0.
    I was able to download and install sun one portal 6 on Solaris 8. The sample portal page came up after installation. However whenever I try to login to the Login channel with "amadmin" and the passphrase I used during installation, it takes me to another page - iPlanet/LDAP authentication page. Here I tried using the same login, but fails every time (the same login page appears). The url that shows is "http://<hostname>/amserver/login?module=dproadmin&goto=/amconsole/base/AMAdminFrame"
    I tried registering myself as a new user as well. This too fails.
    Ans:
    Make sure you are giving fully qualifying the hostname in the url which invoked the desktop. This in fact is documented in the administration documentation. If the hostname is not fully-qualified, the login page goes into an endless mode. Again, the correct url is "http://<fully-qualified-hostname>/portal". Once you get to the desktop, the login and the new user registration works.
    Q. How to send variables/parameters from 1 app to another app deployed on Sun ONE Portal Server? It may be the apps or different JSPs of JSP provider channel.
    How to achieve inter channel communication in Sun ONE Portal Server?
    Ans:
    You can use servlet context object or session, or may be the request object itself to store the information from one channel and use that in another channel. The use of either of these 3 approaches may depend on your requirements. Using session, the information will be available to that user's channels only, using request, the information will be available for that user and that request only and by using ServletContext you can share the information across users and sessions. You can obtain DesktopServlet's ServletContext object inside JSP/JSPProvider.
    Q. I am trying to modify the default desktop JSPs in TableContainerProvider and TabCotntainerProvider dirs, but it is not picking my modified JSPs ? what do I do?
    Ans:
    One easiest way to 100% ensure that it updates all your new jsp pages is to remove all the compiled jsps so that with next request the Sun ONE Portal Server compiles all the jsps and will make sure that your modification will be taken care of in next request.
    Go to /var/opt/SUNWps/https-<instance_name>/portal/tmp/_jsp/_etc/_opt/_SUNWps/_desktop/_default_<locale>/ and remove everything. and access the Portal server, it will be little slow as it has to compile all the JSPs again. Here you will find directories in the name of Containers and Channels, so if you are modifying any particular Container/Channel you can just delete that only. This approach can help a lot during development time.
    Q. What is the location of compiled JSPs in Sun ONE portal Server and what servlet spec does it supports?
    Ans: The Portal server 6.0 runs on Sun ONE Web Server 6.0 sp2, which supports only jdk 1.3 and servlet spec 2.2 only. The Sun ONE Portal Server keeps the compiled jsps of desktop and channels in : /var/opt/SUNWps/https-<instance_name>/portal/tmp/_jsp/_etc/_opt/_SUNWps/_desktop/_default_<locale>/ dir as per the channels/container names.
    Servlet 2.3 is supported if you run the Portal Server edition that runs on Sun ONE Application Server 7.0.
    Q. How do I change jdk for Sun ONE Portal Server to another jdk? I want to change the JDK of only one of my Portal Server instances, is it possible? how?
    Ans:
    Yes you can achieve both.
    A. To change the JDK for all the server instances:
    Open <portal-install-dir>/SUNWam/servers/https-admserv/start-jvm file and modify the first line
    NSES_JDK=/usr/java_1.3.1_04; export NSES_JDK
    to
    NSES_JDK=<your-jdk-location> ; export NSES_JDK
    then open <portal-install-dir>/SUNWam/servers/https-<instance-name>/config/jvm12.conf file of all the server instances and add a line
    jvm.option=-server after the first line
    B. To change the JDK for a particular server instances:
    Make a another copy of the start-jvm file rename it and modify the jdk location in it as mentioned above.
    Open the start script from <portal-install-dir>/SUNWam/servers/https-<instance-name> dir and modify these lines :
    if test -r {SERVER_ROOT}/https-admserv/start-*
    then
    for STARTSCRIPT in {SERVER_ROOT}/https-admserv/start-*
    modify this to
    if test -r {SERVER_ROOT}/https-admserv/<changed_name_of_start-jvm-file>
    then
    for STARTSCRIPT in {SERVER_ROOT}/https-admserv/<changed_name_of_start-jvm-file>
    Note: As Portal Server 6.0 uses Web server 6.0 sp2, jdk 1.4 is not supported.
    Q. How do I create a custom login page or a link, which will just log me into the portal server.
    Ans:
    You can create a custom page in your jsp page, just add this portion of html into your web page :
    <FORM action="http://<server>:<port>/amserver/login?module=<login-module>&page=1" method=post name=login_form2 target=_top>
    Login page using <login-module><br>
    <P>Enter UserId<BR><INPUT name=TOKEN0 size=22></P>
    <P>Enter Password<BR><INPUT name=TOKEN1 size=22 type=password></P>
    <P><INPUT name=Submit type=submit value=Submit> </P>
    </FORM>
    The <login-module> can be LDAP or Unix or Membership which ever you have enabled. Or instead of this you can create a link. For example for LDAP auth module :
    "<a href="http://<server>:<port>/amserver/login?module=LDAP&page=1&TOKEN0=user&TOKEN1=password" target=_top> Login into Portal </a>"
    where user and password are the user credential for the portal server.
    Q. Can I install a portal server pointing to another Identity server? I want to install few postal servers (on different machines) pointing to same identity server, is it possible?
    Ans:
    No, right now the Sun ONE Portal Server is tightly integrated with Sun ONE Identity Server so you can't just install only Sun ONE Portal Server and point it to another Sun ONE Identity Server. You can have a common Directory server if you want.
    Q. I have an application which takes input in from anonymous user and then to complete the request the user than has to login. I am having problem in passing the taken input from anonymous page to logged in user. all the request parameters are lost when I log in. How do i get the request parameters after I log in
    Ans:
    You can create a custom login page and submit the form to "/amserver/login" with a hidden parameter "goto" through which you basically specify which url to go after you log in. So you can use this mechanism to create a query string with all your request parameters you want to pass after login. For example:
    You can create a jsp which take few inputs from user and to complete the request you have to login so it posts the input form to a login jsp and stores the parameters taken from user in a hidden field (goto) :
    <FORM action="/amserver/login?module=LDAP&page=1" method=post name=login_form2 target=_top>
    Login page using LDAP<br>
    <P>Enter UserId<BR><INPUT name=TOKEN0 size=22></P>
    <P>Enter Password<BR><INPUT name=TOKEN1 size=22 type=password></P>
    <INPUT TYPE=HIDDEN NAME="goto" VALUE="/portal/dt?param1=<%=request.getParameter("param1")%>&param2=<%=request.getParameter("param2")%>">
    <P><INPUT name=Submit type=submit value=Submit> </P>
    </FORM>
    After you login through this page both the param1 and param 2 will be available in the request object after you login and you can retrieve them in your application or jsp.
    Q. I have few System.out.println in my jsp which i am using in my JSP provider channel, but when I look at the portal server's /var/opt/SUNWam/debug/desktop.debug file, none are there. I looked at the web server's access and error logs too, but it is not there also. Can somebody tell me how do it get those ? Do we have any other mechanism to put debug logs ?
    Ans
    By default the binary which web server runs is uxwdog which eats up System.out.println output. If you want to see the System.out.println then you need to change the product binary from the start script of the portal server instance.
    - Go to <portal-install-dir>/SUNWam/servers/https-<instance-name> and open the start script
    - Change the PRODUCT_BIN=uxwdog to PRODUCT_BIN=ns-httpd , save the file
    - Run the script ./start to start the portal server
    Note : with ns-httpd ON the server will not leave that shell, and in the same window/shell you will be able to see all your System.out.println statements. To close the server you have to kill the server process with "kill -9 pids" command
    Alternate way is to use api inside your application or jsp:
    <%@page import="com.sun.portal.providers.jsp.JSPProvider, com.sun.portal.providers.*, com.sun.portal.providers.containers.*, com.sun.portal.providers.context.*" %>
    <% JSPProvider p=(JSPProvider)pageContext.getAttribute("JSPProvider");
    ProviderContext pc = p.getProviderContext(); %>
    <%-- after that you can use these lines any where in your jsp --%>
    <%
    pc.debugError("your error msg");
    pc.debugMessage("your msg");
    pc.debugWarning("your warning msg");
    %>
    The particular mgs will be shwon in /var/opt/SUNWam/debug/desktop.debug file as per your "debugLevel" parameter setting in /etc/opt/SUNWps/desktop/desktopconfig.properties file. By default the debugLevel is set to error so only pc.debugError("error msg") will be shown.
    Q. Multipart form (file upload) processing in providers? Is it supported
    Ans:
    The Sun ONE Portal Server's DesktopServlet does not have the ability to process a request with the content encoding type of multipart/form-data. DesktopServlet does not pass the input stream for the request on to the Provider.
    To accomplish handling of multipart/form-data type requests, it is necessary to create a companion servlet or JSP that process the multipart/form-data. This servlet can then pass control back to the Portal channel. The data from the file can be shared between the servlet and the provider by using static Java members or by storing the data in a back-end database and then passing a reference to the data over to the provider.
    Q. After installing the Portal Server I am trying to login as admin, but it is failing and coming back to login page every time. How do I login?
    Ans:
    The Default Admin user is 'amadmin' and the password is the PASSPHRASE you give during Portal Server installation. Try login using these credentials.
    Also in the browser give the complete URL for the Portal Server like : Http://<myhost>.<mydomain>:<port>/amserver/login or Http://<myhost>.<mydomain>:<port>/amconsole. You can't login into portal server's IDSAME console by giving IP Address or just the hostname, also your machine should be listed in the DNS server so that it can resolve the name.
    Q. I installed Sun ONE Portal Server 6.0 some time back, and now I want to know all the installation parameters and user/passwords for whole portal installation. How do I do that?
    Ans:
    The Default Admin user is 'amadmin' and the password is the PASSPHRASE you give during Portal Server installation. Also in the browser give the complete URL for the Portal Server like : Http://<myhost>.<mydomain>:<port>/amserver/login or Http://<myhost>.<mydomain>:<port>/amconsole. You can't login into portal server's IDSAME console by giving IP Address or just the hostname, also your machine should be listed in the DNS server so that it can resolve the name.
    In case you have forgotten the port numbers and PASSPHRASE that you give during installation, you still can see all the information for each component of your Portal Server Installation. The Portal server and it's components like Directory Server, Web Server and IDSAME are installed as Solaris package so the system has all the information for these packages.
    Portal Server : See file /var/sadm/pkg/SUNWps/pkginfo
    Directory Server : See files /var/sadm/pkg/SUNWamds/pkginfo and /var/sadm/pkg/SUNWamdsc/pkginfo
    Web Server : See file /var/sadm/pkg/SUNWamws/pkginfo
    Identity Server : See file /var/sadm/pkg/SUNWamsam/pkginfo
    Note: In any case you should never edit/modify these files.
    Q. Controlling the display of the help (?) button.
    Where are the links/image elements defined for the help/edit/minimize buttons? the leafWrapper.jsp pulls the hashtable out of the HttpRequest, and that hashtable is being used by providerCommands.jsp:
    Hashtable commands = (Hashtable)request.getAttribute("provider_cmds");
    Any idea where this is being set?
    Ans:
    - You can remove the help/edit button of any channel by adding the line into the Channel's properties by editing the Xml of display profile in the admin console.
    <String name="helpURL" value="" advanced="false" merge="replace" lock="false" propagate="true"/>
    <Boolean name="isEditable" value="false" advanced="false" merge="replace" lock="false" propagate="true"/>
    The Attribute 'provider_cmds' is set into /etc/opt/SUNWps/desktop/default/JSPTableContainerProvider/tablecolumn.jsp :
    <dttable:getProviderCommand id="provider_cmds" scope="request" />, and after that only the leafwrapper.jsp is included, but the Hashtable is generated by a class com.sun.portal.providers.util.ProviderCommands.java and made available through taglib classes. So you can't change the generated contents/string in the Hashtable.
    But you can change the default 'alt' text displayed and the images linked to the help/edit icons. As this modification is at Provider level, it will change the icons for all the channels in the desktop.
    Please see the file:
    /opt/SUNWps/web-apps/https-<host>.<domain>/portal/WEB-INF/classes/JSPTABLEContainerProvider.properties.
    Here you will find the mapping. The image location are given from the context root of portal server which is by default : /opt/SUNWps/web-apps/https-<host>.<domain>/portal.
    Q. I have a number of web applications needed to integrate to portal server. Any pointers or tips of what my option is?
    Ans:
    You can very well integrate all your web application with Portal server. Portal Server 6.0 has web container same as Sun ONE web server 6.0 Sp2, which runs on Jdk-1.3.
    If your web applications are just Servlets/Jsps then you can very well port them on Portal server's webserver which supports war module deployment. (infect for Web server the Portal server and Identity server is like a war module.)
    There can be two possibilities in this case, either you put the whole of your application on portal server and make the link available into the desktop via 'Application Provider Channels' or you can create a client to your web application into portal server.
    If your web application is on Sun ONE Application server 7.0 and needs authentication, you can also have SSO. If you just want to show the link of your web application into desktop then you can either use URL Scrapper to show the first page of your web application or use Bookmark channel to provide just the url.
    The easiest way to make a client of your web application is to use JSP Channel using JSPProvider and put your logic into the samplecontents.jsp file or you can create your own custom Provider extending JSPProvider. There can be a lot of different configurations, depending on the web application you want to integrate and your needs
    Q. I removed few channels from the org level display profile but still they are coming to the desktop of users, I had accessed the desktop before. why?
    Ans:
    If you still see any channel after you remove it from the display profile at organization lever, that means you have to edit the user's display profile. So go to admin console and select User from Show: menu and click on the blue arrow near the user. In the right frame under the 'Desktop' category click on the Edit link (right side). This will open user's display profile in a window. Now edit it as per your requirements.

    Unfortunately Web Server 6.0SP2 is no longer available for download.
    If you must use Web Server 6.0, you should use the most current Service Pack. It is backward compatible and contains many performance and security fixes.

  • How to set common profile in portal server 6.2

    Hi,
    I have two servers installed with portal server 6.2 and Directory server 5.2 in both.
    I hav to configure common ldap authentication for server1 and server2 i.e..primary LDAP is server1 and secondary ldap is server2 for both the servers,
    when i try to login to server2, the password is authenticated from server1 successfully, but the profile is taking from local server i.e..server2 profile.
    Please give some tips to configure external LDAP server for authentication as well as profile.
    thanks & regards,
    iqbal.

    do you have a load balancer in front ?
    then it would make sence to load balance both portal instance, use both DS in MMR mode.
    /u

  • Installing Portal Server 7.1 on Windows XP

    I installed Portal Server 7.1 for Windows, via the Sun Java Application Platform Suite Installer. The installer was super clean and very easy--practically idiot-proof. It is substantially easier to install than the SPARC version.
    However, during installation and configuration--done via the GUI--the Portal Server configuration failed. After performing all the necessary post-intallation tasks, I discovered that CACAO will not start. When I attempt to start CACAO, I get the following:
    "Cannot start an unconfigured instance. "
    --(This is a doc defect. The doc should tell me to configure before starting)
    After attempting to configure, by following the instructions, I get the following error:
    "Error handling error: 1722, LookupAccountName at <cacao-base>\cacao_2\\configure.pl line 120."
    Is this a bug or is this yet another documentation defect? Anyone experience this during a Windows installation?

    Hi,
    I'm also trying to install Portal Server 7.1 and configure the same , getting the same error
    ---------------- "Cannot start an unconfigured instance."
    I went to the cacao log location "C:\Program Files\Sun\JavaES5\share\cacao_2\var\cacao\instances\default\logs" to find out the errors but could not find any log files there.
    But when i went to the AM log location "C:\Program Files\Sun\JavaES5\identity\debug" . I found three files namely,
    amEventService
    amSDK
    CCPPClientDetector
    there contents are as follows,
    In amEventService
    03/13/2007 06:07:23:380 PM IST: Thread[EventService,5,main]
    03/13/2007 06:07:23:380 PM IST: Thread[EventService,5,main]
    rminating! Persistent Searches will no longer be operational.
    03/13/2007 06:07:23:380 PM IST: Thread[EventService,5,main]
    ERROR: EventService.run() - Monitor thread is terminating! Persistent Searches will no longer be operational.
    In amSDK
    03/13/2007 06:07:23:365 PM IST: Thread[EventService,5,main]
    ERROR: Connection to LDAP server threw exception:
    netscape.ldap.LDAPException: failed to connect to server ldap://w2gzw3vm01.apac.corp.eds.com:1389 (91); Cannot connect to the LDAP server
    at netscape.ldap.LDAPConnSetupMgr.connectServer(LDAPConnSetupMgr.java:517)
    at netscape.ldap.LDAPConnSetupMgr.openSerial(LDAPConnSetupMgr.java:437)
    at netscape.ldap.LDAPConnSetupMgr.connect(LDAPConnSetupMgr.java:276)
    at netscape.ldap.LDAPConnSetupMgr.openConnection(LDAPConnSetupMgr.java:201)
    at netscape.ldap.LDAPConnThread.connect(LDAPConnThread.java:109)
    at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:1081)
    at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:952)
    at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:903)
    at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:1050)
    at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:1060)
    at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:1005)
    at com.iplanet.services.ldap.DSConfigMgr.getConnection(DSConfigMgr.java:387)
    at com.iplanet.services.ldap.DSConfigMgr.getNewFailoverConnection(DSConfigMgr.java :354)
    at com.iplanet.services.ldap.DSConfigMgr.getNewConnection(DSConfigMgr.java:283)
    at com.iplanet.services.ldap.DSConfigMgr.getNewAdminConnection(DSConfigMgr.java:24 0)
    at com.iplanet.services.ldap.event.EventService.addListener(EventService.java:351)
    at com.iplanet.services.ldap.event.EventService.resetAllSearches(EventService.java :673)
    at com.iplanet.services.ldap.event.EventService.run(EventService.java:515)
    at java.lang.Thread.run(Thread.java:595)
    and In CCPPClientDetector
    03/13/2007 05:48:23:565 PM IST: Thread[main,5,main]
    03/13/2007 05:48:23:565 PM IST: Thread[main,5,main]
    ERROR: Could not get 'fediConfigRoot' from properties file:
    03/13/2007 05:50:04:205 PM IST: Thread[main,5,main]
    03/13/2007 05:50:04:190 PM IST: Thread[main,5,main]
    ERROR: Could not get 'fediConfigRoot' from properties file:
    03/13/2007 05:50:37:643 PM IST: Thread[main,5,main]
    03/13/2007 05:50:37:643 PM IST: Thread[main,5,main]
    ERROR: Could not get 'fediConfigRoot' from properties file:
    03/13/2007 05:51:13:377 PM IST: Thread[main,5,main]
    03/13/2007 05:51:13:377 PM IST: Thread[main,5,main]
    ERROR: Could not get 'fediConfigRoot' from properties file:
    any ideas on what I'm missing ?
    Thanks in Advance,
    Vinayagan

  • Fix:  Portal Server on Linux (Start-up JVM Crash Error!)

    A Long problem with the Sun JVM for Linux is the implementation of the
    Hotspot Server. I just ran into this problem on Service Pack1 of Portal
    Server on Linux and I am sure more will. So I offer this advise.
    On Linux your Sun JVM will crash with the -server option on the Java
    COmmand-line.
    The Best place to remove this is in the set-environment.sh file where
    you have an option to change the Java VM Options. Remove the "-server"
    option from the Linux Case Variable.
    ==================================================================================
    Stack Dump Of JVM Crashing
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002C4
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Server VM (1.3.1_02-b02 mixed mode)
    # An error report file has been saved as hs_err_pid4244.log.
    # Please refer to the file for further information.
    Weblogic Stack Dump
    ==================================================================================
    <Feb 22, 2002 10:43:41 AM EST> <Notice> <Management> <Loading
    configuration file ./config/portalDomain/config.xml ...>
    Unexpected Signal : 11 occurred at PC=0x40359322
    Function
    name=build_loop_late__14PhaseIdealLoopP4NodeR9VectorSetR9Node_ListPC14PhaseIdealLoop
    Library=/usr/local/jdk1.3.1_02/jre/lib/i386/server/libjvm.so
    Current Java thread:
         at weblogic.management.internal.Helper.checkPermission(Helper.java:1510)
         at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:577)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
         at $Proxy10.registerConfigMBean(Unknown Source)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.registerForAdminChanges(ConfigurationMBeanImpl.java:187)
         at
    weblogic.management.internal.ConfigurationMBeanImpl.preRegister(ConfigurationMBeanImpl.java:138)
         at
    com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBeanServerImpl.java:2245)
         at
    com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:864)
         at
    weblogic.management.internal.RemoteMBeanServerImpl.registerMBean(RemoteMBeanServerImpl.java:177)
         at weblogic.management.Admin.start(Admin.java:382)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:372)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
         at weblogic.Server.main(Server.java:35)
    Dynamic libraries:
    08048000-0804c000 r-xp 00000000 03:05 1999297
    /usr/local/jdk1.3.1_02/bin/i386/native_threads/java
    0804c000-0804d000 rw-p 00003000 03:05 1999297
    /usr/local/jdk1.3.1_02/bin/i386/native_threads/java
    40000000-40016000 r-xp 00000000 03:05 278541 /lib/ld-2.2.4.so
    40016000-40017000 rw-p 00015000 03:05 278541 /lib/ld-2.2.4.so
    40018000-40019000 r--p 00000000 03:05 2293840
    /usr/lib/locale/en_US/LC_IDENTIFICATION
    40019000-4001a000 r--p 00000000 03:05 1311271
    /usr/lib/locale/en_US/LC_MEASUREMENT
    4001a000-4001b000 r--p 00000000 03:05 2179084
    /usr/lib/locale/en_US/LC_TELEPHONE
    4001b000-4001c000 r--p 00000000 03:05 2179378
    /usr/lib/locale/en_US/LC_ADDRESS
    4001c000-4001d000 r--p 00000000 03:05 2179377
    /usr/lib/locale/en_US/LC_NAME
    4001d000-4001e000 r--p 00000000 03:05 819215
    /usr/lib/locale/en_US/LC_PAPER
    4001e000-4001f000 r--p 00000000 03:05 2228231
    /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
    4001f000-40020000 r--p 00000000 03:05 1310740
    /usr/lib/locale/en_US/LC_MONETARY
    40020000-40021000 r--p 00000000 03:05 2294287
    /usr/lib/locale/en_US/LC_TIME
    40021000-40022000 r--p 00000000 03:05 2588686
    /usr/lib/locale/en_US/LC_NUMERIC
    40022000-40023000 r-xp 00000000 03:05 377830
    /app/bea/wlserver6.1/lib/linux/i686/libterminalio.so
    40023000-40024000 rw-p 00000000 03:05 377830
    /app/bea/wlserver6.1/lib/linux/i686/libterminalio.so
    40024000-40033000 r-xp 00000000 03:05 278589 /lib/libpthread-0.9.so
    40033000-4003b000 rw-p 0000e000 03:05 278589 /lib/libpthread-0.9.so
    4003b000-40044000 r-xp 00000000 03:05 1458520
    /usr/local/jdk1.3.1_02/jre/lib/i386/native_threads/libhpi.so
    40044000-40045000 rw-p 00008000 03:05 1458520
    /usr/local/jdk1.3.1_02/jre/lib/i386/native_threads/libhpi.so
    40045000-403c4000 r-xp 00000000 03:05 1736988
    /usr/local/jdk1.3.1_02/jre/lib/i386/server/libjvm.so
    403c4000-40518000 rw-p 0037e000 03:05 1736988
    /usr/local/jdk1.3.1_02/jre/lib/i386/server/libjvm.so
    40530000-40533000 r-xp 00000000 03:05 278557 /lib/libdl-2.2.4.so
    40533000-40534000 rw-p 00002000 03:05 278557 /lib/libdl-2.2.4.so
    40534000-40668000 r-xp 00000000 03:05 278553 /lib/libc-2.2.4.so
    40668000-4066e000 rw-p 00133000 03:05 278553 /lib/libc-2.2.4.so
    40673000-40686000 r-xp 00000000 03:05 278562 /lib/libnsl-2.2.4.so
    40686000-40687000 rw-p 00012000 03:05 278562 /lib/libnsl-2.2.4.so
    40689000-406ab000 r-xp 00000000 03:05 278559 /lib/libm-2.2.4.so
    406ab000-406ac000 rw-p 00021000 03:05 278559
    /lib/libm-2.2.4.so406ac000-406e0000 r-xp 00000000 03:05 328177
    /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    406e0000-406ec000 rw-p 00033000 03:05 328177
    /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    406ee000-406ff000 r-xp 00000000 03:05 672226
    /usr/local/jdk1.3.1_02/jre/lib/i386/libverify.so
    406ff000-40701000 rw-p 00010000 03:05 672226
    /usr/local/jdk1.3.1_02/jre/lib/i386/libverify.so
    40701000-40722000 r-xp 00000000 03:05 672227
    /usr/local/jdk1.3.1_02/jre/lib/i386/libjava.so
    40722000-40724000 rw-p 00020000 03:05 672227
    /usr/local/jdk1.3.1_02/jre/lib/i386/libjava.so
    40725000-40739000 r-xp 00000000 03:05 672228
    /usr/local/jdk1.3.1_02/jre/lib/i386/libzip.so
    40739000-4073c000 rw-p 00013000 03:05 672228
    /usr/local/jdk1.3.1_02/jre/lib/i386/libzip.so
    4073c000-4146d000 r--s 00000000 03:05 82306
    /usr/local/jdk1.3.1_02/jre/lib/rt.jar
    4149a000-4173f000 r--s 00000000 03:05 82307
    /usr/local/jdk1.3.1_02/jre/lib/i18n.jar
    4173f000-41755000 r--s 00000000 03:05 82294
    /usr/local/jdk1.3.1_02/jre/lib/sunrsasign.jar
    4f8bf000-4f8ea000 r--p 00000000 03:05 2588691
    /usr/lib/locale/en_US/LC_CTYPE
    4f8ea000-4f8f0000 r--p 00000000 03:05 1015824
    /usr/lib/locale/en_US/LC_COLLATE
    4f8f0000-4f8f9000 r--s 00000000 03:05 378091
    /app/bea/wlportal4.0/lib/campaign_system.jar
    4f8fc000-4f906000 r-xp 00000000 03:05 278578 /lib/libnss_files-2.2.4.so
    4f906000-4f907000 rw-p 00009000 03:05 278578 /lib/libnss_files-2.2.4.so
    4f907000-4f921000 r--s 00000000 03:05 378106
    /app/bea/wlportal4.0/lib/commerce_system.jar
    4f921000-4f933000 r--s 00000000 03:05 378145
    /app/bea/wlportal4.0/lib/patches.jar
    4f933000-4f9a1000 r--s 00000000 03:05 378144
    /app/bea/wlportal4.0/lib/p13n_system.jar
    4f9a1000-4f9d8000 r--s 00000000 03:05 378108
    /app/bea/wlportal4.0/lib/ext/HTTPClient.jar
    4f9d8000-4f9ec000 r--s 00000000 03:05 378110
    /app/bea/wlportal4.0/lib/ext/jdom.jar
    4f9ec000-4fa09000 r--s 00000000 03:05 378113
    /app/bea/wlportal4.0/lib/ext/wlcsparsers.jar
    4fa09000-4fa11000 r--s 00000000 03:05 378161
    /app/bea/wlportal4.0/lib/portal_system.jar
    4fa11000-51210000 r--s 00000000 03:05 377880
    /app/bea/wlserver6.1/lib/weblogic.jar
    5126f000-51346000 r--s 00000000 03:05 377884
    /app/bea/wlserver6.1/lib/xmlx.jar
    51346000-5134f000 r-xp 00000000 03:05 672231
    /usr/local/jdk1.3.1_02/jre/lib/i386/libnet.so
    5134f000-51350000 rw-p 00008000 03:05 672231
    /usr/local/jdk1.3.1_02/jre/lib/i386/libnet.so
    517c5000-519cb000 r--s 00000000 03:05 2048809
    /app/bea/wlserver6.1/samples/eval/cloudscape/lib/cloudscape.jar
    519cb000-51b98000 r--s 00000000 03:05 2048859
    /app/bea/wlserver6.1/samples/eval/cloudscape/lib/tools.jar
    51b98000-51bd8000 r--s 00000000 03:05 2048808
    /app/bea/wlserver6.1/samples/eval/cloudscape/lib/client.jar
    51d00000-5217f000 r--s 00000000 03:05 639310
    /usr/local/jdk1.3.1_02/lib/tools.jar

    Hello Brossier,
                           We can't fix that issue finally we reinstalled portal server.
    Better you raise ticket to SAP may be they ll fix.
    Best Regards,
    Navaneethan

  • Weblogic portal server

    I already have a weblogic server installed in my system, I want to have weblogic portal server. If i download the weblogic portal server from www.oracle.com the available download is around 1Gb of size and it is bundled with a weblogic server. Is it possible to download the portal server part alone and integrate with my existing weblogic server?
    Thanks,
    Mahesh

    Here is the link for latest and greatest WLP 10.3.2 (around 1.0 GB File). This bundle/installer includes Weblogic Server, Portal Framework, Eclipse IDE. During installation, select custom option and make sure to select Samples check box for both Portal and Serve. By default if you select typical, it will NOT install Samples. WLS samples are good. So choose custom and install samples also.
    http://www.oracle.com/technology/software/products/wlp/index.html
    HTH
    Ravi Jegga

Maybe you are looking for

  • Error: unable to copy to output directory, ReqMgmtActionsVO.xml not found

    hi, While running a page using jdeveloper am getting error like Error: unable to copy to output directory, ReqMgmtActionsVO.xml not found. am very thankful to the response Thanks Surya

  • Error message when installing non-factor​y Hard Drive on a (Presario V6700)

    Hi all. I have a Presario V6700. Unit originally began shutting itself down & rebooting to the start up screen & going no further then after a few time of that, ultimately freezing during bootup process. Everthing still running, blue lights still on

  • No Harddrive when booting from OS 9.2.1 CD on G4 MDD 1.25 Dual

    I also have a G4, 1.25 GHz dual processor running OS X 10.2.8 and 9.2.1 updated to 9.2.2, 1 GB RAM. When booting from OS 9.2.1 CD (came with the computer) I do not see any harddrive. Need to reinstall OS 9 for some classic applications. Drivesetup ca

  • WHERE clause doesn't work in certain column

    Hi All, I try to filter mysql database using WHERE clause...everything seem working until i found there are 3 column that i can't use for WHERE clause query. When i use that columns to filter, there's no data appear in the table but the other column

  • Additional fields in Delivery order

    Hi, I have a requirement where I have to enter some additional data while creating Delivery order. Just like Additional data A and B tabs , is there any tabs available in delivery header or item data ? or is there any other solution available ? Pleas