Some minor problems and solutions

Source: Internet
Author: User

The localhost on the XDB server requires the user name and password.

Recently, the Oracle database is installed on the computer, and then the Java Web is released using the Tomcat server.ProgramWhen the default port 8080 is used, a prompt is displayed asking for authentication:

"The localhost on the XDB server requires the user name and password.

Warning this server requires that your username and password be sent in an insecure manner (no basic authentication for secure connections )."

I tried to authenticate according to \ Apache Software Foundation \ Tomcat 6.0 \ conf \ tomcat-users.xml configuration, the result is always wrong, thought, the most likely is because of the problem of installing the Oracle database, after the Oracle database is installed, an Oracle HTTP Server is installed. It is estimated that the port is occupied.

Modify the Tomcat port to another port. In the \ Apache Software Foundation \ Tomcat 6.0 \ conf \ Server. XML server configuration file, change the port value of connector to 80 by default:

<Connector Port = "80" protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443" type = "regxph" text = "yourobjectname"/>

After restarting tomcat, you can access the Web Resources on the Tomcat server.

Javax. servlet. servletexception: Java. Lang. noclassdeffounderror: javax/El/elresolver error Solution

 

Solution: to the Apache-Tomcat/lib directory, copy the el-api.jar to D: \ Program Files \ Java \ jdk1.6.0 \ JRE \ Lib \ ext

 

For other reasons, see: http://stackoverflow.com/questions/6360121/java-lang-noclassdeffounderror-javax-el-elresolver-when-running-simplehellobyen

 

 HTTP status 500- 

Type exception report

Message

Description the server encountered an internal error () that prevented it from fulfilling this request.

Exception

Javax. servlet. servletexception: Java. Lang. noclassdeffounderror: javax/El/elresolver
Org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 268)
Javax. servlet. http. httpservlet. Service (httpservlet. Java: 717)
Root Cause

Java. Lang. noclassdeffounderror: javax/El/elresolver
Java. Lang. classloader. defineclass1 (native method)
Java. Lang. classloader. defineclass (classloader. Java: 620)
Java. Security. secureclassloader. defineclass (secureclassloader. Java: 124)
Java.net. urlclassloader. defineclass (urlclassloader. Java: 260)
Java.net. urlclassloader. Access $000 (urlclassloader. Java: 56)
Java.net. urlclassloader $ 1.run( urlclassloader. Java: 195)
Java. Security. accesscontroller. doprivileged (native method)
Java.net. urlclassloader. findclass (urlclassloader. Java: 188)
Java. Lang. classloader. loadclass (classloader. Java: 306)
Java. Lang. classloader. loadclass (classloader. Java: 299)
Sun. Misc. launcher $ appclassloader. loadclass (launcher. Java: 276)
Java. Lang. classloader. loadclass (classloader. Java: 299)
Java. Lang. classloader. loadclass (classloader. Java: 251)
Java. Lang. classloader. loadclassinternal (classloader. Java: 319)
Org. Apache. Jasper. runtime. jspfactoryimpl. getjspapplicationcontext (jspfactoryimpl. Java: 209)
Org. Apache. jsp. index_jsp. _ jspinit (index_jsp.java: 22)
Org. Apache. Jasper. runtime. httpjspbase. INIT (httpjspbase. Java: 52)
Org. Apache. Jasper. servlet. jspservletwrapper. getservlet (jspservletwrapper. Java: 164)
Org. Apache. Jasper. servlet. jspservletwrapper. Service (jspservletwrapper. Java: 340)
Org. Apache. Jasper. servlet. jspservlet. servicejspfile (jspservlet. Java: 313)
Org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 260)
Javax. servlet. http. httpservlet. Service (httpservlet. Java: 717)
Note the full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Java. Lang. unsupportedclassversionerror: bad version number in. Class File Java. Lang. unsupportedclassversionerror: bad version number in. Class File
This error is caused by the inconsistency between the JDK version supporting Tomcat and the JDK version supporting application.
Follow these steps to change their JDK versions to the same one:
1. Select JDK from the drop-down menu corresponding to compiler compliance level in windows --> preferences --> JAVA --> compiler.
2. window --> preferences --> myeclipse --> servers --> Tomcat n. X --> select the JDK version installed on your computer from the drop-down menu under Tomcat JDK name in JDK (it must be consistent with the JDK version in step 1 ).  

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.