ClassNotFoundException: org.eclipse.jetty.util.component.AbstractLifeCycle running inside jetty

前端 未结 5 963
太阳男子
太阳男子 2020-12-10 05:49

I am having an issue running a servlet in jetty on Ubuntu 13.04. The server is installed using apt-get and started using sudo service jetty start.

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 06:01

    Put the following into your webapps/YOURWAR.xml, within the (the - in front of org.eclipse.jetty.util. is important):

    
      -org.eclipse.jetty.util.
    
    

    You need to prepend it, because the order is important and the last one which is added by default is org.eclipse.jetty. as documented on eclipse.org. So calling addServerClass would be a no-op, as org.eclipse.jetty.util. is already be excluded by org.eclipse.jetty..

提交回复
热议问题