Feature installation error:
Trying to install the JMS-MQ by enabling this wmqjmsclient-1.1 or wmqjmsclient-2.0 feature as per documentation. Both versions are giving the same error, please let me know how can I install/enable this feature.
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.3.4:run (default-cli) on project CC: CWWKF1299E: The following features could not be obtained: wmqjmsclient-1.1. Ensure that the features are valid for Open Liberty. -> [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/MojoExecutionException
wmqJmsClient isn't available in Open Liberty, only WebSphere Liberty. To use MQ with Open Liberty, you can create a resourceAdapter element like in this example (https://github.com/epomatti/openliberty-jms-mq-example/blob/47171bec7ef8a1e701ae363293a6cfd6a9bd5b32/liberty/server.xml#L12)
<resourceAdapter id="wmqjmsra"
location="${server.config.dir}/wmq.jmsra.rar" />
Make sure you choose an id other than wmqJms like the example, as there can be issues. You'll use that name to specify the properties, like that same example file:
<jmsQueue id="jms/queue1" jndiName="jms/queue1">
<properties.wmqjmsra baseQueueManagerName="QM1"
baseQueueName="DEV.QUEUE.1" />
</jmsQueue>
Make sure to enable the jms-2.0 feature itself if you don't have any other features pulling it in.
Related
I'm beginner for this in azure devops.
I'm trying to build with maven, but I got the following error that I don't understand :
[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument (package-9af52907-6506-4b87-b16a-9883edee41bc) on project gs-spring-boot: Execution package-9af52907-6506-4b87-b16a-9883edee41bc of goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:0 at specified path /usr/lib/jvm/adoptopenjdk-11-hotspot-amd64/../lib/tools.jar -> [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/PluginResolutionException
You are missing tools.jar in your JDK/JRE. Make sure your JDK version on Azure Pipeline. It seems Cobertura doesn't support Java 1.8 and later:
https://github.com/mojohaus/cobertura-maven-plugin/issues/30
https://github.com/mojohaus/cobertura-maven-plugin/issues/21
So, switch to JaCoCo.
My code is working fine in elasticsearch 5 but when I have upgraded from 5 to 6 then. it is showing
org.elasticsearch.common.transport.InetSocketTransportAddress not found
complete stack trace:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project elastic-store: Compilation failure
[ERROR] /home/elastic/elastic-store/src/main/java/com/qw/psence/store/es/common/ESClient.java:[12,42] cannot find symbol
[ERROR] symbol: class InetSocketTransportAddress
[ERROR] location: package org.elasticsearch.common.transport
[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] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
can anyone help me to resolve this problem?
Note: Elaticsearch jar is fine.
Elastic search 6.0 has removed InetSocketTransportAddress class. I have solved this By replacing InetSocketTransportAddress class with TransportAddress class.
// on startup
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY)
.addTransportAddress(new TransportAddress(InetAddress.getByName("host1"), 9300))
.addTransportAddress(new TransportAddress(InetAddress.getByName("host2"), 9300));
// on shutdown
client.close();
There are many solutions offered to the problem, but I was getting this error because, as I was trying to make a basic elasticsearch configuration with SpringBoot:
I forgot to start elasticsearch...
:facepalm:
So, just:
open command line at bin folder in your Elasticsearch installation directory*
type elasticsearch
press Enter
To make sure it works, open http://localhost:9200/ in your browser. You should get a JSON response containing name, cluster_name, elasticsearch version etc.
*(On Windows) Open ES_INSTALLATION_DIR\elasticsearch-x.x.x\bin folder, hold Shift key, right click on the folder area and from the drop-down menu select Open command window here.
In my case the issue was conflicting version of the elasticsearch that was pulled into my project by the spring-boot-dependencies. If your pom does not inherit from the spring-boot-starter-parent but instead uses dependencyManagement section to import spring-boot-dependencies and you need an older version of the elasticsearch on the classpath then here is the solution: InetSocketTransportAddress. Always run mvn -Dverbose=true help:effective-pom and inspect effective pom for conflicts. -Dverbose=true is critical here. It allows to see where the unwanted dependency is coming from.
when i build the folder cas 4.o from maven showme the follow error:
Failed to execute goal
com.mycila.maven-license-plugin:maven-license-plu gin:1.9.0:check
(default) on project cas-server-uber-webapp: Resource D:\Documen
ts\CAS_HOME/src/licensing/header.txt not found in file system,
classpath or URL: unknown protocol: d -> [Help 1] [ERROR] [ERROR] To
see the full stack trace of the errors, re-run Maven with the -e swit
ch. [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 rea d the following articles: [ERROR] [Help
1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
the solution that i found was open the pom.xml i find:
${cs.dir}/src/licensing/header.txt
You can replace whit:
${licenseHeader}
And rebuild whit comand: mvn clean install
mvn package install worked for me!!
I'm creating a maven plugin and I need to write a new file in the project directory.
For some reason when I try to create a new file I get the AccessDeniedException.
StackTrace:
[ERROR] Failed to execute goal org.ofx:ofx-maven-plugin:1.0-SNAPSHOT:generateScreensEnum (default) on project preloader: Execution default of goal org.ofx:ofx-maven-plugin:1.0-SNAPSHO
[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/PluginExecutionException
c:\devl\work\preloader>
It is a none existing file so It should not be a locked resource case.
I also tried writing to a different folder (not the project folder) just in case to see if it solves it, it does not.
My code:
Files.write(enumLocation, lines, Charset.defaultCharset(), StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING);
Any ideas ?
Found the problem, need to add a StandardOpenOption.WRITE, option if the file does not exist.
Files.write(enumLocation, lines, Charset.defaultCharset(), StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING);
I am following the steps given at
http://seleniumhq.org/docs/03_webdriver.jsp#java
When I run 'mvn clean install' , I get following error :
[ERROR] Failed to execute goal on project MySel20Proj: Could not resolve dependencies for project MySel20Proj:MySel20Proj:jar:1.0: Failed to collect dependencies for [org.seleniumhq.selenium:selenium-java:jar:2.28.0 (compile), com.opera:operadriver:jar:1.1 (compile)]: Failed to read artifact descriptor for org.webbitserver:webbit:jar:0.4.14: Could not transfer artifact org.sonatype.oss:oss-parent:pom:6 from/to central (http://repo.maven.apache.org/maven2): Read timed out -> [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
How can I solve this ?
Check this Opera driver. This driver is not default part of Selenium because it's developed by 3rd party. Look at this page, if you scroll down little bit, there is a list with 3rd party drivers with links to them.
I feel that the Support for Opera in Selenium 2.28 is not present till date... Please correct me If I am wrong
Looks like it was a network issue , I tried again and it was successful !
Thanks anyways for your help.