Hi ,
Ok now I have followed this tutorial word by
word.http://wiki.apache.org/nutch/RunNutchInEclipse#Checkout_Nutch_in_Eclipse
.

After getting new source 2.2 , I have build it using Ant - which was
successful then set the configurations and comment the 'hsqldb' dependency
and uncomment the cassandra dependency ( as I want to run it against
cassandra). After doing this all when I run the code from eclipse I get
error
"Exception in thread "main" java.lang.SecurityException: Prohibited package
name: java.org.apache.nutch.crawl
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:649)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:785)
    at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)...."

and have red '*' all over my code. Please see the attached image.

Now what I do ?
Please any one could tell me that is it even possible to compile/run/debug
latest Nutch 2.x branch from Eclipse ?

I need help here...............

Tony !!![image: Inline image 1]

On Mon, Jun 10, 2013 at 12:15 PM, Tejas Patil <tejas.patil...@gmail.com>wrote:

> Hi Tony,
>
> That tutorial is based on some earlier nutch version. Please follow
> http://wiki.apache.org/nutch/RunNutchInEclipse#Checkout_Nutch_in_Eclipse.
> There has been recent changes to that wiki page and those new steps would
> take care of getting automation.jar and etc dependencies in place.
>
>
> On Sun, Jun 9, 2013 at 11:58 PM, Tony Mullins <tonymullins...@gmail.com
> >wrote:
>
> > Hi ,
> >
> > The last try I made was with this tutorial '
> >
> https://sites.google.com/site/profilerajanimaski/webcrawlers/run-nutch-in-eclipse
> '
> > ,
> > after following word to word ( which didn't work for me) then I made some
> > modifications to it as for step 11 I added  'bin' , 'gora' , 'java'
> ,'test'
> > , 'testprocess' , 'testresources' . And for step 14 I couldn't find
> > 'src/plugin/url-filter-automation/lib/automation.jar' in my source.
> >
> > And when I try to run main 'Crawler' project it says there are errors and
> > give me option to proceed with errors and when I proceed with errors  I
> am
> > getting this error:
> >
> > "InjectorJob: Using class org.apache.gora.memory.store.MemStore as the
> > Gora storage class.
> > InjectorJob: total number of urls rejected by filters: 0
> > InjectorJob: total number of urls injected after normalization and
> > filtering: 0
> > Exception in thread "main" java.lang.RuntimeException: job failed:
> > name=generate: null, jobid=job_local_0002.......
> > .....
> > "
> >
> > So please help me what I am doing wrong here or guide me to a tutorial
> > which works....
> > If the latest Nutch 2.2 source doesn't work with these tutorials then
> > which version of 2.x will work and how ?
> >
> > Thanks.
> > Tony
> >
> >
> > On Mon, Jun 10, 2013 at 7:20 AM, Tejas Patil <tejas.patil...@gmail.com
> >wrote:
> >
> >> Could you try closing and re-opening the eclipse and then let eclipse
> >> rebuild workspace. BTW: On which packages / classes do you see red dots
> ?
> >>
> >>
> >> On Sun, Jun 9, 2013 at 9:23 AM, Lewis John Mcgibbney <
> >> lewis.mcgibb...@gmail.com> wrote:
> >>
> >> > Hi Tony,
> >> > This source has literally just been released. The tutorial on the
> Nutch
> >> > wiki has also just been updated but you need to follow it closely and
> >> pay
> >> > attention to each step. It sounds like the red dots problem your
> having
> >> is
> >> > explained in the 2nd to last bullet point below
> >> >
> >> >
> >>
> http://wiki.apache.org/nutch/RunNutchInEclipse#Checkout_Nutch_in_Eclipse
> >> >
> >> > Also, you've not actually said what went wrong!
> >> > Lewis
> >> >
> >> >
> >> > On Sunday, June 9, 2013, Tony Mullins <tonymullins...@gmail.com>
> wrote:
> >> > > Hi,
> >> > >
> >> > > I am new to Nutch. I am trying to use Nutch with Cassandra and have
> >> > > successfully build the Nutch 2.x (
> >> > > http://svn.apache.org/repos/asf/nutch/branches/2.x/).
> >> > >
> >> > > But I get errors ( different errors after following different
> >> tutorials)
> >> > > when I try to run it directly from Eclipse ( I am on CentOS 6.4) , I
> >> have
> >> > > tried to follow these tutorials to run Nutch source from Eclipse but
> >> no
> >> > use.
> >> > >
> >> > > http://wiki.apache.org/nutch/RunNutchInEclipse
> >> > > run nutch in eclipse | profilerajanimaski
> >> > >
> >> http://jarpit83.blogspot.com/2012/07/configuring-nutch-in-eclipse.html
> >> > > http://techvineyard.blogspot.com/2010/12/build-nutch-20.html
> >> > >
> >> > > Whatever I do,  I get red "*" on my source and it doesn't get run by
> >> > > Eclipse , but it always get build successfully using Ant.
> >> > >
> >> > > Pleeeeaaase help me here, could any one please guide me to single
> web
> >> > > tutorial which actually could help me compile and run latest Nutch
> 2.x
> >> > with
> >> > > Eclipse (Juno) on CentOS.
> >> > >
> >> > > Thanksss.
> >> > > Tony.
> >> > >
> >> >
> >> > --
> >> > *Lewis*
> >> >
> >>
> >
> >
>

Reply via email to