On 16. okt.. 2009, at 20.51, Kiffin Gish wrote: > On Fri, 2009-10-16 at 20:40 +0200, Trond Norbye wrote: >> On 16. okt.. 2009, at 20.30, Kiffin Gish wrote: >> >>> The webserver is running as glassfish. What's the standard way >>> setting >>> up an environment for having multiple projects for opengrok? >>> >> >> You need to give glassfish access to read files in /home/opengrok. To >> set up projects, just add -P to the command line when you generate >> the >> configuration file. > > So then for multiple projects I need to use -P once for each > project, is > that it? > > Do they all fall under stage1 then? > > stage1/source/project1, stage1/source/project2, etc.
Yes > > What's the purpose of stage2? to allow you to "upgrade" one when you serve from the other :-) > >> >>> I'm also getting the error message insufficient privileges to run >>> svn in >>> the /home/opengrok/stage1/source directory. >> >> from the web application or the command line? could you paste the >> error message? > > [#|2009-10-16T17:33:41.773+0200|WARNING|sun-appserver2.1| > org.opensolaris.opengrok| > _ThreadID=12;_ThreadName=pool-1- > thread-3;_RequestID=49078aef-350f-4084-88a7-6b0069dd422c;| > IOException reading from svn process > java.io.IOException: Cannot run program "svn" (in directory > "/home/opengrok/stage1/source/cmt-web"): java.io.IOException: > error=13, > Permission denied > at java.lang.ProcessBuilder.start(ProcessBuilder.java:474) > at java.lang.Runtime.exec(Runtime.java:610) > at > org > .opensolaris > .opengrok > .history > .SubversionRepository.setDirectoryName(SubversionRepository.java:91) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ... I guess you need set up proper access on the directories. Cheers, Trond