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

NoClassDefFoundError (jdk1.2.2 + weblogic 5.1 jspc)

0 views
Skip to first unread message

Bernard Colagrosso

unread,
Mar 24, 2002, 11:53:25 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>


"g888" <Bill_...@xelus.com> wrote:
>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...
>>
>> 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)
>>
>
>

d...@dima.dhs.org

unread,
Mar 25, 2002, 12:41:24 AM3/25/02
to
If it complains about com/sun/java/util/collections/List, then, most
likely, you do not have lib/weblogicaux.jar in the classpath when
running weblogic.jspc.
0 new messages