on 01-16-2018 9:45 AM
Hi,
I'm trying to build and deploy the SHINE content on the Cloud Foundry Environment within SAP Cloud Platform using CP CLI as described under the link below:
but build fails with the following error message.
SAP CP Cloud Foundry\hana-shine-xsa-shine-cf>java -jar mta.jar -build-target=CF -mtar=shine-cf.mtar buildWARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/C:/Users/NAB/Developer/SAP%20CP%20Cloud%20Foundry/hana-shine-xsa-shine-cf/.mta/deps/guice-4.1.0.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$1WARNING: Use –illegal-access=warn to enable warnings of further illegal reflective access operationsWARNING: All illegal access operations will be denied in a future releaseSAP Multitarget Application Archive Builder 1.1.2Module “shine-core-js”: invoking npmModule “shine-user-js”: invoking npmModule “shine-web”: invoking npmModule “site-content”: C:\Users\NAB\Developer\SAP CP Cloud Foundry\hana-shine-xsa-shine-cf\site-content\package.json already existsModule “shine-core-db”: C:\Users\NAB\Developer\SAP CP Cloud Foundry\hana-shine-xsa-shine-cf\core-db\package.json already existsModule “site-web”: invoking npmModule “shine-core-db”: invoking npmModule “site-content”: invoking npmERROR: Failed to build module “site-web”. Command execution failed
Any idea how to fix this issue? Is there any option to build in debug mode to see more details about the error?
here are some additional infos about the java and maven version which is used
java version “9.0.1”<br>Java(TM) SE Runtime Environment (build 9.0.1+11)<br>Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)<br>Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00)<br>Maven home: C:\Users\NAB\Developer\SAP CP Cloud Foundry\apache-maven-3.5.2\bin\..<br>Java version: 9.0.1, vendor: Oracle Corporation<br>Java home: C:\Users\NAB\Developer\SAP CP Cloud Foundry\Java\jdk-9.0.1<br>Default locale: de_DE, platform encoding: Cp1252<br>OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”
Kind regards
Rouzbeh
setting the following path solved the problem
echo %path%
C:\Users\NAB\Developer\SAP CP Cloud Foundry\apache-maven-3.5.2\bin
C:\Program Files (x86)\Java\jdk1.8.0_161\bin
C:\Users\NAB\Developer\SAP CP Cloud Foundry\node-v6.12.3-win-x64
and running the command
npm config set @sap:registry https://npm.sap.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephen,
The node.js version is 6.12.3 for Windows.
But i am getting the same illegal reflective access error about guice-4.1.0.jar when trying to check the mta.jar version by deploying command java -jar mta.jar -v.
Please suggest.
Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Which version of node.js is installed. As mentioned in the readme Is it Node.js 6.x.x? Also what is the version of mta.jar? You can run the command java -jar mta.jar -v to find the version.
Best Regards
Stephen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rouzbeh,
Did you get the solution as I am also facing the same issue.
Warm Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
9 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.