jetty

How can i deliver jetty with many webapps via jnlp?

你离开我真会死。 提交于 2019-12-07 13:11:24
问题 i have a webapp (http://sourceforge.net/projects/sf-mvn-plugins/files/m2-repo/net/sf/maven/plugins/example-captaincasa-jnlp/0.1-SNAPSHOT/example-captaincasa-jnlp-0.1-SNAPSHOT.war/download) wich use jsf in a servlet container. This works fine with jetty-maven-plugin run-war target at my local pc. In the future i would like make more of this kind of weapps. Now i am looking for a way to deliver this webapps with jetty via jnlp. The end user should be have a zero installation but the webapps

Container-Agnostic Websocket throws NPE with Embedded Jetty

丶灬走出姿态 提交于 2019-12-07 12:44:30
I'm writing a container-agnostic Websocket server. My development environment uses IntelliJ IDEA with an embedded Jetty version 9.3.11.v20160721 (embed code below). My code, however, uses the Tomcat Websocket libraries, tomcat-websocket-api and tomcat-websocket , version 8.5.4 . I want to register the Websocket EndPoint with a ServletContextListener . Following some examples from the Tyrus project , as well as some answers on SO and in the Jetty mailing list by Joakim Erdfelt (@joakim-erdfelt), I wrote the following implementation and added it via a listener in web.xml . The code enters the

Spring MVC - No mapping found for HTTP request with URI [duplicate]

喜你入骨 提交于 2019-12-07 12:33:28
This question already has answers here : Why does Spring MVC respond with a 404 and report “No mapping found for HTTP request with URI […] in DispatcherServlet”? (7 answers) Closed 2 years ago . I'm aware that there are loads of questions on the topic but none of the solutions i found here worked for me. I'm using Spring with Jetty 6 so i don't have a web.xml file. The mapping for the spring dispatcher servlet is set to "/" in jetty's config dispatcher: <bean class="org.mortbay.jetty.servlet.ServletHolder"> <property name="name" value="spring" /> <property name="servlet"> <bean class="org

How to install or config activemq admin cosole(jetty) use apt-get command?

六月ゝ 毕业季﹏ 提交于 2019-12-07 12:29:05
问题 I have a Ubuntu machine 12.04 version. I use the following command to install the activemq : #sudo apt-get install activemq By the default apt-get only install activemq 5.5 core service on port 61616. Now I want the jetty admin console on port 8161. I've tried to copy the jetty.xml to /etc/activemq/instances-available/main/ and add the import to activemq.xml . Then the following error came when I run activemq in console mode ERROR: java.lang.Exception: org.springframework.beans.factory

Possible Spring Boot or Spring Security Memory Leak

守給你的承諾、 提交于 2019-12-07 12:05:44
问题 I have been running a spring boot application with spring security under a soak test and found that it gradually fills up its memory allocation. I booted up the application with: java -Xmx128m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:gc.log -verbose:gc -jar target/myapp-0.0.1-SNAPSHOT.jar So that I could get teh gc info out and restrict the memory to reach my OutOfMemoryError situation sooner (well half an hour, rather than two weeks) I have run this with both tomcat and jetty as

java.lang.SecurityException with two conflicting versions of javax.servlet.servlet-api jars

徘徊边缘 提交于 2019-12-07 11:17:34
问题 I'm struggling with a Java/Maven/Jetty problem that I can't solve. I have a Java Jetty server that starts up correctly but as soon as an HTTP request is sent to it, it aborts showing this stacktrace: 2013-09-30 08:40:24,534 [qtp297240915-11 Selector0] WARN org.eclipse.jetty.io.nio - java.lang.SecurityException: class "javax.servlet.AsyncContext"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:806)

Jersey: “Missing dependency for method …”

淺唱寂寞╮ 提交于 2019-12-07 11:09:05
问题 Could somebody please explain the meaning of this error? INFO: Scanning for root resource and provider classes in the Web app resource paths: /WEB-INF/lib /WEB-INF/classes Feb 21, 2012 3:03:48 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses INFO: Root resource classes found: class com.foo.dom2jcr.rest.XMLCRUDRestlet Feb 21, 2012 3:03:48 AM com.sun.jersey.api.core.ScanningResourceConfig init INFO: No provider classes found. Feb 21, 2012 3:03:48 AM com.sun.jersey.server.impl

How do I deploy a Servlet in Jetty?

二次信任 提交于 2019-12-07 10:31:47
问题 I have created a simple Servlet that I want to deploy in Jetty 7.2. Jetty is running and is able to serve JSP pages on http://localhost:8080/jonas/test.jsp . I started Jetty with the java -jar start.jar command. I saved my compiled Servlet MyServlet.class at <my_jetty_directory>/webapps/jonas/WEB-INF/classes/MyServlet.class and then tried to access that Servlet on http://localhost:8080/jonas/servlets/MyServlet but I get a HTTP 404 error. HTTP ERROR 404 Problem accessing /jonas/servlet

How to config local Jetty ssl to avoid weak phermeral DH key error?

落爺英雄遲暮 提交于 2019-12-07 10:23:13
问题 I'm using keytool to generate a keystore to config a local development jetty to run ssl keytool.exe -keystore jetty.keystore -alias jetty -genkey -keyalg RSA -sigalg SHA256withRSA Jetty config: <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector"> <Arg> <New class="org.eclipse.jetty.http.ssl.SslContextFactory"> <Set name="keyStore">jetty/jetty.keystore</Set> <Set name="keyStorePassword">jetty6</Set> <Set name="keyManagerPassword">jetty6</Set>

NameNotFoundException Jetty 9 JNDI lookup

我的梦境 提交于 2019-12-07 10:05:54
问题 I need to implement JNDI for Jetty 9.0.3 web server for H2 database using C3p0 connection pooling, I've placed both H2 and C3p0 jars in lib/ext of JETTY-HOME directory and I've created a jetty-env.xml file in my WEB-INF. WEB-INF/jetty-env.xml <?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <New id="DSTest" class="org.eclipse.jetty.plus.jndi.Resource