Is it possible to run embeded Tomcat 9 using another maven plugin instead of using cargo? - maven-plugin

With the tomcat7-maven-plugin, i can run an embeded tomcat just by running the following command: mvn tomcat7:run -pl webapp
I wish to do the same with an embeded tomcat 9 server, without using cargo. Is it possible? Does someone already deal with it?
Thanks.

Related

How to run, and access http://localhost/TutorialApp success?

I am reading http://docs.sencha.com/extjs/6.5.0/guides/tutorials/login_app.html
I see
I don't understand about http://localhost/TutorialApp
What is command I must release before access link http://localhost/TutorialApp ?
What doesn't it mean?
What is the difference between http://localhost/TutorialApp and http://localhost:1841/ ?
If you have your apache running locally and you create the tutorial app at the root of your server, you will be able to access through: http://localhost/TutorialApp.
If you don't have your apache server running locally, you can run sencha app watch and Sencha Cmd will create an instance for you that can be accessed through http://localhost:1841

Tosca and Jenkins

Does anybody work with Tosca and Jenkins?
I have problems to run my batch script from Jenkins. It does not open browser, but job is finished successfully. Batch script runs normally when I try to run in on Windows, without Jenkins.
Anybody has an experience using these two tools together?
In order to use Tosca CI with Jenkins you need to:
Configure your Jenkins build project
Add an additional build step (Execute Windows batch command)
Call ToscaCIClient.exe/ToscaCIClient.jar with parameters
e.g. "PathToTosca\ToscaCI\Client\ToscaCIClient.exe" -t junit -r PathToResults\result.xml
Further information can be found here: https://support.tricentis.com/community/article.do?number=KB0012411
The issue your facing is because your running Jenkins as windows service, in this case headless execution happens technically your script is executed for other user account.
Solution
Instead of installing Jenkins host it on Apache Tomcat server
Download Jenkins war file
Copy it inside webapps folder of Tomcat
Run startup.bat
Refer-
https://www.tutorialspoint.com/jenkins/jenkins_tomcat_setup.htm
I had faced the same issue.
I am guessing your slave machine running the test has jenkins services installed as services.
Uninstall the service. (.jenkins/jenkins-slave.exe uninstall)
Use the .jnlp or slave.jar to connect the machine as a slave.
Your test should run fine after that.
If it does just create a batch file to connect the machine as slave whenever it is logged in.
I tried that. But in any case, Jenkins does not open the browser, so Tests from Execution List and I do not know why.
We use Tosca 10.

How to use gcloud preview app run without boot2docker? [duplicate]

This question already has answers here:
DockerDaemonConnectionError when setting Google Cloud Managed VM in Ubuntu
(3 answers)
Closed 8 years ago.
I'm trying to run a Dart app on my machine, to be eventually deployed on Google App Engine. I've followed the instructions found on this page
https://www.dartlang.org/cloud/
The difference is I already have a local docker daemon running, which I'd like to use, and don't really want to use VirtualBox. The instructions assume you are using boot2docker, which insists on using VirtualBox to install an VirtualBox VM and run the docker daemon on this. Everytime I try and run
gcloud preview app run app.yaml
I get
google.appengine.tools.docker.containers.DockerDaemonConnectionError:
Couldn't connect to the docker daemon because the required environment
variables were not set. Please check the environment variables
DOCKER_HOST, DOCKER_CERT_PATH and DOCKER_TLS_VERIFY are set correctly.
If you are using boot2docker, make sure you have run "$(boot2docker shellinit)
I sense from what I've read, that you don't have to use boot2docker, and use a local docker daemon instance. The problem is I can't find any instructions on how to do this. I am hoping someone can answer this for me. Also the error message I am given doesn't help me, as any google search I do keeps giving me the same answer of use, boot2docker.
I installed Docker 1.3.2 from unstable (Debian), added
DOCKER_OPTS="-d -H unix:///var/run/docker.sock -H tcp://localhost:2375"
to /etc/default/docker, and set
DOCKER_HOST=tcp://localhost:2375
to make it work.
This page http://docs.docker.com/articles/https/ contains more information about how to configure docker for HTTPS.
I created an issue https://github.com/dart-lang/www.dartlang.org/issues/1162 to update the setup instructions for Dart.

Jenkins-Artifactory plugin on WAS 8.5 class load errors

I am running Cloudbees Jenkins (1.554.2.2) on WebSphere 8.5 with Java 7 on RedHat Linux. I loaded the Artifactory plugin into Jenkins, but when I hit test connection, I receive the following error:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Jdk14Logger does not implement Log
It appears that the WebSphere JARs are being loaded first which contain a different version of the commons-logging JAR. I am seeing this as well with some other plugins.
I do have the classpath for the Jenkins in WebSphere set to be Parent Last. Also, Jenkins.war directory contains the commons-logging-1.1.3.jar and log4j-1.2.9.jar files.
Has anyone using artifactory plugin on Websphere 8.5 has encountered the issue.
This question has been asked before here

Solr - Solr Deployment not showing in Jboss

I have Jboss 7 running in Linux system. and I had deployed Solr 3.5 in it. It was working fine before.
After some days, Today when I started jboss 7 , it does not start my solr 3.5 . my sorl.war file exist at jboss-as-web-7.0.2.Final/standalone/deployments/
such issue also occured some times before, when my war deployment shows solr.war.failed in deployments. and i was able to resolve it by just moving / renaming that file.
But currently I am unable to deploy my was file and not showing as running when I start Jboss.
Below is response when i start jboss
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss-as-web-7.0.2.Final
JAVA: /usr/lib/jvm/jdk1.7.0_40/bin/java
JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m
-Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
I also tried by creating war file again and again deploy it.
Please help me to resolve this issue. how can i make it running??
Thanks
Make sure your solr.war is placed in jboss-as-web-7.0.2.Final/standalone/deployments/ and add an empty file named solr.war.dodeploy right next to the war.. If the deploy fails, copy the full stacktrace of the error.

Resources