aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Class Not Found Error iPlanet web server 6.0--Urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Class Not Found Error iPlanet web server 6.0--Urgent" Watch "Class Not Found Error iPlanet web server 6.0--Urgent" New topic
Author

Class Not Found Error iPlanet web server 6.0--Urgent

ankur
Greenhorn

Joined: Jun 30, 2005
Posts: 2
Hi,
I am a newcomer to the users of iPlanet web server 6.0.
I am trying to deploy a bean for which I've placed the classfile (EncryptionObject.class) in the following path:
c:\iPlanet\Servers\https-abcd.in.xyz.com\web-apps\EncryptionObject\WEB-INF\classes\enc

This is the JSP code:
<jsp:useBean id="encobj" class="enc.EncryptionObject" />
<%
String password=encobj.readFile();
out.println("\""+password+"\"");
%>




While compiling the JSP page, following error are generated:

Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. C:\iPlanet\Servers\https-abcd.in.xyz.com\config\..\ClassCache\_jsps\_PortalTemplates\_Content\_SetPwd\_ContentTemplate_jsp.java:63: Class enc.EncryptionObject not found. enc.EncryptionObject encobj = null; ^ C:\iPlanet\Servers\https-abcd.in.xyz.com\config\..\ClassCache\_jsps\_PortalTemplates\_Content\_SetPwd\_ContentTemplate_jsp.java:65: Class enc.EncryptionObject not found. encobj= (enc.EncryptionObject) ^ C:\iPlanet\Servers\https-abcd.in.xyz.com\config\..\ClassCache\_jsps\_PortalTemplates\_Content\_SetPwd\_ContentTemplate_jsp.java:69: Class enc.EncryptionObject not found. encobj = (enc.EncryptionObject) Beans.instantiate(this.getClass().getClassLoader(), "enc.EncryptionObject"); ^ C:\iPlanet\Servers\https-abcd.in.xyz.com\config\..\ClassCache\_jsps\_PortalTemplates\_Content\_SetPwd\_ContentTemplate_jsp.java:73: Variable encobj may not have been initialized. pageContext.setAttribute("encobj", encobj, PageContext.PAGE_SCOPE); ^ C:\iPlanet\Servers\https-abcd.in.xyz.com\config\..\ClassCache\_jsps\_PortalTemplates\_Content\_SetPwd\_ContentTemplate_jsp.java:84: Variable encobj may not have been initialized. String password=encobj.readFile(); ^ 5 errors, 1 warning

Please help me out.
Thanx.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"Failed God",
please see the comment on your display name here.
Thirumal Rao
Greenhorn

Joined: Jul 19, 2005
Posts: 1
Hai,

Check once whether you followed the following conditions.
1.Make sure that EncryptionObject.java file is declared inside a package or not.When you are writing the beans your first statement must be a package.
2.You need to place the jar file into websever path.


Thanking u.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Class Not Found Error iPlanet web server 6.0--Urgent