Tutorial - Web Application Modules (WAMs) - 404

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Weissnix
Posts: 1
Joined: Mon Dec 10, 2018 5:05 pm

Tutorial - Web Application Modules (WAMs) - 404

Post by Weissnix » Tue Jan 08, 2019 1:20 am

Hello everyone,

I'm new to LANSA programming and currently working on Web Application Modules (WAMs).

I'm watching this tutorial:

https://docs.lansa.com/14/en/...

I noticed that there is no CSS in the design view. The design is just HTML and there is nothing to choose from in the Class dropdown. see screenshot
testWAM.jpg
testWAM.jpg (120.62 KiB) Viewed 133 times
And the second problem: When I execute and the browser calls this URL: http://localhost:8080/lansa/lansaweb?wa ... UT&lang=DE

I get HTTP Error 404 - Not Found.

When I get http://localhost:8080/ I get the "Welcome to the "LANSA" website, created by the LANSA install."

Do you have any tips for me?

Greetings from Germany

atostaine
Posts: 303
Joined: Wed Jan 20, 2016 7:38 am

Re: Tutorial - Web Application Modules (WAMs) - 404

Post by atostaine » Tue Jan 08, 2019 4:01 am

Tip# 1: Don't use WAM's. Use VL-WEB.

Did you compile your WAM?

Art
Art Tostaine

AbelS
Posts: 21
Joined: Wed Nov 16, 2016 1:43 pm
Location: Sydney, Australia
Contact:

Re: Tutorial - Web Application Modules (WAMs) - 404

Post by AbelS » Tue Jan 08, 2019 12:56 pm

Hi Weissnix

I Agree with Art (if you are just starting to develop for Web) use Web pages instead of WAMs.

However, if you have to maintain existing WAMs, then going through the tutorials is a good idea.

On the bottom of the IDE you will see "LANSA:XHTML". Click on it and you will be presented with this dialog:
Web sanity tests.jpg
Web sanity tests.jpg (81.91 KiB) Viewed 113 times
Run the first two tests. If the first one passes (you have a working web server) run the second (you can run a WAM webroutine).

If the first test fails, contact Support who will help you troubleshoot your installation. If it passes, run the second one and if the page loads but the page doesn't look right, press F12 (developer tools) on your browser and see what errors are shown.

HTH
Abel

AbelS
Posts: 21
Joined: Wed Nov 16, 2016 1:43 pm
Location: Sydney, Australia
Contact:

Re: Tutorial - Web Application Modules (WAMs) - 404

Post by AbelS » Tue Jan 08, 2019 2:21 pm

Forgot to mention to first confirm Art's suggestion that you have compiled your WAM.

Cheers

bark
Posts: 19
Joined: Thu Jan 05, 2017 9:56 am

Re: Tutorial - Web Application Modules (WAMs) - 404

Post by bark » Thu Jan 10, 2019 12:52 pm

I agree with the others that have posted here already. For new web development, don't proceed with WAMs as you are starting with a technology from 2005 and this isn't the technology that LANSA will be pushing on with in terms of future development and enhancements. The WAM technology is in a 'fixes only/no further enhancements' status. There's even a notice regarding wams posted on the support section of the web site https://www.lansa.com/support/tips/t0639.htm

I'd suggest to...
Install or upgrade to V14 SP2 and execute any of the sample apps from the home page in the VL IDE. Or create your own version of the apps based on the sample apps. Checkin and compile and execute against the IBM i.
Or if you are on an older version of LANSA and, for application maintenance reasons, cannot upgrade then just download the free trial from the LANSA web site and play around with with the web samples in that environment.

Post Reply