-
Couldn't load subscription status.
- Fork 230
pom.xml changes for running FirstHop.java with jackrabbit 2.22.x #301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
Using the latest stable release Apache Jackrabbit 2.22.x (Java 11 and later), I am trying to run example FirstHop.java and it failed with several errors. Including JDK version, which was given as 1.5 in the pom before, missing dependency for jackrabbit-jcr-commons. Another Problem was Derby 10.15.2.0 had EmbeddedDriver class location changes which resulted in javax.jcr.RepositoryException: Cannot instantiate persistence manager org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager Caused by: java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver Made changes to pom.xml file to Derby 10.14.2.0 for compatibility reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review the changes.
|
I got this runtime error while trying to run the FirstHop example class. Exception:- Attached the complete stack trace. |
|
I am (with my changes) getting: |
|
I do see the main method in the Java file (Github). Are you compiling it in Jdk11?
|
|
Yes. This is really strange. |
|
Did you apply the pom.xml changes from this pull request for running FirstHop locally. |
|
Please check with my changes in https://issues.apache.org/jira/browse/JCR-5198 (#302) |
|
Yes I get the same error with your pom.xml changes. May be classloading issue with the Maven exec plugin... |
Ran the commands in the following sequence. mvn clean compile, mvn dependency:build-classpath -Dmdep.outputFile=classpath.txt java -cp "target/classes:$(cat classpath.txt)" org.apache.jackrabbit.firsthops.FirstHop and received the expected output. Logged in as anonymous to a Jackrabbit repository.
|
Please review the changes again |
From examples, FirstHop doesn't work as is from GitHub when 2.22.x is installed.
Made changes to pom.xml to address following issues