Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NoClassDefFoundError with JSPC

2 views
Skip to first unread message

Bernard Colagrosso

unread,
Mar 20, 2002, 9:27:07 PM3/20/02
to
From: "Bernard Colagrosso" <bernardc...@hotmail.com>
Sender: "Bernard Colagrosso" <bernardc...@hotmail.com>
Reply-To: "Bernard Colagrosso" <bernardc...@hotmail.com>
Subject: NoClassDefFoundError with JSPC
Newsgroups: weblogic.developer.interest.jsp
X-User-Info: 24.201.241.103
NNTP-Posting-Host: 24.201.241.103
X-Original-NNTP-Posting-Host: 24.201.241.103
Message-ID: <3c9944fb$1...@newsgroups.bea.com>
Date: 20 Mar 2002 18:27:07 -0800
X-Trace: newsgroups.bea.com 1016677627 24.201.241.103 (20 Mar 2002 18:27:07 -0800)
Organization: BEA SYSTEMS Inc
Lines: 16
XPident: Unknown
Path: newsgroups.bea.com
Xref: newsgroups.bea.com weblogic.developer.interest.jsp:9102


I get the following error when I compile a JSP with jspc.

I use weblogic 5.1 on a PC running on Windows 2000 Pro.

Can someone please help me before I throw my PC through the window? :-)


C:\weblogic\classes\weblogic>java weblogic.jspc -d c:\weblogic\classes -keepgenerated
printAllParame
ters.jsp

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/java/util/collections/List
at weblogic.jspc.<init>(jspc.java:37)
at weblogic.jspc.main(jspc.java:111)

g888

unread,
Mar 21, 2002, 8:47:34 AM3/21/02
to
Are you explicitly importing that package with the jsp import tag. I know
that it's normally imported by default but we've seen where it wasn't. So
explicitly import javax.util.List and see if you have more success. What
version of JDK are you using and so on?
g888


"Bernard Colagrosso" <bernardc...@hotmail.com> wrote in message
news:3c9944fb$1...@newsgroups.bea.com...

Bernard

unread,
Mar 24, 2002, 11:41:54 AM3/24/02
to

Thank you for answering.

However the problem seems to be elsewhere.

Here's additional information.

I am using jdk1.2.2

I reinstalled my JDK and Weblogic 5.1 (SP 11) and it worked once but after that
I got the same error again.

The setEnv.cmd script gives me an error when I run it saying jdk 1.1.7 can't be
found (obviously). so I changed the JAVA_HOME variable in the script to c:\jdk1.2.2
and, as I mentioned, it worked OK the first time, but never again.

Here is my JSP:

<HTML><HEAD><TITLE>JSP Prints All Parameters</TITLE></HEAD><BODY>
<%@ page import="java.util.Enumeration"%>
<H2> Print all initialization parameters </H2>
<UL>
<% Enumeration parameters = config.getInitParameterNames();
while (parameters.hasMoreElements()) {
String name = (String)parameters.nextElement();
%> <LI> <%=name%> = <%=config.getInitParameter(name)%>
<% } %>
</UL>
</BODY></HTML>

Robert Patrick

unread,
Apr 5, 2002, 3:36:03 PM4/5/02
to
Make sure that weblogicaux.jar is in the CLASSPATH.
0 new messages