Trying to access crx.default repository through jcr api

Hi,
I am not able to login to the crx.default workspace using following code:
Repository rep = JcrUtils.getRepository();
SimpleCredentials creds = new SimpleCredentials(userid, pwd.toCharArray());
    javax.jcr.Session sess = rep.login(creds,"crx.default");
It is giving me following exception:
javax.jcr.NoSuchWorkspaceException: crx.default
at org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceInfo(RepositoryImpl.java:778)
at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1482)
at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:360)
at DayDataProvider.createJCRNodeSecurity(DayDataProvider.java:682)
at DayDataProvider.main(DayDataProvider.java:136)
Thanks in advance!
Regards,
sug1981

Hi Sugeet,
The JCR API is just that, an API. It needs an implementation to work. If you are connecting to CRX from an external webapp, DavEx is the most performant way to do so. RMI is also an option, but may not be supported depending upon the CRX/CQ version you are using.
That said, I don't know if Access Control Management works via remote access: https://issues.apache.org/jira/browse/JCR-2113
One option would be to install the Sling Jackrabbit AccessManager bundle: http://sling.apache.org/site/managing-permissions-jackrabbitaccessmanager.html
Regards,
Justin

Similar Messages

  • How to access the XDB-Repository through iAS

    It is easy to access the XDB repository on a database server directly using http or ftp.
    However, since our database server is behind a firewall we need to access the XDB repository through our Oracle Internet application server (iAS 9i) which is situated outside the firewall. Does anyone know how to do this? Any hint is greatly appreciated; unfortunately nobody answers to this question in the iAS forum.
    We access a PSP-application on the database-server through the iAS-server using a DAD defined on the IAS-server. The XDB repository probably needs another access proceeding.
    Our environement:
    iAS 9.2 (Solaris)
    Oracle 9.2.0.4 (Solaris)
    Thank you very much for any help
    Dirk Schmatz

    Hi there,
    This question is exactly what I would like to ask. Can someone answer this question please!!!
    Regards,
    SIM

  • Hi. Im trying to access my itunes account through my phone and its telling me to answer security questions to verify my account. I cannot remember my passwords for the 2 questions. Is there a place online that i can reset those?

    Hi. Im trying to access my itunes account through my phone and its telling me to answer security questions to verify my account. I cannot remember my passwords for the 2 questions. Is there a place online that i can reset those?

    Hello AndiHouse,
    Thank you for using Apple Support Communities!
    According to this article, Rescue email address and how to reset Apple ID security questions http://support.apple.com/kb/HT5312:
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so.
    Click the link above, and contact the iTunes Store support team directly for assistance with resetting your security questions.
    All the very best,
    Sterling

  • Problem in Creating Default Form Through DI API

    Hi All,
    I am using the below code to create UDO and make it as Default Form through DI API. But the Default Form property is not getting set, that is the Default Form is not being created. The UDO is getting created. Any help is appreciated.
    // Verify that UDO is defined
                if (!(oCreateUDO.UDOExist(oCompany, "WEB_USER")))
                    SAPbobsCOM.UserObjectsMD MyUDO = (SAPbobsCOM.UserObjectsMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);
                    //Set Services
                    MyUDO.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanFind = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanClose = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanLog = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO;
                    //MyUDO.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.Code = "WEB_USER";
                    MyUDO.Name = "Define Portal User";
                    MyUDO.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData;
                    MyUDO.TableName = "PORUSR";
                    MyUDO.FindColumns.ColumnAlias = "Code";
                    MyUDO.FindColumns.ColumnDescription = "Code";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "Name";
                    MyUDO.FindColumns.ColumnDescription = "Name";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_name";
                    MyUDO.FindColumns.ColumnDescription = "Name";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_Email";
                    MyUDO.FindColumns.ColumnDescription = "Email";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_Status";
                    MyUDO.FindColumns.ColumnDescription = "Status";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_TAG";
                    MyUDO.FindColumns.ColumnDescription = "TAG";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_bp";
                    MyUDO.FindColumns.ColumnDescription = "BP Code";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_password";
                    MyUDO.FindColumns.ColumnDescription = "Password";
                    MyUDO.FindColumns.Add();
                    if (MyUDO.Add() != 0)
                        MessageBox.Show("Failed to add UDO");
    Thanks and Regards,
    Noor Hussain

    Dear All,
    Thanks a lot. I had forgot to add the form columns to the UDO object while creating UDO.
    Regards,
    Noor Hussain
    Edited by: noor_023 on Mar 1, 2012 11:54 AM

  • Cisco WAAS WAE-674 - Slow response in IE-7 PC's while trying to access the SAP application through cisco WEA

    Hi,
    From location A when we are trying to access the SAP application in location B  through WAE-674 via internet Explorer there is a slow response in IE-7 PC's compare to IE-8 PC's,But when we try without WAE-674 the response is normal.
    We also found that optimization in location A WAAS device as 70-90% but still users are facing slowness while opening the Webpage.
    Please suggest how to address the problem ASAP.
    Thanks & Regards,
    P.Ramkumar

    I would suggest that you open a case with the tac to look at this. Matthew

  • Accessing bea content repository through a webservice

    Hi All,
    I want to use the bea default database based repository through a web service.
    So please suggest me the way to do this.
    Can i use the spi interface to do the same if yes
    then how should i go ahead ?
    Regards,
    BTSL_Deepti

    Yes, it's called InDesign Server :-)

  • Accessing KM Global Services through KM API

    Hello all…
    I am currently trying to access KM Global Services from KM Java API, And I have not any way to access this service to handle Property Groups in KM (Configuration -> Content Management -> Global Services ->  Property Structures -> Property Groups), if anyone can give me some help or any documentation on this topic which can lead me to the solutions, that would be great..!
    Thanks in advance
    Jonathan

    Hi,
    Refer following thread
    http://scn.sap.com/thread/777954
    http://scn.sap.com/thread/776486
    Regards,
    P.Manivannan

  • DFS and Windows 7 x64 strange behavior when trying to access a DFS link through mapped drive

    I've manually mapped a network drive (Q Drive) to a DFS location. Whenever I go into "My Computer" and open the Q Drive it shows the DFS links but when I double click one of the links it randomly takes me back to the "My Computer" starting point showing my standard drive letters. If I click through the Q drive and the DFS several time it all of the sudden works. Sometimes this circle of clicking can go on for 5-10 times before it works properly.
    I'm running the x64 edition of Windows 7.  Any suggestions on how to make this work properly? Its very annoying.

    GPO mapped namespace where you can't connect through the mapped drive letter but can connect through the DFS UNC namespace? Do you use access based enumeration?
    I personally think it has something to do with network bandwidth, the security token and offline files. =)
    You can access the namespace itself but not any of the linked shares (try checking the ACL:s on the shares and you get permission denied, but you still see them, ie they are listed).
    I found a post sometime ago about corrupted/trunkated security tokens. If the member was part of too many AD groups the token was trunkated and corrupted. That was going to be my next move. Sniff the traffic and see what actually happens when the issue occur
    if theres something to be learnt there. Since it works correctly through the UNC adress but not through the drive letter you ough to be able to see what is different between the two requests.
    http://blogs.technet.com/b/askds/archive/2008/05/14/troubleshooting-kerberos-authentication-problems-name-resolution-issues.aspx
    One thing I noted was that it only happened to remotely connected computers on slow 3G connections (we use Direct Access). Never on LAN-connected computers with GB access or remote computers with fast (>15Mbps) access. We also use folder redirection,
    which I think could be part of the problem, ie the share never goes online, atleast for us the issue was itermittent, it never happend all of the time, just from time to time. And if I disconnected and reconnected it could fix the issue for that particular
    sessions, usually it didn't but occasionally it did (just pulling the network cable and put it back). Check the offline/online status the folders show up as offline even though they are online.
    Enough of my ramblings. Sorry to hear you still have the problem and I hope you find a way to solve it.

  • I'm getting a Timeout when trying to access Simple Web Repository "/www"

    Hi there,
    I am sitting in front of a EP6 and when I am trying to add a new Data Source to my (TREX-)Index, the system gets me a timeout after about 70 seconds
    What I've done exactly: Add new Data Source -> Click on folder "www" -> wait -> Timeout].
    There are 64 Web addresses, I can see the folder contents when I open the "www"-Folder via WebDAV.
    About one hour ago the cache settings for "ca_websimple" were default... means:
    Cache Size (Max Cache Size) = 1 MB
    Cache Capacity (Capacity) = 200
    (this is the default setting for 1-5 web addresses - cf http://help.sap.com/saphelp_nw04/helpdata/en/ba/fa7d404d84cf62e10000000a155106/frameset.htm)
    I've now changed this settings to 25 MB and Capacity of 5000, but still the same.
    What can I do?
    Thanks in advance!
    BR,
    Markus Taxacher

    No, no... when I try to add a new Data Source to my Search Index, i muss select the data source via the KM Browser. Browsing to the www-Directory using the KM-Browser causes the Timeout (Reason: Unknown, give me the reason and we have the solution - I think)
    Browsing to this directory using the WebDAV functionality everything works (slowly, but works).
    Maybe 64 addresses are too much web addresses....?
    (But it worked before - not my portal installation, I'm just a holiday replacement)

  • I am trying to access my jsp pages through mod_ose

    When I enter the url to my context in my web browser it returns the error message:
    'Service Temporarily Unavailable'
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
    I have increased my processes, java pool size and shared pool size but I still get this message.
    Can you tell me what I am doing wrong?

    This happens very frequently during development, I just do ctrl+F5 in IE to keep refreshing till I finally get a response back from the jsp or servlet... usually it takes about 2-4 refreshes to get the jsp to respond and after that its smooth till you change the jsp or restart Apache. Also this problem, in my experience, is associated with Apache forwarding requests to OSE via mod_ose and I dont see this problem if I access the jsp directly using the database listener http endpoint.
    Hope this helps.

  • I am trying to access my airg account through my firefox and my laptop, it says I need to click "spoofs" on the menu bar, then click the "keep out radio" button. I cannot find these things

    I am not doing something right... I could just use some help. I do not have all the details

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Certificate error when trying to access exchange ECP/OWA through browser

    I am able to get into the log in screen and upon entering my creds "example\example" and my password I receive the following error:
    Server Error in '/ecp' Application.
    Invalid provider type specified.
    Description: An
    unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.Security.Cryptography.CryptographicException:
    Invalid provider type specified.
    Source Error:
    An unhandled exception was generated during the execution
    of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [CryptographicException: Invalid provider type specified.
    System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) +5368074
    System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle) +138
    System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair() +221
    System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey() +516
    Microsoft.Exchange.HttpProxy.FbaModule.ParseCadataCookies(HttpApplication httpApplication) +1222
    Microsoft.Exchange.HttpProxy.FbaModule.OnBeginRequestInternal(HttpApplication httpApplication) +254
    Microsoft.Exchange.HttpProxy.<>c__DisplayClass8.<OnBeginRequest>b__7() +1479
    Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(TryDelegate tryDelegate, FilterDelegate filterDelegate, CatchDelegate catchDelegate) +40
    Microsoft.Exchange.HttpProxy.Diagnostics.SendWatsonReportOnUnhandledException(MethodDelegate methodDelegate) +408
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
    Version Information: Microsoft .NET Framework
    Version:4.0.30319; ASP.NET Version:4.0.30319.34009 
    Any help/details on how to get this issue resolved would be greatly appreciated.
    Thanks!

    I am sure you are using exchange 2010 or later. Using this utility to see what certificate you have.
    you will need a SAN certificate.
    To check and import certificate properly use this digicert util
    https://www.digicert.com/util/
    Check this.
    http://exchangeserverpro.com/exchange-2010-ssl-certificates/

  • Getting error response while trying to access REST webservice through Powerbuilder

    Hi Team,
    I am trying to access a rest webservice through powerbuilder 12.5(.net).The rest webservice is secured through basic authentication.I am passing the userid and password through powerbuilder to acess the service,But its returning an error .But while i am trying to accss the same REST webservice through SOAPUI, i am able to get the response.
    Please find the below line of code which i have written in powerbuilder.
    p_testcleint2 lp_rest
    string ls_string
    lp_rest=create p_testcleint2
    PBWebHttp.WebClientCredential lsCredential             //configure credentials
    lsCredential = create PBWebHttp.WebClientCredential
    lsCredential.AccessAuthentication = PBWebHttp.AuthenticationMode.Basic!
    lsCredential.Password='Pa$$word1!'
    lsCredential.Username='admin'
    lp_rest.restConnectionObject.ClientCredential = lsCredential  //add credentials to connection
    try
       lp_rest.PostMessage()
    catch (System.Exception ee)
      messagebox("Failure",string(ee.Message))
    end try
    Error i am getting as below :
    The remote server returned an error:(401) unauthorized.
    Can you please let me know why this error is coming or do i need to any extra paramert in the lsCredential to handle this.
    Thanks in advance.
    Regards
    Subrat

    Hi Chris,
    Thanks for the reply.
    Yes i checked -in fiddler, the basic authentication request is not generating in the fiddler.
    In the same Rest service if i turned off the basic authentication then call is happening in Powerbuilder and its displaying in fiddler also.
    Regards
    Subrat

  • After accessing a web site through a link I get the message file not found when trying to access it again.

    This has happened on several sites. I have tried to access the same links through Chrome and do not have a problem there.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    *https://support.mozilla.org/kb/Clear+Recent+History
    Are you using cleanup software like CCleaner or other software that may corrupt the cache?
    You can try to delete the entire cache folder.<br />
    You can find the location of the cache folder on the about:cache page (open via the location bar, like a web page).
    You can check the <b>browser.cache.disk.enable</b> pref on the <b>about:config</b> page to verify that the disk cache is enabled (should be true).

  • Error while connecting to Repository through Data Manager

    Hi Experts,
    I am able to access MDM server through MDM Console, Here mainlyI got two errors.
    Error 1:- I am not able to create new repository through Console.when I click on "create Repository" option in Console,it will try to connect DBMS server to create.at the same time I have given Database credentials.It was giving error like" Unable to connect to DBMS server".
    Error 2:- I have some repositories in my MDM server.already one repository is running.I am trying to access the running repository in Data Manager as well in as Import Manager and Syndicator.at the same time I am not able to connect to repository giving error like "Repository not loaded".
    Note: all the necessary ports are opened as per SAP standard.
    Please help me regarding this.if anybody have idea about this.
    Thanks in advance,
    Ravi.

    Hi Ravi,
       Steps to load a repository
       1) Load the MDM server
       2) Start MDM server
       3) There you will find list of repositorys
       4) If required login into the repository
            This is the main step you got to perform to solve your second problem
       5) Right click the Repository and select 'Load Repository' and then 'Immediate'
           This will load the repository and you can work on the repository from any where either IM,DM or syndicator.
      For the first error check wether you have given the proper path for your DBMS server; if you give it right it wont give u any error. If its in local system then by default it be in the list. Else you got to provide the system name where the server is there.
      In case of any othere issuse please let me know.
    Regards,
    CHARAN

