Re: Web Deployment

Maciej Jaros <[email protected]> Fri, 23 Jan 2026 17:58:06 +0100
Newsgroups gmane.comp.java.ide.netbeans.user
Organization MOL sp. z o.o.
Message-ID <[email protected]>
--------------iesHPaofvpUCRvqr7dyaONFS
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

NetBeans doesn't deploy to *webapps*. For a Tomcat root:
 =C2=A0 C:\Programs\Apache Software Foundation\apache-tomcat-11\
it will create an XML file in:
 =C2=A0 C:\Programs\Apache Software=20
Foundation\apache-tomcat-11\conf\Catalina\localhost\

The XML file contains something like:
 =C2=A0 Context ... docBase=3D"C:\project\project-webapp\target\project"

This allows hot reloading of your code (e.g. applying changes to method=20
bodies in your classes). AFAIK the war file is not used.

Cheers,
Maciej Nux

ArbolOne Enterprise (2026-01-23 17:25):
>
> *Hello.
>
> *
>
> *Product Version:* Apache NetBeans IDE 28
>
> *Java:* 25.0.1; OpenJDK 64-Bit Server VM 25.0.1+8-LTS
>
> *Runtime:* OpenJDK Runtime Environment 25.0.1+8-LTS
>
> *System:* Windows 11 version 10.0 running on amd64; UTF-8; en_CA (nb)
>
> *User directory:* C:\Users\arbol\AppData\Roaming\NetBeans\28
>
> *Cache directory:* C:\Users\arbol\AppData\Local\NetBeans\Cache\28
>
> The IDE does not deploy the WAR or any App's=C2=A0 files to=20
> '[DRIVE]:\Tomcat-11.0\webapps\ROOT'; I think it has to do with the=20
> installation from the Installer. Is there a way to make the IDE deploy=20
> to \Tomcat-11.0\webapps\ROOT, or should I uninstall and then reinstall=20
> a less featured installation of Apache NetBeans IDE 28?
>
> Thanks in advance
>
>

--------------iesHPaofvpUCRvqr7dyaONFS
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body>
    <div class=3D"moz-cite-prefix">NetBeans doesn't deploy to *webapps*.
      For a Tomcat root:<br>
      =C2=A0 C:\Programs\Apache Software Foundation\apache-tomcat-11\<br>
      it will create an XML file in:<br>
      =C2=A0 C:\Programs\Apache Software
      Foundation\apache-tomcat-11\conf\Catalina\localhost\<br>
      <br>
      The XML file contains something like:<br>
      =C2=A0 Context ... docBase=3D"C:\project\project-webapp\target\proj=
ect"<br>
      <br>
      This allows hot reloading of your code (e.g. applying changes to
      method bodies in your classes). AFAIK the war file is not used.<br>
      <br>
      Cheers,<br>
      Maciej Nux<br>
      <br>
      ArbolOne Enterprise (2026-01-23 17:25):<br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:[email protected]=
.prod.outlook.com">
      <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DU=
TF-8">
      <p> </p>
      <div style=3D"white-space: nowrap">
        <p
style=3D"margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0=
"><b>Hello.<br>
            <br>
          </b></p>
        <p
style=3D"margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0=
"><b>Product
            Version:</b> Apache NetBeans IDE 28 </p>
        <p
style=3D"margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0=
">
          <b>Java:</b> 25.0.1; OpenJDK 64-Bit Server VM 25.0.1+8-LTS </p>
        <p
style=3D"margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0=
">
          <b>Runtime:</b> OpenJDK Runtime Environment 25.0.1+8-LTS </p>
        <p
style=3D"margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0=
">
          <b>System:</b> Windows 11 version 10.0 running on amd64;
          UTF-8; en_CA (nb) </p>
        <p
style=3D"margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0=
">
          <b>User directory:</b>
          C:\Users\arbol\AppData\Roaming\NetBeans\28 </p>
        <p
style=3D"margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0=
">
          <b>Cache directory:</b>
          C:\Users\arbol\AppData\Local\NetBeans\Cache\28 </p>
      </div>
      <p>The IDE does not deploy the WAR or any App's=C2=A0 files to
        '[DRIVE]:\Tomcat-11.0\webapps\ROOT'; I think it has to do with
        the installation from the Installer. Is there a way to make the
        IDE deploy to \Tomcat-11.0\webapps\ROOT, or should I uninstall
        and then reinstall a less featured installation of Apache
        NetBeans IDE 28?<br>
        <br>
        Thanks in advance</p>
      <p><br>
      </p>
    </blockquote>
    <br>
  </body>
</html>

--------------iesHPaofvpUCRvqr7dyaONFS--