KB Article 3725

Contact Tech Support

 Email Tech Support
 (250) 655-1766
 [7:30 - 5:00 PST]
Your Meeting ID will be Provided by a Rep.
Tech Support
Tech Support Home
Software Updates
Knowledge Base Search
Recent KB Articles
Product FAQs
Code Samples
Tech Blog
System Requirements
Installation Instructions
Support Testimonials
Contact us to...
Create a Ticket
Request a Free Demo
Suggest a New Feature
Submit Feedback
Upload a Large File
Other Services
Software Training
Professional Services

When you launch a WebSmart or Clover program the page is not presented in the browser. Common errors are Page Not Found, Not Authorized to View Program or error 404.

Product: WebSmart ILE Type: Frequently Asked Question

When a program isn't presented successfully in your browser (Page cannot be displayed and not authorized browser messages), here is a troubleshooting list that should help you determine the problem:

  1. Confirm that the URL is correct. Are you using the right IP address? Is the path after the IP address entered correctly? http://IPADDRESS:PORT/web apps/testcfg.pgm
    • NOTE: If you have just installed WebSmart and are using the "WebSmart" APACHE server the PORT should be :8150
  2. Confirm that the program actually exists in the expected library. In the example above, TESTCFG should be a program in library XL_WEBAPPS.
    • In this case you could run the command WRKOBJ XL_WEBAPPS/TESTCFG
  3. Does the HTTP configuration correctly map from the URL you entered to the library containing the program? If you aren't sure how to check this, review the instructions in chapter 2 of the User Guide, or contact Technical Support.
  4. Verify that the server instance that you made your changes to is currently up and running. You can do this via WRKACTJOB; there should be several jobs running under the QHTTPSVR subsystem.
  5. Is the HTTP server instance you edited using a port other than 80? You can go to the HTTP server instance by typing in your IP address followed by :2001 in the browser address bar. The *ADMIN instance must be running for this to work. If so, you need to adjust your URL to include the port number after the IP address.
  6. Use the DSPUSRPRFcommand to confirm that the user profile QTMHHTP1 is enabled.
  7. Try testing an ALIASMATCH (pass) statement to display a static file (an image, for example). For example, you could try this image (replace the IP address shown below with that of your own iSeries): 00/websmart/images/poweredby.gif
  8. If the image above was presented correctly, then your server instance is up and running, and there is just a problem with running your program.
  9. Check the authority on the object and on the library. The commands are WRKOBJ OBJ(LIBRARY/FILE), then option 5 and WRKOBJ OBJ(*ALL/LIBRARY) OBJTYPE(*LIB), then option 5.  The object authorities for each should have:*PUBLIC *CHANGE
  10. Next try starting the HTTP server in debug mode.

Instructions for APACHE, there are 2 ways of doing this:

·          Running the command STRTCPSVR SERVER(*HTTP) HTTPSRV(ApacheInstance'-vv'). This will start the Apache Instance in debug to generate a trace file. To view the trace file, you must stop the server. When you end the server, there will be a spool file under the user QTMHHTTP. On our system the spool file is called QZSRHTTPTR. A spool file will be created for each job that has ended, so check the most recent files.

·          Run the command TRCTCPAPP APP(HTTP) SET(*ON) HTTPSVR(ApacheInstance) TRCLVL(*VERBOSE). Use this command to run a trace on the server while it is running and without stopping it. To stop the tracing run this command: TRCTCPAPP APP(*HTTP) SET(*off) TITLE('My title'). You will need to log on with a profile that has authority to this command.

Instructions for the Original HTTP server:

·          For the Original HTTP server follow these instructions. First end your server instance, then restart it using the following string (assuming that you are using the WEBSMART instance):


·         Once the HTTP server is running in debug mode, try executing the program again. After doing so, run the command WRKACTJOB, then take option 5 followed by option 4 next to the first job in the default instance. There should be a spool file here, display it and look for something like this: ERROR 500: ** Bad script request -- script '/QSYS.LIB/XL_WEBAPPS.LIB/t1.pgm' not found or not executable.  If you find this do a WRKOBJ *ALL/QTMHCGI If you see following and your OS is V5R2 you will need the latest update Opt Object Type Library QTMHCGI *SRVPGM qhttpsvr

·          If you still cannot run your program send the spool file from step 10to BCD Technical Support.
You can contact the Technical Support team at: -(250) 655-1766 [7:30 - 5:00 PST] or -email at excel@excelsystems.com


Other Possibilities:

·          It is sometimes worth confirming the security code is not expired.

·          If a validation list is being used. See Task 3761 on troubleshooting validation lists

·          If the ADMIN instance doesn’t start see TASK 4683

Rate This Article

Did this example help you to achieve your goal?
 Yes  No  Don't Know

Enter additional comments below.   If you want to hear back from us, include your contact information.

Email Address:
Please enable JavaScript in order to rate this page.