Maybe you are looking for

  • Am I the only one with these various problems...??

    Hi all, I start my first post and introduction ever on this forum with a imposing problem with Aperture 3.03 I just did the upgrade to Aperture 3 & 3.03. Coming off Aperture 2, I was able to rotate, crop and do all the things I wanted by just placing

  • Service Contract (VA41/VA42) Outbound IDOC Details

    Hi , I have to send the changes in the Service contract from SAP to Third party system when ever contract is changed.I am able to send the IDOC with the output type KO00 and process code SD10 but it doesn't contain any contract details like start dat

  • JCo Server High Availability

    How can I make the JCo server implement "High Availability" functionality. The SAP Server which the makes calls to the JCo Server is HA-aware. So if there is a failover, the SAP Server switches over to the other instance but the JCo server keeps send

  • Images being over-written when using MECCM

    Hi, We are using MDM catalog with SRM7.0. We are adding the images in the data manager. We have also added the field image to be displayed in the catalog. But every time we run MECCM, for uploading new data, the images stored for the previously for m

  • IOS6 - an image in the Mail signature, possible?

    Hi there, I just set up a signature in my iPhone (iOS6). It is composed by txt and a small image that features the logo of my company. I copied the image from an email previously received  on the iPhone and I pasted it in the signature field under Se