GithubHelp home page GithubHelp logo

Compilation error: ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java:[59,5] error: cannot find symbol about ctakes-rest-service HOT 4 CLOSED

goteamepsilon avatar goteamepsilon commented on August 29, 2024
Compilation error: ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java:[59,5] error: cannot find symbol

from ctakes-rest-service.

Comments (4)

MatthewVita avatar MatthewVita commented on August 29, 2024 1

Hi folks. One of the Team Epsilon folks here. I have been away from open source for many months due to health issues.

What @alessiaBasadonne points out is exactly the kind of thing I am working to correct on the README. My work is all on a local branch right now but has many corrections. Hope to get it pushed within the month.

Although I will have some outliers, these corrections will likely help with the open project issues.

from ctakes-rest-service.

alessiaBasadonne avatar alessiaBasadonne commented on August 29, 2024

Occurs after calling: mvn install in ./ctakes-web-rest:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.4:compile (default-compile) on project ctakes-web-rest: Compilation failure: Compilation failure:
[ERROR] /home/michaeljtbrooks/Downloads/Installers/ctakes-rest-service-master/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java:[34,23] error: cannot find symbol
[ERROR] symbol: class PostConstruct
[ERROR] location: package javax.annotation
[ERROR] /home/michaeljtbrooks/Downloads/Installers/ctakes-rest-service-master/ctakes-web-rest/src/main/java/org/apache/ctakes/rest/service/CtakesRestController.java:[59,5] error: cannot find symbol
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.4:compile (default-compile) on project ctakes-web-rest: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:678)
at org.apache.maven.plugin.CompilerMojo.execute (CompilerMojo.java:128)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR]
[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] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I encountered the same Exception; is there a Fix?

from ctakes-rest-service.

alessiaBasadonne avatar alessiaBasadonne commented on August 29, 2024

Occurs after calling: mvn install in ./ctakes-web-rest:

[....]
Hey @michaeljtbrooks I did manage to make the installation work! The problem is that if you follow this step (sudo apt-get install default-jdk you end up with java 10 instead of java 8 which causes broken dependencies in the project)
This issue is not related to ctakes but made me get what was the problem:
[(https://github.com/micronaut-projects/micronaut-core/issues/441)]

So here is how I modified the installation to make it work:
Instead of sudo apt-get install default-jdk use sudo apt-get install openjdk-8-jdk

In the Tomcat portion the version in the wget does not exist anymore, substitute 8.5.37 or with 8.5.42 or another version that exists.

Modify tomcat.service to make it point to the right JVM (Not the latest but Java8)

Environment="JAVA_HOME=/usr/lib/jvm/default-java" -> Environment="JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64"

If you have any problem feel free to contact me! I think we can close the issue, 'cause it's not really a bug :)

from ctakes-rest-service.

MatthewVita avatar MatthewVita commented on August 29, 2024

Okay, README is updated. I'm going to close this. If it needs to be re-opened, let me know.

from ctakes-rest-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.