# Failure to deploy the war file with Payara Server 6.2023.2 and JDK11 on NetBeans

**URL:** <https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580>\
**Category:** Technical Discussion\
**Created:** [March 22, 2023, 10:03pm UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580 "2023-03-22T22:03:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![david77](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@david77](https://forum.payara.fish/u/david77)\
**Post date:** [March 22, 2023, 10:03pm UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/1 "2023-03-22T22:03:07Z")

</div>

Dear Payara community members,

I am a new user of Payara server and a beginner of Java web application development.

The problem I encountered was that I failed to deploy the war file which was compiled successfully on NetBeans IDE. I googled the issue for a while but did not find any clues.

I used Payara Server 6.2023.2 and JDK11.

The error information below repeatedly appeared throughout the sever  
log:

> SEVERE: Exception while loading the app  
> SEVERE: Undeployment failed for context /MetaboAnalyst  
> SEVERE: Exception while loading the app : CDI deployment failure:javax/faces/component/behavior/ClientBehaviorHolder – javax/faces/component/behavior/ClientBehaviorHolder

The basic system information extracted from IDE log is as follows,

> System Info:  
> Product Version = Apache NetBeans IDE 17  
> Operating System = Mac OS X version 13.2.1 running on aarch64  
> Java; VM; Vendor = 19.0.2; Java HotSpot™ 64-Bit Server VM 19.0.2+7-44; Oracle Corporation  
> Runtime = Java™ SE Runtime Environment 19.0.2+7-44  
> Java Home = /Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home  
> System Locale; Encoding = en\_CA (nb); UTF-8

Pleas let me know if any more information I need to provide.

![Ke Huy Quan Thank You GIF by The Academy Awards](https://europe1.discourse-cdn.com/flex017/uploads/payara/original/1X/56540d7050ab2c1fe680a212a8aadae092e9e11b.webp)

David

---

<div class="post-metadata">

**Author:** ![ric](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@ric](https://forum.payara.fish/u/ric)\
**Post date:** [March 27, 2023, 11:05am UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/2 "2023-03-27T11:05:57Z")

</div>

I think that Payara 6 is for Jakarta with the packages jakarta, not javax.

---

<div class="post-metadata">

**Author:** ![david77](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@david77](https://forum.payara.fish/u/david77)\
**Post date:** [March 27, 2023, 3:09pm UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/3 "2023-03-27T15:09:14Z")

</div>

Thank you so much, Ric. If your assumption is right, what am I supposed to do? Switch to other versions of Payara, or install jakarta packages? - David

---

<div class="post-metadata">

**Author:** ![ric](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@ric](https://forum.payara.fish/u/ric)\
**Post date:** [March 27, 2023, 5:01pm UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/4 "2023-03-27T17:01:36Z")

</div>

If I am right (read carefully [What's New in the November 2022 Payara Platform Release?](https://blog.payara.fish/whats-new-in-the-november-2022-payara-platform-release)), you can use the version 5 of Payara or transform your application to use Jakarta EE 10, that is not so easy if the application is not very simple. Installing jakarta packages is not a solution because your application was written for an old version of Java EE or JakartaEE (“javax/faces”, in your logs, shows it; it refers to a package of JSF that is now jakarta/faces in Jakarta EE 10).

---

<div class="post-metadata">

**Author:** ![david77](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@david77](https://forum.payara.fish/u/david77)\
**Post date:** [March 27, 2023, 5:43pm UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/5 "2023-03-27T17:43:18Z")

</div>

Thanks, again, Ric. Very clear explanation to me. So, using version 5 of Payara is worth trying first, I think.

---

<div class="post-metadata">

**Author:** ![david77](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@david77](https://forum.payara.fish/u/david77)\
**Post date:** [March 27, 2023, 9:52pm UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/6 "2023-03-27T21:52:57Z")

</div>

Hi, Ric. I tried Payara Server 5.181 to deploy the application but it failed …

The server log displayed an error:

> Xbootclasspath/p is no longer a supported option.  
> Error: Could not create the Java Virtual Machine.  
> Error: A fatal exception has occurred. Program will exit.

What are your thoughts? What else I should check up on?

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![ric](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@ric](https://forum.payara.fish/u/ric)\
**Post date:** [April 17, 2023, 7:12pm UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/7 "2023-04-17T19:12:28Z")

</div>

I have just googled “Xbootclasspath/p is no longer a supported option. payara” and I have gotten many links. JDK 9 deprecated some classpath arguments and perhaps Payara supported only Java 8 for version 5 (I don’t remember…).

---

<div class="post-metadata">

**Author:** ![AleksNo](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@AleksNo](https://forum.payara.fish/u/AleksNo)\
**Post date:** [April 18, 2023, 5:01pm UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/8 "2023-04-18T17:01:33Z")

</div>

Heya.

Pass this start parameter to the server:

-Dfish.payara.deployment.transform.namespace=true

It should convert every javax._-namespace to jakarta._ at deployment time.

But it can increase the deployment time significantly.

Cheers

---

<div class="post-metadata">

**Author:** ![StevenHachel](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/stevenhachel/32/137_2.png) [@StevenHachel](https://forum.payara.fish/u/StevenHachel)\
**Post date:** [June 22, 2023, 10:18am UTC](https://forum.payara.fish/t/failure-to-deploy-the-war-file-with-payara-server-6-2023-2-and-jdk11-on-netbeans/580/9 "2023-06-22T10:18:10Z")

</div>

@david77

Did this attitude achieve anything? Did you solve the problem?

Steven
