jetty

org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl

人盡茶涼 提交于 2019-12-18 03:32:37
问题 I have a web service project implemented in java and it also contains jsp pages. I deploy it on jetty 8.1.5 on my machine and it works normally. But when I deploy on a windows server 2003 with jetty 8.1.3 it gives this exception: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl This is the full trace: java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl at org.apache.jasper

Running Jetty 7 as Windows Service

醉酒当歌 提交于 2019-12-17 23:22:03
问题 Did Jetty 7 drop support to run as a service using Java Service Wrapper? What options do I have now? 回答1: @glb, thanks for pointing out apache commons-daemon Procrun. Its working great for me on Windows 7 64 Bit, here's how I set it up. For more info see procrun page as per link from @glb jetty help screen > java -jar start.jar --help REM 1. Open command prompt as Administrator mkdir C:\java\apache-commons-daemon REM 2. Download commons-daemon binaries for windows to directory above from REM

Getting HTTP 500 when running servlet in Jetty

这一生的挚爱 提交于 2019-12-17 22:28:12
问题 I have a servlet that was running fine until a few days ago. But the only thing that I've changed is the nexus repo I'm using for maven. I'm running the servlet via mvn jetty:run But when I try to access the site instead of seeing the home page, I see: HTTP ERROR 500 Problem accessing /. Reason: jregex/Pattern I can access other url's fine such as /favicon.ico. But I can't find anything on this jregex/Pattern error and it doesn't look like the jregex library is being used in the code at all.

hot deploy in embedded jetty

只愿长相守 提交于 2019-12-17 22:20:28
问题 I have a Spring Roo project and I use mvn jetty:run to run my app. The only problem is changes to the *.java classes do not hot deploy, while changes to *.jspx hot deploy fine. So how can I configure mvn jetty to hotdeploy for java classes? 回答1: You need to set the scanIntervalSeconds to a value greater than 0 to enable it: scanIntervalSeconds - The interval in seconds to scan the webapp for changes and restart the context if necessary. Ignored if reload is enabled. Disabled by default.

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

Angular $http status (-1)

荒凉一梦 提交于 2019-12-17 19:33:58
问题 I call a backend service/resource by AngularJs $HTTP GET . When it is not available it returns 404 and Chrome Network tab shows that it is 404 as the followings: Request Method:OPTIONS Status Code:404 Not Found BUT inside AngularJs $HTTP call result, I get status=-1 and not 404 : {data: null, status: -1, config: Object, statusText: ""} Why does it happen? NB ) I have a jetty Service on the backend and enabled CORS: "Access-Control-Allow-Origin":"*" "Access-Control-Allow-Headers": "origin,

cannot load JSTL taglib within embedded Jetty server

一世执手 提交于 2019-12-17 19:33:35
问题 I am writing a web application that runs within an embedded Jetty instance. When I attempt to execute a JSTL statement, I receive the following exception: org.apache.jasper.JasperException: /index.jsp(1,63) PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application I have the following jars on the classpath ant-1.6.5.jar ant-1.7.1.jar ant-launcher-1.7.1.jar core-3.1.1.jar jetty-6.1.22.jar jetty-util-6.1.22

Maven's jetty plugin SSL configuration issue

痞子三分冷 提交于 2019-12-17 18:59:25
问题 I'm using Jetty's plugin for Maven, version 7.0.0.pre5, but I have issues configuring it to have a SSL Connector. Whenever I start the application, it fails stating that the requested implementation is not found. This is the plugin's configuration within my pom.xml <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.0.0.pre5</version> <configuration> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port

Jetty Maven Plugin is ignoring custom webdefault.xml

人走茶凉 提交于 2019-12-17 18:52:23
问题 I'm trying to get around the common issue of Jetty locking static files on Windows with the technique of setting useFileMappedBuffer to false in webdefault.xml. Unfortunately, every time Jetty is not picking up my customized webdefault.xml. I'm using Apache Maven 3.0.2. I've tried using the maven-jetty-plugin (v6.1.26) and jetty-maven-plugin (v8.0.0.M2) but with no difference. I've tried running clean and rebuilding as well before running Jetty. I've verified each time that my webdefault.xml

Limit on the length of the data that a webserver can return in response to a GET request

懵懂的女人 提交于 2019-12-17 18:51:53
问题 I have a REST service running on jetty server that responds to GET requests with some resource data. So far the data that i retrieve has been in the order of a few kb. I am looking to use a similar REST service that could possibly return huge data, may be a 100 mb or more. No memory issues expected since the request volume is low and both the jetty server and rest client processes have been configured with enough memory. I am wondering if jetty or any webserver in general places a restriction