Smart Summary
The Azul Payara AI Upgrade Assistant upgrades Jakarta EE 8, 9, and 10 applications to Jakarta EE 10 or 11. Static advisors locate every affected file and line, deterministic OpenRewrite recipes handle mechanical edits with zero AI tokens, and an AI agent on your own LLM resolves the rest in a compile-verified loop. It is currently generally available for Azul Payara Server
In this post you will learn:
- How the three-stage pipeline splits deterministic recipes from AI agent work
- Why a hybrid approach outperforms AI-only coding agents on Jakarta EE upgrades
- How to run dry runs, full upgrades, and MCP workflows in Maven, CLI, or Claude Code
- Where the tool’s scope ends, how it handles data, and how it is licensed
Azul Payara 5 moves from Full Support to Extended Support in Q2 2027, and legacy Jakarta EE 8 applications are usually what keep teams pinned to it. Upgrading means renaming javax. to jakarta. across source, XML descriptors, and JSTL taglibs, replacing removed APIs, and updating dependencies that often stay hidden until the build breaks. Teams either grind through those edits by hand or point a general-purpose coding agent at the repo and audit guesswork for hours. The Azul Payara AI Upgrade Assistant turns that work into a compile-checked diff.
How it works
Delivered as a single Java 17+ jar, the tool runs against your source tree with no Azul Payara Server installation or Payara dependency required. It runs in three opt-in stages:
- Detection (-Dmigration.detection=true). Reports detected technologies and applicable advisors without editing files.
- Advisors and recipes (-Dmigration.advisor=true). Scans the project and classifies each finding as RECIPE, GUIDED_RECIPE (one judgment call followed by a project-wide recipe), AI, or MANUAL (server steps such as asadmin commands). OpenRewrite recipes then apply every RECIPE fix with zero AI and zero tokens: javax. to jakarta. in Java, persistence.xml, web.xml, and JSTL URIs; JSF-to-CDI rewrites (@ManagedBean to @Named, @ManagedProperty and @Context to @Inject); removed Servlet, JPA, JAX-RS, and EJB APIs; and pom.xml platform and framework updates.
- AI agent (-Dmigration.agent=true). Resolves remaining findings in a Perceive, Act, Verify, Repeat loop. It edits files in adaptive batches against each advisor’s Fix text, compiles with your project’s build tool (Maven/mvnw, Gradle, or Ant), feeds compiler errors back to the model, and rescans. Defaults allow 5 advisor rounds (migration.maxRounds) plus 5 compiler-fix rounds (migration.compilerFixRounds). If rounds run out, changes remain on disk and the report marks the compile check failed.
Because recipes handle the javax. to jakarta. rename, Jakarta EE 8 applications can jump directly to Jakarta EE 10 (Payara 6) or 11 (Payara 7). Jakarta EE 9 and 10 applications are also supported.
Why a hybrid approach outperforms AI-only migrations
Coding agents such as Claude Code and Codex can inspect repositories, edit files, and run builds on their own, but running a general-purpose agent alone on a Jakarta EE upgrade is still expensive and inconsistent. The model has to infer version-specific API changes and Payara behavior from training data, spend tokens rewriting boilerplate javax. imports across hundreds of files, and risk hallucinating signatures between runs.
The AI Upgrade Assistant uses static advisors to hand the model an exact file-and-line inventory while OpenRewrite recipes execute mechanical refactors locally. In Azul’s published comparison on the open-source hmis project, deterministic recipes fixed 22,515 findings with zero LLM calls, leaving 4 findings for the AI agent. That split cuts token consumption, keeps hallucinations out of routine edits, and produces repeatable diffs verified by your own compiler. Modern coding agents can also tap into this layer directly: running the jar as an MCP server exposes run_recipes, apply_guided_recipes, compile, and test plus a migrate_project prompt, so agents such as Claude Code invoke the same advisors and recipes instead of guessing rules from scratch.
Running it in Maven, CLI, or your coding agent
Start with a read-only dry run (-Dmigration.apply=false) on one application to get a file-by-file inventory with zero edits and zero AI:
mvn fish.payara.tools:payara-platform-migration-tool:<version>:migrate \ -Dmigration.dir=. -Dmigration.advisor=true -Dmigration.apply=false
To apply recipes and run the AI agent (targets Jakarta EE 11 by default; add -Dmigration.target=10 for Jakarta EE 10, or -Dmigration.agent.maxBatchesPerRound=2 for a bounded trial):
export PAYARA_AI_PROVIDER=ANTHROPIC PAYARA_AI_API_KEY=<your-api-key> mvn fish.payara.tools:payara-platform-migration-tool:<version>:migrate \ -Dmigration.dir=. -Dmigration.advisor=true -Dmigration.agent=true
All four entry points share the same advisors and migration.* flags:
- Maven plugin (-Dmigration.*) for Maven projects and CI.
- Plain jar (java -jar payara-platform-migration-tool-<version>.jar migrate --migration.dir=...) for Gradle, Ant, or non-Maven repos. Source and descriptor edits cover all three; automatic dependency updates write Maven pom.xml files only.
- Web UI (start goal or jar command) to configure runs locally, watch live progress, and copy the CLI command for CI.
- MCP server (claude mcp add payara-platform-migration-tool -- java -jar /path/to/payara-platform-migration-tool-<version>.jar mcp, with optional --allowed-roots) so Claude Code drives inference with no provider API key.
Models, data handling, and guardrails
Set PAYARA_AI_PROVIDER to ANTHROPIC, OPEN_AI, GOOGLE, MISTRAL, CLAUDE_CODE_CLI (uses your logged-in claude CLI without an API key), OLLAMA, or CUSTOM_OPEN_AI. Anthropic, OpenAI, and Google models have published test results in the documentation. Source files go only to your configured provider (review its retention terms), and the tool sends no telemetry to Azul. When code cannot leave your network, point PAYARA_AI_PROVIDER_LOCATION at a self-hosted Ollama or OpenAI-compatible model, noting that local models are not yet in the published tests and need closer review.
Default guardrails keep every change inspectable:
- Git checkpoints commit each recipe pass and agent round (Migration checkpoint: ...) on a clean tree (-Dmigration.gitCommit=false disables; MCP mode never commits, so branch first).
- Interactive mode and safe stop let you approve every file write (-Dmigration.agent.interactive=true) or stop from the live report at the next safe point (jar exit 130), never mid-edit.
- Reports under .migration/latest/ (audit-report.html, .md, .json, migration-plan.md, post-migration-checklist.md with your project’s real values for MANUAL steps, and migration.log) mark each finding Fixed, Guide, or Skipped. Add .migration/ to .gitignore.
Scope and licensing
Four boundaries apply in this release:
- Compile check only: run your own test suite and verify on the target server before production.
- Standard Jakarta EE and Payara APIs: proprietary APIs from other application servers are not translated.
- Application code only: upgrade the server and domain separately with the Payara Server Upgrade Tool.
- Out of scope: Azul Payara Micro applications and MicroProfile upgrades are not supported yet.
The AI Upgrade Assistant is a separate license, only available with an Azul Payara Server subscription, currently at no extra license cost, with no per-application fee and no usage metric. You pay your LLM provider for agent tokens; detection and deterministic recipes use no AI.
FAQ
How do I upgrade a Jakarta EE 8 application to Jakarta EE 10 or 11?
Run the Azul Payara AI Upgrade Assistant with -Dmigration.advisor=true and -Dmigration.agent=true (adding -Dmigration.target=10 for Jakarta EE 10). OpenRewrite recipes apply the javax. to jakarta. rename and routine API or pom.xml changes, and the AI agent resolves the remaining findings in a compile-verified loop.
How can I use AI to upgrade Jakarta EE code without sending source code to a vendor?
The tool runs locally and sends no telemetry to Azul. Point PAYARA_AI_PROVIDER to OLLAMA or CUSTOM_OPEN_AI with a self-hosted endpoint to keep code on your network, or run -Dmigration.advisor=true without -Dmigration.agent=true to use zero AI.
What is the difference between an upgrade advisor and an agentic upgrade tool?
An upgrade advisor, such as the free Upgrade Advisor Maven plugin for Payara, reports required changes for a developer to apply by hand. The Azul Payara AI Upgrade Assistant also executes the changes through deterministic recipes and an AI agent, then compiles the project to verify the result.
What else needs upgrading after a Jakarta EE application upgrade?
A Jakarta EE 10 or 11 application will not deploy on Azul Payara Server 5. Upgrade the server installation and domain configuration with the Payara Server Upgrade Tool, then run your test suite against the target server.
How much does an AI-assisted Jakarta EE upgrade cost?
The Azul Payara AI Upgrade Assistant is a separate license, only available with an Azul Payara Server subscription, currently at no extra license cost, with no per-application fee and no usage metric. You pay only your chosen LLM provider for agent tokens; detection and recipes use no AI.












