jetty

EOF / Invalid function argument (errno:4022) with Jetty 9

旧城冷巷雨未停 提交于 2019-12-13 06:16:45
问题 Couldnt find whether there is any configuration for static content. Its not downloading the js file, I hope it because of larger in size when compare with others. Jetty version : 9.2.10 OS : HP Nonstop I can see the following errors in jetty debug DEBUG org.eclipse.jetty.io.WriteFlusher - write exception org.eclipse.jetty.io.EofException: null at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:192) ~[jetty-io-9.2.10.v20150310.jar:9.2.10.v20150310] at org.eclipse.jetty.io

How can I programmatically start a jetty server with multiple configuration files?

陌路散爱 提交于 2019-12-13 06:13:22
问题 In other words, what is this equivalent to: java -jar start.jar etc/jetty.xml jetty-plus.xml I'm using Jetty 6. 回答1: This is possible with Jetty 7, Jetty 8, and Jetty 9. Can you upgrade? Note: Jetty 6 was end of life'd back in 2010. package jetty; import java.io.File; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.xml.XmlConfiguration; public class

adding newrelic addon heroku java

吃可爱长大的小学妹 提交于 2019-12-13 05:47:24
问题 I'm trying to add the newrelic addon to my application that is deployed in heroku using Jetty. This is what i'm trying to do and the answer I get. I Already unpack the newrelic folder in the root. ~ $ java -jar newrelic/newrelic.jar install Picked up JAVA_TOOL_OPTIONS: -Djava.rmi.server.useCodebaseOnly=true -Djava.rmi.server.useCodebaseOnly=true Jul 16, 2014 03:20:57 +0000 [95 1] com.newrelic INFO: Agent is using Logback ***** ( ( o)) New Relic Java Agent Installer ***** Installing version 3

Jetty web.xml 503

ぃ、小莉子 提交于 2019-12-13 05:03:27
问题 So I'm trying to set up Jetty for a school project, using Jersey on the server side and Gradle to build and run it. I have my web.xml and a test that I'm trying to hit with curl. Here's what I got: web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <servlet>

Debugging jetty daemon process in gradle

送分小仙女□ 提交于 2019-12-13 04:44:17
问题 Using a JettyRun task, it's easy to debug. You can merely add something like -Xdebug -Xrunjdwp:transport=dt_socket,address=12233,server=y,suspend=n to your GRADLE_OPTS and hook up to the gradle process itself. However, if you run a JettyRun task with daemon = true, this doesn't work. Example of one such task: task jettyRunDaemon (type: JettyRun) { contextPath = '/' classpath = sourceSets.test.runtimeClasspath webAppSourceDirectory = file('src/test/webapp') daemon = true } I've tried some

Cant find config files in Jetty + Spring + Tiles deployement

好久不见. 提交于 2019-12-13 04:21:37
问题 I have a Spring + Tiles project which is working fine and now I planned to move it into Jetty instead of deploying on Tomcat. So configured jetty server to use { DispatcherServlet} and set my setContextConfigLocation("classpath:spring-application-context.xml"). In my application context xml I have tiles configured and my tiles.xml file is in WEB-INF directory, but during initialization my application never finds it, doesnt matter it is in classpath or not, it cant find it. My deployment

how to invalidate sessions in jetty Hazelcast?

不羁的心 提交于 2019-12-13 03:56:00
问题 I am using hazelcast 3.6.3 in jetty 9.4.8 for session replication and we would like to invalidate multiple sessions based on a separate JMS message. the hazelcast config is (using zookeeper for peer discovery) Config config = new Config(); config.setInstanceName(HAZELCAST_INSTANCE_NAME); // logger config config.setProperty("hazelcast.logging.type", "slf4j"); // config for session map MapConfig sessionMapConfig = new MapConfig(); sessionMapConfig.setName(SESSION_MAP_NAME) .setBackupCount(2);

trouble setting up LDAP integration with ActiveMQ (on centos7) admin page

怎甘沉沦 提交于 2019-12-13 03:40:59
问题 I have read every page I can find on this, and I just am not getting something. I am but a simple farmer (sysadmin), and I am running out hair to pull out. What I did: On a Centos7 box, I installed apache-activemq-5.15.8 by downloading the latest tarball, and expanding it. I set up a service file and a few other niceties, and the service will run, and I could log into the admin page with the default creds. Being a masochist, I deiced to make it 'easy' for the users of this app by configuring

Start Jersey application with Jetty

人走茶凉 提交于 2019-12-13 02:58:45
问题 I install jetty 9 server in my Ubuntu server VCS. Structure of java rest project: /opt/jetty/webapps/backend / build conf lib libs logs src/com/example/package/backend resources CategoryResource.java BackendServer.java web WEB-INF web.xml BackendServer.java import com.sun.jersey.api.container.httpserver.HttpServerFactory; import com.sun.jersey.api.core.PackagesResourceConfig; import com.sun.net.httpserver.HttpServer; public class BackendServer { public static void main(String[] args) throws

jetty and etc environment on ubuntu 12.10

冷暖自知 提交于 2019-12-13 02:34:36
问题 When running jetty project under IntelliJ I have no problem to read environment variable I set to /etc/environment using the System.getenv("var1") api. When I deploy the war to Ubuntu server that start Jetty at boot, I get null when calling System.getenv("var1") When I run a simple console application on the server under my user (suder user) I get the environment variable currently. What I need to do in order to make the environment variables in /etc/environment visible to the war when it