jetty-8

Failed to collect Maven dependencies in Java HelloWorld when deploying to heroku

倖福魔咒の 提交于 2021-02-11 17:29:43
问题 I'm playing with Java and heroku following the heroku guide. But with few modifications. In this case I use JDK 1.7, Jetty 8.1.2.v20120308 and Maven dependencies plugin 2.7 (Because it seems, 2.4 couldn't be built) All is built ok locally with mvn package but when I use git push heroku master to deploy on heroku, I get this message: [ERROR] Failed to execute goal on project helloart: Could not resolve dep endencies for project main.java:helloart:jar:1.0-SNAPSHOT: Failed to collect dep

Could not find resource path for Web UI: org/apache/spark/ui/static While creating a Spark application

六月ゝ 毕业季﹏ 提交于 2020-01-13 19:49:30
问题 I am creating a java API using spark-cassandra-connector.When it is running on eclipse it is working fine. Then i created a runnable jar file and executed it through the command line , its giving me following error. 15/02/17 14:56:41 INFO spark.HttpServer: Starting HTTP Server 15/02/17 14:56:42 INFO server.Server: jetty-8.y.z-SNAPSHOT 15/02/17 14:56:42 INFO server.AbstractConnector: Started SocketConnector@0.0.0.0:58625 Exception in thread "main" java.lang.reflect.InvocationTargetException at

Could not find resource path for Web UI: org/apache/spark/ui/static While creating a Spark application

白昼怎懂夜的黑 提交于 2020-01-13 19:49:28
问题 I am creating a java API using spark-cassandra-connector.When it is running on eclipse it is working fine. Then i created a runnable jar file and executed it through the command line , its giving me following error. 15/02/17 14:56:41 INFO spark.HttpServer: Starting HTTP Server 15/02/17 14:56:42 INFO server.Server: jetty-8.y.z-SNAPSHOT 15/02/17 14:56:42 INFO server.AbstractConnector: Started SocketConnector@0.0.0.0:58625 Exception in thread "main" java.lang.reflect.InvocationTargetException at

Can I use servlet api 3.0 and jetty 8?

只谈情不闲聊 提交于 2020-01-03 16:54:58
问题 I want to use 3.0 servlet-api with Jetty 8. Currently 2.4 servlet-api is defined in my web.xml. And in the webdefault.xml 2.5 servlet-api is defined. Someone else set this up so they very well might have done something wrong. Which servlet-api version am I actually using? 2.4 or 2.5? I have 3.0 already in my classpath. What do I need to change in web.xml and/or webdefault.xml to get it working? Thank you in advance. 回答1: You normally don't provide the Servlet API yourself. This is normally to

How do I suppress Jetty 8's default ErrorHandler?

坚强是说给别人听的谎言 提交于 2020-01-02 14:31:26
问题 Jetty is helping my application too much. Whenever some unhandled Exception leaks out the top, Jetty takes it upon itself to build a very verbose response and spam it onto my clients HTTP/1.1 500 com.mongodb.MongoException: No replica set members available in [ { address:'localhost/127.0.0.1:27017', ok:true, ping:0.49878865, isMaster:false, isSecondary:true, setName:dmReplSet, maxBsonObjectSize:16777216, },{ address:'localhost/127.0.0.1:27018', ok:true, ping:0.2565605, isMaster:false,

How do I suppress Jetty 8's default ErrorHandler?

寵の児 提交于 2020-01-02 14:30:16
问题 Jetty is helping my application too much. Whenever some unhandled Exception leaks out the top, Jetty takes it upon itself to build a very verbose response and spam it onto my clients HTTP/1.1 500 com.mongodb.MongoException: No replica set members available in [ { address:'localhost/127.0.0.1:27017', ok:true, ping:0.49878865, isMaster:false, isSecondary:true, setName:dmReplSet, maxBsonObjectSize:16777216, },{ address:'localhost/127.0.0.1:27018', ok:true, ping:0.2565605, isMaster:false,

maven jetty plugin - remove localhost/server name from url

只愿长相守 提交于 2019-12-23 04:53:26
问题 i am running my web application using maven jetty plugin. I can access my web application either through localhost , ip or server name . But let say i want to access my application using application name. eg. http://ip:port/login/login.jsp http://servername:port/login/login.jsp I want it something like, no port or ip. http://applicationname/login/login.jsp pom.xml <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.9.v20130131</version>

restful service interface with jersey

江枫思渺然 提交于 2019-12-17 20:38:17
问题 Can I create a restful service with interface and implementation class? If so, will all JAX-RS related imports go into the interface? I am using jersey2.4 and jetty8.1. Here is my MyService interface: package foo.bar; @Path("/abc") public interface MyService { @GET @JSONP @Path("/method/{id}") public MyResponse getStuff(@PathParam("id") Integer id); } And an implementation of MyServiceImpl that interface package foo.bar.impl; public class MyServiceImpl implements MyService { public

Unable to Deploy Allure report on Jetty server

佐手、 提交于 2019-12-11 20:09:41
问题 I am trying to deploy allure report which was generated after "mvn clean test site". I have used mvn jetty:run and when I tried to open "http://localhost:8080", I got a "Directory:/" as a text in firefox browser instead of actual Allure report. Output of jetty server Error Section No Error pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0

Jetty SSL configuration Apache karaf

别来无恙 提交于 2019-12-10 10:30:27
问题 I am trying to configure the jetty to work with SSL in Apache Karaf OSGI container. http works, but https does not work. What could be the problem? My configuration details below: etc/jetty.xml <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"> <Property name="jetty.host" /> </Set> <Set name="port"> <Property name="jetty.port" default="8282" /> </Set> <Set name="maxIdleTime">300000</Set> <Set name="Acceptors">2</Set> <Set name=