It's all about the answers!

Ask a question

How to deploy a custom jazz application in Tomcat?


Lukas Steiger (3131626) | asked Jul 14 '14, 9:40 a.m.
edited Jul 14 '14, 9:45 a.m.
Dear all

 I have (almost) successfully created my first jazz application, following the guide: Creating a new Jazz Application from the ground up
I am able to run it in debug mode with jetty. which means that I was able to work through all chapters until nr. 9.

But now i have troubles with chapter nine. I did everything described in there, which resulted in a deployable war package and a .scr file. I can deploy them into tomcat, but a soon as i want to access the SCR or anything else, I get the following exception 

HTTP Status 403 - CRJZS0040E No REST service handler is registered for the following path: /scr.


type Status report

message CRJZS0040E No REST service handler is registered for the following path: /scr.

description Access to the specified resource has been forbidden.


I have used the Jazz 5.0 Foundation zip installations, which means that my urls look like the following:
https://localhost:9443/jts ---> works
https://localhost:9443/admin ---> works
https://localhost:9443/vms ---> 403 (see above)
https://localhost:9443/non-existing-application ---> 404
where 'vms' is the name of my app, like 'ccm' and 'non-existing-application' is a random url which does not exist

I've already read the following specifications 
https://jazz.net/wiki/bin/view/Main/SCRAndDSRSpec 
https://jazz.net/wiki/bin/view/Main/CALM2010AutoSetup

Any tips and hints are highly appreciated

Best Regards
Lukas


The SCR looks like the following
<?xml version="1.0"?>
<rdf:RDF
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:jd="http://jazz.net/xmlns/prod/jazz/discovery/1.0/"
     xmlns:oslc="http://open-services.net/ns/core#"
     xmlns:ju="http://jazz.net/ns/ui#">

   <!-- My home contributions -->
   <ju:HomeMenu>
      <jd:service rdf:resource="https://localhost:9443/vms/my-home-menu"/>
      <ju:menuSection rdf:resource="http://jazz.net/ns/ui/menuSection#my-home"/>
      <oslc:publisher rdf:resource="https://localhost:9443/vms/application-about"/>
      <jd:contextRoot>https://localhost:9443/vms</jd:contextRoot>
      <ju:defaultIcon rdf:resource="%server-URL%/web/jazz.app/graphics/JazzUI/icons/Jazz_16.png"/>
   </ju:HomeMenu>
   
   <!-- Application properties -->
   <jd:Application>
      <jd:contextRoot>https://localhost:9443/vms</jd:contextRoot>
      <jd:rootServices rdf:resource="https://localhost:9443/vms/rootservices"/>
      <oslc:publisher rdf:resource="https://localhost:9443/vms/application-about"/>
   </jd:Application>

</rdf:RDF>

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.