Current location - Plastic Surgery and Aesthetics Network - Jewelry brand - The server encountered an internal error that prevented it from completing this request.
The server encountered an internal error that prevented it from completing this request.
Reason: Your javabean file (M-layer) probably didn't generate a CLASS file (any java language can only be run by compiling bytecode, including being called by other programs, in this case by jsp) and then put it into the specified Web-INF/Classes folder correctly. (Note: If a package is introduced, be sure to indicate the package name, such as the package name and class name, in the usebean).

Solution: Put the successfully compiled class file in the specified folder (if it is an imported package, put it in the package).

At this point, your form input can complete data processing, which proves that you can successfully interact with your javaBean, and you are half successful. (If user login verification is realized, you Bean select a method in your JSP to determine that the returned user name and password are false and display it in the browser. Note: correct user authentication can only determine its branch flow direction in servle (control layer). )

The requested resource (/blueeyes/JSP/06/6-4/forky) is not available.

Javax. servlet. servlet exception: Unable to allocate servlet instance for path/blueeyes/servlet/forky.

Reason: My "forky" here is a servlet object, probably because the class object is generated incorrectly or the configuration path is wrong.

Solution: Because he said that a servlet instance object cannot be allocated; In other words, if the jsp engine can't find the class file generated by my servlet according to the statement I wrote, it will turn to the servlet. There are two solutions: 1. Remap the servlet access path to "According to your current jsp path". 2. If the path of the servlet you mapped before is deeper than the current jsp path, you can directly fill in the following contents in the jump statement in your jsp program).

Reminder: If servlet activator is not used and reloadable is set to true, the servlet program must be registered and mapped every time, and Tomcat must be restarted.

The server encountered an internal error (), which prevented it from completing this request.

Org.apache.jasper.jasperexception: package name//class name of //Bean.

This error occurred at the end of the modification. Test the browser window again. It doesn't matter.

In a word, our java program must generate bytecode and put it in the correct path.