Hi,
I am getting the following error when I try to make my J2EE application using JBuilder 7 Enterprise Edition:
"catalog.jsp": weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
[java.lang.NullPointerException]
java.lang.NullPointerException
However, when I manually compile the files and create the ear file, there is no problem in the application. It seems that JBuilder is complaining about something in my jsp file, even though it's a very simple jsp file. What could the problem be?
Here is the JSP file:
<html>
<head>
<title>
Product Catalog
</title>
</head>
<body>
<h1>
Product Catalog
</h1>
<%@ page import="
javax.naming.*,
weblogic.logging.*,
productcatalog.*" %>
<%!
private static Context ctx;
private static NonCatalogLogger logger;
static {
try {
ctx = new InitialContext();
logger = new NonCatalogLogger("wlsd21");
} catch (Exception e) {
}
}
public void log(String logMessage, JspWriter out) throws Exception {
logger.debug("catalog.jsp: " + logMessage);
out.print(logMessage + "<BR>");
}
%>
<%
log("Beginning index.jsp", out);
productCatalogLocalHome pcHome = (productCatalogLocalHome)ctx.lookup("productCatalogLocal");
productCatalogLocal pcLocal = pcHome.create();
Product[] productList = pcLocal.getProductList();
for (int i=0; i<productList.length; i++) {
out.println(productList[i].id + " / " + productList[i].name + " / " + productList[i].description + " / " + productList[i].price); %> <br> <%
}
%>
</body>
</html>
Discussions
EJB programming & troubleshooting: Help with compiling Simple Session Bean using Weblogic+JBuilder
-
Help with compiling Simple Session Bean using Weblogic+JBuilder (0 messages)
- Posted by: Prab J
- Posted on: June 30 2003 03:19 EDT