camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-12040) camel-example-cdi-rest-servlet - Test error due jetty JAR problem
Date Tue, 28 Nov 2017 16:22:00 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-12040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16268986#comment-16268986
] 

ASF GitHub Bot commented on CAMEL-12040:
----------------------------------------

astefanutti commented on issue #2122: CAMEL-12040 - use jetty9.2 where init supported
URL: https://github.com/apache/camel/pull/2122#issuecomment-347577746
 
 
   @onders86 it seems a new dependency on `jetty-deploy` must be added:
   
   ```xml
   <dependency>
       <groupId>org.eclipse.jetty</groupId>
       <artifactId>jetty-deploy</artifactId>
       <version>${jetty9-version}</version>
       <scope>runtime</scope>
   </dependency>
   ```
   
   The missing class has been moved there. I've tested with the additional JAR and it works
fine :)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> camel-example-cdi-rest-servlet - Test error due jetty JAR problem
> -----------------------------------------------------------------
>
>                 Key: CAMEL-12040
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12040
>             Project: Camel
>          Issue Type: Test
>          Components: examples, tests
>            Reporter: Claus Ibsen
>             Fix For: 2.21.0
>
>
> camel-itest-cdi-servlet fails with error like
> [INFO] Running org.apache.camel.example.cdi.rest.servlet.CdiRestServletTest
> 2017-11-26 22:31:08,494 [main           ] INFO  log                            - Logging
initialized @722ms to org.eclipse.jetty.util.log.Slf4jLog
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.576 s <<<
FAILURE! - in org.apache.camel.example.cdi.rest.servlet.CdiRestServletTest
> [ERROR] org.apache.camel.example.cdi.rest.servlet.CdiRestServletTest  Time elapsed: 0.575
s  <<< ERROR!
> java.lang.NoSuchMethodError: org.eclipse.jetty.server.handler.HandlerCollection.<init>(Z)V
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:369)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:275)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:239)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:160)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message