cancel
Showing results for 
Search instead for 
Did you mean: 

How to run a MTA App deployed on the cloud foundry trail account?

sudhiranjan_lenka
Contributor
0 Kudos

Hello Experts,

I have created one MTA App in the Full Stack Web IDE, then I created DB, JAVA and UI module along with their code. All the modules built and executed successfully independently from the Web IDE.

I built the entire MTA project and deployed the .mtar file onto the cloud foundry trail account, it got deployed successfully.

Now I can't see the UI module in the applications list in the cloud foundry but I can see DB and JAVA module.

Now I have no clue how to run the MTA App. Requesting for your help here.

The application list looks as attached.

Accepted Solutions (0)

Answers (3)

Answers (3)

sudhiranjan_lenka
Contributor
0 Kudos

I could manage to run the UI module without using the App Router.

I didn't use Cloud foundry's HTML5 repository at the time of UI module creation, so it didn't create App router.

Now I can see an application called UI and it executes fine.

But still I am wondering, how to make use of App Router when we use Cloud foundry's HTML5 repository.

Thanks,

Sudhir.

ravindrapawar
Participant
0 Kudos

Hello Sudhir,

I am struggling with the same kind of problem. Below route is added to xs-app.json file of the html5 module in my MTA.

{ "source": "^(.*)$", "target": "$1", "service": "html5-apps-repo-rt", "authenticationType": "xsuaa" }

deployment fails with below error,

xs-app.json/routes/0: Format validation failed (A route requires access to html5-apps-repo-rt service but the service is not bound.)

When the route is removed from xs-app.json file the MTA gets deployed successfully but when i open the appRouter URL it gives error as File not found with "siteNotFound/siteNotFound.html" at the end of the URL

Can you please help with any pointers?

Thanks,

Ravindra

sudhiranjan_lenka
Contributor
0 Kudos

Hello All,

I have updated the xs-app.json file of the appRouter module inside my MTA App as mentioned below and now appRouter application gives a different error "503 Service Temporarily Unavailable" when we run the appRuter application in the browser.

I am not sure if we need to update the xs-app.json file of aapRouter but just tried as hit and trail.

{
	"authenticationMethod": "none",
	"routes": [{
		"source": "^(.*)$",
		"target": "$1",
		"service": "html5-apps-repo-rt",
		"authenticationType": "xsuaa"
	}]
}

Please guide me to resolve this issue.

Error getting for AppRouter Application.

I am trying this in Cloud Foundry trail account(AWS).

Thanks,

Sudhir

gregorw
Active Contributor
0 Kudos

Please click on the appRouter Application and you should see an URL that you can use to access the App.

sudhiranjan_lenka
Contributor
0 Kudos

Thank you so much Gregor for the response!!

I thought so and tried the appRouter URL but it gave the error as "Not Found" as shown in the attached screenshot.

Could you please help me to find out the reason of this error?

AppRouter application.

error.

Thanks,

Sudhir.