[질문] JSP로 개발중인 사이트에서 이런 에러가 발생합니다.

budle77의 이미지

지난번에 기초적인 질문을 했던 사람입니다. 이번엔... BEAN이 문제를 일으키네요. 늘상 질문만해서 죄송합니다. 얼른 좋은 답변도 쓸수있는 개발자가 되도록 노력하겠습니다. 많은 도움바라며 글을 씁니다.

Unable to compile org.apache.jasper.JasperException:  ~/WEB-INF/classes/enterprise/registration/JpnCompanyUpdateBean.java:1: The source file encoding may be different with this platform encoding. Please use -encoding option to adjust file encoding, or apply native2ascii utility to make source file ASCII encoding.
error: File ~/WEB-INF/classes/enterprise/registration/JpnCompanyUpdateBean.java does not contain type enterprise.registration.JpnCompanyUpdateBean as expected. Please adjust the class path so that the file does not appear in the package enterprise/registration.
~/ROOT/korean/jsp/enterprise/registration/jpn_com_join_ok_1.java:91: Class enterprise.registration.JpnCompanyUpdateBean not found.
                    enterprise.registration.JpnCompanyUpdateBean comUpd = null;
                                           ^
~/ROOT/korean/jsp/enterprise/registration/jpn_com_join_ok_1.java:94: Class enterprise.registration.JpnCompanyUpdateBean not found.
                        comUpd= (enterprise.registration.JpnCompanyUpdateBean)
                                                        ^
~/ROOT/korean/jsp/enterprise/registration/jpn_com_join_ok_1.java:99: Class enterprise.registration.JpnCompanyUpdateBean not found.
                              comUpd = (enterprise.registration.JpnCompanyUpdateBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "enterprise.registration.JpnCompanyUpdateBean");
                                                               ^
5 errors

	at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
	at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
	at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
	at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
	at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
	at java.lang.Thread.run(Thread.java:479)

에러 내용은 이렇구요. 제 짧은 영어, JSP 지식을 동원해 보건데 소스 파일의 인코딩이 잘못되서 컴파일된 클래스 파일을 인식을 못하겠으니 소스파일 인토딩을 다시하라... 뭐 이런 얘기같은데.
다른 클래스 파일 만들때와 똑같이 text 편집기에서 작성해서 FTP프로그램으로 업로드한뒤에 서버에서 vi로 내용 확인하고
javac 클래스명.java
이렇게 컴파일 한겁니다. 다른 클래스들은 잘 동작하는데 BEAN만 왜 이런 에러가 발생할까요?

---------------------------

그리고 개발 환경은 Oracle9i + Sun OS 5.8에 JSP로 개발중입니다.

budle77의 이미지

죄송합니다. 컴파일이 잘못된거였네요.
음... 컴파일 옵션도 다르게 준게 없는데 이상하네요.

이제 소스에서 잘못된 부분을 찾는게 남았네요. 에휴~

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.