jetty

Jetty LdapLoginModule: Login Failure: all modules ignored

岁酱吖の 提交于 2020-01-04 03:54:05
问题 I'm getting the below on trying to submit a login form. Does anyone know what causes this? Thanks. 2012-10-13 13:11:46.300:INFO:oejpjs.LdapLoginModule:Searching for users with filter: '(&(objectClass={0})({1}={2}))' from base dn: ou=people,dc=my-domain,dc=com 2012-10-13 13:11:46.307:INFO:oejpjs.LdapLoginModule:Found user?: true 2012-10-13 13:11:46.311:WARN:oejpj.JAASLoginService: javax.security.auth.login.LoginException: Login Failure: all modules ignored at javax.security.auth.login

Embedded Jetty does not find Annotated Servlet

假如想象 提交于 2020-01-04 03:50:14
问题 Short: I have a project that provides a war artifact which includes a servlet with annotations but no web.xml. If i try to use the war in jetty i always get only the directory listing of the war content but not the servlet execution. Any idea? Long story: My servlets look like this package swa; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet

Setting Jetty resourcebase to static file embedded in the same jar file

雨燕双飞 提交于 2020-01-03 15:05:34
问题 I am trying to access static resource (eg. first.html) packed inside the same .jar file (testJetty.jar), which also has a class which starts the jetty (v.8) server (MainTest.java). I am unable to set the resource base correctly. The structure of my jar file (testJetty.jar): testJetty.jar first.html MainTest.java == Works fine on local machine, but when I wrap it in jar file and then run it, it doesn't work, giving "404: File not found" error. I tried to set the resourcebase with the following

Setting Jetty resourcebase to static file embedded in the same jar file

你。 提交于 2020-01-03 15:04:29
问题 I am trying to access static resource (eg. first.html) packed inside the same .jar file (testJetty.jar), which also has a class which starts the jetty (v.8) server (MainTest.java). I am unable to set the resource base correctly. The structure of my jar file (testJetty.jar): testJetty.jar first.html MainTest.java == Works fine on local machine, but when I wrap it in jar file and then run it, it doesn't work, giving "404: File not found" error. I tried to set the resourcebase with the following

How to configure embedded jetty to access Jersey resources?

半城伤御伤魂 提交于 2020-01-03 11:26:04
问题 I'm trying to configure embedded jetty to talk to my Jersey resources but I can't figure out how to do it. I've tried a couple of different things but nothing seems to work. The jetty tutorials don't really handle how to do it with Jersey. Any code suggestions or links are greatly appreciated EDIT: package pojo; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.DefaultServlet; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet

How to configure embedded jetty to access Jersey resources?

柔情痞子 提交于 2020-01-03 11:25:07
问题 I'm trying to configure embedded jetty to talk to my Jersey resources but I can't figure out how to do it. I've tried a couple of different things but nothing seems to work. The jetty tutorials don't really handle how to do it with Jersey. Any code suggestions or links are greatly appreciated EDIT: package pojo; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.DefaultServlet; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet

Spring Boot (七)——容器的相关配置

时间秒杀一切 提交于 2020-01-03 08:43:34
容器的相关配置 我们知道,Springboot项目项目创建好之后是内嵌了Tomcat服务器的,如图所示: 可以看到,这个版本里面的Tomcat版本是9.0.29,所以我们不用再配置本地Tomcat了。那我们怎么去配置服务器的一些信息呢?我们在resource目录下的appllication.properties文件中修改就行了: #修改服务器端口号 server . port = 8082 #修改上下文路径 server . servlet . context - path = / macay #配置Tomcat URL编码 server . tomcat . uri - encoding = UTF - 8 #配置最大连接时间 server . tomcat . max - connections = 1000 再次启动,工程的访问路径就不是默认的localhost:8080了,而是变成了localhost:8082/macay了: 上面说的都是tomcat的配置。那么如果我们不想使用Tomcat怎么办呢?我们只需除去Tomcat的依赖就可以了,如下: < dependency > < groupId > org.springframework.boot </ groupId > < artifactId > spring-boot-starter-web </

How to use jetty continuations with a Filter and FORWARD dispatching?

白昼怎懂夜的黑 提交于 2020-01-03 06:14:07
问题 I have a servlet Filter that acts as the basis of my web stack. In my web.xml I have specified that I want the filter to also act as a FORWARD dispatcher. <filter-mapping> <filter-name>MyFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> This is required for another feature in my framework. Now I am trying to add support for asynchronous continuations. The problem I've come across is that when the continuation

NoClassDef-s with Eclipse Jetty's Maven plugin, again

泪湿孤枕 提交于 2020-01-03 04:12:26
问题 Please, someone help me, I'm desperate. I've been trying all night. The problem I have is this: Weird NoClassDef-s with Eclipse Jetty's Maven plugin Basically: I can't make recent versions of the Jetty plug-in to work properly in an integration test. Indeed, everything works fine until the Jetty's shutdown stage, when I'm told that org.eclipse.jetty.util.FutureCallback is missing. I've included the dependencies told in the link above. Initially they were ignored, then I've added them in

Minimum set of files needed from Jetty to serve static content?

为君一笑 提交于 2020-01-02 17:32:33
问题 Background Disclaimer: I have very little experience with Java. We previously used a wrapped version of Jetty 6 for on-demand static content (JS, CSS, images, HTML) during our Ant build so we can run unit tests with PhantomJS against an HTTP-hosted environment. However, Jetty is now on version 8.1.3 and we no longer need that wrapping (which solves a different problem which is now moot), so I wanted to update to just using Jetty 8.1.3 directly. First I downloaded the whole Jetty distribution,