Troubleshoot: Previewing catalog attachments
Problem
When you click a catalog attachment on the Show Attachments page, the catalog attachment does not display in a Web browser. In addition, the following error is logged to the SysyemOut.log file:
[2/21/06 16:00:33:902 CST] 00000053 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet PreviewServlet. Exception thrown : java.lang.NullPointerException
Solution
The catalog attachment file has a MIME type or file extension not registered with WAS.
Update the WAS configuration to enable the previewing of the file on the Show Attachments page:
- Open the WAS console.
Refer to the Starting and logging off the console topic in the WAS Information Center.
- Select Environment > Virtual Hosts.
- Click VT_ instance _Preview.
- Click MIME Types.
- Click New.
- Type the new MIME type and its extensions and click OK. Repeat this step until have added MIME types for all new file extensions.
- Save your changes to the master configuration.
- Regenerate the Web server plug-in configuration:
- Select Servers > Web servers, then select your WebSphere Commerce Web server.
- Click Generate Plug-in, then click Propagate Plug-in.
- Restart your WebSphere Commerce Web server.
- Stop and restart WebSphere Commerce.
Related concepts
Catalog and marketing attachments
Related tasks