Tag Archives: nutch

NetBeans Error: Access to Tomcat server has not been authorized

I ran a Web application project. I kept getting a message saying:

Access to Tomcat server has not been authorized. Set the correct username and password

with the “manager-script” role in the Tomcat customizer in the Server Manager.

I checked the tomcat-users.xml in the “conf” folder of Tomcat, and added the 2 lines as below:

  <role rolename=”manager-script”/>
  <user username=”user” password=”user” roles=”manager-script”/>

It still didn’t work.

Late on, I found I made two mistakes:

1) I changed the wrong tomcat-users.xml. I had two Tomcat in my computer.
2) I didn’t remove this: <!–  –>. Within this, everything is ignored.

Now, it works :)))))))))))

Build a nutch .war with NetBeans

The computer uses: Window Vista, Netbeans.

I tried to build a .war for nutch 1.3. At last, I did it. I wrote down teh

steps.

1), download at http://apache.mobiles5.com//nutch/

a) apache-nutch-1.3-bin.zip
b) apache-nutch-1.3-src.zip

2) unzip them;

3) build a new folder named nutch13; and copy “src” folder from “apache-

nutch-1.3-src” to “nutch13” folder.

4) In Netbeans, build a web project with existing source. Get the files

from “src” folder.

5) Then copy the “lib” folder from “apache-nutch-1.3-bin” to the “nutch13”

folder.

6) from NetBeans, at the “projects” panel, right-click “Libraries”, add

“jar/folder”, add all the files in the “lib” folder.

7) the “build project”

8) Now, the Output window shows: BUILD SUCCESSFUL.

9) in the “dist” folder, there is a nutch13.war file now.