D
Danijel
Hi !
When I execute this code on localhost in jsp page everything works good.
Sever is Tomcat 5.5.9, class Film exists and it consists of static method
named isLookedByUser() that takes 2 parameters User and String.
Everything works perfect localy but...
<%
if (Film.isLookedByUser(user,sifraFilma){
do something ...
}
%>
When I upload on real server (also Tomcat 5.5.9 but working on Linux) I get
some stupid error that method is undefined for this class. That is simply
not true I checked that 100 times. Method exists on server also.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 31 in the jsp file: /proba.jsp
Generated servlet error:
The method isLookedByUser(User, String) is undefined for the type Film
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
28)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
56)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
For almost 3 days I cant find solution. Can someone help me Please.
Locally everything works fine but on server doesn't.
Thank's in advanced !
Danijel
When I execute this code on localhost in jsp page everything works good.
Sever is Tomcat 5.5.9, class Film exists and it consists of static method
named isLookedByUser() that takes 2 parameters User and String.
Everything works perfect localy but...
<%
if (Film.isLookedByUser(user,sifraFilma){
do something ...
}
%>
When I upload on real server (also Tomcat 5.5.9 but working on Linux) I get
some stupid error that method is undefined for this class. That is simply
not true I checked that 100 times. Method exists on server also.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 31 in the jsp file: /proba.jsp
Generated servlet error:
The method isLookedByUser(User, String) is undefined for the type Film
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
28)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
56)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
For almost 3 days I cant find solution. Can someone help me Please.
Locally everything works fine but on server doesn't.
Thank's in advanced !
Danijel