No content Repository Found in OAOR

Hello Gurus,
I am using OAOR transaction for uploading documents in Content Server.
After I upload the documents, In my program when I try to read the corresponding URL of the document, It could retreive it in my development system.
But I am having a strange error in my Test system saying that " No Content Found" and its throwing an exception.
When I tried to debug that  method, I founf that the actual error is " No Content Repository Found".
Further in my investigation, I found the following:
In Dev System: When i goto tcode CSADMIN and give the repository abject as "BDS_DB" it is found and i could login in to the server and check the settings.
In Test System: When i goto tcode CSADMIN and give the repository abject as "BDS_DB" it says that there is no repository object found.
And while debugging the method, I found that the respository being used is BDS_DB.
Could you please do tell me where to maintain this Repository Object and how to correct this error as this is working fine in my dev sys and not working in any other system.
Thanks,
Naveen

Hello Ravindra,
Thanks for the reply and it solved a bit.
As I see that those two configs are already maintained in my test system as it is in DHM but still I am facing the error.
To be more precise, I am facing the issue while using the method,
cl_sdc_bsp_utilities=>phio_get_url_for_get
Its throwing the error, "No Storage Repository".
Is there anything else that I need to maintain for this?
Thanks,
Naveen

Similar Messages

  • Issue in storing email & attachments in to content repository server.

    Hi  All,
    We have done the following for storing email & attachments in to
    content repository server.
    Transaction - Activity done
    1) OAC0 - Defined the content repository folder RQ
    2) OACT - Created a category( ZSOFFHTTP1) and associated it to RQ
    3) SKPR08 - Associated ZSOFFHTTP1 to SAP OFFICE Class SOFFPHIO
    Also, updated the entry in the table SDOKPHCL against the record having
    Docuclass value as SOFFPHIO and change the category value to ZSOFFHTTP1.
    Now, we went to transaction SBWP and created a test message and sent
    an email to ( recepient address) and recip type as
    interent address.
    But when we cross checked the entry in SOOD table for this email sent
    today, we find that the value in the field is 'K' and not "A".
    We have done all the steps as per the SAP Note 530792 still the issue
    persists.
    As per the sap note 904711,SOOD-EXTCT Storage <space> directly in table
    SOC3
    K using the KPRO
    A in an archive
    Any help on this , would be highly appreciated.
    Thanks & regards,
    Divya
    Divya

    Thanks for the answer, but my question was whether it is possible to store documents to an external content server using transaction OAOR (Business Document Navigator). Right now it is only possible to store documents to the R3 database with OAOR.
    Regards
    Thomas Hørlyck

  • Content repository access restriction?

    hi All,
    i want to make a check for content repository access when check in file,  i found a similar thread in the forum but it said using one of the DMS BADIs like DOCUMENT_STORAGE01 with methods BEFORE_PHYSICAL_CHECKIN or BEFORE_CHECKIN coufd be useful to implement an individual check.
    i can not find any authorization object to do this .
    anyone got a good idea?
    George.

    i can not find any authorization object to do this
    There is no standard authorization object available to cater to this requirement.
    However,another solution you may want to look at is Entitlement Manager from Nextlabs for SAP which extends the native SAP authorization model to provide easy to manage policy-based authorization to specific product data across geographies.
    Regards,
    Pradeepkumar Haragoldavar

  • Initial content not found

    Hi,
    I try to use FlexUnit 4 to test an air application. I use Maven antrun plugin to compile and run test
    code since flex-mojos do not support FlexUnit 4 yet.
    My antrun plugin is as follows,
               <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.3</version>
                    <executions>
                        <execution>
                            <id>flexunit4-test-compile</id>
                            <phase>test-compile</phase>
                            <configuration>
                                <tasks>
                                    <!-- You can set this directly so mxmlc will work correctly, or set FLEX_HOME as an environment variable and use as below -->
                                    <!--property name="FLEX_HOME" location="${env.FLEX_HOME}"/-->
                                    <property name="FLEX_HOME" value="${flex.home}"/>
                                    <taskdef resource="flexTasks.tasks"/>
                                    <taskdef resource="net/sf/antcontrib/antlib.xml"
                                             classpathref="maven.compile.classpath"/>
                                    <!-- Compile TestRunner.mxml as a SWF -->
                                    <mxmlc file="${project.build.testSourceDirectory}/TestRunner.mxml"
                                           output="${project.build.testOutputDirectory}/TestRunner.swf">
                                        <source-path path-element="${project.build.sourceDirectory}"/>
                                        <source-path path-element="${project.build.testSourceDirectory}"/>
                                        <load-config filename="${FLEX_HOME}/frameworks/air-config.xml"/>
                                        <compiler.library-path dir="${basedir}/target/dependency" append="true">
                                            <include name="*.*"/>
                                        </compiler.library-path>
                                        <compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
                                        <compiler.headless-server>true</compiler.headless-server>
                                    </mxmlc>
                                </tasks>
                            </configuration>
                            <goals>
                                <goal>run</goal>
                            </goals>
                        </execution>
                        <execution>
                            <id>flexunit4-test-run</id>
                            <phase>test</phase>
                            <configuration>
                                <tasks>
                                    <!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
                                    <!--
                                       Flex-Mojos will update the FlashPlayer trusted cache for you automagically so you don't have to have flexunit do so.
                                       Also haltonfailure should be marked true to keep with the convention in Maven that the build fails if tests fail.
                                    -->
                                    <taskdef resource="flexUnitTasks.tasks"/>
                                    <exec executable="${flex.home}/bin/adl" failonerror="false" osfamily="unix">
                                        <arg value="${project.build.testOutputDirectory}/TestRunner-app.xml"/>
                                        <arg value="--"/>
                                        <arg value="${project.build.testOutputDirectory}"/>
                                    </exec>
                                    <exec executable="${flex.home}/bin/adl.exe" failonerror="false" osfamily="windows">
                                        <arg value="${project.build.testOutputDirectory}/TestRunner-app.xml"/>
                                        <arg value="--"/>
                                        <arg value="${project.build.testOutputDirectory}"/>
                                    </exec>
                                    <!--flexunit swf="${project.build.testOutputDirectory}/TestRunner.swf"
                                              toDir="${project.build.directory}/surefire-reports"
                                              haltonfailure="true"
                                              verbose="true"
                                              localTrusted="false"/-->
                                </tasks>
                            </configuration>
                            <goals>
                                <goal>run</goal>
                            </goals>
                        </execution>
                    </executions>
                    <dependencies>
                        <!-- You will need to manually install all of the artifacts below in your local Maven repository or shared repository if you have one -->
                        <dependency>
                            <groupId>com.adobe.flex</groupId>
                            <artifactId>flexTasks</artifactId>
                            <version>${flex-sdk.version}</version>
                        </dependency>
                        <dependency>
                            <groupId>org.flexunit</groupId>
                            <artifactId>anttasks</artifactId>
                            <version>4.0.0</version>
                        </dependency>
                    </dependencies>
                </plugin>
    TestRunner.swf is built at target/test-class and I also have TestRunner-app.xml in the same directory where I have
            <content>TestRunner</content>
    The problem is that when I try to run a test, I keep getting the following error
    [exec] initial content not found
    I really appreciate if someone could shred some light on this problem.
    Thanks,
    John

    Hi Brian,
    Thanks for your reply!
    I've tried building with every version of Ant and FlexUnit I could find, including the latest beta... same problem every time. Though I haven't tried using a different Flex SDK - my project uses 3.2.0. Could that be causing problems? All the FlexUnit versions I can find are for 3.5 or later.
    Below is the full console output from my build script (using the flexunit task rather than exec). As for the descriptor file, if you mean the one created by the FlexUnit task, I'm afraid I have nothing to post... since the error is that the task isn't able to create it in the first place. (Or if it is being created, it sure isn't anywhere I can find it - see below for screenshot of project contents.) I can post the descriptor I wrote myself if that will be of any use - just let me know.
    Thank you so much for your help!
    Helen
    -------------- CONSOLE OUTPUT ---------------
    Apache Ant version 1.7.1 compiled on June 27 2008
    Buildfile: C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\build.xml
    parsing buildfile C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\build.xml with URI = file:/C:/build/dev/helen_ant/apps/flex_dev/flex/acdc/build.xml
    Project base dir set to: C:\build\dev\helen_ant\apps\flex_dev\flex\acdc
    [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
    Build sequence for target(s) `all' is [clean-swf, build-swf, clean-installer, compile-test, test-flex, build-installer, all]
    Complete build sequence is [clean-swf, build-swf, clean-installer, compile-test, test-flex, build-installer, all, test-reports-flex, final-clean, ]
    clean-swf:
       [delete] Deleting C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\acdc.swf
    build-swf:
    dropping C:\C from path as it doesn't exist
    dropping C:\C from path as it doesn't exist
        [mxmlc] Loading configuration file C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\air-config.xml
        [mxmlc] C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\acdc.swf (2391282 bytes)
    clean-installer:
    compile-test:
    dropping C:\C from path as it doesn't exist
    dropping C:\C from path as it doesn't exist
        [mxmlc] Loading configuration file C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\air-config.xml
        [mxmlc] C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\src\acdcunittest.swf (2744014 bytes)
    test-flex:
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using the following settings for the test run:
    [flexunit]     FLEX_HOME: [C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0]
    [flexunit]     haltonfailure: [false]
    [flexunit]     headless: [false]
    [flexunit]     display: [99]
    [flexunit]     localTrusted: [true]
    [flexunit]     player: [air]
    [flexunit]     port: [1024]
    [flexunit]     swf: [C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\src\acdcunittest.swf]
    [flexunit]     timeout: [60000ms]
    [flexunit]     toDir: [C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\unit_test_reports\xml]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] OS: [Windows]
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Launching player:
         [null] Executing 'C:\Program Files\Adobe\Flex Builder 3\jre\bin\java.exe' with arguments:
         [null] '-jar'
         [null] 'C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\lib\adt.jar'
         [null] '-version'
         [null]
         [null] The ' characters around the executable and arguments are
         [null] not part of the command.
         [null] Output redirected to property: AIR_VERSION
    [flexunit] Found AIR version: 2.0
    BUILD FAILED
    C:\build\dev\helen_ant\apps\flex_dev\flex\acdc\build.xml:97: Error launching the test runner.
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefau ltExecutor.java:32)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    Caused by: Error launching the test runner.
        at org.flexunit.ant.tasks.TestRun.launchTestSuite(Unknown Source)
        ... 18 more
    Caused by: Could not create application descriptor
        at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicationDescriptor(Unknown Source)
        at org.flexunit.ant.launcher.commands.player.AdlCommand.launch(Unknown Source)
        at org.flexunit.ant.launcher.FlexUnitLauncher.runTests(Unknown Source)
        ... 19 more
    --- Nested Exception ---
    Error launching the test runner.
        at org.flexunit.ant.tasks.TestRun.launchTestSuite(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefau ltExecutor.java:32)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    Caused by: Could not create application descriptor
        at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicationDescriptor(Unknown Source)
        at org.flexunit.ant.launcher.commands.player.AdlCommand.launch(Unknown Source)
        at org.flexunit.ant.launcher.FlexUnitLauncher.runTests(Unknown Source)
        ... 19 more
    --- Nested Exception ---
    Could not create application descriptor
        at org.flexunit.ant.launcher.commands.player.AdlCommand.createApplicationDescriptor(Unknown Source)
        at org.flexunit.ant.launcher.commands.player.AdlCommand.launch(Unknown Source)
        at org.flexunit.ant.launcher.FlexUnitLauncher.runTests(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.launchTestSuite(Unknown Source)
        at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
        at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefau ltExecutor.java:32)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
        at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    Total time: 1 minute 31 seconds

  • Content repository configuration to store process orders record in COPA

    Dear Experts ,
    i have status ORRQ for my process orders. to save the order records i execute T-code COPA but message comes
    " zero  process order stored ".
    after investigation it was found that we have to maintain content repository  id in OAC3 for process order object type BUS0001.
    OAC0 , OACT  are the t-codes to maintain it in SPRO.
    but the problem i dont know how to do it , neither know which module consultant will be able to do that.DMS or netweaver or
    someone else.
    please guide
    regards
    satish

    not answered

  • Content Repository creation issue in OAC0 tcode

    Dear All ,
    I installed Content Server 640 verison with Max DB 7.6 successfully on Windows Server 2008 R2 server.I did the the installation on the same server where my ECC development system is running.
    When I'm creating the content repository in OAC0 getting the below error.
    <<<<CreateTab ContentStorage, connect error SQLConnect failed, [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, Error Code: 0>>>>
    I followed SAP Note 301352 - ODBC driver is not registered ,and used the below command to register ODBC driver but it gives me error saying Can't create registry value.
    C:\>odbcreg LiveCache -i -p f:\sapdb\programs\pgm
    Error : Can't create registry value.
    I did the installation using domain ID which is assigned to administrators group on local host.not able to figure it out ,whats the issue.
    Can you please help me to fix this issue please.
    thanks

    Hi Khaiser,
    You need to do the following,
    In CSADMIN got to setting.
    Add the parameter : Driver = MaxDB
    Restart the system and check it should work.
    Regards,
    Deepak Kori

  • Unable to create Content Repository

    Hi All,
    We have installed SAP Content Server6.4 with MAXDB on windows server 2003 IIS6.0 successfuly.
    After that i have created content repositoy through OAC0 & Category through OACT. When we try to execute Create content repository through CSADMIN we are getting error
    HTTP error: 404 Not Found
    HTTP error: 500 (Internal Server Error)  "Co
    Z_CON_REP or Storage entry not defined"
    When we check the content server status it is showing the status running.
    << Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    Regards,
    Venu
    Edited by: Rob Burbank on Jan 26, 2011 4:15 PM

    You need to supply the "Key Store Location", "Key Store Password", "Private Key Alias" and "Private Key Password' to use socketssl.
    Also please make sure that the content server has enabled "Use SSL". You can configure it using the enterprise manager.

  • Shared Services database content not found in the specified database - EPM

    I installed three VM machines (Workstation) for the following on Windows 2003 OS:
    VM1 : Oragle DB 11g, Shared Services. Workspace
    VM2 : Financial Management, EPMA, Calc Manager
    VM3 : Microsoft Active Directory
    I have configured Database and Shared services successfully and all machines talk to one another.
    Also, I created the appropriate table spaces for the Hyperion products with the right access on the database. And, I am able to connect from the client (VM 2 to the Database VM 1)using SQLplus.
    When I tried to configure Financial Management, using the EPM System Configurator and put in the following values:
    Database Type: Oracle
    Server: VMDatabase (Name of VM1)
    Port: 1521
    SID ORCL
    Username: HFM
    password: *********
    It returned the error message: "*Shared Services database content not found in the specified database*"
    Can someone please help on what I need to check, Please!?
    Thanks for your time.
    K

    Hi,
    Information from Oracle Support:
    Shared Services database content not found in specified database
    Cause
    There is a flag in the shared services repository that indicates the shared services database is to be used as a registry. If that flag is not set, the configtool will not re-configure the database as a shared services repository.
    Solution
    Note: Make sure the Shared Services repository is backed up before doing any Shared Services Registry changes.
    The registry flag isRegistryDB must exist and be set to true on the Shared Services Database Connection.
    epmsys_registry.bat VIEW DATABASE_CONN
    Find the shared services database registry entry. The entry in bold will be missing. The italicized item is the 'unique_id' referenced later (different in each installation).
    COMPONENT - 3
    NAME - Database:ORCL:HSS
    ID - +11d1def534ea1be07ad8eb3012d2e3d310a7ff4+
    TYPE - DATABASE_CONN
    HOST - Database
    HYPERION HOME - /home/hypadmin/Oracle/Middleware/EPMSystem11R1
    PROPERTIES -
    isRegistryDB = true
    dbUserName = HSS
    dbJDBCDriverProperty = oracle.jdbc.OracleDriver
    dbJdbcUrl = jdbc:oracle:thin:@Database:1521:ORCL
    registryDatasource = EPMSystemRegistry
    registryDatasourceJNDI = jdbc/EPMSystemRegistry
    dbName = ORCL
    version = 9.5.0.0
    dbPort = 1521
    instance_home = /home/hypadmin/Oracle/Middleware/user_projects/epmsystem1
    dbPassword = GABaMyyplja+wLNCmLs8ag==
    Run the following update to populate the isRegistryDB flag with the unique_id being the ID field used in the DATABASE_CONN registry entry.
    epmsys_registry.bat addproperty #unique_id/@isRegistryDB true
    Repeat the epmsys_registry VIEW DATABASE_CONN to make sure the flag is now set.
    You will be able to reconfigure the shared services repository.
    You can mark it as Answer/Helpful if you feel so.
    Cheers!
    J

  • Docx file upload to content repository on MS Sharepoint

    I have installed Primavera P6 EPPM version 8.2 in use with content repository on MS Sharepoint 2010 SP1.
    When I an trying to upload files with extensions "docx", "xlsx" ... system message "uknown error, please contact
    your System Administrator" pop ups.
    Plus to it, all uploaded documents dissapears from list in "Projects" menu "Documents" . In "Dashbords" portlet
    I can see all earlier uploaded documents.
    May be somebody had similar problems and found solution for it? Advice would be very valuable.
    Juozas

    I'm not sure about that code for the file upload part. You should really go find the File upload stuff from Jakarta Commons or UploadBean from whoever wrote it. That will handle the file upload. The database part, there are tutorials in Java's site ... try searching for "store image database"

  • How to retrieve data from content repository

    Hi experts,
    I use the report RSIRPIRL to relocate data (by date) from SOFFCONT1 table into my EE content repository. For testing purpose I would like to retrieve those data from the content repository. I tried with the Business document navigator (OAOR) without explicit result.
    Any inputs how to access those relocated data?
    Regards.

    Hi all,
    I was able to move on but I still need some help.
    I review the tables DMS_PH_CD1, DMS_PHIO2FILE or DMS_DOC2LOIO, SOOD, SOFM, SOC3.
    From the content repository I can see documents with fields business object type (ZIXIILLDGR, BUS2081..), sap object ID, document type.
    I  was able to find the link between physical and logical document ID and class, still I not able to see in which tables the fields business object type (ZIXIILLDGR, BUS2081..), sap object ID, document type are saved and how they link together.
    If I re-phrase, when you execute transaction OAOR, in the identification of application object you have the field class name (Business object field with transaction OAAD). In which table is that field located in sap and how that field is link to the sap object ID as well as document type?
    Could someone please give me an input on that?
    Regards,

  • How can we upload file into to OCS Content repository when we are in Apex

    We have installed the Oracle Application Express 2.2.1 into the OCS 10.1.2 database.
    The Apex authentication is set to operate with OCS SSO.
    We have made a form. There is a browse button on the form. We would like if the uploaded file appeared in the OCS content database repository as
    opposed to Apex document repository.
    To put it into another word, how can we upload the file into to OCS Content repository when we are in Apex.
    Generally speaking, how can we reach content from Apex?
    We have found many java based examples to use content sdk, but how can we use them with Apex? We believe that
    content hasn't got plsql interface.
    i would highly appreciate it if you sent me a full example program.

    Hi Ram,
    Thanks for the reply
    We have a requirement to device a solution to upload the policy documents related to iProcurement
    I am planning to create an OA page to upload the content and planning to use the AOL function security to restrict the users those who can access this page .
    Is there any better way to implement the security?
    Is this approach feasible or is there any better way to approach this requirement?
    Thanks

  • Uploading a content in content repository

    i have craeted a content repository in weblogic 8.1 with library service enabled . But while uploading a document whatever content is there in that file if i see from repository itself i found the conent is missing in that file.... can anybody help me out in this regard...
    The code is as follows : -
    NodeOps nodeOps = repM.getNodeOps();
    uploadFileName=form.content.getFileName();
    System.out.println("Name of the Uploaded File:"+uploadFileName);
    Property[] defaultProperties = loadInitialProperties(newOc,uploadFileName);
    //Get the Parent Node
    Node parentNode = repM.getNodeOps().getNode(parentNodeId);
    Node newNode = repM.getNodeOps().createContentNode(parentNodeId, nodeName,newOc.getId(),defaultProperties);
    if(newNode!=null){
    WorkspaceOps workSpaceOps = repM.getWorkspaceOps();
    ContentContext ctx = new ContentContext(getRequest());
    VersionableContent versionableContent = new VersionableContent(LifeCycle.DRAFT,comment,defaultProperties);
    newNode.setCreatedBy("weblogic");
    newNode.setModifiedBy("weblogic");
    //Get the Real Path of the Node
    String nodePath = newNode.getPath();
    StringTokenizer strTokens = new StringTokenizer(nodePath,"/");
    int countToken=0;
    String reEvaluatePath = "";
    while(strTokens.hasMoreTokens()){
    String token = strTokens.nextToken();
    if(countToken!=0){
    reEvaluatePath = reEvaluatePath + "/"+token;
    countToken++;
    System.out.println("SAVING THE NODE");
    workSpaceOps.checkIn(ctx,newNode.getId(),versionableContent);
    System.out.println("checked in content");
    getSession().setAttribute("contentContext",ctx);
    getSession().setAttribute("nodeId",newNode.getId());
    getSession().setAttribute("nodePath",reEvaluatePath);
    getSession().setAttribute("node",newNode);
    public Property[] loadInitialProperties(ObjectClass objectClass,String uploadFileName)
    ArrayList nodeProperties = new ArrayList(1);
    try
    PropertyDefinition[] defs = objectClass.getPropertyDefinitions();
    for (int i = 0; i < defs.length; i++)
    PropertyDefinition def = defs;
    ID propertyId = new ID(objectClass.getId().getRepositoryName(), null);
    Property property = new Property(def.getName());
    property.setId(propertyId);
    property = setPropertyDefaults(property, def);
    if (def.getName().equalsIgnoreCase("content"))
    // default to empty file
    try{
    byte[] byteArr = newuploaddocform.getContent().getFileData();
    InputStream inputStream = new ByteArrayInputStream(byteArr);
    BinaryValue binaryValue= new BinaryValue();
    binaryValue.setContentType(newuploaddocform.getContent().getContentType());
    binaryValue.setName(newuploaddocform.getContent().getFileName());
    binaryValue.setSize(byteArr.length);
    binaryValue.setValue(inputStream);
    while (inputStream.available() > 0) {
    int numBytes = inputStream.read(readBuffer);
    // Right now just prints output to screen
    property.setValue(new Value(binaryValue));
    }catch(Exception e){
    System.out.println("Exception while uploading content"+e.getMessage());
    e.printStackTrace();
    }else if(def.getType() == Property.STRING && def.getName().equalsIgnoreCase("name")){
    property.setValue(new Value(newuploaddocform.getName()));
    }else if(def.getName().equalsIgnoreCase("deptId")){
    property.setValue(new Value(new Long(newuploaddocform.getDeptId())));
    nodeProperties.add(property);
    Property[] nodePropertiesArray = new Property[nodeProperties.size()];
    Iterator iter = nodeProperties.iterator();
    for (int i = 0; i < nodePropertiesArray.length; i++)
    nodePropertiesArray[i] = (Property) iter.next();
    return nodePropertiesArray;
    catch (Exception e)
    e.printStackTrace();
    Property[] nodePropertiesArray = new Property[0];
    return nodePropertiesArray;
    Edited by supratim_ch at 02/12/2007 1:24 AM

    Hi,
    I was able to find a white paper which discusses this topic.
    http://edocs.bea.com/wlp/docs81/whitepapers/vcr/index.html
    If this isn't helpful, please post this question to the portal newsgroup at http://newsgroups.bea.com/bea/forum.jspa?forumID=2044
    cheers
    Raj

  • C Folder Content Repository Scenario Settings

    Dear All,
    We have vendors who will upload the file from Internet.
    Is activating/incorporating  Scenerio B feasible.
    Re: cFolders Storage options
    http://help.sap.com/saphelp_cpro31/helpdata/en/d8/caa73575274e38b12589b5bccba5b9/frameset.htm
    I require settings to incorporate Scenario B which stores files onto the content repository.
    Kindly help.
    Regards,
    Tushar Dave

    Yes I've tried building the image in MDT with just English and I get the same problem.
    Very weird.  I also tried manually editing unattend.xml in the middle of the build just before it reboots to add skipuseroobe and the language but I get this error in the logs and i get the "Windows could not parse or process unattend answer file [C:\Windows\Panther\unattend.xml]
    for pass [oobeSystem] error"
    2014-06-18 15:11:43, Info [MUIUNATTEND.EXE] Unattended setting "UILanguage" could not be found. error:(2). Ignoring.
    2014-06-18 15:11:43, Info [MUIUNATTEND.EXE] Unattended setting "UILanguageFallback" could not be found. error:(2). Ignoring.
    2014-06-18 15:11:43, Info [MUIUNATTEND.EXE] Unattended setting "UserLocale" could not be found. error:(2). Ignoring.
    2014-06-18 15:11:43, Info [MUIUNATTEND.EXE] Unattended setting "InputLocale" could not be found. error:(2). Ignoring.

  • How to get SAP to use SSL for Content repository?

    I have defined a content repository in OAC0.  I would like SAP and the end user to use SSL when talking to the repository.  I have obtained a certificate for the repository, so that I can manually trference the repository via https... but in OAC0 when I press the Test Connection button I get "Connection Error:No SSLsupport available".  Do I have to import the content repository certificate into STRUST or something?

    Hi Ken,
    please have a look at the SAP note [712330|https://service.sap.com/sap/support/notes/712330].
    Best regards,
    Klaus

  • Incorrect content-type found 'text/html'

    Hello,
    I am trying to print a BI report result from portal. I get the error message "Error while generating PDF".
    When I see the detail of the message, I could find the mesage "Incorrect content-type found 'text/html'"
    We are using web templates of BI7.0.
    I have followed the note 1004321. Nothing happened.
    Is this the rite note or am i misdiagnosing the issue?
    Please help !
    Thanks,
    Abhishek

    Did you change the password?
    Maybe a restart of the J2EE engine will solve this (in case you didn't restart it already
    cheers,
    Noë

Maybe you are looking for

  • Characteristic in transformation but not available for dispay in DSO

    Hi All I am puzzled with this issue. There is a characteristic which I need add to a report however it is not in the cube. The characteristic is being extracted from ECC, it is in the datasource & when I view the transformation to the DSO I can see t

  • Oracle.jbo.RowCreateException: JBO-25017 -- using AM Test function

    I followed the directions in the OA Framework Developers Guide specific to creating application modules, Entity and View Objects as well as associations. (Really not any different than non-AO specific instructions). I created two EO's, two VO's off o

  • Tuning with functions in the SQL Query

    Hi there, I am trying to tune a query that has functions in the select section. Wondering how to see the results of the explain plan with these functions included. Is there a qs to include them when running the explain plan Thanks Hilton Oracle Datab

  • How can i view and manipulate the Tables created in SAP DB (Netweaver)

    Hai , i created one table in SAP DB integrated in Netweaver for J2EE Application. How can i view the table in SAP DB. Can i see the data inserted in that table in table view manner ?. can i edit the data in the SAP DB table?.

  • Branching Not Working Correctly

    I am going crazy... I have set up a quiz with 4 questions. The first question works fine -- 3 answers, goes to 3 different slides depending on the choice. The second question doesn't do anything when I click submit for any of the answers, and the 3rd