Access content and metadata stored in VCR using SP1 api in weblogic Portal
Hi
I have configured Virtual Content Repository (VCR), I am able to see all the contents in VCR, that is stored in Oracle UCM. I need to know how I can get the content and metadata of the stored content using SPI api and display the metadata of contents present in a particular folder and display it in weblogic portal.
Please provide any sample code how to acess that also helap me a lot.
Edited by: user10934682 on Apr 19, 2011 1:39 AM
To get started, you might want to look at the CM JSP tag library. With this tag library, it's straight forward to fetch a content Node and display the data. See the following tag lib documentation: http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14256/content/cm/tld-summary.html
The tag doc includes some sample code showing the usage of the tags.
For more advanced, or non-JSP usage, see the javadoc for com.bea.content.federated package. http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/com/bea/content/federated/package-summary.html
Brad
Similar Messages
-
Problem JDBC Connection using OCI Driver on Weblogic Portal on Linux
Hi Team,
I want a JDBC connection using OCI Driver in Weblogic Portal 8.1 sp4 on Linux. When I had tested using JDBC connection using Plain Java Code it is working. Also when I create the OCI Connection Weblogic Connection Pool it is working.
But My Requirement is to create the connection using Java Code in Portal Application
But When I create OCI connection in the code it is throwing NO SUITABLE DRIVER Found.
---------- Code in Plain Java Code ------------ Same code is used in Weblogic Portal Application --------------------------------
public static void main(String[] args) throws Exception{
Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url="jdbc:oracle:oci8:@TESTDB";
Properties props = new Properties();
props.put("user","scott");
props.put("password","tiger");
conn=DriverManager.getConnection(url,props);
When I am using the same code in Weblogic Portal and Deployed on Weblogic Portal Server 8.1 SP4 it is throwing following error.
-------------- Exception on Server Log --------------------
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)Ljava.sql.Connection;(Unknown Source)
at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(Unknown Source)
My Environment is
LINUX
Weblogic 8.1 SP4
Oracle 9i Client on Same Machine
Oracle 10g Server on Different Machine
My Environment Variables on the Linux Server also set properly as following
PATH=/apps/pmaaum/ant/apache-ant-1.6.5/bin:.:/apps/beahomedev/jdk142_05/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/apps/oracle/ora9i/product/9.2.0/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/apps/oracle/ora9i/bin
LD_LIBRARY_PATH=/usr/lib:/apps/oracle/ora9i/product/9.2.0/lib:/apps/oracle/ora9i/product/9.2.0/lib32:/apps/oracle/ora9i/product/9.2.0/rdbms/lib:/usr/openwin/lib:/apps/oracle/ora9i/product/9.2.0/jdbc/lib
JAVA_HOME=/apps/beahomedev/jdk142_05
JDBC_LIB=/apps/oracle/ora9i/product/9.2.0/jdbc/lib
CLASSPATH=:.:/apps/beahomedev/jdk142_05/lib/rt.jar:/apps/oracle/ora9i/product/9.2.0/jdbc/lib/classes12.jar
Please help me, Let me know if you required anything.
Thanks in Advance
Vishnu
Edited by: vishnuk on Oct 23, 2009 4:07 AM
Edited by: vishnuk on Oct 23, 2009 4:10 AMHi Vishnu
Looks like a classloader issue. BEA class loader is very tricky. Any jar added manually in classpath, will end up loading only those classes. Any imports that we have in any of those classes do not get loaded. Anyhow, coming to your point, add classes12.jar inside your portal web project Web-Inf/lib folder and see if that helps. Usually thats where we put all the JARs for 8.1 SPxx applications. If this still breaks, then remove the jar from web-inf/lib folder and add under your portal app App-Inf/lib folder. First try with app-inf/lib folder having this jar. If not then with web-inf/lib. Basically web-inf is specific to that web app only. If you have a different app having this jdbc code, then put under app-inf/lib folder. Make sure that you remove the classes12.jar that you added in classpath either in env variable or in setdomainenv.cmd file.
When weblogic uses native OCI Drivers, it refers to jars at this location: ....\beawlp814\weblogic81\server\ext\jdbc\oracle\10g or 9g. Try using one of these jars and see if that works. Most of the times I used these jars only for oracle specific native drivers.
Word of caution. Try to use Connection Pool and a DataSource created in weblogic console for your jdbc code. This Datasource can still use the Oracle drivers that you want (instead of BEA Weblogic wrapper oci drivers) located in above location. Use JNDI Lookup and get Datasource and then connection. This is more recommended approach with many advantages then using DriverManager approach..
Goud -
How to use Domino LDAP in WebLogic Portal 8.1?
Hi, all
I'm trying to solve the problem of how to use Domino LDAP in WebLogic Portal 8.1. Anybody who have this experience please help me.
Best Regards,
SeanHi,
I just spoke to BEA and domino LDAP not supported although they gave me these
LDAP filters that might help -
http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=wls/S-09460.htm
Sean Lin <[email protected]> wrote:
Hi, all
I'm trying to solve the problem of how to use Domino LDAP in WebLogic
Portal 8.1. Anybody who have this experience please help me.
Best Regards,
Sean -
Hi,
We recently upgraded a site from SP 2010 to SP 2013. For moving to production, I copied over the content database to production and used the following command to to make the content database accessible in production:
Mount-SPContentDatabase -Name 'WSS_Content_SSBC' -WebApplication 'https://biprod.bljc.com'
I then change the host name of the site from staging to production host name using
$site = Get-SPSite https://stagingsite.companyname.com
$site.Rename("https://prodsite.companyname.com")
The site loads and I can see my content. But when I try to use the "Content And structure" link under "Site Settings" --> "Site administration"
I receive the following errror:
Sorry, something went wrong An unexpected error has occurred.
Technical Details
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 3fbfcd9c-7185-10a2-6d19-8570d7f15319
Date and Time: 11/19/2014 3:38:31 PM
IN THE ULS LOG, THIS IS ONE OF THE ERRORS:
Application error when access /_layouts/15/sitemanager.aspx, Error=Object reference not set to an instance of an object.
at Microsoft.SharePoint.Publishing.Internal.WebControls.ObjectSerializer.DeleteAllowed(Boolean checkPermissions)
at Microsoft.SharePoint.Publishing.Internal.WebControls.SmtButtonField.FormatDataValue(Object dataTextValue, Boolean encode)
at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource)
at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at Microsoft.SharePoint.WebControls.SPGridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.GridView.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
BTW, don't know if this applies but production is load balanced and staging is not.
Thansk,
Sherazad
SherazadHi Sherazad,
As the Content and Structure is enabled by the SharePoint Publishing feature, I recommend to deactivate and re-activate the publishing feature with the command below to see if the issue still occurs:
Disable-SPFeature –identity Publishing -URL <sitecollection url>
Enable-SPFeature -Identity Publishing -url <sitecollection url> -Force
Thanks,
Victoria
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]
Victoria Xia
TechNet Community Support -
Unable to access "Content and Structure"
Hi,
When I try to access to the "Content and Structure" Feature (Site Collection Administration), it doesn't work, and give me a correlation ID. In the ULS the CID retrieves me this:
Failed to look up string with key "PDP_LIST_INSTANCE_DISPLAY_NAME", keyfile pws.
Localized resource for token 'PDP_LIST_INSTANCE_DISPLAY_NAME' could not be found for file with path: "(unavailable)".
Application error when access /_layouts/15/sitemanager.aspx, Error=Object reference not set to an instance of an object.
at Microsoft.SharePoint.Publishing.Internal.WebControls.ObjectSerializer.DeleteAllowed(Boolean checkPermissions)
at Microsoft.SharePoint.Publishing.Internal.WebControls.SmtButtonField.FormatDataValue(Object dataTextValue, Boolean encode)
at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource)
at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at Microsoft.SharePoint.WebControls.SPGridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.GridView.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Does anyone can help me?
Thank you very much.Yes, it was a feature.
I contact MS Support and this was the powershell cmdlet that solve the issue:
Disable-SPFeature –identity Publishing -URL <sitecollection url>
Enable-SPFeature -Identity Publishing -url <sitecollection url> -Force
Or using the Feature Id
Enable-SPFeature -Identity "c769801e-2387-47ef-a810-2d292d4cb05d" -Url "<sitecollection url>" - force
The -force parameter was very important for the issue resolution. -
Can I modify the LineStatus and OpenQty fileds in POR1 using DI API?
Hi, guys,
The addon under development will run on SBO 2005B PL35. I tried to use DI API to directly modify the values of LineStatus and Openqty in POR1 throught following codes. No error come up but the values of LineStatus and Openqty in POR1 didnot changed.
Something wrong in the codes? Or such action is not allowed in SBO 2005B?
Thanks for your reply!
TRY
sSQL = "SELECT * FROM POR1 T0 where DocEntry = " & poEntryNo & " and LineNum = " & oPOLine
oDataTable.ExecuteQuery(sSQL)
oDTSize = oDataTable.Rows.Count
Offset = oDataTable.Rows.Offset
If (oDTSize > 1) Then
oLineStatus = oDataTable.GetValue("LineStatus", Offset)
If oLineStatus = "O" Then
oOpenQty = oDataTable.GetValue("OpenQty", Offset) - CInt(omatrix.Columns.Item("col_Qty").Cells.Item(row).Specific.string)
If oOpenQty > 0 Then
oDataTable.SetValue("OpenQty", Offset, oOpenQty)
Else
oDataTable.SetValue("OpenQty", Offset, 0)
oDataTable.SetValue("LineStatus", Offset, "C")
End If
End If
End If
CATCH ex as exception
sbo_application.message(ex.exception)
End TRYhi
In your code, I didn't find a code which update the LineStatus value in the database.
You are just updating the DataTable object. Which will not reflect in the database.
Use the SAPbobsCOM.Documents object if you need to update the LineStatus.
In Documents object there is a Lines subobject available. Update the LineStatus property.
Anoop -
Query- IPC using JSF Portlets in WebLogic Portal
The question is how to pass data when doing InterPortlet Communication using Local JSF portlets in Weblogic Portal.
I will eloborate on the particular scenario we have below.
Two JSF portlets are build (both are not using Java Page Flows). The first porltet has a table of data. When the user clicks on one of the items in the table (which is coded using <h:commandLink/> option), the second portlet should show some details on the item clicked.
For example:
If there is a list of books in first portlet, when clicking on one of the book name, the details of book should come up in the second portlet.
To achieve this, faces event was enabled in first portlet with requestAttrPersistence option set to session.
For example :
<netuix:content>
<netuix:facesContent contentUri="/bookList.faces" requestAttrPersistence="session">
<netuix:facesEvents>
<netuix:facesEvent action="/bookDetails.faces" eventName="bookDetailEvent"/>
</netuix:facesEvents>
</netuix:facesContent>
</netuix:content>
The second portlet was configured to handle faces events, particularly the bookDetailEvent.
Example:
<netuix:handleFacesEvent eventLabel="handleFacesEvent1" eventName="bookDetailEvent" fromSelfInstanceOnly="false" onlyIfDisplayed="true" sourceDefinitionLabels="JSFPortlet_1" sourceDefinitionWildcard="this">
<netuix:invokeFacesAction action="/bookDetails.faces"/>
</netuix:handleFacesEvent>
Going by this method, how can we find the particular book whose detail has to be shown? As in JSF, we dont directly access the request attributes, what is the ideal way to pass data from one page to other?
Please help on this.i am also having the same problem.I tried by passing _nfls=false but it didn't work.Can you suuggest where do i need to set this or any other parametrs such as this programmatically?
-
Federated Portal: accessing content, through Consumer, stored on Producer
Hello Guys,
I am working on a project which has a Federated Portal Network scenario. Details of it are as follows:
Details:
SAP EP 7.0 with SP11. Two portal installations: Consumer and Producer. Both Consumer and Producer are used for logging on by users. Consumer does not have any content. Users logging on to Consumer accesses all the content from Producer rendered through Remote Role Assignment which works fine. Through Consumer, I am able to access in Top Level Navigation, the Role and all assigned worksets, of the Producer. For a particular workset I have a page containing an AppIntegrator iView. AppIntegrator iView is being used as we are catering to more than one language on the portals. This AppIntegrator iView is rendering an HTML page which is stored in a KM repository on Producer (as I mentioned all content is on Producer). The path to the HTML page on KM repository is given in the URL Template property of the AppIntegrator iView created on the Producer.The path for example is something like: <System.protocol>://<System.server>:<System.port>/irj/go/km/docs/myrepository/testPage/<Request.Language>/includes/mypage.html
The links on the HTML page are all relative links. For eg, {a href = "/irj/portal/theQuickLink" target="_top"}. The behaviour I want is to navigate to the workset/page once I click the link on the HTML page while staying in the Consumer portal.
Problem/Question:
On the Consumer I see the HTML page and till this point the navigation is in Consumer portal. But when I click on any of the links on this page the navigation takes me to the Producer URL. I am transferred to the Producer portal and am no longer in the Consumer portal.
Thanks in advance.
KaushikVinoth,
I am aware about the solution provided by you. But my problem here is the Server name + port and not the rest of the URL.
For eg. my consumer portal is http://Aserver:50000
and producer portal is http://Bserver:51000.
While I am able to access the HTML page via consumer and till then the URL has the consumer Server + port details (for eg. http://Aserver:50000), once I click any link on it the URL in the address bar of the browser window changes to that of the producer for eg http://Bserver:51000. All subsequent browsing happens in the producer as I am transferred to the Producer.
Let me know if anybody has more suggestions.
Thanks,
Kaushik -
Business Content and Metadata Repository
Hi
Can any one point me to the right place or if any one know any thing please through some tips on this
What are the benefits of using Business Content?
What is the importance of Metadata repository?
Thanks
FarooqHi Syed Farooq,
Business Content is a pre-configured set of information models based on consistent metadata in the SAP BW.
BI Content makes the supply of information available to those roles in an enterprise that require this information to complete their tasks.
BI Content consists of roles, workbooks, queries, InfoProviders, InfoObjects, InfoSources, transformation rules and extractors for SAP systems and any additional applications that have been selected.
There are lot Adv like BW implemention is accrelarated and so on check the link:
http://help.sap.com/saphelp_nw04/helpdata/en/3d/5fb13cd0500255e10000000a114084/frameset.htm
here are some of the load erros which were already discussed in forums..pls go thru them...
Business Content :
SAP Business Information Warehouse delivers pre-configured objects under the collective term Business Content. These objects speed up the implementation of the SAP Business Information Warehouse because they deliver complete solutions for business information requests.
Business Content includes:
· R/3 extractor programs
· DataSources
· Process chains
· InfoObjects
· InfoSources
· Data targets (InfoCubes and ODS objects)
· Variables
· Data mining models
· Queries
· Workbooks
· Crystal Reports
· Web templates
· Roles
Since Business Content are Predelivered we use them , It can reduce considerable amount of time which will be needed if you going for a generic extarction
Hope it helps.
Dnt 4gt to Assign Points.
Thanks.
Regards,
Jayaprakash.J -
User defined Metadata for XML DB using Java API
I have been looking through and reading the documentation for Oracle XML DB. I am trying to find out if there is a way to create user define metadata using a Java API. when I look in the XML "Java API Reference (Javadoc)" setProperty(java.lang.String name, java.lang.String value, int type) it states: Sets the specified (single-value) property to the specified value. If the property does not yet exist, it is created. I have tried several ways to do this and have not been successful. I have looked for java examples in the XML DB Developer's Guide, XML Developer's Kit Programmer's Guide.
Is there a good example out there as to how to create user-defined metadata that can be populated using the JCR API.
Thanks in advance.We need to create the 2 xml schemas, one for request and the other for response of selected operation in the WSDL.
This we need to do dynamically. There will not be any java classes generated, the xsd files need to be created on the fly.
Please suggest xml schema creation in this sequence. -
Reading and Writing large Excel file using JExcel API
hi,
I am using JExcelAPI for reading and writing excel file. My problem is when I read file with 10000 records and 95 columns (file size about 14MB), I got out of memory error and application is crashed. Can anyone tell me is there any way that I can read large file using JExcelAPI throug streams or in any other way. Jakarta POI is also showing this behaviour.
Thanks and advanceSorry when out of memory error is occurred no stack trace is printed as application is crashed. But I will quote some lines taken from JProfiler where this problem is occurred:
reader = new FileInputStream(new File(filePath));
workbook = Workbook.getWorkbook(reader);
*sheeet = workbook.getSheet(0);* // here out of memory error is occured
JProfiler tree:
jxl.Workbook.getWorkBook
jxl.read.biff.File
jxl.read.biff.CompoundFile.getStream
jxl.read.biff.CompoundFile.getBigBlockStream Thanks -
Retrieve SharePoint Choice Field and Bind to a Control Using REST API
Hi,
I need to retrieve SharePoint choice field values and insert them in a html drop down field on the fly using SharePoint REST API. I wonder if this would be possible - please provide some code/blogs that must have achieved this already.
Thanks n advance.This post will help you
Reference
http://www.learningsharepoint.com/2010/07/24/get-choice-field-values-using-client-object-model-sharepoint-2010/
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/00acd5e9-ad78-4933-a3d2-31e2261aff68/get-the-choices-from-a-choice-field-using-javascript-client-object-model
Regards,
Sairam Avacorp Technologies -
How to configure and use Groupware portlets in weblogic portal 10.3.2
Hello All,
Weblogic 10.2 (home = c:\bea\102) and Weblogic 10.3.2 ( home = c:\bea\103) are installed on our systems and we downloaded the" wl_groupware_portlets_oracle103-10.3.0_win32.exe " file from "edelivery.oracle.com" and tried to install then it gave some exception for tool.properties file. To run it in 10.3.2 we copied tools folder from c:\bea\102 to c:\bea\103 and then setup ran successfully in c:\bea\103.
But still groupware facet in not visible in IDE.
Any quick help would be highly appreciated.
Thanks,
AlkaSee this thread.
Error Installing Groupware Portlets for WLP 10.3.2
Brad -
Chose DB where content will be stored?
Is it possible to instruct portal where to store the content and metadata that is added to a content area. Ideally, I would like to put it in a separate database. This is because we will have 2 separate portal instances and I would like to have both accessing the same content.
We have considered database replciation but identifying the tables to replicate and the sequences to amend has proved to be difficult.
If you can think of any other way of doing this, please let me know.
Thanks,
RogerHi!
sessions will be stored in APQI table along with their queue id.
Reward points if it helps.
Regards,
Neha Bansal. -
Text element with line item content and include text
Hi All,
How to write in smartform in single text element with line item content and include text.I am using this text element in table . Pls help me out. i am writing the include command in text element ,but this command is not enough for single line of text editor.
thanks ,
Rakesh singhI have been pulling my hair out for a few days trying to find
this solution. This fixed my problems as well.
I was getting ready to scrap the Report Builder altogether
and move to SQL Server Reporting Services over this issue.
I'm running 7.0.2 also, that version alone fixed many small
issues like creating borders and such.
Thanks
Maybe you are looking for
-
Recently when I open any apps the pages are too big for the screen. They shrink when pinched but immediately become bigger again. It's very difficult to scroll too. The keypad has become very sticky. Missing letters and spaces when I type and needing
-
VS 2013 - Settings lost when creating new project
I am having this is odd issue with my VS 2013 settings. I setup VS 2013 with all my custom settings and colors. I can open and existing project and my settings with be there. If I create a new project all my settings are gone. I backed them up so
-
External drive won't mount- which software is best for data recovery?
Hi, My external OWC drive won't mount to the desktop. It is visible in Disc Utility, but can't be manually mounted from there. Verify and Repair disk functions state that the disk appears ok (log below): Verify and Repair volume "OWC Mercury Elite AL
-
Disable Notification template in oim 11g
In OIM 11g there are a set of notifications under system management(advanced tab in admin console). How do you disable an email notification without deleting the email template? Thanks.
-
Brute-Force Crash Recovery Options?
Given the amount of crashes FCPX users are experiencing, I'm thinking of using an synchronization/archiving utility such as ChronoSync to monitor certain files/folders and archive them on a specific time interval (e.g. 10 seconds, 30 seconds, 5 minut