Getting ContentContext without HttpRequest

In a web app when we create ContentContext its doen using request as shown -
ContentContext context = new ContentContext( request );
Now if I create a ContentContext as - new ContentContext() , I get the following error
com.bea.content.RepositoryRuntimeException: Repository configuration error.
     at com.bea.content.manager.internal.RepositoryManagerImpl.getRepositoryOps(RepositoryManagerImpl.java:190)
     at com.bea.content.manager.internal.RepositoryManagerImpl.connectToRepository(RepositoryManagerImpl.java:77)
     at com.bea.content.manager.internal.RepositoryManagerImpl.connect(RepositoryManagerImpl.java:165)
     at java.lang.IllegalStateException: Not in application context
     at com.bea.p13n.management.ApplicationHelper.getVersionedAppName(ApplicationHelper.java:185)
     at com.bea.content.manager.internal.RepositoryManagerImpl.getRepositoryOps(RepositoryManagerImpl.java:181)
     at com.bea.content.manager.internal.RepositoryManagerImpl.connectToRepository(RepositoryManagerImpl.java:77)
     at com.bea.content.manager.internal.RepositoryManagerImpl.connect(RepositoryManagerImpl.java:165)
     at uk.gov.fsa.cms.servlet.teamworks.Upload.upload(Upload.java:54)
     at uk.gov.fsa.cms.servlet.teamworks.Upload.main(Upload.java:33)
Any idea what are the ContextKeys that I need to set so that I can get the context of the application in which my Repository is configured ?
Thanks
Ravi

Steve,
Thanks for the reply.
I tried accessing the CMS using a Web Service within the same JVM and same application as Web App for the Repository. Getting the following exception. Probably will get the same when I try an EJB. Is there any way we can pass secutrity details in ContentContext as we connect to the repository. It could be someting similar to what is being used by BulkLoader. As of now I see EJB to be the best option available, only thing requierd is to pass the security credentials.
com.bea.content.AuthenticationException: Error authenticating to repository: /BEA Repository. Possible cause could include, but is
not limited to a bad repository configuration or the repository is unknown.
at com.bea.content.manager.internal.RepositoryManagerImpl.getTicket(RepositoryManagerImpl.java:279)
at com.bea.content.manager.internal.ObjectClassOpsImpl.getObjectClassOps(ObjectClassOpsImpl.java:173)
at com.bea.content.manager.internal.ObjectClassOpsImpl.getObjectClasses(ObjectClassOpsImpl.java:402)
at com.bea.content.manager.internal.ObjectClassOpsImpl.getObjectClasses(ObjectClassOpsImpl.java:382)
at uk.gov.fsa.cms.service.UploadService.upload(UploadService.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:99)
at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:64)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:127)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:85)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:173)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:251)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3229)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Ravi.

