Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1500

Unable to get repository for JNDI name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.0.0.Alpha5
    • 3.0.0.Alpha4
    • None
    • None
    • Hide

      Lookup repo with params:

      Map<String, String> params = new HashMap<String, String>();
      params.put(org.modeshape.jcr.api.RepositoryFactory.URL, "jndi:jcr/local");
      params.put(org.modeshape.jcr.api.RepositoryFactory.REPOSITORY_NAME, "RepoName");
      
      Show
      Lookup repo with params: Map< String , String > params = new HashMap< String , String >(); params.put(org.modeshape.jcr.api.RepositoryFactory.URL, "jndi:jcr/local" ); params.put(org.modeshape.jcr.api.RepositoryFactory.REPOSITORY_NAME, "RepoName" );

      The JNDI name lookup /jcr/local/RepoName is not working. The only way to get the repo is using both parameters: URL=/jcr/local and REPOSITORY_NAME=RepoName. The JndiRepositoryFactory hides the lookup NamingException on line 281, by returning null. At least an error or warning message would be useful, even if other factories might be able to resolve the repository?

              rhauch Randall Hauch (Inactive)
              cluxig Carsten Luxig (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: