Error on Shipping Page: Missing Message Key & Missing maxParameterCount in server.xml"

Created by ShipConsole Support, Modified on Wed, 7 May at 1:44 AM by ShipConsole Support

Problem:

In the shipping page, when clicking "Ship," the following error message appears:
"Exception while setting the message: javax.servlet.jsp.JspException: missing message key."
Additionally, the maxParameterCount parameter doesn't exist in the server.xml file.


Solution:

This error can be caused by several factors. Below, we explain one common reason and provide a solution.

Reason 1: Missing maxParameterCount in server.xml

When the maxParameterCount parameter is not configured in the server.xml file, the application might fail to process requests with many parameters.

Solution:
Follow these steps to configure the maxParameterCount parameter in the server.xml file:

Step 1: Navigate to the Tomcat conf folder:

  • Go to tomcat > conf.

Step 2: Open the server.xml file:

  • Locate the server.xml file in the conf folder.

Step 3: Add the maxParameterCount parameter:

  • Inside the server.xml file, find the <Connector> tag.

  • Add the following line inside the <Connector> tag:

    maxParameterCount="-1"

Step 4: Restart Tomcat:

  • After adding the parameter, save the file and restart the Tomcat server.


Reason 2: Missing or Incorrect Message Key in Resource Bundle

The error may also occur if the application is trying to retrieve a message from the resource bundle (such as a .properties file) but cannot find the corresponding message key.

Solution:
To resolve this issue, follow these steps:

Step 1: Check the messages.properties or resource bundle file:

  • Locate the relevant .properties file or resource bundle where the message keys are stored (e.g., messages.properties).

Step 2: Ensure the correct message key exists:

  • Search for the missing key referenced in the error message.

  • If the key is missing, add the appropriate message entry.

Step 3: Save and redeploy the application:

  • After adding the missing key, save the file and redeploy the application.


Reason 3: Corrupt or Incomplete Deployment

In some cases, a corrupt or incomplete deployment can lead to this error.

Solution:
To resolve deployment issues, follow these steps:

Step 1: Clear temporary folders:

  • Navigate to the Tomcat work and temp directories, and delete any cached or temporary files.

Step 2: Re-deploy the application:

  • Re-deploy the application in Tomcat or your application server to ensure all files are properly deployed.

Step 3: Restart the server:

  • After redeployment, restart Tomcat to apply the changes.


Reason 4: Java/JSP Compatibility Issues

In some cases, an incompatible Java version or JSP engine may cause this error.

Solution:
To resolve compatibility issues, follow these steps:

Step 1: Verify Java Version Compatibility:

  • Ensure that the version of Java running on the server is compatible with your application.

Step 2: Check JSP engine compatibility:

  • Confirm that the JSP engine used by your server is compatible with the application’s requirements.

Step 3: Review server logs for related errors:

  • Check the Tomcat logs for any related Java or JSP compatibility errors.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article