Tomcat cannot be started. The following error occurs: Java. Lang. noclassdeffounderror: ORG/Apache/Juli/logging/logfactory.
15:58:46 | category: Tomcat | label: Juli Java Lang Apache org | font size subscription
Some time ago, I saw several beta versions of tomcat7.0 released. I didn't test it because it was not stable. Today I saw the news that the official version of tomcat7.0 has been released. I downloaded it on the official website to see how it
It can be compiled normally, but the error "Java. Lang. noclassdeffounderror: ORG/jaxen/jaxenexception" is reported during running.
After some searching, there was no problem, but the jaxen. jar package was not used.
Download from http://jaxen.org/
Jaxen is an XPATH engine developed using Java and supports JDOM and dom4j.
The error message is as follows: Java. Lang. noclassdeffounderror
This ind
During the development process, the following problem occurs: Java. lang. noclassdeffounderror: Android. support. v4.util. sparsearraycompat. This problem is very strange. The jar package has been installed and the compilation has passed. However, the class cannot be found during running. Noclassdeffounderror is generally the corresponding class and is not included in the corresponding APK. Isn't the corres
Configure the following dependencies in Maven:
Run in resin-3.0.28 and report the following error:
Servlet. Service () for servlet JSP threw exceptionJava. Lang. noclassdeffounderror: javax/El/elexception
The reason is that the container does not support jstl1.2, just replace it with the following dependencies:
The same problem also exists in Tomcat.
Tomcat6 jsp2.1/servlet2.5/jstl2.0
Tomcat5 jsp2.0/servlet2.4/jstl1.1
Tomcat4 jsp1.2/servlet2.3/jstl1
during execution, to ensure that the Java Virtual Machine can find the bytecode corresponding to the source code. If classpath is not specified or an error is specified when you run the Java program, the virtual machine cannot find the correct path, and thus the java. Lang. noclassdeffounderror: exception in thread "Main" error occurs. Therefore, when such a similar problem occurs, you should first check whether the classpath has a problem.
In additi
We all know that Java can use the new operator to initialize a class, or use the class. forname method to get a class type instance, and then initialize through the newinstance of this class type instance. we call the former Java static loading and the latter dynamic loading. the latter is often used in many frameworks, and the class name is specified by using the property file. for example, we are familiar with loading drivers of different databases when writing JDBC code.
If the class to be in
Servers normally provide some jars such as Servlet-api and Jpa-api. So if you again included them using Maven; There'll is problems in identifying them.Solution 3. If you are using the Eclipse as your IDE and using Maven as your build tool and Tomcat as your server; Remember Tomcat server won't look on the jars which is just inside the folders. For that there ' s a small trick,
Right click on your project and select Properties
From the displayed window, select Deployment Assembly
Based on the Gae platform for the development of Web projects in Java development serialization and deserialization has Json,gson, etc., I used the Gson development process encountered in the deserialization process did not find the corresponding class exception, as shown in the following figure:
Depressed exception, the program is not where there is a problem, but is in the running process error.
And then the run As--configuration configuration, so no problem.
Before modification:
Environment
JBoss 6.0 + myeclipse 8.6 + MySQL 5.1 + Struts 2.3 + EJB 3.0
Problem
When JBoss is started, "Java. Lang. noclassdeffounderror ORG/Apache/commons/lang3/stringutils jar" exception occurs.
Solution
The commons-lang3-3.1.jar is missing, add this jar to the build path of the project or under webroot/WEB-INF/lib.
References
Http://snowfigure.diandian.com/post/2012-07-20/40029447675
Http://blog.csdn.net/jeffyu328/article/details/7721022
Data do
Exception in thread "com. mchange. v2.async. threadpoolasynchronousrunner $ poolthreaD-#2 "Java. Lang. noclassdeffounderror: cocould not initialize class com. MySQL. JDBC. connectionimpl
Sqlclientinfoexception is only available in JDK 6.0
The solution to the error is as follows: According to the error message, the "Java/SQL/sqlclientinfoexception" information cannot be found. First, check whether the JDK version has the sqlclientinfoexception
Java. lang. NoClassDefFoundError: ognl/PropertyAccessor solution, ognl expression
I didn't want to write a special article for this article, but I found that no one answered such a simple question. From the perspective of convenient search, I took this question specially.
In fact, the solution is to add the jar package of ognl. For example, I use ognl3.0.6, as shown in:
Struts2 cannot run. There is a pilot package, but it is 404
Struts2-gxp-plug
problem, the new version of adt17 looks very good, and I also like the new optimization check function.
[Update]The Development Team droidux found another way to solve this problem. I did not personally test it, but it should also work. The content is as follows:
Hi everyone:
The following is a solution to the problem:
If you reference a third-party jar file that is not in the libs directory, for example, if you use the "classpath" variable, you can export the reference to solve the
Add jar package: org. Eclipse. Equinox. common_3.4.0.v20080421-2006.jar (my eclipse is 3.4)
Cause:
If you see this
Article It is estimated that you have encountered such a problem. When you seem right
Code (It should be the first time I met similar code, most of these rapeseed teaching materials or the internet.) After a burst of mouse clicks on the keyboard, I ran it with excitement, A dialog box like can't find the main class is displayed. One or two lines of Red Java are displayed on t
The external android project is imported to ecplise. The compilation is normal and an error is returned. The logcat is as follows: 12-19 10:55:25. 915: E/AndroidRuntime (2929): fatal exception: main12-19 10:55:25. 915: E/AndroidRuntime (2929): java. lang. noClassDefFoundError: com. guet. siriCN. mainActivity $1 www.2cto. com12-19 10:55:25. 915: E/AndroidRuntime (2929): at com. XXX. mainActivity.
I encountered a problem when I learned to parse XML using XPath technology today:
Exception in thread "Main" Java. Lang. noclassdeffounderror: ORG/jaxen/basexpathAt java. Lang. Class. forname0 (native method)At java. Lang. Class. forname (unknown source)At org. JDOM. XPath. XPath. newinstance (XPath. Java: 126)At com. Shi. JDOM. XPath. readjdom (XPath. Java: 30)At com. Shi. JDOM. XPath. Main (XPath. Java: 45)
When looking at JDOM, we said that JDO
Prepare to use the Google open-source project achartengine to create a chart, So I downloaded the Google achartengine demo. Import to eclipse and run successfully.
I checked carefully and found that the jar package is indeed imported, and org. achartengine. model. categoryseries does exist.
However, a noclassdeffounderror error is reported.
I don't know the specific cause. I tried it several times and solved the problem. To import a third
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.