Similar Messages

  • I want to download an app on to my mac that is on my iPod but it ask to pay for it again. What do i do so I can get it without paying again?

    I want to download an app on to my mac that is on my iPod but it ask to pay for it again. What do i do so I can get it without paying again?

    If what you previously bought is an iOS application, ensure that you’re signed into the iTunes Store with the Apple ID you used to buy it, or sync the device with an iTunes library which contains it.
    If what you previously bought is a Mac OS X application, you can’t. The developer needs to create the two versions separately and may choose to charge for both.
    (111475)

  • I have a free app on my iphone, i would like to get it to my ipad..how do I get it without having to start over the entire game?

    I have a free app on my iphone, i would like to get it to my ipad..how do I get it without having to start over the entire game?

    If you use the same Apple ID on both devices, you can share apps, but you won't share the progress I'm afraid.

  • I have set up mail but it has 37000 mails to load, obviously very old stuff but how do I get rid without loading and deleting, take days?

    I have set up mail but it has 37000 mails to load, obviously very old stuff but how do I get rid without loading and deleting, take days?

    Go under settings, mail, contacts and calendars and then choose only to sync back 50 or 100 or 1000 mails. Chances are you don't really need the old ones on your device and it'll save room (I have mine set to 50)

  • I was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?

    i was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?

    You may not be able to get a refund, since the terms of sale for the iTunes Store state that all sales are final. You can contact the iTunes Store, explain the reason for your request, and ask, though:
    http://www.apple.com/support/itunes/contact.html
    It's possible they'll make an exception for you, particularly if the problem was on their end preventing the movie from downloading in a reasonable time.
    Good luck.

  • How to get result without single cotes in ''Cast(Multiset( '' Result.

    select cast(multiset(select column_name
    from user_tab_columns
    where table_name = 'DAILY_PRODN_MIS'
    and column_name like '%STOCK%'
    order by column_name) as tab_type) result from dual;
    RESULT
    TAB_TYPE('BAGS_STOCK', 'BLUE_DUST_STOCK', 'CEMENT_STOCK', 'CEMENT_STOCK_33', 'CEMENT_STOCK_43', 'CEMENT_STOCK_53', 'CK_ADJ', 'COAL_IND_D_STOCK', 'COAL_IND_D_STOCK_ADJ', 'COAL_IND_E_STOCK', 'COAL_IND_E_STOCK_ADJ', 'COAL_IND_F_STOCK','OCK_ADJ', 'MTD_COAL_IMP_D_STOCK_ADJ', 'MTD_COAL_IMP_E_STOCK_ADJ', 'MTD_COAL_IND_A_STOCK_ADJ', 'MTD_COAL_IND_B_STOCK_', 'YTD_COAL_IMP_B_STOCK_ADJ', 'YTD_COAL_IMP_C_STOCK_ADJ', 'YTD_COAL_IMP_D_STOCK_ADJ', 'YTD_COAL_IMP_E_STOCK_ADJ')
    How can i get result without single cotes for each column.

    Your query currently returns a collection type (tab_type) whereas it appears you want to return a delimited string.
    There are actually quite a few ways to achieve this - with your own function, with a user-defined aggregate functions (e.g. Tom Kyte's stragg), with the MODEL clause or with CONNECT BY, e.g.
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> SELECT table_name,
      2         SUBSTR (MAX (SYS_CONNECT_BY_PATH (
      3            column_name, ',')), 2) column_names
      4  FROM  (SELECT table_name, column_name,
      5                ROW_NUMBER () OVER (
      6                   PARTITION BY table_name
      7                   ORDER BY column_id) column_order
      8         FROM   user_tab_columns
      9         WHERE  table_name = 'BANK_ACCOUNT'
    10         AND    column_name LIKE '%U%') utc
    11  START WITH column_order = 1
    12  CONNECT BY column_order = PRIOR column_order + 1
    13  AND    table_name = PRIOR table_name
    14  GROUP BY   table_name;
    TABLE_NAME           COLUMN_NAMES
    BANK_ACCOUNT         ACCOUNT_NAME,ACCOUNT_NUMBER
    SQL>

  • "New in iTunes" newsletter contents received in iPad email will not produce sound.  Any ideas as to why?  If I go into the iTunes program, I get sound without any problem.

    "New in iTunes" newsletter contents received in iPad email will not produce sound for music samples.  Any ideas as to why?  If I go into the iTunes program, I get sound without any problem.

    Amazing! I'm a dance instructor and am doing the exact same thing as you - and not seeing what I need on my iPad Air ... I can't believe there has been no reply on this! I also can't believe there isn't an easy way of seeing track info in the iPad or iPhone but I've spent hours searching and am not finding anything

  • I had iPhoto on my Macbook when I bought it, but I had to replace my hard drive, reloaded now Leopard and now don't have iPhoto. How can I get it without having to pay for it again?

    I had to replace my hard drive and load Snow Leopard, but iPhoto is not there.  How can I get iPhoto without having to pay for it.

    The iLife that came with your MacBook is on the #2 gray disk that came with the MacBook.
    The App Store version of iLife ‘11 programs will only work with 10.7 or 10.8. You can get the iLife ’11 DVD which will run on 10.6  on eBay or Amazon.com fairly cheap.
    http://www.ebay.com/sch/i.html?_odkw=apple+ilife+11&LH_Auction=1&LH_BIN=1&_sop=1 2&_osacat=0&_from=R40&_trkparms=72%253A1234%257C66%253A2%257C65%253A12%257C39%25 3A1&LH_PrefLoc=1&_sc=1&_trksid=p2045573.m570.l2632.R2&_nkw=apple+ilife+11&_sacat =18793 
      http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?s=so ftware&ie=UTF8&qid=1376932206&sr=1-1&keywords=ilife+%2711

  • Perform multiplication, division n get remainder without using arithmetic o

    hello,
    perform multiplication, division n get remainder without using arithmetic operators
    thanks in advance
    manasi

    ram.manasi wrote:
    i can program myself however i am new to programming and have no clue how to perform arithmmetic operations without using arithmetic operators n would like to know how to go about itwell, we're not your private code-monkeys nor are we tutors. We are usually best at answering specific questions but many of us get our hackles up when someone simply demands an answer. I suggest that you find out what your teacher is expecting of you here. I would guess that this involves some recursion, but it is up to you to find out. Do some work. Then if you have a specific question, please feel free to come back and ask for help. nicely.

  • I have a Macbook pro that I bought in 2008. I recently installed Maverick. For the first time, I used headphones. Now I cannot get sound without them.

    I have a Macbook Pro that I bought in 2008. A few months ago I installed OS 10.9.1. A couple of days ago I used headphones for the first time ever. Now I cannot get sound without them. Help?

    Hi, lolabev.
    You may find the troubleshooting steps in the article below helpful.
    Troubleshooting issues with no audio from built-in speakers on Macs
    http://support.apple.com/kb/ts1574
    Cheers,
    Jason H. 

  • I bought Noal Gallagher's High flying birds on my i-phone 4, it stated that when i next connected to the i-tunes stoes i would recieve the deluxe version. I never did, is there a way i can actually get it without paying a again?.

    I bought Noal Gallagher's High flying birds on my i-phone 4, it stated that when i next connected to the i-tunes stoes i would recieve the deluxe version. I never did, is there a way i can actually get it without paying a again?.

    I almost forgot that using folders can allow each folder to contain a song. I also recall touch tracks or one key play...

  • Sales order should not get saved without entering the material

    Sales order is getting saved without entering the material. How to make material entry mandatory in sales order.. so that if i try to save the sales order without entering the material the system should create an error.
    Please give a clue, if there is any way other than incompletion log.

    Dear DV,
    T. Code: SHD0
    Create a Screen Variant for Transaction VA01
    and maintain Field: Material as "Mandatory".
    Best Reagrds,
    Amit
    Note: Following is the explaination with Incompletion-Procedure -
    T. Code: OVA2 - Incompletion Log
    Select Group: B - Sales Order Item; and Double Click "Procedures" (left-hand Dialog-Structure)
    Select InCompletion Procedure: 20 - Standard; and double click "Fields" (left-hand Dialog-Structure)
    Here, Maintain entry:
    Table: VBAP
    Field: MATNR
    Screen: PKAU
    Status: 4
    Imp.: Create Z-Incompletion Procedure and make necessary changes, instead of changing a Standard one.
    Alternatively, check with Arijeet's post in following thread:
    How to restrict saving of a sales order without a material.

  • I bought an SD TV Show for $1.99 and I really wanted the HDMI for $2.99, how can I get this without extra cost?

    I bought an SD TV Show for $1.99 and I really wanted the HDMI for $2.99, how can I get this without extra cost?

    1 and 2: Please get the iPhone iOS 4 user guide.
    3. Yes.

  • My computer broke and I got it fixed. It doesn't say that the hard-drive was replaced, but I can tell my data is gone, including Pages that I bought. Is there any way of getting that without paying for it again?

    My computer broke and I got it fixed. It doesn't say that the hard-drive was replaced, but I can tell my data is gone, including Pages that I bought. Is there any way of getting that without paying for it again?

    Or if you purchased Pages as part of iWork on a disk, reinstall from the same disk.
    Best of luck.

  • Cannot get mail without quitting first.  Any idea why?

    Cannot get mail without quitting first.  Any idea why?

    Does it work?  Well, the beep occurs but no mail comes through without a very long wait.  If I quit mail and re-open it, all the new messages come through.
    Love has nothing to do with this.

Maybe you are looking for

  • How can multiple people in office share a calendar?

    I'm trying to get my team off MS Exchange, but we need to be able to view each other's calendars to schedule meetings. I haven't figured out how we can all get access to each other's calendars using iCal. Does anyone have instructions for that? Thank

  • Sound Blaster X=Fi SB1090

    My audio port on my mac recently stopped working so I decided to buy a usb sound card. The sound card works but I only have 2 channel audio and it says "this device has no output controls". This means I can not use the volume keys on my keyboard nor

  • Does anyone know if Dell Computers work with IMACs

    I am trying to make my Dell Printer work...I can't even open the pages on the Dell Site ?

  • No release strategy for service PO

    Purchasing document xxxxxxx cannot be released Message no. MEPO823 I created release strategy for service entry sheet through following process. 1. Created three characterstics(service_val, serv_plant & ZSER_DOC TYPE) and assigned it to class 032 (ga

  • Downloaded PDFs automatically open in Acrobat Readr. How switch to Preview?

    I downloaded Acrobat Reader awhile ago, and since then downloaded PDFs from Firefox have opened in Adobe. I'd like them to automatically open in Preview. If I "Get Info" on a PDF, it still says that it will open in Preview. Do you know what I should