• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jetty : stuck at an ' No LoginService ' exception, not able to proceed

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have written a class which starts jetty during which it deploys a web application on the jetty.
The jetty is getting started but there is some problem while deploying my web application.
if i place the web application's war on jetty explicitly , it works fine.
but when i try to do it from my java program , its giving me following exception :
not able to understand where i am going wrong.

----------------------------------------------------------------------------------------------------------------------------------------------------------

java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator@f73c1
at org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:33)
at org.eclipse.jetty.security.authentication.DelegateAuthenticator.setConfiguration(DelegateAuthenticator.java:29)
at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:331)
at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:200)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:82)
at org.eclipse.jetty.server.session.SessionHandler.doStart(SessionHandler.java:117)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:82)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:581)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:552)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:350)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:82)
at org.eclipse.jetty.server.Server.doStart(Server.java:221)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55

------------------------------------------------------------------------------------------------------------------------------------

can somebody tell me what am i missing here ???
 
reply
    Bookmark Topic Watch Topic
  • New Topic