Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile service: mvm compile #5

Open
PhatWheZ opened this issue Jul 5, 2021 · 2 comments
Open

Unable to compile service: mvm compile #5

PhatWheZ opened this issue Jul 5, 2021 · 2 comments

Comments

@PhatWheZ
Copy link

PhatWheZ commented Jul 5, 2021

~/report-runner-service$ mvn compile
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< minimal_reports:minimal_reports >-------------------
[INFO] Building minimal_reports 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[WARNING] The POM for org.olap4j:olap4j:jar:0.9.7.309-JS-3 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.471 s
[INFO] Finished at: 2021-07-05T22:07:13Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project minimal_reports: Could not resolve dependencies for project minimal_reports:minimal_reports:war:1.0-SNAPSHOT: Failure to find org.olap4j:olap4j:jar:0.9.7.309-JS-3 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

@PhatWheZ
Copy link
Author

Was able to compile the package after adding the following to the POM.xml

<dependency>
	<groupId>org.olap4j</groupId>
	<artifactId>olap4j-xmlaserver</artifactId>
	<version>1.2.0</version>
</dependency>

I have enabled the service on start-up but still it doesnt seem to be working after making the necessary changes in the local_specify_settings.py

Here is the output from the service
● report-runner.service - Specify Report Runner Service
Loaded: loaded (/etc/systemd/system/report-runner.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-07-20 07:03:02 UTC; 44s ago
Main PID: 1245 (java)
Tasks: 29 (limit: 2263)
CGroup: /system.slice/report-runner.service
└─1245 /usr/bin/java -classpath /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dmaven.home=/usr/share/maven -Dlibrary.jansi.path=/usr/share/maven/lib/jansi-native -Dmaven.mult

Jul 20 07:03:15 capenature mvn[1245]: [INFO] Context path = /
Jul 20 07:03:15 capenature mvn[1245]: [INFO] Tmp directory = /home/specify/report-runner-service/target/tmp
Jul 20 07:03:15 capenature mvn[1245]: [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
Jul 20 07:03:15 capenature mvn[1245]: [INFO] Web overrides = none
Jul 20 07:03:15 capenature mvn[1245]: [INFO] web.xml file = file:/home/specify/report-runner-service/src/main/webapp/WEB-INF/web.xml
Jul 20 07:03:15 capenature mvn[1245]: [INFO] Webapp directory = /home/specify/report-runner-service/src/main/webapp
Jul 20 07:03:15 capenature mvn[1245]: [INFO] jetty-8.1.16.v20140903
Jul 20 07:03:17 capenature mvn[1245]: [INFO] No Transaction manager found - if your webapp requires one, please configure one.
Jul 20 07:03:17 capenature mvn[1245]: [INFO] Started SelectChannelConnector@localhost:8082
Jul 20 07:03:17 capenature mvn[1245]: [INFO] Started Jetty Server

@chrisIsen
Copy link

chrisIsen commented Sep 15, 2021

I had the same issue, but had to modify the dependency slightly:

<dependency>
        <groupId>org.olap4j</groupId>
	<artifactId>olap4j-xmlaserver</artifactId>
	<version>1.2.0</version>
</dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants