简体   繁体   中英

Compile Netbeans Web app with Java files (for deployment on XAMPP?)

  1. I have NetBeans web application, with HTML, JavaScript, CSS files... and I have some Java files which I manage to call in the web application with DirectWebRemoting.

  2. It is using NetBean's Tomcat.

  3. After "Clean and Build", I get a WAR file in dist/

  4. I put this WAR file into XAMPP/tomcat/webapps directory

  5. Run the application with XAMPP Tomcat, but then the Java files would not work using XAMPP's Tomcat.

Question: How do I compile the build, so that when I put into XAMPP it would work? This is so that everytime I run the application I don't need to turn NetBeans on.

Use the Tomcat Manager application to upload the war file, dropping them directly in the /webapps directory doesn't work for me sometimes too. Here's a link to know more about using Tomcat Manager Application

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM