After installing rose 2003, start the old prompt "Java. Lang. classnotfoundexception ". Method 1: Download The shw32.dll file to overwrite the original file in Rose 2003. Method 2: Modify the Registry
1. open Registry 2. go to "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Java VM" 3. create item trustedclasspath [REG_SZ] (string value) 4. the value is (1) Windows
Exception Handling series: java. lang. OutOfMemoryError: PermGen space, permgen
Today, I helped my colleagues solve the problem of Tomcat startup and reported an OutOfMemoryError. Then I searched and found it very interesting.
The solution is as follows:
The memory is full. So we need to increase the Tomcat memory pool a little.
Modify as follows:1. window --> Preferences, and then write "tomcat" directly
The error details are as follows::
[6/27/13 15: 54: 49: 679 CST] 00000043 systemout o error-An error occurred while obtaining the instance of the specified object [appendixmgr! Check the configuration file! -Com. TRS. dreamfactory. createobjectbyid (dreamfactory. java: 79) Org. springframework. beans. factory. beancreationexception: Error creating bean with name 'appendixmgr 'defined in file [/opt/IBM/WebSphere/appserver/profiles/invalid rv06/installe
The more JVM memory, the less threads can be created, the more likely java. lang. OutOfMemoryError: unable to create new native thread .,
I. Understanding:
First, we will understand this problem through the following test program:Running Environment (it is worth noting that different environments have different results): 32-bit Windows XP, Sun JDK 1.6.0 _ 18, eclipse 3.4,Test procedure:Java code
If no JVM
When I did the graphic verification code, I randomly found a segment of code from the Internet. The result showed this exception. The details are as follows:
(
4361578
MS) [HTTP
-
8080
-
Processor25] error: org. Apache. Catalina. Core. containerbase. [Catalina]. [localhost]. [
/
Xixibar]. [JSP] # invoke: servlet. Service ()
For
Servlet JSP threw exception
Java. Lang. illegalstateexception: getoutputstream
The exception information is as follows:
Exception in thread "Main" Java. Lang. noclassdeffounderror: ORG/Apache/WS/commons/Schema/utils/namespaceprefixlistAt org. Apache. cxf. jaxws. jaxwsclientfactorybean. At org. Apache. cxf. jaxws. jaxwsproxyfactorybean. At CN. navidog. Common. webwervice. Client. rankclient. At CN. navidog. Front. Users. testwebservice. Main (testwebservice.
This error often occurs in the development of J2ME.
Eclipse Modification Method:
Set the ' Java Compliance level ' to 1.4. For this, in the Eclipse go to Project-> Properties-> Java compiler, enable "Project specific Settings" and "Then set" Java Compliance level ' to 1.4.
It may actually be a stitch to a different environment, especially if you're debugging wit
Use struts1, And the actionform class is as follows:
Private string menutype; private clientuser user;... corresponding get and set methods...
The action class is as follows:
Public actionforward execute (actionmapping mapping, actionform form, httpservletrequest request, httpservletresponse response) {system. out. println ("========= enter the userinfoaction class =========="); userinfoform = (userinfoform) form ;}
However, when submitting a form, you may encounter the following problems:
====
This problem occurs when Tomcat is started when struts2 + hibernate + spring is set up.
Severe: Error Handling ing application listener of class org. springframework. Web. Context. contextloaderlistenerJava. Lang. classnotfoundexception: org. springframework. Web. Context. contextloaderlistenerAt org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1358)At org. Apache. Catal
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
Solve java. lang. IllegalStateException: BeanFactory not initialized or already closed,
I encountered this problem when I was running someone else's SSH project today.
Severe: Exception sending context initialized event to listener instance of class org. springframework. web. context. contextLoaderListenerorg. springframework. beans. factory. beanDefinitionStoreException: Failed to read candidate component
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.