The error message "PWC6345" is displayed when a web project is created using maven. The error message "mavenpwc6345" is displayed.

Source: Internet
Author: User

The error message "PWC6345" is displayed when a web project is created using maven. The error message "mavenpwc6345" is displayed.

The following is an online solution, but I cannot solve it using this method [org. apache. jasper. jasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

However, this problem also occurs when I try Jetty 8 today. Please refer to the Problem description here.

After half a day, I finally found the cause.

My JDK is installed on disk D, and JAVA_HOME also points to the installation directory. The PATH of the system is also set to D: \ JDK \ bin.

However, when JDK is installed, the installer copies the Java executable file to the system directory of drive C, including java.exe, and uses java-jar start. when using jar to start Jetty, the system directory java.exe is used first. In this way, the Jetty JSP parser cannot correctly obtain the JDK installation directory, leading to this problem.

Solution: Exit Jetty, search java.exe in the system directory, delete it, and restart Jetty .]

----------------------------------- I am Lili's split line -----------------------------------------------------

I went on to study it and finally worked hard. Finally, I found a low-level error:

Check whether the following format is imported:

Click finish. The maven web project is created again ~~

 


You cannot create a web project using sts maven. Click finish to report this error.

Try to reinstall maven and reconfigure the next independent maven. There should be a problem with maven configuration, so we can't see any errors.

When you create a maven project in eclipse32, the following error occurs: an internal error occurs during Creating maven-archetype-webapp.

We recommend that you use the following commands:
1. create a project: mvn archetype: create-DgroupId = com. test. demo-DartifactId = nltc-DarchetypeArtifactId = maven-archetype-webapp

2. mvn eclipse: eclipse-Dwtpversion = 2.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.