scott green wrote:
> Hi
> 
> I am now port Stefan to my dev-box. And some errors here, hope some
> one can help me. When I start embedded web application jetty, the
> exceptions:
> 
> 06/11/22 02:28:10 INFO util.Credential: Checking Resource aliases
> 06/11/22 02:28:11 INFO util.Container: Started
> [EMAIL PROTECTED]
> Exception in thread "main" java.lang.ClassNotFoundException:
> org.apache.jasper.servlet.JspServlet
>     at java.net.URLClassLoader$1.run(Unknown Source)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at java.lang.ClassLoader.loadClass(Unknown Source)
>     at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1262)
>     at org.mortbay.jetty.servlet.Holder.start(Holder.java:188)
>     at 
> org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
>     at 
> org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:445)
>  
> 
>     at 
> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:323)
>  
> 
>     at 
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:511)
>  
> 
>     at org.mortbay.util.Container.start(Container.java:72)
>     at 
> org.apache.nutch.admin.WebContainer.addComponentExtensions(WebContainer.java:152)
>  
> 
>     at 
> org.apache.nutch.admin.AdministrationApp.startContainer(AdministrationApp.java:41)
>  
> 
>     at 
> org.apache.nutch.admin.AdministrationApp.main(AdministrationApp.java:158)
> 06/11/22 02:28:24 INFO util.Container: Started HttpContext[/,/]
> 
> the code snippets:
>      WebApplicationContext webContext =
> this.server.addWebApplication(contextName, new
> File(jsps).getCanonicalPath());
>      webContext.setClassLoader(extension.getDescriptor().getClassLoader());
>      webContext.setAttribute("component", component);
>      webContext.setAttribute("components", components);
>      if (instances != null) {
>        webContext.setAttribute("instances", instances);
>        webContext.setAttribute("container", this);
>      }
>      webContext.start();
> 
> So how can I put some required jars into the classloader?
> Thanks

Is there a starts script (bin/nutch?) or something like that where you 
could add the jasper-compiler.jar so it gets into classpath of JVM.

--
  Sami Siren

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-developers mailing list
Nutch-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to