Re: setting up the work environment

"[email protected]" <[email protected]> Fri, 26 Sep 2003 19:14:16 +0200
Newsgroups gmane.education.weblabs.webreports.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------020909050304050109080502
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

  Hi,
still not sure if anybody tried to setup the webapp so far. Here is a 
step-by-step-guidance which is working for me:

"What's to do for successfully running all build-tasks": (hey - what a 
title!)

### build ###
is ok from the stand:
Excluded: scr-files in "/test" are missing (now)... would be a good idea 
to re-add them in cvs. Please copy from the former version:

The junit-section in build.xml is running properly and produces 
*beautiful* test-reports -> allmost all tests are OK. This seems the 
proper way to handle the application at this state of development... 
junit.jar must (for some classloader-reason) copied  to 
ant_install_dir/lib/ therefore (and should not be in classpath).

### docs ###
are build with errors - should be adequate for now...

### deploy ###
is ok - needs some changes in build.properties:
needs the path to the webapp: "web.dir=webreports_project_path/web"
needs the path to tomcat: "web.dir=your_tomcat_path"

I choosed the existing webreports/web -path for webapp-root, which seems 
a good idea...  ;-)

### restart ###
There are some more things to do now:

put a file named "webreports.xml" into your tomcat/webapp-dir:

<Context path="/webreports" docBase="F:\projects\webreports\web"
        debug="0" privileged="false">
 
  <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="localhost_webreports_log." suffix=".txt"
          timestamp="true"/>

</Context>

http://localhost:8080/webreports/ is your URL to webapp now. docBase 
must point your webapp-root (...webreports/web).


STRUTS:
There are some struts-template in use, so a struts setup is needet, 
which is no bad idea anyway:
Deploy struts.war's (simply put into a tomcat/webapp and run the 
server). Take all tld's and struts-config.xml from the 
struts-blank/WEB-INF-dir and copy to webreports/web/WEB-INF/. Copy 
struts.jar into the webreportwebapp/lib.


WIKI:
I added wiki to the app -> I don't know too much about "wiki", so I just 
added:

Deploy the JSPWiki.war. Copy all jar's from the wiki's webapp's lib into 
the webreport/webapp/lib. Copy jspwiki.tld into webreports/web/WEB-INF/. 
Copy jspwiki.properties into webreports/web/WEB-INF/ and configure for 
your needs.

WEB.XML:
At last there are some adds in web.xml: Config's for struts and wiki are 
needet. I paste the content at the end of the mail... not sure if 
attachments are working for mailing-list.

Ok, here we are:  Running ant with "compile", "test", "doc", "deloy" and 
"restart" should work now.
restart brings up an exception if tomcat isn't already up - ignore.

I hope I didn't forget anything - wicked thing that webapp ;-)

Bye and have *fun*!

Siegfried


The WEBINF:



<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
   
    <servlet>
        <servlet-name>AddNote</servlet-name>
        <servlet-class>org.weblabs.wr.servlets.AddNote</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>ShowNote</servlet-name>
        <servlet-class>org.weblabs.wr.servlets.ShowNote</servlet-class>
    </servlet>


   <!-- ### Wiki-Stuff #################################### -->

   <!--
       Now, let's define the XML-RPC interfaces.  You probably don't have to
       touch these.

       First, we'll define the standard XML-RPC interface.
     -->
   <servlet>
       <servlet-name>XMLRPC</servlet-name>
       
<servlet-class>com.ecyrd.jspwiki.xmlrpc.RPCServlet</servlet-class>      
       <init-param>
           <param-name>handler</param-name>
           <param-value>com.ecyrd.jspwiki.xmlrpc.RPCHandler</param-value>
       </init-param>

       <init-param>
           <param-name>prefix</param-name>
           <param-value>wiki</param-value>
       </init-param>
   </servlet>

   <!--
       OK, this then defines that our UTF-8 -capable server.
     -->

   <servlet>
       <servlet-name>XMLRPC-UTF8</servlet-name>
       
