tag:blogger.com,1999:blog-8923925623275189276.post7918569840740284879..comments2022-11-14T17:57:45.950-06:00Comments on No problem: OpenGrok on Ubuntu w/ Tomcat6Mike Partridgehttp://www.blogger.com/profile/02371913846748109417noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-8923925623275189276.post-73238787472698065532014-09-08T06:49:13.042-05:002014-09-08T06:49:13.042-05:00Hi Mike,
I installed OpenGrok 0.12.1, Oracle JDK 1...Hi Mike,<br />I installed OpenGrok 0.12.1, Oracle JDK 1.7 and tomcat7.I changed some directory and web.xml config as well.When i deploy it's creating webapp in tomcat7.Now I try to search webapp from URL it showing HTTP Status 404 - /TEST_12.1/. Please help me to resolve the issue. A.T.M. Alaul Haquehttps://www.blogger.com/profile/07631470602183720020noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-1835855050141854912014-05-30T03:39:58.657-05:002014-05-30T03:39:58.657-05:00Hi Mike,
Many thanks to your guide to install Open...Hi Mike,<br />Many thanks to your guide to install Opengrok. I successfully run a OpenGrok by following your instruction with some directory change to where i want.<br />I installed it with OpenGrok 0.12.1, Oracle JDK 1.7 and tomcat7.CraigFuhttps://www.blogger.com/profile/12436522368836147510noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-60988894563745963112011-11-07T21:52:30.081-06:002011-11-07T21:52:30.081-06:00@godandme - the index generation process should ig...@godandme - the index generation process should ignore any projects that haven't changed since the last time it was run, so the index for your Linux kernel source will only be updated if your working copy has changed.Mike Partridgehttps://www.blogger.com/profile/02371913846748109417noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-49523855002230894112011-11-07T07:18:42.732-06:002011-11-07T07:18:42.732-06:00This is really useful Mike. One more question, how...This is really useful Mike. One more question, how can I have multiple index of different source tarballs generated? Let say, I first generated the index for Linux kernel (and I have configuration.xml prepared). Now I want to download another source (for example freeBSD source) and generate the another index, how would i do that? If I use the above command which you mentioned, it will again generate the index for Linux source as well.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-72576611435886216052011-03-24T11:34:01.343-05:002011-03-24T11:34:01.343-05:00@Sujit - it looks like symlinks are supported with...@Sujit - it looks like symlinks are supported with the use of the -N /path/to/symlink option, though I haven't tested it.Mike Partridgehttps://www.blogger.com/profile/02371913846748109417noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-38146552879182370502011-03-06T10:12:44.629-06:002011-03-06T10:12:44.629-06:00Thanks Mike. It worked.
I have another question. I...Thanks Mike. It worked.<br />I have another question. I am trying to index whole linux kernel which is in one of my mountable partition. For this I have created a symlink to the original linux-kernel directory. The indexing seems to be fine but when I browse I get "The requested resource is not available." Is symlink parsing support available in opengrok? When I copy files into my src directory everything seems to be working fine.Unknownhttps://www.blogger.com/profile/08684523524957342786noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-55837411595367831682011-03-04T19:00:39.823-06:002011-03-04T19:00:39.823-06:00I haven't tried that myself, but I don't b...I haven't tried that myself, but I don't believe OpenGrok has any authentication mechanism built-in.Mike Partridgehttps://www.blogger.com/profile/02371913846748109417noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-68993181173014062782011-03-04T16:13:24.545-06:002011-03-04T16:13:24.545-06:00I would like to protect our code browser with user...I would like to protect our code browser with user authentication mechanism. Could you let me know if I could achieve it with opengrokUnknownhttps://www.blogger.com/profile/14817250856698943739noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-88601405278638858862011-02-23T22:23:23.587-06:002011-02-23T22:23:23.587-06:00A NoClassDefFoundError generally means that you...A NoClassDefFoundError generally means that you're missing a library jar; in this case the package of the missing class is org.apache.lucene. Lucene is the text search engine library that OpenGrok uses to index your source code, and is the reason for its speed and search syntax. <br />Unzip any jar file, and you'll find META-INF/MANIFEST.MF, which defines in the Class-Path entry the relative location of its libraries:<br />Class-Path: lib/ant.jar lib/bcel-5.2.jar lib/jrcs.jar lib/servlet-api.<br /> jar lib/swing-layout-0.9.jar lib/lucene-core-3.0.2.jar lib/lucene-spe<br /> llchecker-3.0.2.jar lib/derbyclient.jar lib/derby.jar<br />What this means is that you need a lib/ subdirectory adjacent to opengrok.jar with the jars listed, so make sure you include lib/ when you're copying opengrok.jar in step 3.Mike Partridgehttps://www.blogger.com/profile/02371913846748109417noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-12402708810432526872011-02-20T08:39:20.726-06:002011-02-20T08:39:20.726-06:00Mike, excellent write up for installing opengrok i...Mike, excellent write up for installing opengrok in ubuntu.<br /><br />I have a problem in creating indexes as mentioned in step 5. I don't work on Java nor i know meaning of exceptions in java. Can you help me out with below error when I execute step 5.<br /><br />-------------------------------<br />Feb 20, 2011 8:05:32 PM org.opensolaris.opengrok.index.Indexer doIndexerExecution<br />INFO: Starting indexing<br />Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/store/LockFactory<br /> at org.opensolaris.opengrok.index.Indexer.doIndexerExecution(Indexer.java:607)<br /> at org.opensolaris.opengrok.index.Indexer.main(Indexer.java:460)<br />Caused by: java.lang.ClassNotFoundException: org.apache.lucene.store.LockFactory<br /> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)<br /> at java.security.AccessController.doPrivileged(Native Method)<br /> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)<br /> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)<br /> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)<br /> ... 2 more<br />-------------------------------------<br /><br />My java version "1.6.0_22"Unknownhttps://www.blogger.com/profile/08684523524957342786noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-25241021291915212952011-01-20T06:07:11.806-06:002011-01-20T06:07:11.806-06:00Excellent Guide. Thank you very much Mike.Excellent Guide. Thank you very much Mike.Unknownhttps://www.blogger.com/profile/14490916883239499959noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-64746984786135964842011-01-10T09:12:31.196-06:002011-01-10T09:12:31.196-06:00@Mahendra - I don't have any experience with o...@Mahendra - I don't have any experience with other languages in OpenGrok, sorry.Mike Partridgehttps://www.blogger.com/profile/02371913846748109417noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-57638348291889700142011-01-09T23:30:33.391-06:002011-01-09T23:30:33.391-06:00Thank you again... I could define different webapp...Thank you again... I could define different webapp context using -w option... <br />One more thing I'm trying is to have multibyte characters (japanese) in opengrok... I don't want those in index but should be readable at-least in web page (xref). Any help on this?Mahendrahttps://www.blogger.com/profile/15526447349053997646noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-32881852912617324022011-01-07T09:38:05.513-06:002011-01-07T09:38:05.513-06:00@Mahendra - each directory within your OpenGrok so...@Mahendra - each directory within your OpenGrok source directory will be treated as a separate project when you use the -P option (as above) during index generation, so you may want to export or checkout each of the products you want to browse/search to the OpenGrok source directory. <br />I do the same when I don't want to export an entire repository - I just export the projects that I care about, then generate the index with -P.<br /><br />A couple of other points:<br />You can always restrict your search to the current directory tree while browsing by using the checkbox next to the search field at the top of the page.<br />Also, you can define the webapp context used in source code links by using the -w option during index generation. This is necessary to make links work if you change the war name from the default, as I do in step 5 above.Mike Partridgehttps://www.blogger.com/profile/02371913846748109417noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-40850074579794730482011-01-06T23:45:44.732-06:002011-01-06T23:45:44.732-06:00Thanks for the post...
But, I'm trying to setu...Thanks for the post...<br />But, I'm trying to setup OpenGrok for sources of three different products, and their source roots are not under common root directory. Besides, I want to narrow down the searches of different products's source to just that source root.<br /><br />So, I thought setting up different contexts and setting up different .war files to deploy on Tomcat would do the trick. But, unfortunately, for some source code elements, it just defaults to /source/s=? and it doesn't find the element. I know the element is defined in the source code...<br /><br />Any extra docs you can put out for this kind set up would be great.Mahendrahttps://www.blogger.com/profile/15526447349053997646noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-4509286949762901732010-11-22T14:31:20.317-06:002010-11-22T14:31:20.317-06:00I've never setup OpenGrok for Mercurial, sorry...I've never setup OpenGrok for Mercurial, sorry. If the repository isn't local, make sure to use the "-r on" option.Mike Partridgehttps://www.blogger.com/profile/02371913846748109417noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-50051759714833473822010-11-21T17:09:30.184-06:002010-11-21T17:09:30.184-06:00Thanks for the post -- I found this very helpful! ...Thanks for the post -- I found this very helpful! I'm still trying to get the history search working (with Mercurial)...any tips would be appreciated!Jon Szymaniakhttps://www.blogger.com/profile/08029602315611515795noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-73839927761719126522010-08-17T11:30:02.427-05:002010-08-17T11:30:02.427-05:00Surprisingly now all the files are listed. Prior t...Surprisingly now all the files are listed. Prior to that if search for any function name that was in one of the invisible files then the file would be seen. Anyway now all the files are listed. However the mouse's roll or keyboards arrows/page up and page down buttons are not working on IE. I need to press the mouse key and drag the scroll bar down to see the full page.Unknownhttps://www.blogger.com/profile/14817250856698943739noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-41123466741486179732010-08-16T16:03:29.456-05:002010-08-16T16:03:29.456-05:00I don't think I've ever tried it from IE; ...I don't think I've ever tried it from IE; do you see the HTML for the missing files if you view the source?Mike Partridgehttps://www.blogger.com/profile/02371913846748109417noreply@blogger.comtag:blogger.com,1999:blog-8923925623275189276.post-77970219190255238972010-08-16T15:45:32.380-05:002010-08-16T15:45:32.380-05:00Thanks much for the guide. I see that not all file...Thanks much for the guide. I see that not all files are listed when viewed from IE. With Firefox it works great. I don't have any issue using Firefox, but would be nice if issues IE are resolved. Do you know what could be the issue.<br /><br />Thanks again for the instructionsUnknownhttps://www.blogger.com/profile/14817250856698943739noreply@blogger.com