I am getting Build Failed, while deploying the Portlets,Themes and Layouts in liferay 6.2 on ubuntu OS .
The console messages are:
The Build Failed Message on Console:
BUILD FAILED
/opt/scrum-6.2/plugins/layouttpl/20x80-layouttpl/build.xml:7: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/layouttpl/build-common-layouttpl.xml:5: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common-plugin.xml:5: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common.xml:47: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common-ivy.xml:17: The specified destination is a directory
Can any one help me?
Solution -> Edit build-common-ivy.xml and change line 17 so that it looks like this:
dest="${ivy.home}/ivy-${ivy.version}.jar"
Also, it complains that you need Ant 1.8, so be sure to upgrade to 1.8.
I have resolved the build failed issue
The following file is missing in plugins:
---> build.username.properties file
And inside the .ivy folder,cache folder and ivy-2.3.0.jar files are missed.
I just have added the above things in plugins.
Related
I cloned a react-native project from github and below are the steps that I followed in order to make it work on my local ubuntu 20.04 machine:
(The project was expo managed earlier, but now it is ejected because there are android and ios folders)
created my local feature branch -> git checkout -b feature
installed all the packages in package.json -> yarn install
ran npx react-native run-android to run the app on android emulator
1st Encountered error:-
Could not write standard input to Gradle build daemon.
java.io.IOException: Stream closed
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please read the following process output to find out more:
-----------------------
Unrecognized VM option 'MaxPermSize=512m'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
In order to solve this issue, I used this https://stackoverflow.com/a/69630720/11685381 answer and removed -XX:MaxPermSize=512m from my gradle.properties
2nd Encountered error:-
Again used npx react-native run-android and ran into another build error:-
* What went wrong:
Could not open settings generic class cache for settings file '/home/user/project/android/settings.gradle' (/home/user/.gradle/caches/6.9/scripts/5bii70nilhgbvb8zyo7v963b7).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61
To fix this, I used this solution: https://www.codegrepper.com/code-examples/whatever/BUG!+exception+in+phase+'semantic+analysis'+in+source+unit+'_BuildScript_'+Unsupported+class+file+major+version+61
3rd Encountered error:-
Again ran npx react-native run-android and ran into these 2 build error this time:
1: Task failed with an exception.
-----------
* Where:
Build file '/home/user/project/node_modules/expo-gl-cpp/android/build.gradle' line: 307
* What went wrong:
Default side-by-side NDK installation is not found.
Set $ANDROID_NDK_HOME environment variable correctly or setup ndk.dir in local.properties.
> NDK is not installed
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':expo'.
> compileSdkVersion is not specified. Please add it to build.gradle
To solve the 1st issue i.e. NDK is not installed (it is installed though), I created a local.properties inside project/android directory and pasted the following path:
sdk.dir=/home/user/Android/Sdk
ndk.dir=/home/user/Android/Sdk/ndk/24.0.8215888
4th Encountered error:-
> Task :app:generatePackageList FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
* Where:
Script '/home/user/project/node_modules/#react-native-community/cli-platform-android/native_modules.gradle' line: 131
* What went wrong:
Execution failed for task ':app:generatePackageList'.
> argument type mismatch
To solve this, I tried this solution: https://stackoverflow.com/a/68180959/11685381 but this again downloaded the gradle 6.9 which I had earlier also, and again to the 2nd Encountered error
I've been doing this since 2 days, can someone please help me out here what am I doing wrong?
Try updating build.grade from
classpath("com.android.tools.build:gradle:3.5.3")
To
classpath("com.android.tools.build:gradle:3.5.4")
It's just an example. try to update Gradle.
I have started learning Grails. For project specific purpose, I have installed Grails 3.0.0 in Ubuntu. Whenever I started a grails project in IDE(IntelliJ). I got the following error
| Error Failed to compile idea-list-injected-traits.groovy: startup failed:
idea-list-injected-traits.groovy: 2: unable to resolve class org.grails.compiler.injection.TraitInjectionSupport
# line 2, column 1.
import org.grails.compiler.injection.TraitInjectionSupport
^
1 error
(Use --stack trace to see the full trace)
| Error occurred running Grails CLI: null (Use --stack trace to see the full trace)
Process finished with exit code 1
How can I solve it? I am totally new in Grails. Thanks.
Try deleting
~/.grails/repository
I'm trying to install ear file on local Websphere, by Ant Script, but i'm getting this annoying error and the instalation fails.
This is my script.
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication" />
<target name="installApplication">
<wsInstallApp ear="${ear.dir}" options="-appname ${name} -CtxRootForWebMod ${install.contextRootName} -BindJndiForEJBNonMessageBinding ${install.resourceJNDI}" failonerror="true" />
</target>
I send the 3 parameters when I call the target from another ant script file and with other tasks like update application or uninstallApplication it works.
I need the 3 parameters to set the 3 properties of the installed application, so that seems to be the problem.
This is the error reported.
Buildfile: WasDeployApp.xml
installApplication:
callTask:
installApplication:
[wsInstallApp] Installing Application [C:\Workspace\Deploy\..\Resources\Publish\Application.ear]...
[wsadmin] WASX7209I: Connected to process "server1" on node CDELO020-2Node01 using SOAP connector; The type of process is: UnManagedProcess
[wsadmin] WASX7017E: Exception received while running file "C:\Users\delo020\AppData\Local\Temp\wsant711553899414193403jacl"; exception information: java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String incompatible with java.util.List
BUILD FAILED
C:\Workspace\Deploy\WasDeployApp.xml:22: The following error occurred while executing this line:
C:\Workspace\Deploy\WasDeployApp.xml:12: The following error occurred while executing this line:
C:\Workspace\Deploy\WasDeploy.xml:48: Java returned: 105
Total time: 9 seconds
This is the content of the TEMP ffile refered in the error log.
$AdminApp install C:\Workspace\Deploy\..\Resources\Publish\Application.ear { -appname ApplicationExample -CtxRootForWebMod CtxRootExample -BindJndiForEJBNonMessageBinding facade_App }
$AdminConfig save
I've been strugling with this for some time, but as you can se the log is not very much explicit.
Can someone help me?
Thanks in Advance.
Cause
The cause of this problem is an option in the split properties file that should have been specified using the "options.multi." format but used the singular "options." format. The result is the option should have been passed to wsadmin as a single element list, but it is passed as a string.
You can look into this and this post and follow the instructions to correct the errors which you are getting. Further more you can look into this post which contains the deployment script for WebSphere Application Server.
I am using gradle-2.5 version.
I am getting this error when I am trying to build an android project.
[abc_Android_App] $ /cip/opt/gradle-2.5/bin/gradle
Error occurred during initialization of VM
java.nio.charset.IllegalCharsetNameException:
at java.nio.charset.Charset.checkName(Charset.java:303)
at java.nio.charset.Charset.lookup2(Charset.java:484)
at java.nio.charset.Charset.lookup(Charset.java:464)
at java.nio.charset.Charset.defaultCharset(Charset.java:609)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:56)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:111)
at java.io.PrintStream.<init>(PrintStream.java:104)
at java.io.PrintStream.<init>(PrintStream.java:151)
at java.lang.System.newPrintStream(System.java:1148)
at java.lang.System.initializeSystemClass(System.java:1192)
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE
I have searched in Google for similar kind of error and found this type of error:
Error occurred during initialization of VM
java.nio.charset.IllegalCharsetNameException: UTF-8 -Xmx4G -Xms4G
which had a solution for it. But in my case, the error is not showing UTF-8 -Xmx4G -Xms4G , and due to which I am unable to guess where the issue lies.
Please help me to get around this error.
P.s ( There is no space issue on slave)
Thanks in advance.
Make sure you dont have "\" [UTF-8] in the gradle.properties file like the below one.
org.gradle.jvmargs=-Xmx2048m -XX\:MaxPermSize\=512m -XX\:+HeapDumpOnOutOfMemoryError -Dfile.encoding\=UTF-8\
Correct one:
org.gradle.jvmargs=-Xmx2048m -XX\:MaxPermSize\=512m -XX\:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
I could run but I couldn't debug my Java web project on NetBean IDE.
And the error:
D:\2_HOAN CHINH\1_HOC KY II\Java programming\Bai tap\MVC2_VnMart\nbproject\build-impl.xml:845: The following error occurred while executing this line:
D:\2_HOAN CHINH\1_HOC KY II\Java programming\Bai tap\MVC2_VnMart\nbproject\build-impl.xml:851:
java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap
at org.netbeans.api.debugger.jpda.AttachingDICookie.findAttachingConnector(AttachingDICookie.java:250)
at org.netbeans.api.debugger.jpda.AttachingDICookie.create(AttachingDICookie.java:123)
at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:280)
at org.netbeans.modules.debugger.jpda.ant.JPDAConnect$1.run(JPDAConnect.java:228)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
BUILD FAILED (total time: 0 seconds)
java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap
Check your Bootstrap class. It might be on the wrong folder.
According to this message:
"org.netbeans.modules.debugger.jpda.ant.JPDAConnect$1.run(JPDAConnect.java:228)"
This is a issue of ANT that does not run smoothly under your NetBeans.
So you may try to install another NetBeans distribution and run the project on it.