HELP! Problems with JSP compilation under SunONE 4

Hallo,

Since I've upgraded from Forte CE 3.0 to Sun One 4, I can't compile my JSPs any longer. Problem is, that any supporting class I'm using, is not found by the servlet-compiler. (error: 'Cannot resolve symbol').

This error occurs while compiling the generated servlet.

The supporting class resides in the same directory as the JSP and is already compiled to a .class file. But the compiler ( Tomcat 4.0 ?) did not find it.

Tried a lot of setting according classpath etc. but nothing worked. Installed all in three systems, everywhere the same!

I'm using: Win2000, JDK 1.4.0_01 and SunONE 4.

Same stuff worked without problems with Forte CE 3.0 !

Any ideas ?

Best regards

Markus Rahlff

************************************JSP Code:

<%@page contentType="text/html"%>

<%-- <jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>

<%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>

<%

Test t=new Test(); // This line does not compile 'cannot resolve symbol' out.println(t.result();

%>

*************************************** Error Message:

myfirstjsp$jsp.java [76:1] cannot resolve symbol symbol : class Test location: class org.apache.jsp.myfirstjsp$jsp Test t=new Test();

myfirstjsp$jsp.java [76:1] cannot resolve symbol symbol : class Test location: class org.apache.jsp.myfirstjsp$jsp Test t=new Test();

**************************** class file:

public class Test {

public String result() { return "Hallo world"; }

} // end of class

[1697 byte] By [highlightdevelopmenta] at [2007-9-27 10:15:09]
# 1
Are the helper classes and beans in the WEB-INF/classes directory under the document root? You may also find that they need to be in a package. Try moving one of the classes to see if it fixes the problem.
GrayMana at 2007-7-9 0:27:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks, that's it.Helper class has to be in a package since JDK 1.4 !Markus
highlightdevelopmenta at 2007-7-9 0:27:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...