imports are r4esolved at compile time... so while it may compile (because
the class path is correct at compile time) it may not run (because the class
path is NOT correct at run time), so it sounds like Hugo (below) is on the
right track...

> -----Original Message-----
> From: Hugo Pragt [SMTP:[EMAIL PROTECTED]]
> Sent: 04 September 2002 09:28
> To:   [EMAIL PROTECTED]
> Subject:      Re: Toolkit... getDefaultToolkit()...HEADACHE
>
> Hmmm, I had a problem which sounds like this one a while ago.
> From what I remember from it, you actually have different classloaders for
> the webserver and the programs actually running in the web container.
> These classloaders can and will have different settings (for instance
> classpath...)
> But since the 'import java.awt.*' can be resolved I don't know if this is
> going to help you?
>
> Hugo
>
>
> > hello.. does anyone know why i get a 'NoClassDefFoundError' exception
> > whenever this line is included in my code? (i'm using bea's weblogic app
> > server):
> >
> > Image image =
> >
> Toolkit.getDefaultToolkit().getImage("/usr/iplanet/servers/docs/test/integ
> ra
> > altezza.jpg");
> >
> > I have imported java.awt.* and also the java.awt.Toolkit class..
> >
> > java.lang.NoClassDefFoundError
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:120)
> > at java.awt.Toolkit$2.run(Toolkit.java:512)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
> > at com.bet.util.awt.Thumbnail.generateThumbnail(Thumbnail.java:19)
> > at
> >
> jsp_servlet._Sandbox._klai._upload.__thumbgen._jspService(__thumbgen.java:
> 11
> > 1)
> > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> > at
> >
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
> va
> > :265)
> > at
> >
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
> va
> > :200)
> > at
> >
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServlet
> Co
> > ntext.java:2495)
> > at
> >
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.ja
> va
> > :2204)
> > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> >
> > Help? anyone?
> >
> >
> ==========================================================================
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
> >
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
--

It is the strict policy of Truworths that its e-mail facility and all
e-mail communications emanating therefrom, should be utilised for
business purposes only and should conform to high professional and
business standards.   Truworths has stipulated certain regulations in
terms whereof strict guidelines relating to the use and content of
e-mail communications are laid down. The use of the Truworths e-mail
facility is not permitted for the distribution of chain letters or
offensive mail of any nature whatsoever.   Truworths hereby distances
itself from and accepts no liability in respect of the unauthorised
use of its e-mail facility or the sending of e-mail communications
for other than strictly business purposes.   Truworths furthermore
disclaims liability for any  unauthorised instruction for  which
permission was not granted.    Truworths Limited accepts no liability
for any consequences arising from or as a result of reliance on this
message unless it is in respect of bona fide Truworths business for
which proper authorisation has been granted.

Any recipient of an unacceptable communication, a chain letter or
offensive material of any nature is requested to notify the Truworths
e-mail administrator ([EMAIL PROTECTED]) immediately in order that
appropriate action can be taken against the individual concerned.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to