Hi,
I follow this instruction:

"when you have completed the instructions on this page, you will also need to do the following (these will need to be done for each run instance):

   * Go to the Arguments tab under Run Cofiguration and add
     -Dorg.mortbay.jetty.webapp.parentLoaderPriority=true to the VM
     arguments.
   * Go to the Classpath tab on the same page, move the run jetty run
     bootstrap above the project class path.

*Run Jetty Run Manual Fixes
*
Jetty currently has some issues with locking static files while it runs (ie CSS, JavaScript, etc). Luckily there is a solution.

  1. Open \\devel\public_share\Jetty.
  2. jetty-6.1.6.jar
         * In Eclipse, go to the run dialog for a runjettyrun project.
         * Visit the Classpath tab and note the location of the
jetty-6.1.6.jar on the classpath. It should be something like C:\Program
           
Files\eclipse\configuration\org.eclipse.osgi\bundles\628\1\.cp\jetty-6.1.6.jar.
         * Close Eclipse, and drop the jetty-6.1.6.jar from public
           share into the directory noted above.
         * Replace existing file.
  3. runjettyrun_1.0.1.jar
         * Copy into C://Project Files/[Eclipse Install]/plugins.
         * Replace existing file.

"
I am starting to use RunJettyRun instead of previous Jetty. And I encounter this problem, you can figure out when you read this console, can you help me ?
Configuration: Eclipse 3.3.1.1;

[INFO] [main] [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)] mortbay.log Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog [INFO] [main] [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)] mortbay.log jetty-6.1.6 [WARN] [main] [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)] mortbay.log Failed startup of context [EMAIL PROTECTED]/sb,src/main/webapp}
java.util.zip.ZipException: error in opening zip file
   at java.util.zip.ZipFile.open(Native Method)
   at java.util.zip.ZipFile.<init>(Unknown Source)
   at java.util.jar.JarFile.<init>(Unknown Source)
   at java.util.jar.JarFile.<init>(Unknown Source)
at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:168) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1213) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
   at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at runjettyrun.Bootstrap.main(Bootstrap.java:76)
[INFO] [main] [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)] mortbay.log Started [EMAIL PROTECTED]:8082

--
Thanks & Best regards,

long nguyen
Software Developer
formos vn
phone   +84-978383815
[EMAIL PROTECTED]
www.formos.com

Reply via email to