« Return to Thread: Problems when deploy nutch-1.0.war

Re: Problems when deploy nutch-1.0.war

by Xiao Yang :: Rate this Message:

Reply to Author | View in Thread

I have downloaded Tomcat6 from the official site and reinstalled it
manually. It works!
Maybe there's something wrong with Tomcat6 in the ubuntu mirror site.

Thanks!
Xiao

On Sat, Jul 4, 2009 at 5:02 PM, schroedi<schroedi2001@...> wrote:

> Do you have the permissions in the filesystem to create the hadoop files?
> In my case i have to chown the rights for the user (nutch in my case)
> for the filesystem which I want to store the hadoop files.
> Check this - in my case it works fine....
>
> xiao yang wrote:
>> I have installed nutch1.0 on Ubuntu9.0.4, the namenode, datanode,
>> jobbut when I deploy nutch-1.0.war, I get the following errors in
>> Tomcat6. What's the problem?
>>
>> Java -version:
>> java version "1.6.0_13"
>> Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
>> Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
>>
>> I installed Tomcat6 by using: #apt-get install tomcat6
>> The default ROOT application is OK.
>> I copied nutch-1.0.war to /var/lib/tomcat6/webapps
>> cp nutch*.war /var/lib/tomcat6/webapps/ROOT.war
>> Then error occurred, here is the log files: catalina.2009-07-04.log
>> and localhost.2009-07-04.log.
>>
>> catalina.2009-07-04.log
>> 2009-7-4 15:03:26 org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> 2009-7-4 15:03:26 org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 628 ms
>> 2009-7-4 15:03:26 org.apache.catalina.users.MemoryUserDatabase save
>> WARNING: User database is not persistable - no write permissions on directory
>> 2009-7-4 15:03:26 org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> 2009-7-4 15:03:26 org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
>> 2009-7-4 15:03:26 org.apache.catalina.startup.HostConfig deployWAR
>> INFO: Deploying web application archive ROOT.war
>> 2009-7-4 15:03:27 org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> 2009-7-4 15:03:27 org.apache.catalina.core.StandardContext start
>> SEVERE: Context [] startup failed due to previous errors
>> 2009-7-4 15:03:28 org.apache.coyote.http11.Http11Protocol start
>> INFO: Starting Coyote HTTP/1.1 on http-8080
>> 2009-7-4 15:03:28 org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 1397 ms
>>
>> localhost.2009-07-04.log
>> 2009-7-4 15:03:27 org.apache.catalina.core.StandardContext listenerStart
>> SEVERE: Exception sending context initialized event to listener
>> instance of class
>> org.apache.nutch.searcher.NutchBean$NutchBeanConstructor
>> java.lang.RuntimeException: java.security.AccessControlException:
>> access denied (java.lang.reflect.ReflectPermission
>> suppressAccessChecks)
>>         at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:81)
>>         at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1366)
>>         at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:56)
>>         at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1379)
>>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:215)
>>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:120)
>>         at org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:89)
>>         at org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:77)
>>         at org.apache.nutch.searcher.NutchBean$NutchBeanConstructor.contextInitialized(NutchBean.java:425)
>>         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
>>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4338)
>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>         at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
>>         at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
>>         at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
>>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
>>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>         at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
>> Caused by: java.security.AccessControlException: access denied
>> (java.lang.reflect.ReflectPermission suppressAccessChecks)
>>         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>>         at java.security.AccessController.checkPermission(AccessController.java:546)
>>         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>>         at java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)
>>         at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:76)
>>         ... 39 more
>>
>>
>
> --
>
> Mario Schröder | http://www.finanz-checks.de
> Office: +49 361 2152062
> Phone: +49 34464 62301 Cell: +49 163 27 09 807
> http://www.xing.com/go/invite/6035007.9c143c
>
>

 « Return to Thread: Problems when deploy nutch-1.0.war