maven-jetty-plugin

Jetty Annotation Timeout Reason

陌路散爱 提交于 2019-12-03 01:24:25
I am tying to run my web application with maven jetty plugin. But after some time at startup, it gives the error: [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml [INFO] Web overrides = none 2014-08-10 17:39:45.840:INFO:oejs.Server:main: jetty-9.2.2.v20140723 2014-08-10 17:40:54.961:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.m.p.JettyWebAppContext@1e2c8{/asd,file:/C:/dev/project/hope/target/asd-1.0/,STARTING}{C:\dev\project\hope\target\asd-1.0.war} java.lang.Exception: Timeout scanning annotations at org.eclipse.jetty.annotations.AnnotationConfiguration

Setting debug configuration for maven+jetty+eclipse

二次信任 提交于 2019-12-02 17:41:56
I have created a web app using maven in eclipse. I am using jetty for running the app. I am able to run the app using the maven jetty plugin. But I am facing difficulty while debugging the app - The steps that i have followed to setup debug settings are from the below link http://www.clickonchris.com/2010/05/configuring-jetty-maven-and-eclipse-together-with-hot-deploy/ I can run the app at port 8080 and it keeps on Listening for transport dt_socket at address: 4000. For debugging i have given port 4000. But when i start the debugger in eclipse it gives me a window with following error -

Debug web app in IntelliJ, webapp built by maven, run by jetty

萝らか妹 提交于 2019-12-02 16:15:34
I'm using s/o code, it's a java webapp built by maven. The webapp is run by maven script, like below, and the app is run on localhost:8080, : <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.8.v20121106</version> <configuration> <contextPath>/</contextPath> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <!--<port>8085</port>--> <port>8080</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <stopKey>stop</stopKey> <stopPort>8089</stopPort> </configuration> <

How to ignore maven profiles in child module?

允我心安 提交于 2019-12-02 11:51:16
I want to run the simple flow, I have 6 profiles: generate-schema,unpack-war,run-jetty,test,stop-jetty,start-stop-app the test profile will run on a different child module when I declare it in the mvn goals/properties: * clean --activate-profiles generate-schema,unpack-war,start-stop-app,test --projects apm-tests,apm-tests\apm-adapter-tests verify.* How can I make the child module run only the tests and skip the rest of the profiles (generate-schema and etc.) ? Parent pom sample: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3

Jetty:run fails with NoSuchMethodError with Spring 5

时光毁灭记忆、已成空白 提交于 2019-12-02 09:37:50
问题 I am trying to update my web application to current libraries. When I upgraded Spring from 3.1.1 to 5.0.0 it started to fail with: java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I at org.springframework.web.servlet.FrameworkServlet.publishRequestHandledEvent(FrameworkServlet.java:1083) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1009) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java

Jetty:run fails with NoSuchMethodError with Spring 5

雨燕双飞 提交于 2019-12-02 07:25:05
I am trying to update my web application to current libraries. When I upgraded Spring from 3.1.1 to 5.0.0 it started to fail with: java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I at org.springframework.web.servlet.FrameworkServlet.publishRequestHandledEvent(FrameworkServlet.java:1083) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1009) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:881) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.springframework.web.servlet

Build waits at Jetty start when running integration tests

空扰寡人 提交于 2019-12-02 03:29:57
I'm trying to run some integration / acceptance tests. I want to run these tests only when passed an environment variable, and so I use the following command: mvn clean install -Denv="acceptance" But the build stops at 2015-09-28 18:56:19.273:INFO:oejsh.ContextHandler:main: Started o.e.j.m.p.JettyWebAppContext@4bbc9862{/,file:///home/stephane/dev/java/projects/kahoot-rest/src/main/webapp/,AVAILABLE}{file:///home/stephane/dev/java/projects/kahoot-rest/src/main/webapp/} 2015-09-28 18:56:19.419:INFO:oejs.ServerConnector:main: Started ServerConnector@26b4acf4{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}

Jetty Maven plugin - Put properties file in classpath

为君一笑 提交于 2019-12-01 21:08:27
I'm using the eclipse jetty plugin in my project: <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.0.3.v20130506</version> I have my application that read a file in the classpath of the server, but I can't manage to put it in the Jetty classpath... I would to put it in a folder in my project and make that folder part of the Jetty classpath, how can I do it? Is there a better solution to make that file external to the application? It was just a matter of configuration of the maven plugin <configuration> <scanIntervalSeconds>10</scanIntervalSeconds>

Maven Jetty plugin daemon element not allowed here

谁都会走 提交于 2019-12-01 17:24:10
I am trying to configure a project's pom.xml file. I want it to start Jetty server in testing phase. In order to do it I should add "daemon" element to Jetty plugin as I did below, but IntelliJ warns me with "Element daemon is not allowed here." Can you please help me? What is the reason? <build> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.2.11.v20150529</version> <configuration> <httpConnector> <port>8083</port> </httpConnector> </configuration> <executions> <execution> <id>start-jetty</id> <phase>pre-integration-test</phase>

Maven Jetty plugin daemon element not allowed here

ⅰ亾dé卋堺 提交于 2019-12-01 16:31:56
问题 I am trying to configure a project's pom.xml file. I want it to start Jetty server in testing phase. In order to do it I should add "daemon" element to Jetty plugin as I did below, but IntelliJ warns me with "Element daemon is not allowed here." Can you please help me? What is the reason? <build> <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.2.11.v20150529</version> <configuration> <httpConnector> <port>8083</port> <