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!!
Java: 1.4
Tomcat: Tomcat 4.1
■There is an error at the beginning of the JSP, so I will write the following:
<%@pagelanguage='java'contentType="text/html;charset=utf-8"session="true"
%><jsp:useBean id="Goi" scope="page" class="common.Goi"
/><%
Omitted below
■ Where index.jsp is located
C:\Eclipse\4.4 Luna-goigoi\qa\JSP\admin\index.jsp
■ Folder with common class
C:\Eclipse\4.4 Luna-goigoi\qa\JSP\WEB-INF\classes\common\
■ Part of the Tomcat property setting in Eclipse.
Optional subdirectory to be the WEB application root: /JSP
■ Error contents displayed in browser
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error() that presented it from filling this request.
exception
org.apache.jasper.JasperException - Unable to compile JSP class
JSP file: line 1 in /admin/index.jsp encountered an error
Servlet error generated:
[javac] Compiling 1 source file
C:\Eclipse\4.4 Luna-goigoi\qa\work\org\apache\jsp\admin\index_jsp.java:41—Package common does not exist.
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
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.
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
612 GDB gets version error when attempting to debug with the Presense SDK (IDE)
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2024 OneMinuteCode. All rights reserved.