# WebSphere: 404 Error after Enabling Sealights

### Problem <a href="#problem" id="problem"></a>

When using the SeaLights test listener as a javaagent in WebSphere, it fails to open some application pages and returns an Error 404 (Page not found).\
When disabling the Sealights agent, everything works fine.

<figure><img src="/files/EWl8Kgf2faXx814J8Lg7" alt=""><figcaption></figcaption></figure>

### Cause A: Insufficient Memory <a href="#cause-a-insufficient-memory" id="cause-a-insufficient-memory"></a>

When the 404 error pages appear with increasing frequency in more and more functional areas, it is often due to insufficient memory allocated to the Websphere configuration when the Sealights Agent is added.\
Increasing the memory allocated resolves the issue.

### Cause B: Failing to create a Secured connection <a href="#cause-b-failing-to-create-a-secured-connection" id="cause-b-failing-to-create-a-secured-connection"></a>

When the application fails to open a secure connection to access some pages, Websphere may redirect users to the 404 Error page and Security-related failures will appear in the logs.\
Fixing the Java security configuration resolves the issue.

### Related articles <a href="#related-articles" id="related-articles"></a>

* [Pivotal Cloud Foundry (PCF) Support](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/pivotal-cloud-foundry-pcf-support.md) (Java)
* [NodeJS - JavaScript heap out of memory](/knowledgebase/setup-and-configuration/troubleshooting-faq/node-javascript/nodejs-javascript-heap-out-of-memory.md)
* [Testing Frameworks Integration](/knowledgebase/setup-and-configuration/integrations/testing-frameworks-integration.md)
* [Installing the Coverage Listener as a JVM Java Agent](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/default-usage-cli/installing-the-coverage-listener-as-a-jvm-java-agent.md) (Java)
* [CD Agent for Java Application](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/cd-agent/cd-agent-for-java-application.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/troubleshooting-faq/java/websphere-404-error-after-enabling-sealights.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
