Using Spring Debugging Hints: Failed to load or instantiate Taglibraryvalidator Class:org.apache.taglibs.standard.tlv.JstlCoreTLV

Source: Internet
Author: User
Tags tld

jasperexception:failed to load or instantiate Taglibraryvalidator Class:org.apache.taglibs.standard.tlv.JstlCoreTLV
A: Reason Lib lacks standard.jar and servlet-api.jar two files, and two files are added to the user library.

Other related issues:

Serious: Error Initializing Endpoint
Java.net.SocketException:Permission Denied:listen failed
At Java.net.PlainSocketImpl.socketListen (Native method)
At Java.net.PlainSocketImpl.listen (plainsocketimpl.java:343)
At Java.net.ServerSocket.bind (serversocket.java:319)
At Java.net.serversocket.<init> (serversocket.java:185)
At Java.net.serversocket.<init> (serversocket.java:141)
At

Org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket (defaultserversocketfactory.java:49)

A:
To change the port, change the 8080 in Tomcat_home/conf/server.xml to the other.
Before starting, check with NETSTAT-A to see if Port is not

is already being used. may be occupied by Oracle or an open Eclipse program.
Oracleorahome92tnslistenerlistener1

2 Q:
jasperexception:failed to load or instantiate Taglibraryvalidator Class:org.apache.taglibs.standard.tlv.JstlCoreTLV
A: Reason Lib lacks standard.jar and servlet-api.jar two files, and two files are added to the user library.

3 Error:
Java.lang.NullPointerException
Cause: Discovery of DAO instances, manage instances, etc. what needs to be injected is not injected
Resolve: This time, you should check the log file; The default is the application server log file, such as Tomcat is [Tomcat installation directory]/logs; you will find that you are prompted:
May be:
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' SF ' defined in ServletContext Resource [/web-inf/applicationcontext.xml]: Initialization of Bean failed; Nested exception is org.hibernate.HibernateException:could not configure from Url:file:src/hibernate.cfg.xml
Org.hibernate.HibernateException:could not configure from Url:file:src/hibernate.cfg.xml
............................
caused By:java.io.filenotfoundexception:src/hibernate.cfg.xml
May be:
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in ServletContext resource [/web-inf/applicationcontext.xml]: Initialization of Bean failed; Nested exception is org.hibernate.mappingexception:resource:com/mcc/coupon/model/userrole.hbm.xml not found
Org.hibernate.mappingexception:resource:com/mcc/coupon/model/userrole.hbm.xml not found
Then you know the reason is because the configuration file parsing error, this through the Web page is not visible.
More is the persistence of the mapping file out of the error, resulting in not being resolved, of course, you need the function can not be used.


4 Error:
Standardwrappervalve[action]: Servlet.service () for Servlet action threw exception
Javax.servlet.jsp.JspException:Cannot Retrieve mapping for Action/settlementtypemanage
Or:
Type Status
Message Servlet action isn't available
Description The requested resource (Servlet action isn't available) is not available.

Reason: Same 3

5 Error:
STANDARDWRAPPERVALVE[JSP]: Servlet.service () for Servlet JSP threw exception
Java.lang.ClassNotFoundException:org.apache.struts.taglib.bean.CookieTei
Interface Error Specific Description:
org.apache.jasper.JasperException:Failed to load or instantiate Tagextrainfo class: Org.apache.struts.taglib.bean.CookieTei


Reasons and Solutions:
< scheme one > your "HTML:" The labels that start with are not in a < two > Restart your application server, automatically does not have this problem

6 Error:
Exception in thread ' main ' org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update
Reasons and Solutions:
Because Hibernate tools (or the eclipse itself's database Explorer) generate the *.hbn.xml tool containing attributes such as catalog= "* *" (* to represent the name of the databases), delete the property.

7 Error:
Org.hibernate.ObjectDeletedException:deleted object would is re-saved by cascade (remove deleted object from associations )
Reasons and Solutions:
Method 1 Delete The cascade of the Set Square
Method 2 after resolving the association relationship, delete the
Method 3 adds Cascade to Many-to-one but the value cannot be none
Last resort:
Check to see if hashcode equals used the ID as the only marked option; I have no problem with Uuid.hex, but with native, I can't. Delete AH.
This error can be found in my blog article:
Http://www.blogjava.net/crazycy/archive/2006/06/24/54939.html

8 Error:
Exception Javax.servlet.ServletException:BeanUtils.populat
Root cause
Java.lang.IllegalArgumentException:Cannot invoke ***form.set***-argument type mismatch
Reason
This question is strange to say, why say strange.
First, the reason for the problem: The problem occurs in two cases:
The form is the date type
When uploading files
Why is that strange? Mainly for the form is the date-type, because I have done n multiple system form is used Java.util.Date, interface using Solve:
First question: You change date to string; Convert to action; Of course, the conversion takes the Simpledateformate method.
Second question: Remember to add enctype= "Multipart/form-data" in form

9 Questions:
Today, with Tomcat5.5.12, found that the original very good use of the system can not be used, repeated tests found that the page can not contain taglib, otherwise the following prompts will appear:
HTTP Status 500-type Exception
Message
Description The server encountered an internal error () is prevented it from fulfilling this request.
exception
Org.apache.jasper.JasperException:/index.jsp (1,1) Unable to read TLD "Meta-inf/tlds/struts-bean.tld ' from JAR file" File:*****/web-inf/lib/struts.jar ":
Reason:
Updated the jar under the project's Lib folder and released Servlet.jar and Jsp-api.jar.
Solve:
Removing the Jsp-api.jar will solve the problem.


10 Problem: The error in the Tomcat5.0.20 can be seen by the []/logs localhost_log.2006-07-14.txt similar file under the Tomcat installation directory, but it will not be found in 5.5.
Reasons and Solutions:
I tomcat5w.exe the logging tag of the]/bin under the Tomcat installation directory for a while and then I got it back up.
The reason is not specific, with a non-installation version also has this problem.

Final Solution:
Http://tomcat.apache.org/tomcat-5.5-doc/logging.html

11 Error: Javax.servlet.ServletException:Cannot find beans page in any scope
Reason 1: Check the program, there may be JSP Chinese to the Bean in the program does not run to, so does not exist.

12 Error: No action instance for Path/menumanage could is created
Reason: sturts configuration problem, cannot find the bean corresponding to the form. Check JSP files and struts-config.xml files.

13 Error: Org.hibernate.hql.ast.QuerySyntaxException:address is not mapped. [From address]
Reason: Check that the database name in the corresponding Bean is the same as the hibernate definition, and note the case.

14 Error: Org.hibernate.PropertyAccessException:IllegalArgumentException occurred while calling Setter in class: Com.xxx.perrsistence.Test, setter method of Property:id
Reason: The Set method data type in the corresponding bean and the type defined in Hibernate configuration file are consistent.

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.