One quick solution would be to put
\tomcat\webapps\your_app_dir\web-inf\classes in the classpath.

If it works then it means that the above path is not being added to the
classpath
used by tomcat.

Regards
Nagaraj.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Klimmer Maria
Sent: Wednesday, December 06, 2000 1:15 PM
To: [EMAIL PROTECTED]
Subject: AW: Problem with JSP in Visual Age AND TOMCAT


Hallo again!

I can't imagine why I get the error. I hope somebody could help me. Thank
you very much.


JSP-File: test.jsp
------------------
        <%@page import="test.Test" %>


Bean: Test.java
---------------------
        package test;

        public class Test {
                public Test() {
                        super();
                }
        }

Tomcat-Context "bibliothek":
----------------------------
        test.jsp
        WEB-INF
                classes
                        test
                                Test.java
                                Test.class

---------------------------------
WHY do I get the following ERROR:
---------------------------------

Error: 500
Location: /bibliothek/test.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSP/export/www/P7-Apache-1.3.12/jakarta-tomcat/work/localhost_8080/_0002fbib
liothek_0002ftest_0002ejsptest_jsp_12.java:15: Class test.Test not found in
import.
import test.Test;
       ^
1 error

        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.(Compiled Code)
        at java.lang.Exception.(Compiled Code)
        at javax.servlet.ServletException.(Compiled Code)
        at org.apache.jasper.JasperException.(Compiled Code)
        at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
        at org.apache.jasper.runtime.JspServlet.loadJSP(Compiled Code)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(Compiled
Code)
        at org.apache.jasper.runtime.JspServlet.serviceJspFile(Compiled
Code)
        at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
        at org.apache.tomcat.core.ContextManager.service(Compiled Code)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led Code)
        at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)




============================================================================
=================================
============================================================================
=================================


> -----Ursprüngliche Nachricht-----
> Von: Klimmer Maria [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 6. Dezember 2000 10:12
> An: [EMAIL PROTECTED]
> Betreff: AW: Problem with JSP in Visual Age
>
>
> Hallo!
>
> I've got the same problem. This error only occurs if the package name
> contains points and the syntax check of JSP Execution Monitor is on.
>
> I don't know where's the root-cause of this problem.
>
> Regards,
> Maria
>
>
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: S P [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 6. Dezember 2000 01:52
> > An: [EMAIL PROTECTED]
> > Betreff: Problem with JSP in Visual Age
> >
> >
> > Hi,
> > I am using Visual Age 3 JSP Execution monitor for JSP. I am
> > running the JSP
> > in Websphere Test Environment Server which is inbuilt in
> > Visual Age. It runs
> > simple JSP, but gives problem when I try to import a class or
> > use bean. I am
> > storing classes in default package for Webshpere Test Environment.
> >
> >
> >
> > May I get some help on this.
> >
> > Regards,
> > Shishir
> > ______________________________________________________________
> > _______________________
> > Get more from the Web.  FREE MSN Explorer download :
> http://explorer.msn.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://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==============================================================
> =============
> 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://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
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://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to