Hello all,
The log of starting jira failed is attached below, it says that failed to create tomcat 8.x standalone configuration and could not find or load main class org.apache.catalina.startup.bootstrap. Please help me on this issue. Thanks in advance.
[INFO] Starting jira...
[INFO] Configured Artifact: com.atlassian.jira.plugins:jira-plugin-test-resources:7.13.0:zip
[INFO] com.atlassian.jira.plugins:jira-plugin-test-resources:7.13.0:zip already exists in /home/yaoqih/Projects/myPlugin/target/jira
[INFO] Configured Artifact: com.atlassian.jira:atlassian-jira-webapp:7.13.0:war
[INFO] com.atlassian.jira:atlassian-jira-webapp:7.13.0:war already exists in /home/yaoqih/Projects/myPlugin/target/jira[INFO] Configured Artifact: com.atlassian.pdkinstall:pdkinstall-plugin:0.6:jar
[INFO] Copying pdkinstall-plugin-0.6.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/pdkinstall-plugin-0.6.jar
[INFO] Configured Artifact: commons-fileupload:commons-fileupload:1.2.1:jar
[INFO] Copying commons-fileupload-1.2.1.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/commons-fileupload-1.2.1.jar
[INFO] Configured Artifact: org.apache.felix:org.apache.felix.webconsole:1.2.8:jar
[INFO] Copying org.apache.felix.webconsole-1.2.8.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/org.apache.felix.webconsole-1.2.8.jar
[INFO] Configured Artifact: org.apache.felix:org.osgi.compendium:1.2.0:jar
[INFO] Copying org.osgi.compendium-1.2.0.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/org.osgi.compendium-1.2.0.jar
[INFO] Configured Artifact: com.atlassian.labs.httpservice:httpservice-bridge:0.6.2:jar
[INFO] Copying httpservice-bridge-0.6.2.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/httpservice-bridge-0.6.2.jar
[INFO] Configured Artifact: com.atlassian.devrel:developer-toolbox-plugin:2.0.17:jar
[INFO] Copying developer-toolbox-plugin-2.0.17.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/developer-toolbox-plugin-2.0.17.jar
[INFO] Configured Artifact: com.atlassian.labs:rest-api-browser:3.1.3:jar
[INFO] Copying rest-api-browser-3.1.3.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/rest-api-browser-3.1.3.jar
[INFO] Configured Artifact: com.atlassian.plugins:plugin-data-editor:1.2:jar
[INFO] Copying plugin-data-editor-1.2.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/plugin-data-editor-1.2.jar
[INFO] Configured Artifact: com.atlassian.labs.plugins:quickreload:3.0.0:jar
[INFO] Copying quickreload-3.0.0.jar to /home/yaoqih/Projects/myPlugin/target/jira/home/plugins/installed-plugins/quickreload-3.0.0.jar
[INFO] Configured Artifact: org.apache.servicemix.bundles:org.apache.servicemix.bundles.junit:4.12_1:jar
[INFO] Copying org.apache.servicemix.bundles.junit-4.12_1.jar to /home/yaoqih/Projects/myPlugin/target/jira/webapp/WEB-INF/atlassian-bundled-plugins/org.apache.servicemix.bundles.junit-4.12_1.jar
[INFO] Configured Artifact: com.atlassian.plugins:atlassian-plugins-osgi-testrunner-bundle:2.0.2:jar
[INFO] Copying atlassian-plugins-osgi-testrunner-bundle-2.0.2.jar to /home/yaoqih/Projects/myPlugin/target/jira/webapp/WEB-INF/atlassian-bundled-plugins/atlassian-plugins-osgi-testrunner-bundle-2.0.2.jar
[INFO] Reusing unpacked container 'tomcat8x' from /home/yaoqih/Projects/myPlugin/target/container/tomcat8x
[INFO] Starting jira on the tomcat8x container on ports 2990 (http), 39111 (rmi) and 8009 (ajp)
[INFO] using codehaus cargo v1.6.10
[INFO] [2.ContainerStartMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-tomcat:jar:1.6.10 for container tomcat8x
[INFO] [talledLocalContainer] Tomcat 8.x starting...
[WARNING] [talledLocalContainer] org.codehaus.cargo.container.ContainerException: Failed to create a Tomcat 8.x standalone configuration
[ERROR] Starting container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@3fe11091] failed, now stopping container
[INFO] [talledLocalContainer] Tomcat 8.x is stopping...
[INFO] [talledLocalContainer] Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
[INFO] [talledLocalContainer] Tomcat 8.x is stopped
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:31 min
[INFO] Finished at: 2022-10-12T15:39:01+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:8.0.2:run (default-cli) on project myPlugin: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat8xInstalledLocalContainer@3fe11091]: Failed to create a Tomcat 8.x standalone configuration: Failed to copy source directory [/home/yaoqih/Projects/myPlugin/target/container/tomcat8x/apache-tomcat-8.5.35/conf] to [/home/yaoqih/Projects/myPlugin/target/container/tomcat8x/cargo-jira-home/conf]: /home/yaoqih/Projects/myPlugin/target/container/tomcat8x/apache-tomcat-8.5.35/conf not found. -> [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
Regards,
Yaoqi Huang
Welcome to the Atlassian Community!
This is complaining about what could be file access.
Could you, while running a command line as the same user, try the simple copy it says is failing?
Literally, just this:
cp /home/yaoqih/Projects/myPlugin/target/container/tomcat8x/apache-tomcat-8.5.35/conf /home/yaoqih/Projects/myPlugin/target/container/tomcat8x/cargo-jira-home/conf
I expect it to tell you directories are missing (if it gives another error, greater, we can chase that instead), in which case, we'll want to work our way up through the directory tree to see at what point it fails.
Hello,
The error is the directories are missing. And then I created the conf directory manually and ran the command line again, the copy was successful.
Regards,
Yaoqi Huang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Sorry to bump up this question. Any idea why the tomcat could not be started?
Regards,
Yaoqi Huang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Because it could not get access to the directories it uses to keep files in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.