Re: Baffling class not found problem



laredotornado@xxxxxxxxxxx wrote:

Hello, I'm using Java 1.3 with WebLogic 5.1 on Solaris.  I have these
files:

cms/system/CMSException.class
cms/system/Constants.class
cms/system/InitServlet.class
cms/system/Log.class

When I include this line on my JSP page

<%@ page import="cms.system.*" %>

everything compiles fine.  As does this line

<%@ page import="cms.*" %>

but when I try

<%@ page import="cms.system.Constants" %>

(r using any of the 4 class names above) I get the error:

Compilation of '/tmp/support/jsp_servlet/_www/__temp.java' failed:
/tmp/support/jsp_servlet/_www/__temp.java:16: Class
cms.system.Constants not found in import.
probably occurred due to an error in /www/temp.jsp line 1:
<%@ page import="cms.system.Constants" %>

How can this be?  The perms on the files above are all 775.  Can anyone
think of an explanation for why these files can't be found?

The classes are not on the relevant classpath. The wildcard imports work because they don't imply the existence of any particular class. The specific class imports fail because, as the message tells you, the class is not found. See my response in your other thread for information on how to package these classes and where to put them.


--
John Bollinger
jobollin@xxxxxxxxxxx
.



Relevant Pages

  • Re: Source Directory issue
    ... source directory to push packages to the ... for package CSS0011F ... Win32 error = 5 ... perms. ...
    (microsoft.public.sms.swdist)
  • Source Directory issue
    ... Win32 error = 5 ... The DP never gets the package from our source ... perms. ... issue but our site system account has the proper Share and NTFS ...
    (microsoft.public.sms.swdist)