404 when migrating plugin from Bitbucket 4 to 5 Edited

I tried to build one of my plugins with Bitbucket Server 5. When I do atlas-run, and browse to http://localhost:7990/bitbucket/projects I get a 404.

Here is the branch and the commit:

https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commits/feature/bbs5

Any guidlines on migrating to 5.0? I have very limited time to spend on this right now, but am getting alot of requests for 5.0 support =)

Output of atlas-run looks like this:

[INFO] [2.ContainerStartMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-tomcat:jar:1.4.7 for container tomcat8x
[INFO] [talledLocalContainer] Tomcat 8.x starting...
[INFO] [stalledLocalDeployer] Deploying [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/bitbucket/bitbucket.war] to [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps]...
[INFO] [talledLocalContainer] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[INFO] [talledLocalContainer] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=48m; support was removed in 8.0
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.ClassLoaderFactory validateFile
[INFO] [talledLocalContainer] VARNING: Problem with directory [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/common/classes], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.ClassLoaderFactory validateFile
[INFO] [talledLocalContainer] VARNING: Problem with directory [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/common/lib], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.ClassLoaderFactory validateFile
[INFO] [talledLocalContainer] VARNING: Problem with directory [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.ClassLoaderFactory validateFile
[INFO] [talledLocalContainer] VARNING: Problem with directory [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/shared/lib], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.SetAllPropertiesRule begin
[INFO] [talledLocalContainer] VARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'emptySessionPath' to 'true' did not find a matching property.
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.tomcat.util.digester.SetPropertiesRule begin
[INFO] [talledLocalContainer] VARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting property 'resolveHosts' to 'false' did not find a matching property.
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Server version:        Apache Tomcat/8.0.36
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Server built:          Jun 9 2016 13:55:50 UTC
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Server number:         8.0.36.0
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: OS Name:               Linux
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: OS Version:            4.4.0-75-generic
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Architecture:          amd64
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Java Home:             /usr/lib/jvm/java-8-oracle/jre
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: JVM Version:           1.8.0_101-b13
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: JVM Vendor:            Oracle Corporation
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: CATALINA_BASE:         /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: CATALINA_HOME:         /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/apache-tomcat-8.0.36
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Xmx512m
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -XX:MaxPermSize=256m
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Xms128m
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -XX:PermSize=48m
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Dbitbucket.home=/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/bitbucket/home
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Dbaseurl=http://bjerre-HP-EliteBook-8470w:7990/bitbucket
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Dplugin.root.directories=/home/bjerre/workspace/pull-request-notifier-for-bitbucket
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Dcargo.servlet.uriencoding=UTF-8
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Dplugin.resource.directories=/home/bjerre/workspace/pull-request-notifier-for-bitbucket/src/main/resources
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Datlassian.dev.mode=true
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Djohnson.spring.lifecycle.synchronousStartup=true
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Djava.awt.headless=true
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Dbaseurl.display=http://bjerre-HP-EliteBook-8470w:7990/bitbucket
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Datlassian.sdk.version=6.2.11
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Dcatalina.home=/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/apache-tomcat-8.0.36
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Dcatalina.base=/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Djava.io.tmpdir=/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/temp
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.VersionLoggerListener log
[INFO] [talledLocalContainer] INFO: Command line argument: -Djava.util.logging.config.file=/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/conf/logging.properties
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
[INFO] [talledLocalContainer] INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.coyote.AbstractProtocol init
[INFO] [talledLocalContainer] INFO: Initializing ProtocolHandler ["http-nio-7990"]
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
[INFO] [talledLocalContainer] INFO: Using a shared selector for servlet write/read
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.coyote.AbstractProtocol init
[INFO] [talledLocalContainer] INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
[INFO] [talledLocalContainer] INFO: Using a shared selector for servlet write/read
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.Catalina load
[INFO] [talledLocalContainer] INFO: Initialization processed in 472 ms
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.core.StandardService startInternal
[INFO] [talledLocalContainer] INFO: Starting service Catalina
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.core.StandardEngine startInternal
[INFO] [talledLocalContainer] INFO: Starting Servlet Engine: Apache Tomcat/8.0.36
[INFO] [talledLocalContainer] maj 12, 2017 8:11:19 EM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deploying web application archive /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps/bitbucket.war
[INFO] [talledLocalContainer] maj 12, 2017 8:11:32 EM org.apache.jasper.servlet.TldScanner scanJars
[INFO] [talledLocalContainer] INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[INFO] [talledLocalContainer] maj 12, 2017 8:11:32 EM org.apache.catalina.core.ApplicationContext log
[INFO] [talledLocalContainer] INFO: 1 Spring WebApplicationInitializers detected on classpath
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deployment of web application archive /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps/bitbucket.war has finished in 13,598 ms
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deploying web application archive /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps/cargocpc.war
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deployment of web application archive /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps/cargocpc.war has finished in 19 ms
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deploying web application directory /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps/host-manager
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deployment of web application directory /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps/host-manager has finished in 24 ms
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deploying web application directory /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps/manager
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deployment of web application directory /home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/webapps/manager has finished in 19 ms
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.coyote.AbstractProtocol start
[INFO] [talledLocalContainer] INFO: Starting ProtocolHandler ["http-nio-7990"]
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.coyote.AbstractProtocol start
[INFO] [talledLocalContainer] INFO: Starting ProtocolHandler ["ajp-nio-8009"]
[INFO] [talledLocalContainer] maj 12, 2017 8:11:33 EM org.apache.catalina.startup.Catalina start
[INFO] [talledLocalContainer] INFO: Server startup in 13824 ms
[INFO] [talledLocalContainer] Tomcat 8.x started on port [7990]
[INFO] bitbucket started successfully in 183s at http://bjerre-HP-EliteBook-8470w:7990/bitbucket
[INFO] Type Ctrl-D to shutdown gracefully
[INFO] Type Ctrl-C to exit
[INFO] bitbucket: Shutting down
[INFO] using codehaus cargo v1.4.7
[INFO] [talledLocalContainer] Tomcat 8.x is stopping...
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.catalina.startup.ClassLoaderFactory validateFile
[INFO] [talledLocalContainer] VARNING: Problem with directory [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/common/classes], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.catalina.startup.ClassLoaderFactory validateFile
[INFO] [talledLocalContainer] VARNING: Problem with directory [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/common/lib], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.catalina.startup.ClassLoaderFactory validateFile
[INFO] [talledLocalContainer] VARNING: Problem with directory [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.catalina.startup.ClassLoaderFactory validateFile
[INFO] [talledLocalContainer] VARNING: Problem with directory [/home/bjerre/workspace/pull-request-notifier-for-bitbucket/target/container/tomcat8x/cargo-bitbucket-home/shared/lib], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.catalina.core.StandardServer await
[INFO] [talledLocalContainer] INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.coyote.AbstractProtocol pause
[INFO] [talledLocalContainer] INFO: Pausing ProtocolHandler ["http-nio-7990"]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.coyote.AbstractProtocol pause
[INFO] [talledLocalContainer] INFO: Pausing ProtocolHandler ["ajp-nio-8009"]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.catalina.core.StandardService stopInternal
[INFO] [talledLocalContainer] INFO: Stopping service Catalina
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.coyote.AbstractProtocol stop
[INFO] [talledLocalContainer] INFO: Stopping ProtocolHandler ["http-nio-7990"]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.coyote.AbstractProtocol stop
[INFO] [talledLocalContainer] INFO: Stopping ProtocolHandler ["ajp-nio-8009"]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.coyote.AbstractProtocol destroy
[INFO] [talledLocalContainer] INFO: Destroying ProtocolHandler ["http-nio-7990"]
[INFO] [talledLocalContainer] maj 12, 2017 8:13:18 EM org.apache.coyote.AbstractProtocol destroy
[INFO] [talledLocalContainer] INFO: Destroying ProtocolHandler ["ajp-nio-8009"]
[INFO] [talledLocalContainer] Tomcat 8.x is stopped
[INFO] amps:stop in 6s
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:00 min
[INFO] Finished at: 2017-05-12T20:13:24+01:00
[INFO] Final Memory: 61M/457M
[INFO] ------------------------------------------------------------------------

 

And Atlas version:

bjerre@bjerre-HP-EliteBook-8470w:~/workspace/pull-request-notifier-for-bitbucket$ atlas-mvn --version
Executing: /home/bjerre/workspace/pull-request-notifier-for-bitbucket/opt/atlassian-plugin-sdk/apache-maven-3.2.1/bin/mvn  -gs /home/bjerre/workspace/pull-request-notifier-for-bitbucket/opt/atlassian-plugin-sdk/apache-maven-3.2.1/conf/settings.xml --version
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /home/bjerre/workspace/pull-request-notifier-for-bitbucket/opt/atlassian-plugin-sdk/apache-maven-3.2.1
Java version: 1.8.0_101, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: sv_SE, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-75-generic", arch: "amd64", family: "unix"

2 answers

If I do  "atlas-run -u 6.3.0" it starts with the plugin. But I do have 6.3.0 in the pom and in 4.x that was not needed.

I had the same issue. The problem is that the AtlassianSDK you most likely have installed, uses "6.2.11" as default in the run scripts.

The "atlas-run" command contains the default that is used. I don't know why they don't pull it from the POM, but that's how it is currently.

I edited the default and now it runs as expected.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

675 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot