> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/install/9.3-install/pentaho-installation-overview-cp/manual-installation/manual-installation-process/prepare-jboss-connections-and-web-app-servers/install-jdbc-driver-as-a-module-in-jboss/step-7-add-jboss-deployment-structure-file-to-a-.war-file.md).

# Step 6: Add JBoss Deployment Structure file to the WAR file

The `jboss-deployment-structure.xml` JDS file controls class loading. It prevents automatic dependencies from being added, adds dependencies, defines additional modules, changes isolated class loading behavior, and adds additional resource roots to a module.

You will need to create, then add a JBoss deployment structure file (`jboss-deployment-structure.xml`) to the `pentaho.war` file.

**CAUTION:**

If you have a different database than PostgreSQL, adjust the module name information in this section to match the ones in your environment.

1. Use a text editor to create a new file named: `jboss-deployment-structure.xml`
2. Copy the following code snippet to the `jboss-deployment-structure.xml` file.

   ```xml
   <jboss-deployment-structure>
   <deployment>
   <exclude-subsystems>
   <subsystem name="resteasy" />
   <subsystem name="jaxrs" />
   <subsystem name="webservices" />
   </exclude-subsystems>
   <dependencies>
   <module name="org.h2" />
   <module name="org.postgresql" />
   <module name="org.jboss.modules" />
   <module name="org.hsqldb" />
   </dependencies>
   </deployment>
   </jboss-deployment-structure>

   ```
3. Save and close the file.
4. Use a ZIP extraction utility (such as 7-Zip, Winzip, or Archive) to view the contents of the `pentaho.war` file. Do not unzip or extract the contents of the file.
5. Navigate to the `WEB-INF` directory and add the `jboss-deployment-structure.xml` file that you just created to it.
6. Close the `pentaho.war` file. The ZIP extraction utility that you used might show a prompt which asks whether you would like to update the file in the `pentaho.wararchive`. Confirm that you would like to update the file.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/install/9.3-install/pentaho-installation-overview-cp/manual-installation/manual-installation-process/prepare-jboss-connections-and-web-app-servers/install-jdbc-driver-as-a-module-in-jboss/step-7-add-jboss-deployment-structure-file-to-a-.war-file.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
