Jetty 8.1.1.v20120215 in Eclipse with webapp (JSF + Maven)

前端 未结 4 1672
孤城傲影
孤城傲影 2021-02-13 18:46

I am trying to run my webapp (using JSf) Jetty 8.1.1.v20120215 in Eclipse. I downloade Jettey Adaptor for Jetty and then added Jetty Server 8.1 in Eclipse. Then I stared my weba

相关标签:
4条回答
  • 2021-02-13 18:48

    Here is what worked for me. Find the Eclipse launch configuration for your Jetty server and open it for editing. Under classpath add all of the jars from /lib (and subdirectories), plus the /start.jar. Try running.

    0 讨论(0)
  • 2021-02-13 19:03

    I faced the same issue while running Jetty Server, you need to download and add the asm-3.1.jar to the project classpath.

    0 讨论(0)
  • 2021-02-13 19:03

    For some reason the jetty launcher used in eclipse ignores libraries in lib/subfolders do either, copy lib/annotations libraries to the lib/ folder or create symbolic links (linux or mac)

    $ cd folder_to_jetty_installation/lib
    $ for i in */*.jar; do; ln -s $i .; done
    
    0 讨论(0)
  • 2021-02-13 19:07

    Actually I think the core issue is that plugin is not using the start.ini in the jetty distribution that it unpacks...if it did then it would get annotations support correctly out of the box. If I remember right the plugin constructs much of the commandline used to start the instance dynamically. I seem to remember that there was a way to modify the start.ini used in the plugin so it could be its just an old copy of that start.ini that is missing the OPTIONS line with annotations on it. If you have the ability to tweak that start.ini via the plugin make sure both the OPTIONS line is correct and that jetty-annotations.xml is being processed at the bottom of the file.

    Anyway, we have added gerrit support to the git repository housing the plugin so if anyone is interested in contributing updates to the plugin I would be more then happy to review them and push out some updates to the plugin, I just don't have the time to work on that plugin much at the moment.

    I suspect this is related to: https://bugs.eclipse.org/bugs/show_bug.cgi?id=338621

    0 讨论(0)
提交回复
热议问题