[opengrok] Setup without projects on windows, does it work in 0.7? was : Re: Can you help me with opengrok setting?
Lubos Kosco
Lubos.Kosco at Sun.COM
Tue Dec 2 05:35:57 PST 2008
OK, so no fear, all is there, my working config with 0.7 :
<!-- <context-param>
<param-name>CONFIGURATION</param-name>
<param-value>/etc/opengrok/configuration.xml</param-value>
<description>Full path to the configuration file where OpenGrok can
read it's configuration</description>
</context-param>
<context-param>
<param-name>ConfigAddress</param-name>
<param-value>localhost:2424</param-value>
<description>An address where OpenGrok can receive new
configuration</description>
</context-param>
-->
<context-param>
<param-name>DATA_ROOT</param-name>
<param-value>C:\Programming\Project indexes</param-value>
<description>REQUIRED: Full path of the directory where data files
generated by OpenGrok are stored</description>
</context-param>
<context-param>
<param-name>SRC_ROOT</param-name>
<param-value>C:\Programming\Project_sccs</param-value>
<description>REQUIRED: Full path to source tree</description>
</context-param>
<listener>
<listener-class>org.opensolaris.opengrok.web.WebappListener</listener-class>
</listener>
so it seems you have a problem in your web.xml
most probably it's :
<!--listener>
<listener-class>org.opensolaris.opengrok.web.WebappListener</listener-class>
</listener-->
as you can see it's uncommented for me, I only commented out
CONFIGURATION and ConfigAddress params
I'll add this to installation page
Thanks
Lubos
Lubos Kosco wrote:
> Hi bely
> [ccing opengrok-discuss at opensolaris.org ]
>
> I think you have it set correctly
> but I really suggest you start using projects instead of DATA_ROOT and
> SRC_ROOT (and have config in /etc/opengrok/configuration.xml )
>
> I haven't tried 0.7 with DATA_ROOT and SRC_ROOT set, but I am quite sure
> it works with projects.
> Your web.xml looks OK, let me try on my windows setup.
>
> I fear we might have dropped "projects less" config in 0.7, but let me
> test first ...
>
> ttyl
> L
>
>
> bely xiong wrote:
>
>> Hi Lubos,
>> I am trying to deploy opengrok on my windows 2003 server, I
>> met the following problem, can you help me? I sent mail to you because
>> I saw your mail talking about the problem:
>>
>> --------------------------------------------
>>
>> SRC_ROOT parameter in web.xml does not point to a valid directory!
>> Please configure your webapp.
>>
>> java.lang.NullPointerException
>> at org.apache.jsp.list_jsp._jspService(list_jsp.java:104)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>
>> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>
>> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>
>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>
>> at java.lang.Thread.run(Unknown Source)
>>
>>
>>
>> null
>>
>> ----------------------------
>> part of my web.xml look like this:
>>
>> ...
>> <!--context-param>
>> <param-name>CONFIGURATION</param-name>
>> <param-value>/etc/opengrok/configuration.xml</param-value>
>> <description>Full path to the configuration file where OpenGrok
>> can read it's configuration</description>
>> </context-param-->
>>
>> <context-param>
>> <param-name>ConfigAddress</param-name>
>> <param-value>localhost:2424</param-value>
>> <description>An address where OpenGrok can receive new
>> configuration</description>
>> </context-param>
>>
>> <context-param>
>> <param-name>DATA_ROOT</param-name>
>> <param-value>D:\opengrok\data</param-value>
>> <description>REQUIRED: Full path of the directory where data files
>> generated by OpenGrok are stored</description>
>> </context-param>
>>
>> <context-param>
>> <param-name>SRC_ROOT</param-name>
>> <param-value>D:\workspace\android</param-value> <description>REQUIRED:
>> Full path to source tree</description> </context-param> <!--listener>
>> <listener-class>org.opensolaris.opengrok.web.WebappListener</listener-class>
>> </listener--> <servlet> <servlet-name>search</servlet-name>
>> <display-name>Source Finder</display-name>
>> <jsp-file>/search.jsp</jsp-file>
>> </servlet>
>> ...
>>
>> how should I set the path of src_root and data_root on windows?
>>
>> Thanks in advanced!
>>
>
> _______________________________________________
> opengrok-discuss mailing list
> opengrok-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss
>
More information about the opengrok-discuss
mailing list