Problems compiling latest odata4j source

44 views
Skip to first unread message

Simon Payne

unread,
Jun 16, 2017, 11:46:55 AM6/16/17
to odata4j-discuss
Hi all,

I am trying to compile the latest cloned odata4j source code 0.8.0-SNAPSHOT from https://github.com/odata4j/odata4j.git.  I have tried building it on OpenJDK 6 with Maven 3.0.5 (I saw in the parent pom that source and target are 6 so thought that might work best). I get this error, pasted below. Can anyone advise what are the correct JDK and Maven version to use? 

NB I'm on Ubuntu 14.04 ...

Linux vagrant-ubuntu-trusty-64 3.13.0-119-generic #166-Ubuntu SMP Wed May 3 12:18:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

thanks

Simon

{
] 22 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] odata4j-parent .................................... SUCCESS [1.733s]
[INFO] odata4j-core ...................................... SUCCESS [1:23.371s]
[INFO] odata4j-jersey .................................... SUCCESS [5.308s]
[INFO] odata4j-cxf ....................................... FAILURE [1.927s]
[INFO] odata4j-examples .................................. SKIPPED
[INFO] odata4j-fit ....................................... SKIPPED
[INFO] odata4j-dist ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:33.850s
[INFO] Finished at: Fri Jun 16 15:37:19 UTC 2017
[INFO] Final Memory: 37M/89M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project odata4j-cxf: Compilation failure: Compilation failure:
[ERROR] no such file or directory
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[13,33] package org.eclipse.jetty.security does not exist
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[14,31] package org.eclipse.jetty.server does not exist
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[15,31] package org.eclipse.jetty.server does not exist
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[16,39] package org.eclipse.jetty.server.handler does not exist
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[30,21] cannot find symbol
[ERROR] symbol  : class Handler
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[31,10] cannot find symbol
[ERROR] symbol  : class SecurityHandler
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[32,10] cannot find symbol
[ERROR] symbol  : class Server
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[60,47] cannot find symbol
[ERROR] symbol  : class Handler
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[65,48] cannot find symbol
[ERROR] symbol  : class SecurityHandler
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[128,10] cannot find symbol
[ERROR] symbol  : class HandlerCollection
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[30,67] cannot find symbol
[ERROR] symbol  : class Handler
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[82,44] cannot access javax.servlet.http.HttpServlet
[ERROR] class file for javax.servlet.http.HttpServlet not found
[ERROR] CXFNonSpringJaxrsServlet odataServlet = new CXFNonSpringJaxrsServlet();
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[83,39] cannot access javax.servlet.Servlet
[ERROR] class file for javax.servlet.Servlet not found
[ERROR] ServletHolder odataServletHolder = new ServletHolder(odataServlet);
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[84,22] cannot access org.eclipse.jetty.util.component.AbstractLifeCycle
[ERROR] class file for org.eclipse.jetty.util.component.AbstractLifeCycle not found
[ERROR] odataServletHolder.setInitParameter("javax.ws.rs.Application", odataApp.getCanonicalName());
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[86,43] cannot access org.eclipse.jetty.server.HandlerContainer
[ERROR] class file for org.eclipse.jetty.server.HandlerContainer not found
[ERROR] ServletContextHandler contextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[87,18] cannot access org.eclipse.jetty.server.handler.ContextHandler
[ERROR] class file for org.eclipse.jetty.server.handler.ContextHandler not found
[ERROR] contextHandler.addServlet(odataServletHolder, normalizePath(url.getPath()) + "/*");
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[91,40] cannot find symbol
[ERROR] symbol  : constructor ServletHolder(org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet)
[ERROR] location: class org.eclipse.jetty.servlet.ServletHolder
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[100,17] cannot find symbol
[ERROR] symbol  : class Server
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[129,9] cannot find symbol
[ERROR] symbol  : class Handler
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[132,4] cannot find symbol
[ERROR] symbol  : class HandlerCollection
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[132,46] cannot find symbol
[ERROR] symbol  : class HandlerCollection
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] /work/odata4j/odata4j-cxf/src/main/java/org/odata4j/cxf/producer/server/ODataCxfServer.java:[133,70] cannot find symbol
[ERROR] symbol  : class Handler
[ERROR] location: class org.odata4j.cxf.producer.server.ODataCxfServer
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :odata4j-cxf

}
Reply all
Reply to author
Forward
0 new messages