Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts
HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp

HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp

Error Message: HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp

Solution:

if you are using Maven web project, then add below dependencies to the pom.xml file.otherwise, download jstl-1.2.jar and standard-1.1.2.jar files and add them to your project library.


Maven Dependecies:

<!-- https://mvnrepository.com/artifact/javax.servlet/jstl -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/taglibs/standard -->
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>

if still reproducing the same issue, let us know by commenting.
Solved: Maven Build failure showing error the filename, directory name, or volume label syntax is incorrect

Solved: Maven Build failure showing error the filename, directory name, or volume label syntax is incorrect

Error: The filename, directory name, or volume label syntax is incorrect.Maven TestNG project build failure and showing below error message.


syntax is incorrect

Solution:

<configuration>
                                <from>builder@myhost.com</from>
                                <subject>a subject</subject>
                                <failonerror>true</failonerror>
                                <mailhost>mail.dummy.ch</mailhost>
                                <mailuser>XXXXX</mailuser>
                                <mailpassword>XXXXX</mailpassword>
                                <htmlMessageFile>src/main/MailContent.html</htmlMessageFile>
                                <receivers>
                                        <receiver>dani</receiver>
                                        <receiver>sam@any-company.com</receiver>
                                </receivers>
                                <fileSets>
                                        <fileSet>
                                                <directory>${basedir}/src/main</directory>
                                                <includes>
                                                        <include>**/*.pdf</include>
                                                </includes>
                                        </fileSet>
                                </fileSets>

                        </configuration>


check weather you are using htmlMessageFile or htmlMessage in configuration.if you are using htmlMessageFile then provide your html file name only.otherwise you should use html code.
Solution:welcome file not loading in spring maven

Solution:welcome file not loading in spring maven

Welcome file html not working with spring project,showing HTTP status-404 error message

welcome file
HTTP-404 resource not Found

You need to put the JSP file in /index.jsp instead of in /WEB-INF/jsp/index.jsp. This way the whole servlet is superfluous by the way.

 WebContent 
          |-- META-INF 
          |-- WEB-INF 
                 -- web.xml 
            -- index.jsp