Accessing Portal MBeans?
Hi
I would like to access the Portal 4.0 MBeans via a client app. Here is my sample
program:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://xxxx-1:7501");
env.put(Context.SECURITY_PRINCIPAL, "system");
env.put(Context.SECURITY_CREDENTIALS, "xxxx");
Context ctx = new InitialContext(env);
MBeanHome homeBean = null ;
homeBean = (MBeanHome)ctx.lookup(MBeanHome.JNDI_NAME + ".portalServer");
Set s = null;
Iterator iter = null;
WebLogicMBean wBean = null;
wBean = homeBean.getMBean("entityPropertyCache", com.bea.p13n.mbeans.CacheMBean.class.getName());
if (wBean != null)
System.out.println("It is " + wBean.getName());
When I run this code, I get the following exception:
Exception: javax.management.InstanceNotFoundException: portalDomain:Name=entityPropertyCache,Type=com.bea.p13n.mbeans.CacheMBean
(admin server:true)
Start server side stack trace:
javax.management.InstanceNotFoundException: portalDomain:Name=entityPropertyCache,Type=com.bea.p13n.mbeans.CacheMBean
(admin server:true)
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:120)
at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:245)
at weblogic.management.internal.MBeanHomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
Can the Gurus please tell me what I'm doing wrong? I have tried various routes to
access the MBeans but nothing seems to work. The command-line weblogic.Admin GET
yields no results either.
Thanks,
P Kesh
Use queryNames instead of queryMBeans. queryNames returns a Set of ObjectName rather than a Set of ObjectInstance.
�amonn McManus -- JMX Spec Lead -- http://weblogs.java.net/blog/emcmanus
Similar Messages
-
How to set up reverse proxy to allow user access portal site from internet
Hi all,
I have installed 10g(10.1.2.0.2) AS on same machine(single IP for both mid and infra with different users respectively). there is a DMZ on which windows IIS is working through which we need to redirect the request to application server such that users access portal page from internet (within intranet all URLs are working fine). I have went through technet documentation where i found 3 ways : through this link
http://download.oracle.com/docs/cd/B14099_19/core.1012/b13998/variants.htm
Section 9.2.1.1, "Configuring OracleAS Web Cache as a Reverse Proxy"
Section 9.2.1.2, "Configuring the Oracle HTTP Server as a Reverse Proxy"
Section 9.2.1.3, "Configuring Internet Information Services as a Reverse Proxy"
I am confused to which option to use. Also i went through the metalink document 270160.1
Please help me which option to choose to do this.
Thanks.Hi Hozy,
May be it's too late, I am thinking to go in the same route for our sap portal access to external customers. Please can you share your experience , like what are the challenges have you faced? what is the complexity? what are all the resources we need to configure this?
I appreciate your feedback.
Thanks
Krish -
Error while accessing portal.....
Hi Experts,
We have installed EP 7.0 SP 9. It's working fine, but yesterday we met the problem, we can't able to access portal.
After giving username and password, its opening the portal homepage with the following JavaScript Error on the taskbar.
<b>1. 'disable personalize' is undefined
2. 'EPCM.getSAPTop().gHistoryFrameworkObj' is null or not an object
3. 'ActiveTrackingEntryIndex' is null or not an object</b>
After showing errors above, its showing the portal HomePage. If we click on any roles is loading with busy symbol, we can't able to navigate to any role or any workset after that.
Please tell me some solution for this, it's very urgent.
Points will be awarded.
Regards,
Chinnadurai.R.I also recieved this error. It took me a while to discover the problem. It is caused by the order in which .Net is installed. If when you go to Applicaiton Pools you do NOT see:
- ASP.NET v4.0
- ASP.NET v4.0 Classic
If you only see
- Classic .NET AppPool
- DefaultAppPool
- MBAMSitesAndSvcsAppPool
Then you need to re run the setup of .NET using the commands below:
Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\ and press <kbd>ENTER</kbd>.
Type aspnet_regiis.exe -ir and press <kbd>ENTER</kbd> again. -
Error while accessing portal via internet
Hi all,
I am having problems when accessing portal through internet. I have installed NW04 SR1(WAS, EP & KM). Then I created some iviews and pages.
Now <u>when I open the portal through internet(using its ip address)</u> and try to access PCD, it is showing <b>undefined</b> in place of the loading message and it is not loading anything. Also <b>the detailed navigation is empty</b> in all pages(eg. System Administration, Monitoring, etc.). But <u>when i access it locally(using machine name) everything works fine</u>. Any idea what the problem is?
Another problem is with the KM Navigation IView. I have created a custom layout set for this iview. In the iview I am displaying the documents in a folder along with a link for approval process. But <b>when i click on the link, it shows javascript error "Access is denied"</b>. <u>This happens when I access it through internet. When I access it locally, it works fine and show me the context menu for approval</u>. Any idea?
Please reply fast as it is urgent.
Thanks in advance.
Ranjithhi
just check this out
http://help.sap.com/saphelp_ep60sp2/helpdata/en/37/c1513c388d8f0ce10000000a11405a/content.htm
http://help.sap.com/saphelp_ep60sp2/helpdata/en/e9/83d5f20ea845b587be83de8554191e/plain.htm -
How to access Portal Logged in user in Web Service application
Hi Experts,
I have created one Deployable Proxy and based on that i have created Web Based (WAR) project. to consume the proxy i have created Servlet based java file which invokes Web services. Based on this WAR project i created EAR application which deploys on J2EE server.
I am facing issue while accessing Portal Logged in user in my Servlet Class in WAR project so can you please provide inputs for how we can access Portal Logged in user in our Servlet class? also how we can access LDAP detailes of portal Logged inuser ?
I tried to fetch the Logged in user from servlet request but i can't access it giving me null value. Following is the method details that i am using in my servlet.
protected void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException
IUser user = UMFactory.getAuthenticator().getLoggedInUser();
String strName = user.getFirstName();
If I checked in LDAP values First name for logged in user is present but in my code its giving Null value.
Can you please provide your inputs on above issue.
Regards,
Rahulhave you found a solution this problem yet?
-
Need info on Accessing portal services within a Web Dynpro application
Hi,
I need information on Accessing portal services within a Web Dynpro application.I want to explore this topic.Can anyone give useful links?
Thanks in advance.
Rajani NHi
how to reference a portal service with web dyn pro ?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/how%20to/how%20to%20access%20a%20portal%20service%20within%20a%20web%20dynpro%20java%20application.pdf
http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/portal/WDPortalUtils.html
Best Regards
Jakub Krecicki -
Error while trying to access portal
Hi All,
I have installed NetWeaver CE 7.1 in my system. But when i tried to access portal with the url
http://<server name>: <port number>/irj/portal
im getting the following error
Error component failed , reason : Error while retrieving service: com.sap.portal.runtime.system.authentication.authentication Original Exception : Error while retrieving service: com.sap.portal.runtime.system.authentication.authentication
Can anyone tell me what could be the reason for this error and how to resolve this?
Please guide me........
Regards,
Padmalatha.KHI padmalatha kontham,
If there is no any ignore option in the dilog box, just try to close it and try again. If u get that again, check the portnumber and hostname are correct or not.
there won't be any problem other than that.
example
http://<host>:<port>/irj/portal
Thanks
Suresh -
How to access Portal Database ( ORACLE) through webdynpro java
Hello experts,
I want to <b>access portal database tables</b> ( WCR_USERSTAT,WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON )<b> using</b> <b>webdynpro java</b> application/service . Our portal DB is Oracle , so please tail me some solution for this asap. I had tried using <u>Portal Activity Report</u> iViews but that no fulfill our requirment.
Regads,
Laxmi..Hi,
You can use the following link which will help you to resolve the problem:
/thread/100181 [original link is broken]
thanks & regards,
Manoj -
Hi,
After installation of JSE(Windows Version),
I can access the identity admin console with url
http://host:port/amconsole
But I can't use the url
http://host:port/portal or
http://host:port/portal/dt
to access Portal Server Desktop, the browser
receive an 500 Internal Error Message.
The summary report after installation is
Installation Summary Report
Install Summary
Sun Java System Message Queue 3.0.1 Service Pack 2 : Installed, Configured
Sun Java System Application Server 7 Update 1 : Installed, Configured
Sun Java Studio Enterprise 6 2004Q1 : Installed, Configured
Sun Java System Web Server 6.1 Service Pack 1 : Installed, Configured
Sun Java System Directory Server 5.2 : Installed, Configured
Sun Java System Identity Server 6.1 : Installed, Configured
Sun Java System Portal Server 6.2 : Installed, Configured
PolicyAgent: Installed, Configured
It seems nothing wrong, and how can I solve
this problem?
Many thanks,So, you got Java SE installed. Great. (I've been following your other thread re: installing IS and PS properly).It's not exactly right. I try to use Windows 2000 to install JES and with the same DNS configuration.
It works. But I still can't install IS/PS correctly in the original machine(Win XP).
Check the troubleshooting info in the Java SE Install Guide, I believethis error is covered in there. Be sure you use a new instance of your browser to access the PS desktop. And, be sure to check the supported browser list in the Release Notes.
I go through the overall Install Guide, it's really that I can't find and answer to solve my problem :'(
Regards, -
Access Portal groups in webdynpro ABAP component
Hi Experts,
I have a requirement to access portal group in web dynpro ABAP application and based on whether user is assigned to particular group or not further processing for application will be done.
Are there any UME API or some other API's available to access portal groups in Webdynpro ABAP component?
Thanks in Advance..!!
Regards,
Shruti ShahThis might be a question better suited to the portal forum. The WDA Portal APIs do not have such functionality. You might be able to take the Java Portal APIs and wrap them in a web service so that they are callable from ABAP.
-
How to access portal activity report information in webdynpro
Hi All, I want to display portal activity report table in webdynpro screen, for which I am using following tables
WCR_USERSTAT,WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON,WCR_USERPAGEUSAGE.How to fetch data from these table in webdynpro.?
Is there any alternative for accessing Portal Activity report to webdynpro screen.
Thanks & regards
PoonamHi,
http://help.sap.com/saphelp_nw2004s/helpdata/en/58/728ea01cf64fff996b827f2a06f9b1/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fb/144120ea5b4e9c9385d493a578d6c9/frameset.htm
*******please reward points if the information is helpful to you************* -
Accessing portal roles in webdynpro for java
Hi,
Please let me know how to access portal roles in webdynpro for java.
Rgds,
PatanaHi ,
Please use this API to access the portal roles:
IRoleFactory fact=UMFactory.getRoleFactory();
Also see this code to get more information of role using code:
IRoleFactory rolef=UMFactory.getRoleFactory();
IRoleSearchFilter searchfilterrole= rolef.getRoleSearchFilter();
ISearchResult searchResult = rolef.searchRoles(searchfilterrole);
while(searchResult.hasNext())
String unq=(String) searchResult.next();
IRole role1=rolef.getRole(unq);
String roleName = role1.getDisplayName();
String roleID = role1.getUniqueID();
// Once you get the informationof role you can use it in your application as per your requirement.
Also please note that:
You should add "com.sap.security.api.jar" to your project`s java build path for getting the Portal Security API's.
I hope this solves the problem. Please revert back incase you need any further informationon this.
Thanks and Regards,
Pravesh -
Facing Issues in accessing Portal through IP
Hello Experts,
When i access Portal site through Hostname of the server it works fine,but when through IP ,nothing show up in Content Area and Navigation Panel.also certain other misbehaviour of the application is shown. In SAP documents also wt i hv read is to accessPortal site through Hostname but nowhere read abt accessing it through IP.Can somebody plz clarify can't we access Portal through IP,is it standard recommendation for Portal to access it through Hostname? If we can access then y iam facing all these problems and how to resolve them?Someone plz suggest? My Email Id is [email protected] .
Regards,
SaumyaHi Somya,
you should always request your portal by full qualified domain name (fqdn) which means:
http(s)://<servername>.<domain>(:port)/...
An example:
do not: http://myserver:50000/irj or http://127.0.0.1/irj, etc.
do: http://myserver.mydomain.com:50000/irj or
http://myserver.mydomain.com/irj
If you do not like suggested, you'll get problems:
- top levbel navigation may break after session time out using sso with os
- navigation (javascript issue) may not work properly
- SSO with other application (e.g. using BP's) does not work
Greetings,
Carsten -
Cannot access portal thru IP address
Hi,
I noticed that i cannot access my portal thru its IP.
ie: http://<IP address>:50000/irj does not work
but if i use the hostname to which it is mapped,it works..
what is the reason behind this?
Thanks
rockyHi.
It is true.
A reason is the SSO cookies mechanism, and it cannot work without a hostname.
about this procedure: http://help.sap.com/saphelp_nw2004s/helpdata/en/28/7c383f717b5f03e10000000a114084/frameset.htm
And similar answered questions:
Re: Portal URL: Why cannot access via IP address?
Facing Issues in accessing Portal through IP
Re: After the login, the portal displays again the login page
regards.
Leandro -
Hi All,
I'm hitting the error, "No page has been created for this Content Area (WWS-32141)" while accessing portal help in 3.0.9.8.4.
This error is coming after installing intermedia in my 8.1.7.3 database (not the enable intermedia option in GUI). Is this a known issue?
Thanks in advance.
With best regards,
NevinZdenek,
I had the same thing happen. What I did was abandon the install, uninstall ALL Oracle from my machine (I had Oracle reports, JDeveloper and other stuff installed). This included uninstalling 8.1.7 (Don't know if I needed to go that far but I did). Once my machine was clean I installed 8.1.7, created a minimal database and installed 9iAS. I didn't get that error again, but the Portal install failed miserably and I'm to the point of starting over again.
One problem I'm having is a recurring blue screen of death with NTOSKRNL.EXE having an unhandled exception, never had that till I installed 9iAS so I am thinking that the error is somehow related. Have you seen that?
Maybe you are looking for
-
Creation of new table with attributes of another ??
how can i create a new table which has the same attributes as another ? Please note that the records/tuples in the already existing table shouldn't be copied into the new table. Illustration: Table Employee_Details with attributes/fields Name and IDn
-
I had to delete everything on my computer and install the operating system again , but I had to install Snow Leopard because it was the cd that came with the computer when I bought it. The problem is that I had already paid for the OS Lion and even h
-
Adobe Flash CS3 Vista Crash Help!
I have a Windows vista and have flash cs3 installed. For the first 2 weeks or so, it worked perfectly, then, it started crashing whenever I open the application or a .fla file. The problem information was this: Problem signature: Problem Event Name:
-
Why can't I edit albums in iCloud photos on a PC?
I am using iCloud photos on a PC. Some major issues: I cannot edit or create albums Albums I have created on my iPad do appear on the iCloud Photos, but none of the photos place in the albums appear in the albums (which are thus all empty!) The uplo
-
I create a project w/iMovie and I have two problems: When I try to finalize the project iMovie crashes; when I share to DVD sometimes it crashes also; if I can successfully send it to DVD and then burn a DVD there are wavy lines on the screen. I'm