<servlet-class>com.ecyrd.jspwiki.xmlrpc.RPCServlet</servlet-class>      
       <init-param>
           <param-name>handler</param-name>
           
<param-value>com.ecyrd.jspwiki.xmlrpc.RPCHandlerUTF8</param-value>
       </init-param>

       <init-param>
           <param-name>prefix</param-name>
           <param-value>wiki</param-value>
       </init-param>
   </servlet>


   <!--
       Attachment exchange handler.
     -->

   <servlet>
       <servlet-name>AttachmentServlet</servlet-name>
       
<servlet-class>com.ecyrd.jspwiki.attachment.AttachmentServlet</servlet-class>
   </servlet>


   <!--
       And finally, let us tell the servlet container which
       URLs should correspond to which XML RPC servlet.
     -->

   <!-- By default, this is disabled.  If you want to enabled it,
        just uncomment the whole section. -->

   <!-- ### Wiki-Stuff ends here ############################# -->



    <!-- Mapping for the showNote servlet -->
    <servlet-mapping>
        <servlet-name>ShowNote</servlet-name>
        <url-pattern>/notes/*</url-pattern>
    </servlet-mapping>
   
    <!-- Mapping for the showNote servlet -->
    <servlet-mapping>
        <servlet-name>AddNote</servlet-name>
        <url-pattern>/addnotes/*</url-pattern>
    </servlet-mapping>
   
   
   
   <!-- ### Wiki-Stuff #################################### -->

   <!--  REMOVE ME TO ENABLE XML-RPC

   <servlet-mapping>
       <servlet-name>XMLRPC</servlet-name>
       <url-pattern>/RPC2/</url-pattern>
   </servlet-mapping>

   <servlet-mapping>
       <servlet-name>XMLRPC-UTF8</servlet-name>
       <url-pattern>/RPCU/</url-pattern>
   </servlet-mapping>

   AND REMOVE ME TOO -->

   <servlet-mapping>
       <servlet-name>AttachmentServlet</servlet-name>
       <url-pattern>/attach</url-pattern>
   </servlet-mapping>
   

   <!-- This means that we don't have to use redirection
        from index.html anymore.  Yay! -->
   <welcome-file-list>
       <welcome-file>Wiki.jsp</welcome-file>
   </welcome-file-list>

   <!--
       Here we define the users which are allowed to access JSPWiki
       editor.

       I'll provide here an example case where you can set up a Wiki
       which allows everyone read access, but only authenticated
       users are allowed to edit (i.e. access the Edit.jsp page).

       To enable this, remove the comments signs.

       We setup here two sample roles, "admin" and "user".
       There is no real difference between these two for now.

       You must also add to your $TOMCAT_HOME/conf/tomcat-users.xml
       the actual user accounts.
   -->

   <!--  START OF ACCESS RESTRICTION
   <security-constraint>
       <web-resource-collection>
           <web-resource-name>Protected Area</web-resource-name>
           <url-pattern>/Edit.jsp</url-pattern>
           <http-method>DELETE</http-method>
           <http-method>GET</http-method>
           <http-method>POST</http-method>
           <http-method>PUT</http-method>
       </web-resource-collection>

       <auth-constraint>
           <role-name>admin</role-name>
           <role-name>user</role-name>
       </auth-constraint>
   </security-constraint>

   <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>JSPWiki Editor</realm-name>
   </login-config>

   -->

   <!-- ### Wiki-Stuff ends here ############################# -->
   
    <!-- Struts Tag Library Descriptors -->
      <taglib>
        <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
      </taglib>
   
      <taglib>
        <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      </taglib>
   
      <taglib>
        <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
   
    <taglib>
        <taglib-uri>/WEB-INF/weblabs.tld</taglib-uri>
        <taglib-location>/WEB-INF/weblabs.tld</taglib-location>
    </taglib>
   
   
</web-app>




Yishay Mor wrote:

 Feeyoo.

And can you even, ah, install and run it?

-----Original Message-----
From: [email protected]
To: Yishay Mor
Sent: 9/25/03 6:19 PM
Subject: Re: [Webreports-developers] New CVS structure

Hi,
looks much better now! Building runs without puttings a hand on the
files.

Ciao, Siegfried


Yishay Mor wrote:


>I added a module called "webreports" under the CVS root.  Essentially,
>  
>

>I intend to place all code there and remove all other modules, so you 
>can checkout the whole codebase by running "co webreports" instead of 
>"co .". I tried to clean it up,  it should build now. Can someone 
>please try?
>
>  
>



[email protected] wrote:

> Hi all!
> I had a first try on setting up the work environment - no idea who of 
> you already did so... however: Yishay suggestet to share my *pains*:
>
> ### Compiling Pain ###:
>
> -> org.weblabs.jspwiki.plugins.ShowContext is in file named 
> showWikiContext.java
>
> -> jar for com.ecryd.jspwiki.* is not included in buildfile:
>
> I took JSPWiki.jar from jspwiki-2.0.50-bin.zip
> available at http://www.jspwiki.org/Wiki.jsp?page=JSPWikiDownload
> (what ever it is?)
>
> -> AddNote.java imports org.weblabs.wr.tags.NoteTag which is missing 
> as src-file.
>
> -> org.weblabs.wr.servlets.AddBibNote.java
> ('at the end of file' - no linenumbers for this editor? ;-) ): 
> resp.getWriter().print(POPUP_HTML);
> ... where POPUP_HTML seems undefined.
>
>
> ### Tomcat Pain ###:
>
> Could not figure out where the webapp-root should be at least. 
> Separating the app-folder from tomcat-installation did not work for me 
> - likly my fault. I tried to copy all what needed to an ordinary web-app:
>
> struts tld's and struts-config.xml are missing. Copying all this from 
> an empty struts-template makes the server running - somehow. I'am 
> shure there is some-one out there who wants to test the server-setup 
> in detail... ;-)
>
> Bye and good Luck!
>
> Siegfried
>
>
>
>

--------------020909050304050109080502
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
&nbsp; Hi,<br>
still not sure if anybody tried to setup the webapp so far. Here is a
step-by-step-guidance which is working for me:<br>
<br>
"What's to do for successfully running all build-tasks": (hey - what a
title!)<br>
<br>
### build ###<br>
is ok from the stand:<br>
Excluded: scr-files in "/test" are missing (now)... would be a good
idea to re-add them in cvs. Please copy from the former version: <br>
<br>
The junit-section in build.xml is running properly and produces
*beautiful* test-reports -&gt; allmost all tests are OK. This seems the
proper way to handle the application at this state of development...
junit.jar must (for some classloader-reason) copied&nbsp; to
ant_install_dir/lib/ therefore (and should not be in classpath).<br>
<br>
### docs ### <br>
are build with errors - should be adequate for now...<br>
<br>
### deploy ###<br>
is ok - needs some changes in build.properties:<br>
needs the path to the webapp: "web.dir=webreports_project_path/web"<br>
needs the path to tomcat: "web.dir=your_tomcat_path"<br>
<br>
I choosed the existing webreports/web -path for webapp-root, which
seems a good idea...&nbsp; ;-)<br>
<br>
### restart ###<br>
There are some more things to do now:<br>
<br>
put a file named "webreports.xml" into your tomcat/webapp-dir:<br>
<br>
&lt;Context path="/webreports" docBase="F:\projects\webreports\web"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; debug="0" privileged="false"&gt;<br>
&nbsp; <br>
&nbsp; &lt;Logger className="org.apache.catalina.logger.FileLogger"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; prefix="localhost_webreports_log." suffix=".txt"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; timestamp="true"/&gt;<br>
<br>
&lt;/Context&gt;<br>
<br>
<a class="moz-txt-link-freetext"
 href="http://localhost:8080/webreports/">http://localhost:8080/webreports/</a>
is your URL to webapp now. docBase
must point your webapp-root (...webreports/web).<br>
<br>
<br>
STRUTS:<br>
There are some struts-template in use, so a struts setup is needet,
which is no bad idea anyway:<br>
Deploy struts.war's (simply put into a tomcat/webapp and run the
server). Take all tld's and struts-config.xml from the
struts-blank/WEB-INF-dir and copy to webreports/web/WEB-INF/. Copy
struts.jar into the webreportwebapp/lib.<br>
<br>
<br>
WIKI:<br>
I added wiki to the app -&gt; I don't know too much about "wiki", so I
just added:<br>
<br>
Deploy the JSPWiki.war. Copy all jar's from the wiki's webapp's lib
into the webreport/webapp/lib. Copy jspwiki.tld into
webreports/web/WEB-INF/. Copy jspwiki.properties into
webreports/web/WEB-INF/ and configure for your needs.<br>
<br>
WEB.XML:<br>
At last there are some adds in web.xml: Config's for struts and wiki
are needet. I paste the content at the end of the mail... not sure if
attachments are working for mailing-list.<br>
<br>
Ok, here we are:&nbsp; Running ant with "compile", "test", "doc", "deloy"
and "restart" should work now.<br>
restart brings up an exception if tomcat isn't already up - ignore.<br>
<br>
I hope I didn't forget anything - wicked thing that webapp ;-)<br>
<br>
Bye and have *fun*!<br>
<br>
Siegfried<br>
<br>
<br>
The WEBINF:<br>
<br>
<br>
<br>
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;<br>
<br>
&lt;!DOCTYPE web-app<br>
&nbsp;&nbsp;&nbsp; PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"<br>
&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-rfc2396E"
 href="http://java.sun.com/dtd/web-app_2_3.dtd">"http://java.sun.com/dtd/web-app_2_3.dtd"</a>&gt;<br>
<br>
&lt;web-app&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &lt;servlet&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;AddNote&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;servlet-class&gt;org.weblabs.wr.servlets.AddNote&lt;/servlet-class&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/servlet&gt;<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;servlet&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;ShowNote&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;servlet-class&gt;org.weblabs.wr.servlets.ShowNote&lt;/servlet-class&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/servlet&gt;<br>
<br>
<br>
&nbsp;&nbsp; &lt;!-- ### Wiki-Stuff #################################### --&gt;<br>
<br>
&nbsp;&nbsp; &lt;!--<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Now, let's define the XML-RPC interfaces.&nbsp; You probably don't
have to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; touch these.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; First, we'll define the standard XML-RPC interface.<br>
&nbsp;&nbsp;&nbsp;&nbsp; --&gt;<br>
&nbsp;&nbsp; &lt;servlet&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;XMLRPC&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;servlet-class&gt;com.ecyrd.jspwiki.xmlrpc.RPCServlet&lt;/servlet-class&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;handler&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;param-value&gt;com.ecyrd.jspwiki.xmlrpc.RPCHandler&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;prefix&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;wiki&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
&nbsp;&nbsp; &lt;/servlet&gt;<br>
<br>
&nbsp;&nbsp; &lt;!--<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OK, this then defines that our UTF-8 -capable server.<br>
&nbsp;&nbsp;&nbsp;&nbsp; --&gt;<br>
<br>
&nbsp;&nbsp; &lt;servlet&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;XMLRPC-UTF8&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;servlet-class&gt;com.ecyrd.jspwiki.xmlrpc.RPCServlet&lt;/servlet-class&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;handler&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;param-value&gt;com.ecyrd.jspwiki.xmlrpc.RPCHandlerUTF8&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;init-param&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-name&gt;prefix&lt;/param-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param-value&gt;wiki&lt;/param-value&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init-param&gt;<br>
&nbsp;&nbsp; &lt;/servlet&gt;<br>
<br>
<br>
&nbsp;&nbsp; &lt;!--<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Attachment exchange handler.<br>
&nbsp;&nbsp;&nbsp;&nbsp; --&gt;<br>
<br>
&nbsp;&nbsp; &lt;servlet&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;AttachmentServlet&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;servlet-class&gt;com.ecyrd.jspwiki.attachment.AttachmentServlet&lt;/servlet-class&gt;<br>
&nbsp;&nbsp; &lt;/servlet&gt;<br>
<br>
<br>
&nbsp;&nbsp; &lt;!--<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; And finally, let us tell the servlet container which<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; URLs should correspond to which XML RPC servlet.<br>
&nbsp;&nbsp;&nbsp;&nbsp; --&gt;<br>
<br>
&nbsp;&nbsp; &lt;!-- By default, this is disabled.&nbsp; If you want to enabled it,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; just uncomment the whole section. --&gt;<br>
<br>
&nbsp;&nbsp; &lt;!-- ### Wiki-Stuff ends here ############################# --&gt;<br>
<br>
<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;!-- Mapping for the showNote servlet --&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;ShowNote&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/notes/*&lt;/url-pattern&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &lt;!-- Mapping for the showNote servlet --&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;AddNote&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/addnotes/*&lt;/url-pattern&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; &lt;!-- ### Wiki-Stuff #################################### --&gt;<br>
<br>
&nbsp;&nbsp; &lt;!--&nbsp; REMOVE ME TO ENABLE XML-RPC<br>
<br>
&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;XMLRPC&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/RPC2/&lt;/url-pattern&gt;<br>
&nbsp;&nbsp; &lt;/servlet-mapping&gt;<br>
<br>
&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;XMLRPC-UTF8&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/RPCU/&lt;/url-pattern&gt;<br>
&nbsp;&nbsp; &lt;/servlet-mapping&gt;<br>
<br>
&nbsp;&nbsp; AND REMOVE ME TOO --&gt;<br>
<br>
&nbsp;&nbsp; &lt;servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;servlet-name&gt;AttachmentServlet&lt;/servlet-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/attach&lt;/url-pattern&gt;<br>
&nbsp;&nbsp; &lt;/servlet-mapping&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
<br>
&nbsp;&nbsp; &lt;!-- This means that we don't have to use redirection<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from index.html anymore.&nbsp; Yay! --&gt;<br>
&nbsp;&nbsp; &lt;welcome-file-list&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;welcome-file&gt;Wiki.jsp&lt;/welcome-file&gt;<br>
&nbsp;&nbsp; &lt;/welcome-file-list&gt;<br>
<br>
&nbsp;&nbsp; &lt;!--<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Here we define the users which are allowed to access JSPWiki<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I'll provide here an example case where you can set up a Wiki<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; which allows everyone read access, but only authenticated<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; users are allowed to edit (i.e. access the Edit.jsp page).<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To enable this, remove the comments signs.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We setup here two sample roles, "admin" and "user".<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; There is no real difference between these two for now.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You must also add to your $TOMCAT_HOME/conf/tomcat-users.xml<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the actual user accounts.<br>
&nbsp;&nbsp; --&gt;<br>
<br>
&nbsp;&nbsp; &lt;!--&nbsp; START OF ACCESS RESTRICTION<br>
&nbsp;&nbsp; &lt;security-constraint&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;web-resource-collection&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;web-resource-name&gt;Protected
Area&lt;/web-resource-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;/Edit.jsp&lt;/url-pattern&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;http-method&gt;DELETE&lt;/http-method&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;http-method&gt;GET&lt;/http-method&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;http-method&gt;POST&lt;/http-method&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;http-method&gt;PUT&lt;/http-method&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/web-resource-collection&gt;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;auth-constraint&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;role-name&gt;admin&lt;/role-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;role-name&gt;user&lt;/role-name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/auth-constraint&gt;<br>
&nbsp;&nbsp; &lt;/security-constraint&gt;<br>
<br>
&nbsp;&nbsp; &lt;login-config&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;auth-method&gt;BASIC&lt;/auth-method&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;realm-name&gt;JSPWiki Editor&lt;/realm-name&gt;<br>
&nbsp;&nbsp; &lt;/login-config&gt;<br>
<br>
&nbsp;&nbsp; --&gt;<br>
<br>
&nbsp;&nbsp; &lt;!-- ### Wiki-Stuff ends here ############################# --&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &lt;!-- Struts Tag Library Descriptors --&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp; &lt;taglib&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;taglib-uri&gt;/WEB-INF/struts-bean.tld&lt;/taglib-uri&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;taglib-location&gt;/WEB-INF/struts-bean.tld&lt;/taglib-location&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp; &lt;/taglib&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp; &lt;taglib&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;taglib-uri&gt;/WEB-INF/struts-html.tld&lt;/taglib-uri&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;taglib-location&gt;/WEB-INF/struts-html.tld&lt;/taglib-location&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp; &lt;/taglib&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp; &lt;taglib&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;taglib-uri&gt;/WEB-INF/struts-logic.tld&lt;/taglib-uri&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;taglib-location&gt;/WEB-INF/struts-logic.tld&lt;/taglib-location&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &lt;taglib&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;taglib-uri&gt;/WEB-INF/weblabs.tld&lt;/taglib-uri&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;taglib-location&gt;/WEB-INF/weblabs.tld&lt;/taglib-location&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/taglib&gt;<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
&lt;/web-app&gt;<br>
<br>
<br>
<br>
<br>
Yishay Mor wrote:<br>
<pre wrap=""> Feeyoo.

And can you even, ah, install and run it?

-----Original Message-----
From: <a
 class="moz-txt-link-abbreviated"
 href="mailto:[email protected]">[email protected]</a>
To: Yishay Mor
Sent: 9/25/03 6:19 PM
Subject: Re: [Webreports-developers] New CVS structure

Hi,
looks much better now! Building runs without puttings a hand on the
files.

Ciao, Siegfried


Yishay Mor wrote:

</pre>
<blockquote type="cite">
  <pre wrap="">I added a module called "webreports" under the CVS root.  Essentially,
  </pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
  <pre wrap="">I intend to place all code there and remove all other modules, so you 
can checkout the whole codebase by running "co webreports" instead of 
"co .". I tried to clean it up,  it should build now. Can someone 
please try?

  </pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<br>
<br>
<a class="moz-txt-link-abbreviated"
 href="mailto:[email protected]">[email protected]</a>
wrote:<br>
<blockquote type="cite" cite="mid3F6F5E46.7050607-X8nW9FoeYQOqo7HgDxclTdBPR1lH4CV8@public.gmane.org">Hi
all! <br>
I had a first try on setting up the work environment - no idea who of
you already did so... however: Yishay suggestet to share my *pains*: <br>
  <br>
### Compiling Pain ###: <br>
  <br>
-&gt; org.weblabs.jspwiki.plugins.ShowContext is in file named
showWikiContext.java <br>
  <br>
-&gt; jar for com.ecryd.jspwiki.* is not included in buildfile: <br>
  <br>
I took JSPWiki.jar from jspwiki-2.0.50-bin.zip <br>
available at <a class="moz-txt-link-freetext"
 href="http://www.jspwiki.org/Wiki.jsp?page=JSPWikiDownload">http://www.jspwiki.org/Wiki.jsp?page=JSPWikiDownload</a>
  <br>
(what ever it is?) <br>
  <br>
-&gt; AddNote.java imports org.weblabs.wr.tags.NoteTag which is missing
as src-file. <br>
  <br>
-&gt; org.weblabs.wr.servlets.AddBibNote.java <br>
('at the end of file' - no linenumbers for this editor? ;-) ):
resp.getWriter().print(POPUP_HTML); <br>
... where POPUP_HTML seems undefined. <br>
  <br>
  <br>
### Tomcat Pain ###: <br>
  <br>
Could not figure out where the webapp-root should be at least.
Separating the app-folder from tomcat-installation did not work for me
- likly my fault. I tried to copy all what needed to an ordinary
web-app: <br>
  <br>
struts tld's and struts-config.xml are missing. Copying all this from
an empty struts-template makes the server running - somehow. I'am shure
there is some-one out there who wants to test the server-setup in
detail... ;-) <br>
  <br>
Bye and good Luck! <br>
  <br>
Siegfried <br>
  <br>
  <br>
  <br>
  <br>
</blockquote>
</body>
</html>

--------------020909050304050109080502--



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf