jetty

Why can't my jar files and my .war file be found within my project build? Maven

懵懂的女人 提交于 2019-12-10 22:06:59
问题 Ok so I'm trying to test my Maven app locally with this command: java -jar target/dependency/jetty-runner.jar target/*.war But I'm getting this error: "Unable to access jarfile target/dependency/jetty-runner.jar." It also can't seem to access my .war file. I don't know what's going on. I tried manually downloading the jetty-runner.jar file and exporting my project into a war, and then running the command from my desktop where the two files were located, and that worked. So it's gotta be a

Using Java Program How to programmatically start Jetty on port 80 as non-root user

帅比萌擦擦* 提交于 2019-12-10 21:27:07
问题 I'm trying following progam: If i use SUDO java to run everthing is fine, but I don't want to use SUDO without SUDO i get following error: SocketException: Permission Denied (as its PORT 80) Using jetty documentation, I get this to work using command line where i change jetty-setuid.xm l -- Put user-name is non-root user start.ini -- Change to EXEC and passing etc/jetty-setuid.xml as first parameter jetty.xml -- To have port number as 80 then I still do sudo as non-root user -- like -> sudo

Can i run WebAppContext with WebSocketHandler in same instance?

好久不见. 提交于 2019-12-10 19:46:15
问题 is it possible to run WebSocketHandler and WebAppContext together? I'm using latest version 9.2.1.v20140609 . I tried configuration below, but on Websocket call to localhost:8080/ WebAppContext intercepts call. Here is my Launcher: public static void main(String[] args) throws Exception { ServerConnector connector = new ServerConnector(server); connector.setPort(8080); server.addConnector(connector); WebAppContext context = new WebAppContext("webapp", "/"); // Setting up browser caching.

Mule/Jetty Setup

南楼画角 提交于 2019-12-10 19:24:08
问题 I have a working Mule application that I want to setup Jetty on to respond to http requests. The following config: <jetty:endpoint address="http://localhost:8080" name="jettyEndpoint" host="localhost" port="8080" path="/" synchronous="true" /> <service name="jettyUMO"> <inbound> <jetty:inbound-endpoint ref="jettyEndpoint" /> </inbound> <test:component appendString="Received" /> </service> ...works when I start the application, and point browser of choice to http://localhost:8080 - all that

Managing many jars via WebAppContext extraClasspath

蹲街弑〆低调 提交于 2019-12-10 19:07:18
问题 I have an embedded jetty server that hot deploys webapps. When deploying the other wars, I add a deployment descriptor.xml to the directory to configure the webappcontext. I wish to add a DIRECTORY of jars that gets built in another location to the classpath of the hot deployed war (/extJars). I see how to do this within the webapp descriptor.xml, and I can accomplish this by stating individual jars, but I have tried multiple configurations for trying to simply read ALL jars in this directory

There are two questions when i start jetty

半城伤御伤魂 提交于 2019-12-10 18:57:26
问题 maven + jetty + spring 3.2 My jetty infomation: 2013-03-08 20:16:23.541:INFO:oejs.Server:main: jetty-9.0.0.RC2 2013-03-08 20:16:26.590:INFO:oejpw.PlusConfiguration:main: No Transaction manager found - if your webapp requires one, please configure one. [DEBUG][2013-03-08 20:16:35,801]->org.eclipse.jetty.util.log [Logging to org.slf4j.impl.Log4jLoggerAdapter(org.eclipse.jetty.util.log) via org.eclipse.jetty.util.log.Slf4jLog] 2013-03-08 20:16:35.848:INFO:/:main: No Spring

Jetty + intellij idea :: add library

孤街醉人 提交于 2019-12-10 18:46:16
问题 I get java.lang.NoClassDefFoundError when I add 3d party library to my project. I've tried add libraries to web-inf/module dependencies/server libs, but it doesn't work. What the right way to add libraries to project using jetty and idea? 回答1: It's a two step process if you're using IntelliJ 9 or higher. Open the project structure and click on "libraries". Add the directory containing the JARs you're interested in. Then click on "artifacts" and make sure that your libraries are in WEB-INF/lib

Scalatra app on Openshift - setting Jetty IP

允我心安 提交于 2019-12-10 18:35:42
问题 I'm trying to deploy a minimal Scalatra application on Openshift with DIY cartridge. I've managed to get SBT working, but when it comes to container:start , I get the error: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.SocketException: Permission denied Apparently, embedded Jetty tries to open socket at 0.0.0.0, which is prohibited by Openshift (you can only open ports at $OPENSHIFT_INTERNAL_IP). How can I tell Jetty exactly which IP I need it to listen? 回答1: Yes you are right about

Configure max post size for a external webapp in jetty

浪尽此生 提交于 2019-12-10 18:34:39
问题 My issue is as follows: I deliver a webapp.war and a Tomcat server to deploy it from. My client has the option to not use my server and use a service that deploys my app in Jetty as an external webapp. That Jetty has a limitiation for POST size that is default (200k) and is too small for my app to run all its features properly - my HTTP 1/1 POST request get truncated and become mainly unusable. What I need to do is configure my webapp so that when deployed in Jetty as an external app, its max

How to use Jetty Quickstart with maven-jetty-plugin?

前提是你 提交于 2019-12-10 18:26:29
问题 I've used the documentation on http://www.eclipse.org/jetty/documentation/current/quickstart-webapp.html to get jetty running using the quickstart mechanism. However, this feature is not very well documented and therefore I could not get it running. The Documentation states that a WEB-INF/quickstart-web.xml will be generated, as soon as jetty-quickstart dependency is added, which is not the case. How to enable jetty quickstart when using the maven jetty plugin? 回答1: In the jetty-plugin