Hi Team, I am facing issue while learning plugin development at https://developer.atlassian.com/docs/getting-started/learn-the-development-platform-by-example/convert-component-to-servlet-module

Hi Team,

I am facing issue while learning plugin development at https://developer.atlassian.com/docs/getting-started/learn-the-development-platform-by-example/convert-component-to-servlet-module whenever i am running the command $ atlas-run at Step 3 then it is giving me below results:

D:\atlastutorial\adminUI>atlas-mvn eclipse:eclipse
'else' is not recognized as an internal or external command,
operable program or batch file.
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.9\apache-maven-3.2.1\bin\mvn.bat" -gs C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.9\apache-maven-3.2.1/conf/settings.xml eclipse:eclipse
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building adminUI 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-eclipse-plugin:2.10:eclipse (default-cli) @ adminUI >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.10:eclipse (default-cli) @ adminUI <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.10:eclipse (default-cli) @ adminUI ---
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Not writing settings - defaults suffice
[INFO] File D:\atlastutorial\adminUI\.project already exists.
Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "adminUI" to D:\atlastutorial\adminUI.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.229 s
[INFO] Finished at: 2017-01-20T18:45:46+05:30
[INFO] Final Memory: 16M/227M
[INFO] ------------------------------------------------------------------------
'cmd' is not recognized as an internal or external command,
operable program or batch file.
D:\atlastutorial\adminUI>atlas-run
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.9\apache-maven-3.2.1\bin\mvn.bat" com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:"6.2.6":run -gs C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.9\apache-maven-3.2.1/conf/settings
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building adminUI 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-amps-dispatcher-plugin:6.2.6:run (default-cli) @ adminUI >>>
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:compress-resources (default-compress-resources) @ adminUI ---
[WARNING] File encoding has not been set, using platform encoding windows-1252, i.e. build is platform dependent!
[INFO] Compiling javascript using YUI
[INFO] 0 Javascript file(s) were minified into target directory D:\atlastutorial\adminUI\target\classes
[INFO] 0 CSS file(s) were minified into target directory D:\atlastutorial\adminUI\target\classes
[INFO] Compressing XML files
[INFO] 0 XML file(s) were minified into target directory D:\atlastutorial\adminUI\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ adminUI ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:filter-plugin-descriptor (default-filter-plugin-descriptor) @ adminUI ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ adminUI ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:generate-rest-docs (default-generate-rest-docs) @ adminUI ---
[INFO]
[INFO] --- atlassian-spring-scanner-maven-plugin:1.2.13:atlassian-spring-scanner (default) @ adminUI ---
[INFO] Starting Atlassian Spring Byte Code Scanner...
[INFO]
[INFO]
[INFO] Analysis ran in 140 ms.
[INFO] Encountered 1 total classes
[INFO] Processed 0 annotated classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ adminUI ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\atlastutorial\adminUI\src\test\resources
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:filter-test-plugin-descriptor (default-filter-test-plugin-descriptor) @ adminUI ---
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ adminUI ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:unit-test (default-unit-test) @ adminUI ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:copy-bundled-dependencies (default-copy-bundled-dependencies) @ adminUI ---
[INFO] gson-2.2.2-atlassian-1.jar already exists in destination.
[INFO] slf4j-api-1.7.10.jar already exists in destination.
[INFO] atlassian-spring-scanner-runtime-1.2.13.jar already exists in destination.
[INFO] slf4j-simple-1.7.10.jar already exists in destination.
[INFO] atlassian-spring-scanner-annotation-1.2.13.jar already exists in destination.
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:copy-test-bundled-dependencies (default-copy-test-bundled-dependencies) @ adminUI ---
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:generate-manifest (default-generate-manifest) @ adminUI ---
[INFO] Generating a manifest for this plugin
[INFO] using maven-bundle-plugin v2.5.3
[WARNING] Manifest com.atlassian.plugins.tutorial.refapp:adminUI:atlassian-plugin:1.0-SNAPSHOT : Unused Import-Package instructions: [org.springframework.osgi.*, org.eclipse.gemini.blueprint.*]
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:generate-test-manifest (default-generate-test-manifest) @ adminUI ---
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:validate-manifest (default-validate-manifest) @ adminUI ---
[INFO] Manifest found, validating...
[INFO] Manifest validated
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:jar (default-jar) @ adminUI ---
[INFO] Building jar: D:\atlastutorial\adminUI\target\adminUI-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:generate-obr-artifact (default-generate-obr-artifact) @ adminUI ---
[INFO] using maven-bundle-plugin v2.5.3
[INFO] Installing adminUI-1.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] Building jar: D:\atlastutorial\adminUI\target\adminUI-1.0-SNAPSHOT.obr
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:validate-test-manifest (default-validate-test-manifest) @ adminUI ---
[INFO]
[INFO] --- maven-refapp-plugin:6.2.6:test-jar (default-test-jar) @ adminUI ---
[INFO]
[INFO] <<< maven-amps-dispatcher-plugin:6.2.6:run (default-cli) @ adminUI <<<
[INFO]
[INFO] --- maven-amps-dispatcher-plugin:6.2.6:run (default-cli) @ adminUI ---
[INFO] Google Analytics Tracking is enabled to collect AMPS usage statistics.
[INFO] Although no personal information is sent, you may disable tracking by adding <allowGoogleTracking>false</allowGoogleTracking> to the amps plugin configuration in your pom.xml
[INFO] Sending event to Google Analytics: AMPS:refapp - Run
[INFO]
[INFO] Starting refapp...
[INFO] Configured Artifact: com.atlassian.refapp:atlassian-refapp:4.0.0:war
[INFO] com.atlassian.refapp:atlassian-refapp:4.0.0:war already exists in D:\atlastutorial\adminUI\target\refapp
[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 D:\atlastutorial\adminUI\target\refapp\webapp\WEB-INF\atlassian-bundled-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 D:\atlastutorial\adminUI\target\refapp\webapp\WEB-INF\atlassian-bundled-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 D:\atlastutorial\adminUI\target\refapp\webapp\WEB-INF\atlassian-bundled-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 D:\atlastutorial\adminUI\target\refapp\webapp\WEB-INF\atlassian-bundled-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 D:\atlastutorial\adminUI\target\refapp\webapp\WEB-INF\atlassian-bundled-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 D:\atlastutorial\adminUI\target\refapp\webapp\WEB-INF\atlassian-bundled-plugins\plugin-data-editor-1.2.jar
[INFO] Configured Artifact: com.atlassian.labs.plugins:quickreload:1.24.1:jar
[INFO] Copying quickreload-1.24.1.jar to D:\atlastutorial\adminUI\target\refapp\webapp\WEB-INF\atlassian-bundled-plugins\quickreload-1.24.1.jar
[INFO] Reusing unpacked container 'tomcat8x' from D:\atlastutorial\adminUI\target\container\tomcat8x
[INFO] Starting refapp on the tomcat8x container on ports 50768 (http), 50766 (rmi) and 50767 (ajp)
[INFO] using codehaus cargo v1.4.7
[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 [D:\atlastutorial\adminUI\target\refapp\refapp.war] to [D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home/webapps]...
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
[WARNING] [talledLocalContainer] WARNING: Problem with directory [D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\common\classes], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
[WARNING] [talledLocalContainer] WARNING: Problem with directory [D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\common\lib], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
[WARNING] [talledLocalContainer] WARNING: Problem with directory [D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\shared\classes], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:05 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
[WARNING] [talledLocalContainer] WARNING: Problem with directory [D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\shared\lib], exists: [false], isDirectory: [false], canRead: [false]
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.catalina.core.AprLifecycleListener init
[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: C:\Program Files\Java\jdk1.8.0_91\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS
;C:\Program Files\Java\jdk1.8.0_91\bin;C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.9\bin;.
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.catalina.startup.SetAllPropertiesRule begin
[WARNING] [talledLocalContainer] WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'emptySessionPath' to 'true' did not find a matching property.
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
[WARNING] [talledLocalContainer] WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting property 'resolveHosts' to 'false' did not find a matching property.
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.coyote.AbstractProtocol init
[INFO] [talledLocalContainer] INFO: Initializing ProtocolHandler ["http-nio-50768"]
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
[INFO] [talledLocalContainer] INFO: Using a shared selector for servlet write/read
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.coyote.AbstractProtocol init
[INFO] [talledLocalContainer] INFO: Initializing ProtocolHandler ["ajp-nio-50767"]
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
[INFO] [talledLocalContainer] INFO: Using a shared selector for servlet write/read
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.catalina.startup.Catalina load
[INFO] [talledLocalContainer] INFO: Initialization processed in 1031 ms
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.catalina.core.StandardService startInternal
[INFO] [talledLocalContainer] INFO: Starting service Catalina
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.catalina.core.StandardEngine startInternal
[INFO] [talledLocalContainer] INFO: Starting Servlet Engine: Apache Tomcat/8.0.9
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:06 PM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deploying web application archive D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\webapps\cargocpc.war
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deployment of web application archive D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\webapps\cargocpc.war has finished in 336 ms
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deploying web application archive D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\webapps\refapp.war
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.catalina.startup.HostConfig deployWAR
[INFO] [talledLocalContainer] INFO: Deployment of web application archive D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\webapps\refapp.war has finished in 30 ms
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deploying web application directory D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\webapps\host-manager
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deployment of web application directory D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\webapps\host-manager has finished in 50 ms
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deploying web application directory D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\webapps\manager
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.catalina.startup.HostConfig deployDirectory
[INFO] [talledLocalContainer] INFO: Deployment of web application directory D:\atlastutorial\adminUI\target\container\tomcat8x\cargo-refapp-home\webapps\manager has finished in 32 ms
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.coyote.AbstractProtocol start
[INFO] [talledLocalContainer] INFO: Starting ProtocolHandler ["http-nio-50768"]
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.coyote.AbstractProtocol start
[INFO] [talledLocalContainer] INFO: Starting ProtocolHandler ["ajp-nio-50767"]
[INFO] [talledLocalContainer] Jan 20, 2017 6:52:07 PM org.apache.catalina.startup.Catalina start
[INFO] [talledLocalContainer] INFO: Server startup in 565 ms
[INFO] [talledLocalContainer] Tomcat 8.x started on port [50768]
[INFO] refapp started successfully in 22s at http://DIN39001054:50768/refapp
[INFO] Type Ctrl-D to shutdown gracefully
[INFO] Type Ctrl-C to exit

But I am not been able to launch http://din39001054:50768/refapp as the it is giving me below error

HTTP Status 404 - /refapp/

type Status report

message /refapp/

description The requested resource is not available.


Apache Tomcat/8.0.9

Please let me know if i am doing anything wrong. I am following the standard procedure. 

1 answer

0 votes
Steven Behnke Community Champion Jan 29, 2017

Please look through the application log in <application-home>/logs/* and the tomcat log in <application-installation>/logs/catalina.out or post them here so we can find the error for you. The errors are printed to the log files, and I'm sure there's an error there to help you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

36 views 4 0
View post

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