Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 83317 invoked from network); 21 Sep 2006 18:18:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2006 18:18:15 -0000 Received: (qmail 80529 invoked by uid 500); 21 Sep 2006 18:18:14 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 80519 invoked by uid 500); 21 Sep 2006 18:18:14 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 80510 invoked by uid 99); 21 Sep 2006 18:18:14 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Sep 2006 11:18:14 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=edgarpoce@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=edgarpoce@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.92.173 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.92.173] ([66.249.92.173:37800] helo=ug-out-1314.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 62/01-03726-167D2154 for ; Thu, 21 Sep 2006 11:18:10 -0700 Received: by ug-out-1314.google.com with SMTP id m3so926382uge for ; Thu, 21 Sep 2006 11:18:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kAcFrpdACCNarFa/v+vjS27EiyMqLQ+25VvVfLJxyZsSVf5vQMkE/5JJe/tP92tFMzk9mXNcCYwdbr+i0UkEqucrNzltjpKYlFotrkdPwO9IEB56OHn5YOXjfdJV69a0VZ1ZsC62NmXIFwrPCKU5DuKsQ3/GtUn1bhIMVO+bDGw= Received: by 10.67.93.7 with SMTP id v7mr9544013ugl; Thu, 21 Sep 2006 11:18:06 -0700 (PDT) Received: by 10.67.20.12 with HTTP; Thu, 21 Sep 2006 11:18:06 -0700 (PDT) Message-ID: <8a83c96b0609211118vd138e0dw709a7dcbfbfe3ec0@mail.gmail.com> Date: Thu, 21 Sep 2006 15:18:06 -0300 From: "Edgar Poce" To: users@jackrabbit.apache.org Subject: Re: Error adding repository using jackrabbit snapshot 1.1: "Object bound not of type javax.jcr.Repository: found a (org.apache.jackrabbit.jca.JCAResourceAdapter)" In-Reply-To: <158181F2D023A0418EDA9EF394BBC015016AE4C9@exchange.netcompany.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8a83c96b0609200501s33d1cb04y908bdb44e701a8e6@mail.gmail.com> <158181F2D023A0418EDA9EF394BBC015016AE4C9@exchange.netcompany.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Jesper, On 9/21/06, Jesper Klitgaard wrote: > Hello Edgar, > > It's a shame that you can't test the connection from the portal. This is = really here we are stuck. We've looked in the BEA online doc describing how= to connect a jsr170 compliant repository. We've used the configuration des= cribed by the documentation (which you also pointed out in your last e-mail= ). > > When we make the connection this is where we receive the exception: > "Object bound not of type javax.jcr.Repository: found a (org.apache.jackr= abbit.jca.JCAResourceAdapter)". This is where we are stuck. > > I think BEA are missing documentation that describes the exact connection= and configuration between the weblogic-ra.xml, ra.xml and the configuratio= n screen in the PAC specific for jackrabbit. Also I find it disturbing that= BEA haven't tested and documented connecting to jackrabbit, which is the r= eference implementation of jsr170. Just a personal aspect. > > So I believe that our problem is caused by BEA and not the jackrabbit imp= lementation. What is your opinion on this? > Sorry, I don't hate BEA for now ;). My little experience with weblogic was quite pleasant, the only documentation I needed I found it quickly and it was comprehensive enough to make things work rapidly. And the documentation for connecting from the portal seems quite good also. I'm probably wrong, but I think you should check again your configuration settings. br, edgar > Med venlig hilsen / regards > Jesper Klitgaard > Consultant > > Netcompany - IT and business consulting > Gr=F8nningen 19 > DK-1270 K=F8benhavn K > Denmark > Mobile: +45 22 28 29 73 > Phone: +45 70 13 14 40 > Fax: +45 70 13 14 50 > E-mail: jkl@netcompany.com > > www.netcompany.com > -----Original Message----- > From: Edgar Poce [mailto:edgarpoce@gmail.com] > Sent: 20. september 2006 14:01 > To: users@jackrabbit.apache.org > Subject: Re: Error adding repository using jackrabbit snapshot 1.1: "Obje= ct bound not of type javax.jcr.Repository: found a (org.apache.jackrabbit.j= ca.JCAResourceAdapter)" > > Hi jesper, > > According to the doc you should deploy the resource adapter as any > other application. > i.e add the weblogic-ra.xml file I sent in the rar file under the > folder META-INF. > > Just to be sure it's working as expected you can deploy the webdav > server and check it connects successfully. Use the web.xml bellow. you > should be able to connect to the default workspace at > http://localhost:7001/jackrabbit-server/repository/default > > Now, the last step is to connect from the portal, I can't help you > very much on this because I downloaded the free version which doesn't > include the portal. But according to the doc you should configure > weblogic to access the repository by setting the following properties: > > Name: myRepository > ConnectionClass: com.day.content.spi.jsr170.JNDIRepository > Username: weblogic (in case you didn't change the default installation) > Password: weblogic (in case you didn't change the default installation) > jsr170.workspace: default > jsr170.jndi.name: jackrabbit > > Hope this helps, > edgar > > ---------------------------- web.xml > ------------------------------------------ > > > Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> > > Jackrabbit JCR Server > > > > > > Logging > The logging servlet configures the Log4J logging > facility. > org.apache.jackrabbit.j2ee.LoggingServlet > > > log4j-config > /WEB-INF/log4j.xml > initial log4j configuration > > > 1 > > > > > > > > > > > > > > > > Repository > > This servlet provides other servlets and jsps a common way to= access > the repository. The repository can be accessed via JNDI, > RMI or Webdav. > > org.apache.jackrabbit.j2ee.RepositoryAccessServlet= > > > repository-name > jackrabbit > Repository Name that is used to retrieve it > via JNDI > > > > > > > > > 3 > > > > > > > Webdav > > The webdav servlet that connects HTTP request to the reposito= ry. > > org.apache.jackrabbit.j2ee.SimpleWebdavServlet > > > resource-path-prefix > /repository > > defines the prefix for spooling resources out of the repo= sitory. > > > > > > > resource-config > /WEB-INF/config.xml > > Defines various dav-resource configuration parameters. > > > 4 > > > > > > > JCRWebdavServer > > The webdav servlet that connects HTTP request to the reposito= ry. > > org.apache.jackrabbit.j2ee.JCRWebdavServerServlet<= /servlet-class> > > > > resource-path-prefix > /server > > defines the prefix for spooling resources out of the repo= sitory. > > > 5 > > > > > > > Webdav > /repository/* > > > JCRWebdavServer > /server/* > > > > On 9/20/06, Jesper Klitgaard wrote: > > Hello Edgar, > > > > It's nice to hear that someone has succeeded in connecting jackrabbit > > 1.1 to weblogic. > > > > We changed our weblogic-ra file to match the one you provided but it's > > not clear to us what values to use during the configuration in the > > weblogic Portal Administration Console (when adding the repository). We > > use the following: > > > > Name: jackrabbit *?* > > Connection class: > > com.day.content.spi.jsr170.JNDIRepository > > username: weblogic > > password: weblogic > > retype password: weblogic > > Enable library services: false > > > > The repository is then shown in the repository tree, but it says it > > can't connect. Then we add the two following properties to our > > repository: > > > > jsr170.workspace default > > jsr170.jndi.name jackrabbit *?* > > > > *?* =3D we are not sure if these values are the correct ones to use > > > > We are using the following document from BEA to configure our > > repository: > > http://e-docs.bea.com/wlp/docs92/pdf/day170adapter_developers_guide.pdf > > > > Regards > > Jesper Klitgaard > > > > -----Original Message----- > > From: Edgar Poce [mailto:edgarpoce@gmail.com] > > Sent: 19. september 2006 09:11 > > To: users@jackrabbit.apache.org > > Subject: Re: Error adding repository using jackrabbit snapshot 1.1: > > "Object bound not of type javax.jcr.Repository: found a > > (org.apache.jackrabbit.jca.JCAResourceAdapter)" > > > > Hi Jesper, > > > > I installed weblogic and after following the jca connector > > instructions at [1] I found that your weblogic-ra file is wrong. Try > > the descriptor bellow. It works in my environment: weblogic 9.2 in xp. > > I'll add the how-to to the wiki asap. > > > > br, > > edgar > > > > ps, thanks for the fast try of the 1.1-snapshot, and please let us > > know how the connection leak fix worked. > > > > [1] http://edocs.bea.com/wls/docs92/resadapter/connect.html > > > > > > > > > > > > > > > > > > > > jackrabbitRA > > > > true > > > > true > > > > > > > > > > > > javax.jcr.Repository > nterface> > > > > > > jackrabbit > > > > > > > > > > 2 > > 10 > > 1 > > true > > > > 60 > > > > > > > > > > HomeDir > > > > /temp/jackrabbit > > > > > > > > ConfigFile > > > > /temp/jackrabbit/repository.xml > > > > > > > > > > > > > > > > > > > > > > > > > > > > >