jetty

Spring under Geronimo v2.1 with Jetty

这一生的挚爱 提交于 2019-12-11 15:36:14
问题 I trying to deploy Java EE web application on Geronimo container with Jetty web server. Unfortunately I have some troubles, I'm getting NoSuchMethod error. I saw that somebody had similar problem, and the solution was to remove redundant spring-framework library from classpath. But it doesn't work for me, my classpath is correctly constructed. Here's contents of WEB-INF/lib directory: aopalliance-1.0.jar commons-collections-3.2.1.jar commons-logging-1.1.1.jar dom4j-1.6.1.jar h2-1.3.164.jar

How to deploy in a gwt-maven project

时光总嘲笑我的痴心妄想 提交于 2019-12-11 14:49:21
问题 first of all, I'm not sure which folders and files i have to deploy in a gwt-maven project I've got: .gwt .settings bin src/main/java target war pom.xml I'm pretty sure, I've to deploy the pom.xml somehow and the target folder. But my target folder doesn't contain a pom.xml which I need for deploying on a jetty server Second: I've installed maven on my webserver, but apart from embedding the jetty-maven-plugin in the pom.xml (by org.eclipse.jetty jetty-maven-plugin ) I have absolutely no clue

Unable to access IDempiere - java.io.IOException: java.util.concurrent.TimeoutException: Idle timeout expired: 123000/123000 ms

前提是你 提交于 2019-12-11 14:24:17
问题 I am Unable to access IDempiere Instance webui getting below error. java.io.IOException: java.util.concurrent.TimeoutException: Idle timeout expired: 123000/123000 ms at org.eclipse.jetty.util.SharedBlockingCallback$Blocker.block(SharedBlockingCallback.java:226) at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:164) at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:436) at java.io.OutputStream.write(OutputStream.java:75) at org.zkoss.zk.ui.http.WpdExtendlet.service

Custom CharacterEscapeHandler defined in JaxBMarshaller works in Jetty, but not in Weblogic

我的未来我决定 提交于 2019-12-11 14:15:19
问题 The version of web logic is 12c. So we were having the double & issue with the JaxBMasheller so we defined our own CharacterEscapeHandler, to essentially do nothing: marshaller.setProperty(CharacterEscapeHandler.class.getName(), new CharacterEscapeHandler() { @Override public void escape(char[] ch, int start, int length, boolean isAttVal, Writer out) throws IOException { out.write(ch, start, length); } }); This works great in Jetty, where we do most of our testing. However once we deploy this

Jetty JNDI resource fails: “java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSource”

我的未来我决定 提交于 2019-12-11 14:03:32
问题 When I started the Jetty (over Gretty plugin) I get the CNF exception. When I run gradlew :MyWebApplication:appRun -ds > g.log I see following configuration in debug: { "servletContainerId": "jetty9.3", "servletContainerDescription": "Jetty 9.3.25.v20180904", "httpEnabled": true, "httpPort": 8585, "serverConfigFile": "C:\\Users\\user\\eclipse-workspace\\WS\\jetty.xml", "logbackConfigFile": "C:\\Users\\user\\eclipse-workspace\\WS\\MyWebApp\\config\\logback.xml", "loggingLevel": "INFO",

“Closed while Pending/Unready” warnings from Jetty

谁都会走 提交于 2019-12-11 13:49:57
问题 After fixing synchronization issues in our async servlet we still got rare java.io.IOException: Closed while Pending/Unready warnings from Jetty. With the fixes above it decreased from ~90/day to ~5/day in our production system. It's rare and it seems a lot better but probably something minor is still missing. Complete stacktrace: [jetty-63523] (HttpOutput.java:287) - java.io.IOException: Closed while Pending/Unready at org.eclipse.jetty.server.HttpOutput.close(HttpOutput.java:285) at org

camel jetty benchmark testing for requests per second

一个人想着一个人 提交于 2019-12-11 13:08:18
问题 I am building a high load http service that will consume thousands of messages per second and pass it to a messaging system like activemq. I currently have a rest service (non-camel, non-jetty) that accepts posts from http clients and returns a plain successful respone and i could load test this using apache ab. We are also looking at camel-jetty as input endpoint since it has integration components for activemq and be part of an esb if required. Before i start building a camel-jetty to

Embeded Jetty, kill Request after a given time

爱⌒轻易说出口 提交于 2019-12-11 13:06:56
问题 I run a jar with an embedded Jetty. From time to time it happens that one request get stuck in some endless loop. Obviously fixing the endless-loop would be the best option. However, this is currently not possible. So I am looking for an option, that checks if a request exists for more than e.g. 5 minutes, and kills the corresponding thread. I tried the typical Jetty options: maxIdleTime soLingerTime stopTimeout None of them worked as expected. Is there another option to consider? 回答1: Do you

“IllegalArgumentException: !utf8” Jetty error on most requests

断了今生、忘了曾经 提交于 2019-12-11 12:53:02
问题 I made a small change to my app today, and all of a sudden 90% of our requests are throwing errors on this line: private void serve(HttpServletRequest req, HttpServletResponse resp) { String bundle = req.getParameter("bundle"); I don't know what to do – the exception is deep within Jetty's query request parser. There's nothing unusual about the requests, and I don't think there's any non-UTF8 characters, unless they are unprintable or something. /sync java.lang.IllegalArgumentException: !utf8

Test Spring-Rest Service with embedded Jetty

二次信任 提交于 2019-12-11 11:59:36
问题 i want to create an embedded jetty server (not maven, gradle etc.) to test a spring rest service. Therefor i created an EmbeddedServer class. But unfortunately invocation of the rest service leads always to an http 404 error. What doing wrong? The rest service works fine with tomcat (not embedded). Im using the following dependencies: "org.eclipse.jetty:jetty-server:8.1.17.v20150415" "org.eclipse.jetty:jetty-webapp:8.1.17.v20150415" Here is the EmbededServer class: import org.eclipse.jetty