JSP Runtime Error Package common does not exist

Asked 2 years ago, Updated 2 years ago, 171 views

On Windows 10, Eclipse 4.4 develops programs for JSP and JAVA.

I was asked to modify the project of
Long time ago. From Eclipse, CVS took an existing project and built it without errors.

Locally, from your browser,
Called http/jspa:80/a80/a Can't find the common folder?An error similar to this occurs.

今 Up until now, we have developed and renovated Eclipse and existing projects for several other projects. This is the first time I've experienced this, and I'm stuck because I've changed my Eclipse settings, reviewed them, and searched online without any information.

プロジェクトOf course, I move the project folder, reboot, refresh, rebuild, etc., but the phenomenon remains the same.

■ Java and Tomcat versions *Old!!

■There is an error at the beginning of the JSP, so I will write the following:

■ Where index.jsp is located

■ Folder with common class

■ Part of the Tomcat property setting in Eclipse.

■ Error contents displayed in browser

Regarding the above error,
We assume that index.jsp is renamed index_jsp.java because it was automatically compiled (there is no index_jsp.java file in the source).

Do you know the cause and how to deal with it? Do you ever try it?

java eclipse jsp

2022-09-30 20:15

1 Answers

Resolved.

The cause is unknown, but in many Eclipse developments,
C:\Eclipse - Development Project\project1
C:\Eclipse - Development Project\project_apple
and so on.

I'm creating a folder, and it's okay to build it, launch Tomcat locally, and
Failed to test locally.

Remove this old and old project from CVS, install old Java, old tomcat, and
I was going to test the operation of the local renovation. Java builds fine.
You could launch the tocat itself and call JSP or HTML, but
There is an error that says common (with class file) cannot be found because there is no JSP.

The difference is that the Tomcat version is the oldest.

Therefore, I thought that it might not be compatible with folder names including Japanese, so

When I changed the Japanese part of the folder name of Eclipse to English and set (behaved) only one of the "Update Context Definitions" in the Tomcat menu of Eclipse,
Locally, Tomcat 4.1 recognized the common folder from within the JSP and JSP worked properly.

Example C C:\Eclipse-Project\qa

*Note: Even if the folder name contains symbols and spaces, it works fine.

So
If Tomcat is out of date, does Tomcat recognize (search) the path that Eclipse's project contains full-width characters?appears to fail.

Tomcat 5.5 also works well with Eclipse project folders containing Japanese.

This is the record of self-resolution.


2022-09-30 20:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.