すべてのバージョン
Fisheye 4.2 ドキュメントFisheye 4.1 ドキュメント
Fisheye 4.0 ドキュメント
その他...
FishEye can use a native Subversion client installed on your system, but your client needs to be version 1.2 or later, and must include the JavaHL bindings. FishEye can use all of the protocols supported by your native client.
The JavaHL bindings include a Java .jar file, typically named javasvnhl.jar, and a dynamic library such as libsvnjavah-1.so or libsvnjavahl-1.dll. FishEye must be configured so it can find both the .jar and the dynamic library.
If the JavaHL dynamic library is in your library path (such as %PATH% on Windows), then FishEye will automatically find it. Otherwise you can tell FishEye where it is, or set the FISHEYE_LIBRARY_PATH environment variable before starting FishEye.
Pre-compiled native clients are available for most platforms. The Subversion download page links to platform specific distributions. Ensure you get the binary that includes JavaHL bindings, as well as the standard package. Also ensure that the versions of the JavaHL and standard packages match.
svn-X.Y.Z-setup.exe and the JavaHL installer file is named svn-win32-X.Y.Z_javahl.zip where 'X.Y.Z' refers to the version number (for example, svn-win32-1.4.6_javahl.zip at the time of writing).Subversion for Fedora Linux:
For Linux systems using the yum package manager (such as Fedora Core 3 and above) you can type the following:
yum install subversion-javahl
at the Linux command line interface to install the JavaHL bindings for Subversion. Note that this will also install the standard Subversion library, which is required.
Subversion for Ubuntu and Debian Linux:
For Linux systems using the apt-get package manager (such as Debian and Ubuntu) you can type the following:
apt-get install libsvn-javahl
at the Linux command line interface to install the JavaHL bindings for Subversion. Note that this will also install the standard Subversion library, which is required.
There are two ways you can configure the path to your Subversion client: Via the FishEye user interface, or by editing the config.xml configuration file.
You can configure your Subversion client in the FishEye Administration screens, under Admin > Server Settings > Subversion Client.
JAR | The path to the JavaHL |
Dynamic library | The path to the dynamic library, if it is not already on your system's library path. |
An alternative method to using the FishEye user interface is editing the <svn-config> section of your config.xml. If you change these settings, you need to restart FishEye.
Windows Platform Example (change path locations as required)
<svn-config jar="C:\subversion\lib\svn-javahl.jar" jnilib="C:\subversion\lib\libsvnjavahl-1.dll"/>
Mac OS X Platform Example (change path locations as required)
<svn-config jar="/opt/subversion/lib/svn-javahl/svn-javahl.jar" jnilib="/opt/subversion/lib/libsvnjavahl-1.dylib"/>
Linux Platform Example (change path locations as required)
<svn-config jar="/usr/share/subversion/lib/svn-javahl.jar" jnilib="/usr/lib/libsvnjavahl-1.so"/>
In general, using the JavaHL libraries should improve the speed of FishEye's indexing when compared to SVNKit, primarily because of the advantage of native code. However, some customers have experienced more peak memory usage (some more than 2GB) during indexing when using JavaHL implementations due to greedier processing. This is generally not a major concern, but your own performance requirements may vary.
If you need to allocate more than 2gb for the indexing to complete, please run Fisheye with a 64-bit JDK
11 Comments
Anonymous
May 12, 2010Under centos 5.4, the javahl that can be installed with YUM does not work.
Caused by: java.lang.ClassNotFoundException: org.tigris.subversion.javahl.LogMessageCallback
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
... 14 more
Caused by: java.lang.ClassNotFoundException: org.tigris.subversion.javahl.LogMessageCallback
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
... 14 more
Benson Margulies
May 14, 2010The Apache Subversion project no longer includes the javahl JAR file in their RPM and other packages. They assume that people like you will incorporate the JAR. Therefore, it would be a good thing if you would start shipping the JAR and update this page.
Conor
May 27, 2010We ship svnkit with FishEye to provide a simple 100% java solution to svn integration. It requires no additional deployments, no additional configuration and works across multiple platforms.
We're reticent to include the native JavaHL jar with FishEye itself. The deployed jar needs to be compatible with the rest of the Subversion installation in general and the supporting JNI library in particular. If the JNI library is not compatible, we'll be dealing with issues like UnsatisfiedLinkError as opposed to ClassNotFound errors. While there is some version latitude between the jar and the supporting library, if the deployed JNI library is too old (as would be the case for the CentOS poster above) we're back to the same problem.
We have found, in general, that those Subversion installations that don't include or offer the jar generally also do not include the JNI shared library.
Chad Barnes
Oct 19, 2011Unfortunately the SVNKit layer is not 100% functional. See https://jira.atlassian.com/browse/FE-3577. And, in my experience, the native library (dll) is included in about every win32 distribution, but the jar is not.
I think it is safe to say native JavaHL is 100% functional, but has its own configuration challenges.
Anonymous
Feb 24, 2011Fisheye not starting after you followed these directions?
Does the error start with:
ERROR - Context initialization failed
java.lang.NoClassDefFoundError: com/sun/jna/Library
See http://confluence.atlassian.com/display/FISHKB/Fisheye+2.5+upgrade+fails+with+java.lang.NoClassDefFoundError
Chad Barnes
Oct 19, 2011I recommend adding to the "Performance Impact of Native Client" section a recommendation to use the 64-bit native JavaHL library if repository indexing causes Fisheye to crash with an OutOfMemory error. Our native client would throw an OutOfMemoryError when indexing, causing fecru to crash. Switching to a 64-bit SVN distribution and 64-bit DLL resolved that issue.
Chad Barnes
Oct 20, 2011Re: "If you need to allocate more than 2gb for the indexing to complete, please run Fisheye with a 64-bit JDK"
I think it is important to note that a 64-bit SVN distribution with 64-bit DLL must be used in addition to the 64-bit SDK. It is the SVN distribution that throws the OutOfMemory error.
childnode
Jan 24, 2012Anonymous
Jan 27, 2012We have just migrated from Trac to JIRA/Confluence/FishEye. Are there plans for a native mac GUI for SVN like you provide for git (SourceTree)?
childnode
Jan 30, 2012Why do you don't use SourceTree with git-svn?
This is supported, works as expected, and on each "commit" user is able to check the box "push commits immediately to Subversion"
I expect that a product like SourceTree will not implement native SVN support while svn is getting "deprecated" and the number of decentralized teams is growing each day.
There are also good reasons to switch to hq-svn or git-svn to improve your team skills with these tools and slowly migrate to a DVCS without the "hard cut".
If you're looking for a good GUI native SVN tool, see Versions or smartSVN where smartSVN is my favorite since it's available for all platforms and teams are not bound to a single OS.
So "give git a hug"
Anonymous
Apr 25, 2012We have several problems with SVNKit with other products as well as Fisheye/Crucible.
About Atlassian specifically, the FishEye issue FE-1071 is terribly annoying.