You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Bill <tr...@gmail.com> on 2007/11/01 03:39:08 UTC
Quick clarification on FirstHop example?
Hi folks,
After some Maven fun, I've got Jackrabbit built and was experimenting
with FirstHop.java. It compiles fine once classpaths are set right..
but no "logged in" output is generated.
So that leads me to two basic questions:
1) Should this sample work all by itself?
2) If yes, what are some common failure causes I could dig into?
Originally I'd thought maybe the example needed a pre-config'd
repository to attach to. But the code explanation seems to indicate
it's fully standalone, "hello world" style.
If it is standalone and should be working I'm happy to dig, read and
experiment, but it would be extremely useful to get some pointers as
to what potential points of failure to look into first. System and
version specifics are:
- Jackrabbit 1.3.3
- Built with Maven 2.1(due to JCR-1192 (javacc\fulltext issue))
- JDK 1.6.0_33
- Windows XP
Thanks,
-Bill
Re: Quick clarification on FirstHop example?
Posted by Bill <tr...@gmail.com>.
Thanks, I'll give that a shot. I had hoped Maven would make the
first-time use easier, given how much it's promoted in the docs, but
so far it created more work than it solved.
Nothing at all is coming out on the console, and when I try to add a
catch on RepositoryException it complains that it's never thrown by
the methods. Which is, err, odd, considering the documentation says
otherwise?
Next step is I'm going to bring it over to a Linux env, as well as
Eclipse on both platforms, and see if perhaps it's Windows being
obnoxious..
Thanks,
-Bill
On 11/1/07, loproman <lo...@gmail.com> wrote:
>
> Hey Bill,
>
> I recently installed Jackrabbit 1.3.3 from scratch, but I didn't build from
> Maven. I used the 1.0 files posted in the first hops tutorial, then replaced
> the jackrabbit-1.0 jar file with the latest jackrabbit-jcr-commons,
> jackrabbit-core, jackrabbit-api and jackrabbit-text-extractors. I also
> replaced lucene-1.4.3.jar with
> lucene-core-2.0.0.jar, and replaced derby-10.1.3.1.jar with
> derby-10.3.1.4.jar. After doing so, I was able to run the example and see
> output after adding the jars to the classpath.
>
> Do you see any exceptions printing out to a console? Have you tried
> modifying the example to catch exceptions that you can print out?
>
> Hope this helps.
>
>
>
>
> Bill-123 wrote:
> >
> > Hi folks,
> >
> > After some Maven fun, I've got Jackrabbit built and was experimenting
> > with FirstHop.java. It compiles fine once classpaths are set right..
> > but no "logged in" output is generated.
> >
> > So that leads me to two basic questions:
> >
> > 1) Should this sample work all by itself?
> > 2) If yes, what are some common failure causes I could dig into?
> >
> > Originally I'd thought maybe the example needed a pre-config'd
> > repository to attach to. But the code explanation seems to indicate
> > it's fully standalone, "hello world" style.
> >
> > If it is standalone and should be working I'm happy to dig, read and
> > experiment, but it would be extremely useful to get some pointers as
> > to what potential points of failure to look into first. System and
> > version specifics are:
> >
> > - Jackrabbit 1.3.3
> > - Built with Maven 2.1(due to JCR-1192 (javacc\fulltext issue))
> > - JDK 1.6.0_33
> > - Windows XP
> >
> > Thanks,
> > -Bill
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Quick-clarification-on-FirstHop-example--tf4729159.html#a13525031
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>
Re: Quick clarification on FirstHop example?
Posted by loproman <lo...@gmail.com>.
Hey Bill,
I recently installed Jackrabbit 1.3.3 from scratch, but I didn't build from
Maven. I used the 1.0 files posted in the first hops tutorial, then replaced
the jackrabbit-1.0 jar file with the latest jackrabbit-jcr-commons,
jackrabbit-core, jackrabbit-api and jackrabbit-text-extractors. I also
replaced lucene-1.4.3.jar with
lucene-core-2.0.0.jar, and replaced derby-10.1.3.1.jar with
derby-10.3.1.4.jar. After doing so, I was able to run the example and see
output after adding the jars to the classpath.
Do you see any exceptions printing out to a console? Have you tried
modifying the example to catch exceptions that you can print out?
Hope this helps.
Bill-123 wrote:
>
> Hi folks,
>
> After some Maven fun, I've got Jackrabbit built and was experimenting
> with FirstHop.java. It compiles fine once classpaths are set right..
> but no "logged in" output is generated.
>
> So that leads me to two basic questions:
>
> 1) Should this sample work all by itself?
> 2) If yes, what are some common failure causes I could dig into?
>
> Originally I'd thought maybe the example needed a pre-config'd
> repository to attach to. But the code explanation seems to indicate
> it's fully standalone, "hello world" style.
>
> If it is standalone and should be working I'm happy to dig, read and
> experiment, but it would be extremely useful to get some pointers as
> to what potential points of failure to look into first. System and
> version specifics are:
>
> - Jackrabbit 1.3.3
> - Built with Maven 2.1(due to JCR-1192 (javacc\fulltext issue))
> - JDK 1.6.0_33
> - Windows XP
>
> Thanks,
> -Bill
>
>
--
View this message in context: http://www.nabble.com/Quick-clarification-on-FirstHop-example--tf4729159.html#a13525031
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Quick clarification on FirstHop example?
Posted by Bill <tr...@gmail.com>.
Hi Thomas,
> Do you use Eclipse?
Nope, pure command-line at the moment.
> Is there an exception, or other output?
Nothing being thrown. I tried adding an import for
RepositoryException, and catching on that, for the try block, but I
get the "is never thrown" complaint from the compiler... which is odd
because both of the first two calls in the block are from
TransientRepository and the docs state that they can throw a
RepositoryException..
> > - JDK 1.6.0_33
>
> Where did you download this? ;-)
>From the future! :) Yeah, my bad.. _03, not _33.
Thanks,
-Bill
Re: Quick clarification on FirstHop example?
Posted by Thomas Mueller <th...@gmail.com>.
Hi,
Do you use Eclipse?
mvn eclipse:eclipse
should generate the project. mvn eclipse:clean remove the project.
> but no "logged in" output is generated.
Is there an exception, or other output?
> 1) Should this sample work all by itself?
Yes
> Originally I'd thought maybe the example needed a pre-config'd
> repository to attach to. But the code explanation seems to indicate
> it's fully standalone, "hello world" style.
The repository should be created if it does not exist
> - JDK 1.6.0_33
Where did you download this? ;-)
Thomas