Re: jsp compilation error

2003-12-24 Thread Antony Paul
Where is the java bean class file residing. It must be in WEB-INF\classes or
WEB-INF\lib(as jar file).
Antony Paul

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 2:31 PM
Subject: jsp compilation error


> Hi all,
>
>  i Set up every thing for tomcat and postgresql and now i created
a jsp file and accessing a bean in that by using useBean tag ,by opening the
jsp file i am getting the following error
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: -1 in the jsp file: null
>
> Generated servlet error:
> [javac] Compiling 1 source file
>
>
/usr/local/jakarta-tomcat-5.0.16/work/Catalina/localhost/OnlineExam/org/apac
he/jsp/Jsp/welcome_jsp.java:6: '.' expected
> import QuestionBean;
>^
> 1 error
>
>
>
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:127)
>
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
51)
>
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
>
> pls
> Help to solve this problem
>
>
> Regards
> Dhayalan.G
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jsp compilation error

2003-12-24 Thread dhayalan
Hi all,

 i Set up every thing for tomcat and postgresql and now i created a jsp file 
and accessing a bean in that by using useBean tag ,by opening the jsp file i am 
getting the following error
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-5.0.16/work/Catalina/localhost/OnlineExam/org/apache/jsp/Jsp/welcome_jsp.java:6:
 '.' expected
import QuestionBean;
   ^
1 error



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


pls
Help to solve this problem 


Regards
Dhayalan.G

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSP Compilation Error

2003-02-07 Thread Marcelino Cruz
You rock  This was precisely the problem.  The servlets.jar that came
with the JDK 1.4.1_01 distribution is not the same as the servlets jar that
came with Tomcat 4.1.18.  I copied the servlet.jar from Tomcat's  common/lib
directory to JAVA_HOME/jre/lib/ext.

Everything works now.  Thanks!

MC
---
- Original Message -
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 3:23 AM
Subject: RE: JSP Compilation Error


That sounds as if there is a servlet.jar found, that
is not up to date. (or another jar like j2ee.jar,
that contains the class PageContext)

Older versions of pageContext.handlePageException()
accepted only objects of class Exception as argument,
newer version allow objects of class Throwable.

> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 5:05 PM
> To: Tomcat Users List
> Subject: JSP Compilation Error
>
> /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho
> st/_/index_jsp
> .java:266: handlePageException(java.lang.Exception) in
> javax.servlet.jsp.PageContext cannot be applied to
> (java.lang.Throwable)
>   if (pageContext != null) pageContext.handlePageException(t);
>   ^

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: JSP Compilation Error

2003-02-06 Thread Martin Smith
I got that message, spent hours fiddling with classpath, JAVA_HOME, etc, 
to no avail.

I then re-downloaded Tomcat , and re-installed, and it worked.  I *may* 
have noticed a "copy failed" message flash by in the first autoinstall 
log.   Worth a try. . .

Good luck,

Martin


Marcelino Cruz wrote:

I know that this topic has been covered over and over... I went to the
archives but didn't find a solution to my problem.

I downloaded and installed (on Solaris 8 box) jakarta-tomcat-4.1.18.
Unzipped the file (I don't have GNU Tar installed on this machine to get the
tar version, and my company has FTP firewall access blocked).

I have Java v1.4.1_01.  JAVA_HOME is set to the location of the
aforementioned Java version.  CATALINA_HOME is set to the installation
location of jakarta-tomcat-4.1.18.  I proceed to start tomcat and it comes
up.  Then when I try to access it with http://myserver.company.com:8080 I
get the following error:

---
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
   [javac] Compiling 1 source file

/export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/index_jsp
.java:266: handlePageException(java.lang.Exception) in
javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
 if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

...and a long stack trace...
---

I've tried everything I've run into in the archives.  Jasper uses Ant.  How
can I ensure that the correct jar files are being called so that Jasper/Ant
can compile JSP files?  Why isn't it working?  Please help.  I need to
evaluate a content management solution (Red Hat's CCM) that runs on top of
Tomcat.

Thank you.

MC



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: JSP Compilation Error

2003-01-30 Thread Ralph Einfeldt
That sounds as if there is a servlet.jar found, that 
is not up to date. (or another jar like j2ee.jar, 
that contains the class PageContext) 

Older versions of pageContext.handlePageException()
accepted only objects of class Exception as argument,
newer version allow objects of class Throwable.

> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 5:05 PM
> To: Tomcat Users List
> Subject: JSP Compilation Error
> 
> /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho
> st/_/index_jsp
> .java:266: handlePageException(java.lang.Exception) in
> javax.servlet.jsp.PageContext cannot be applied to 
> (java.lang.Throwable)
>   if (pageContext != null) pageContext.handlePageException(t);
>   ^

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: JSP Compilation Error

2003-01-29 Thread Marcelino Cruz
I understand.  I didn't think you were arguing either.  I'm at a loss as to
why it didn't work out of the box on our end.  But we can't stop to debug
this so given that 4.0.6 works we'll take that.

Thanks.
MC
---
- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 3:46 PM
Subject: RE: JSP Compilation Error


>
> I'm not arguing with you, BTW, just trying to understand why it's not
> working for you, but working fine for others on Solaris 8.
>
> John
>
>
> > -Original Message-
> > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 29, 2003 3:39 PM
> > To: Tomcat Users List
> > Subject: Re: JSP Compilation Error
> >
> >
> > Nope, no custom configuration.  I downloaded the previous
> > version 4.0.6 and
> > that worked beautifully out of the box.  My conclusion is
> > that Jasper on
> > 4.1.18 is broken or needs some special setup, because it sure
> > refused to
> > compile JSP's no matter what we tried.
> >
> > I'll stick to 4.0.6 for the time being, as that supports the
> > product we want
> > to evaluate.
> >
> > MC
> > ---
> > - Original Message -
> > From: "Turner, John" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 29, 2003 2:03 PM
> > Subject: RE: JSP Compilation Error
> >
> >
> > >
> > > Sounds like fun, but totally unnecessary, unless you have
> > some sort of
> > > custom configuration that you haven't told us about.
> > >
> > > John
> > >
> > > > -Original Message-
> > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, January 29, 2003 2:04 PM
> > > > To: 'Tomcat Users List'
> > > > Subject: Re: JSP Compilation Error
> > > >
> > > >
> > > > Still no luck.  I'm downloading the source and building
> > > > Tomcat locally.
> > > > ---
> > > > - Original Message -
> > > > From: "John Trollinger" <[EMAIL PROTECTED]>
> > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, January 29, 2003 1:08 PM
> > > > Subject: RE: JSP Compilation Error
> > > >
> > > >
> > > > > I put the tools.jar in my webserver/common/lib
> > > > >
> > > > > > -Original Message-
> > > > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Wednesday, January 29, 2003 12:46 PM
> > > > > > To: Tomcat Users List
> > > > > > Subject: Re: JSP Compilation Error
> > > > > >
> > > > > >
> > > > > > I have the JDK.
> > > > > >
> > > > > > In $CATALINA_HOME/bin (I understand this replaces
> > > > > > $TOMCAT_HOME in the newer versions of Tomcat?) there is a
> > > > > > startup.sh that calls catalina.sh that in turn calls
> > > > > > setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR"
> > > > > > variable that I set to be equal to $CATALINA_HOME.  Now, my
> > > > > > questions are:
> > > > > >
> > > > > > 1) Do I modify the setclasspath.sh to look for the tools.jar
> > > > > > and dt.jar (as some people have suggested; to me the
> > > > > > tools.jar should be sufficient) in $JAVA_HOME/lib ?
> > > > > > 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> > > > > > 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and
> > > > > > then either classes or lib ?
> > > > > > 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and
> > > > > > then either classes or lib ?
> > > > > >
> > > > > > Just which jar file(s) exactly does Tomcat (Catalina) need
> > > > > > access to, where do those files need to be located, and where
> > > > > > (which script) do I make the changes so that the JVM that
> > > > > > Tomcat (Catalina) uses can find those compilation classes.
> > > > > >
> > > > > > Thank you!
> > > > > > M

Re: JSP Compilation Error

2003-01-29 Thread Marcelino Cruz
I guess we weren't that lucky.  We couldn't get it to work, on different
boxes (W2K and Solaris).  We downloaded JBoss 3x with Tomcat 4.1.12 and
didn't work... same problem.  We ended up getting JBoss and Jetty for that
particular project.

I'm glad that 4.0.6 works for us.  We'll use that.

MC
---
- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 3:45 PM
Subject: RE: JSP Compilation Error


>
> No special setup I know of...we just got done porting a Microsoft ASP/COM
> application to JSP/servlets with Struts and 4.1.18, works like a charm,
> default Tomcat install on Solaris 8.
>
> John
>
> > -Original Message-
> > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 29, 2003 3:39 PM
> > To: Tomcat Users List
> > Subject: Re: JSP Compilation Error
> >
> >
> > Nope, no custom configuration.  I downloaded the previous
> > version 4.0.6 and
> > that worked beautifully out of the box.  My conclusion is
> > that Jasper on
> > 4.1.18 is broken or needs some special setup, because it sure
> > refused to
> > compile JSP's no matter what we tried.
> >
> > I'll stick to 4.0.6 for the time being, as that supports the
> > product we want
> > to evaluate.
> >
> > MC
> > ---
> > - Original Message -
> > From: "Turner, John" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 29, 2003 2:03 PM
> > Subject: RE: JSP Compilation Error
> >
> >
> > >
> > > Sounds like fun, but totally unnecessary, unless you have
> > some sort of
> > > custom configuration that you haven't told us about.
> > >
> > > John
> > >
> > > > -Original Message-
> > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, January 29, 2003 2:04 PM
> > > > To: 'Tomcat Users List'
> > > > Subject: Re: JSP Compilation Error
> > > >
> > > >
> > > > Still no luck.  I'm downloading the source and building
> > > > Tomcat locally.
> > > > ---
> > > > - Original Message -----
> > > > From: "John Trollinger" <[EMAIL PROTECTED]>
> > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, January 29, 2003 1:08 PM
> > > > Subject: RE: JSP Compilation Error
> > > >
> > > >
> > > > > I put the tools.jar in my webserver/common/lib
> > > > >
> > > > > > -Original Message-
> > > > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Wednesday, January 29, 2003 12:46 PM
> > > > > > To: Tomcat Users List
> > > > > > Subject: Re: JSP Compilation Error
> > > > > >
> > > > > >
> > > > > > I have the JDK.
> > > > > >
> > > > > > In $CATALINA_HOME/bin (I understand this replaces
> > > > > > $TOMCAT_HOME in the newer versions of Tomcat?) there is a
> > > > > > startup.sh that calls catalina.sh that in turn calls
> > > > > > setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR"
> > > > > > variable that I set to be equal to $CATALINA_HOME.  Now, my
> > > > > > questions are:
> > > > > >
> > > > > > 1) Do I modify the setclasspath.sh to look for the tools.jar
> > > > > > and dt.jar (as some people have suggested; to me the
> > > > > > tools.jar should be sufficient) in $JAVA_HOME/lib ?
> > > > > > 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> > > > > > 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and
> > > > > > then either classes or lib ?
> > > > > > 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and
> > > > > > then either classes or lib ?
> > > > > >
> > > > > > Just which jar file(s) exactly does Tomcat (Catalina) need
> > > > > > access to, where do those files need to be located, and where
> > > > > > (which script) do I make the changes so that the JVM that
> > > > > > Tomcat (Catalina) uses can find 

RE: JSP Compilation Error

2003-01-29 Thread Turner, John

I'm not arguing with you, BTW, just trying to understand why it's not
working for you, but working fine for others on Solaris 8.

John


> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 3:39 PM
> To: Tomcat Users List
> Subject: Re: JSP Compilation Error
> 
> 
> Nope, no custom configuration.  I downloaded the previous 
> version 4.0.6 and
> that worked beautifully out of the box.  My conclusion is 
> that Jasper on
> 4.1.18 is broken or needs some special setup, because it sure 
> refused to
> compile JSP's no matter what we tried.
> 
> I'll stick to 4.0.6 for the time being, as that supports the 
> product we want
> to evaluate.
> 
> MC
> ---
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 29, 2003 2:03 PM
> Subject: RE: JSP Compilation Error
> 
> 
> >
> > Sounds like fun, but totally unnecessary, unless you have 
> some sort of
> > custom configuration that you haven't told us about.
> >
> > John
> >
> > > -Original Message-
> > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 29, 2003 2:04 PM
> > > To: 'Tomcat Users List'
> > > Subject: Re: JSP Compilation Error
> > >
> > >
> > > Still no luck.  I'm downloading the source and building
> > > Tomcat locally.
> > > ---
> > > - Original Message -
> > > From: "John Trollinger" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, January 29, 2003 1:08 PM
> > > Subject: RE: JSP Compilation Error
> > >
> > >
> > > > I put the tools.jar in my webserver/common/lib
> > > >
> > > > > -Original Message-
> > > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, January 29, 2003 12:46 PM
> > > > > To: Tomcat Users List
> > > > > Subject: Re: JSP Compilation Error
> > > > >
> > > > >
> > > > > I have the JDK.
> > > > >
> > > > > In $CATALINA_HOME/bin (I understand this replaces
> > > > > $TOMCAT_HOME in the newer versions of Tomcat?) there is a
> > > > > startup.sh that calls catalina.sh that in turn calls
> > > > > setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR"
> > > > > variable that I set to be equal to $CATALINA_HOME.  Now, my
> > > > > questions are:
> > > > >
> > > > > 1) Do I modify the setclasspath.sh to look for the tools.jar
> > > > > and dt.jar (as some people have suggested; to me the
> > > > > tools.jar should be sufficient) in $JAVA_HOME/lib ?
> > > > > 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> > > > > 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and
> > > > > then either classes or lib ?
> > > > > 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and
> > > > > then either classes or lib ?
> > > > >
> > > > > Just which jar file(s) exactly does Tomcat (Catalina) need
> > > > > access to, where do those files need to be located, and where
> > > > > (which script) do I make the changes so that the JVM that
> > > > > Tomcat (Catalina) uses can find those compilation classes.
> > > > >
> > > > > Thank you!
> > > > > MC
> > > > > ---
> > > > > - Original Message -
> > > > > From: "John Trollinger" <[EMAIL PROTECTED]>
> > > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, January 29, 2003 11:20 AM
> > > > > Subject: RE: JSP Compilation Error
> > > > >
> > > > >
> > > > > > Make sure you have the JDK and not the JRE, if you have
> > > the JRE you
> > > > > > need the tools.jar from the JDK, if you have the JDK and
> > > > > still get the
> > > > > > problem make sure tomcats classpath can see tools.jar.
> > > > > >
> > > > > > John
> > > > > >
> > > > > > > -Original Mes

RE: JSP Compilation Error

2003-01-29 Thread Turner, John

No special setup I know of...we just got done porting a Microsoft ASP/COM
application to JSP/servlets with Struts and 4.1.18, works like a charm,
default Tomcat install on Solaris 8.

John

> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 3:39 PM
> To: Tomcat Users List
> Subject: Re: JSP Compilation Error
> 
> 
> Nope, no custom configuration.  I downloaded the previous 
> version 4.0.6 and
> that worked beautifully out of the box.  My conclusion is 
> that Jasper on
> 4.1.18 is broken or needs some special setup, because it sure 
> refused to
> compile JSP's no matter what we tried.
> 
> I'll stick to 4.0.6 for the time being, as that supports the 
> product we want
> to evaluate.
> 
> MC
> ---
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 29, 2003 2:03 PM
> Subject: RE: JSP Compilation Error
> 
> 
> >
> > Sounds like fun, but totally unnecessary, unless you have 
> some sort of
> > custom configuration that you haven't told us about.
> >
> > John
> >
> > > -Original Message-
> > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 29, 2003 2:04 PM
> > > To: 'Tomcat Users List'
> > > Subject: Re: JSP Compilation Error
> > >
> > >
> > > Still no luck.  I'm downloading the source and building
> > > Tomcat locally.
> > > ---
> > > - Original Message -
> > > From: "John Trollinger" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, January 29, 2003 1:08 PM
> > > Subject: RE: JSP Compilation Error
> > >
> > >
> > > > I put the tools.jar in my webserver/common/lib
> > > >
> > > > > -Original Message-
> > > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, January 29, 2003 12:46 PM
> > > > > To: Tomcat Users List
> > > > > Subject: Re: JSP Compilation Error
> > > > >
> > > > >
> > > > > I have the JDK.
> > > > >
> > > > > In $CATALINA_HOME/bin (I understand this replaces
> > > > > $TOMCAT_HOME in the newer versions of Tomcat?) there is a
> > > > > startup.sh that calls catalina.sh that in turn calls
> > > > > setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR"
> > > > > variable that I set to be equal to $CATALINA_HOME.  Now, my
> > > > > questions are:
> > > > >
> > > > > 1) Do I modify the setclasspath.sh to look for the tools.jar
> > > > > and dt.jar (as some people have suggested; to me the
> > > > > tools.jar should be sufficient) in $JAVA_HOME/lib ?
> > > > > 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> > > > > 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and
> > > > > then either classes or lib ?
> > > > > 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and
> > > > > then either classes or lib ?
> > > > >
> > > > > Just which jar file(s) exactly does Tomcat (Catalina) need
> > > > > access to, where do those files need to be located, and where
> > > > > (which script) do I make the changes so that the JVM that
> > > > > Tomcat (Catalina) uses can find those compilation classes.
> > > > >
> > > > > Thank you!
> > > > > MC
> > > > > ---
> > > > > - Original Message -
> > > > > From: "John Trollinger" <[EMAIL PROTECTED]>
> > > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, January 29, 2003 11:20 AM
> > > > > Subject: RE: JSP Compilation Error
> > > > >
> > > > >
> > > > > > Make sure you have the JDK and not the JRE, if you have
> > > the JRE you
> > > > > > need the tools.jar from the JDK, if you have the JDK and
> > > > > still get the
> > > > > > problem make sure tomcats classpath can see tools.jar.
> > > > > >
> &g

Re: JSP Compilation Error

2003-01-29 Thread Marcelino Cruz
Nope, no custom configuration.  I downloaded the previous version 4.0.6 and
that worked beautifully out of the box.  My conclusion is that Jasper on
4.1.18 is broken or needs some special setup, because it sure refused to
compile JSP's no matter what we tried.

I'll stick to 4.0.6 for the time being, as that supports the product we want
to evaluate.

MC
---
- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 2:03 PM
Subject: RE: JSP Compilation Error


>
> Sounds like fun, but totally unnecessary, unless you have some sort of
> custom configuration that you haven't told us about.
>
> John
>
> > -Original Message-
> > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 29, 2003 2:04 PM
> > To: 'Tomcat Users List'
> > Subject: Re: JSP Compilation Error
> >
> >
> > Still no luck.  I'm downloading the source and building
> > Tomcat locally.
> > ---
> > - Original Message -
> > From: "John Trollinger" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 29, 2003 1:08 PM
> > Subject: RE: JSP Compilation Error
> >
> >
> > > I put the tools.jar in my webserver/common/lib
> > >
> > > > -Original Message-
> > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, January 29, 2003 12:46 PM
> > > > To: Tomcat Users List
> > > > Subject: Re: JSP Compilation Error
> > > >
> > > >
> > > > I have the JDK.
> > > >
> > > > In $CATALINA_HOME/bin (I understand this replaces
> > > > $TOMCAT_HOME in the newer versions of Tomcat?) there is a
> > > > startup.sh that calls catalina.sh that in turn calls
> > > > setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR"
> > > > variable that I set to be equal to $CATALINA_HOME.  Now, my
> > > > questions are:
> > > >
> > > > 1) Do I modify the setclasspath.sh to look for the tools.jar
> > > > and dt.jar (as some people have suggested; to me the
> > > > tools.jar should be sufficient) in $JAVA_HOME/lib ?
> > > > 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> > > > 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and
> > > > then either classes or lib ?
> > > > 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and
> > > > then either classes or lib ?
> > > >
> > > > Just which jar file(s) exactly does Tomcat (Catalina) need
> > > > access to, where do those files need to be located, and where
> > > > (which script) do I make the changes so that the JVM that
> > > > Tomcat (Catalina) uses can find those compilation classes.
> > > >
> > > > Thank you!
> > > > MC
> > > > ---
> > > > - Original Message -
> > > > From: "John Trollinger" <[EMAIL PROTECTED]>
> > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, January 29, 2003 11:20 AM
> > > > Subject: RE: JSP Compilation Error
> > > >
> > > >
> > > > > Make sure you have the JDK and not the JRE, if you have
> > the JRE you
> > > > > need the tools.jar from the JDK, if you have the JDK and
> > > > still get the
> > > > > problem make sure tomcats classpath can see tools.jar.
> > > > >
> > > > > John
> > > > >
> > > > > > -Original Message-
> > > > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Wednesday, January 29, 2003 11:05 AM
> > > > > > To: Tomcat Users List
> > > > > > Subject: JSP Compilation Error
> > > > > >
> > > > > >
> > > > > > I know that this topic has been covered over and over...
> > > > I went to
> > > > > > the archives but didn't find a solution to my problem.
> > > > > >
> > > > > > I downloaded and installed (on Solaris 8 box)
> > > > jakarta-tomcat-4.1.18.
> > > > > > Unzipped the file (I don't have GNU Tar installed on this
> &

RE: JSP Compilation Error

2003-01-29 Thread Turner, John

Sounds like fun, but totally unnecessary, unless you have some sort of
custom configuration that you haven't told us about.

John

> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 2:04 PM
> To: 'Tomcat Users List'
> Subject: Re: JSP Compilation Error
> 
> 
> Still no luck.  I'm downloading the source and building 
> Tomcat locally.
> ---
> - Original Message - 
> From: "John Trollinger" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 29, 2003 1:08 PM
> Subject: RE: JSP Compilation Error
> 
> 
> > I put the tools.jar in my webserver/common/lib
> > 
> > > -Original Message-
> > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] 
> > > Sent: Wednesday, January 29, 2003 12:46 PM
> > > To: Tomcat Users List
> > > Subject: Re: JSP Compilation Error
> > > 
> > > 
> > > I have the JDK.
> > > 
> > > In $CATALINA_HOME/bin (I understand this replaces 
> > > $TOMCAT_HOME in the newer versions of Tomcat?) there is a 
> > > startup.sh that calls catalina.sh that in turn calls 
> > > setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR" 
> > > variable that I set to be equal to $CATALINA_HOME.  Now, my 
> > > questions are:
> > > 
> > > 1) Do I modify the setclasspath.sh to look for the tools.jar 
> > > and dt.jar (as some people have suggested; to me the 
> > > tools.jar should be sufficient) in $JAVA_HOME/lib ?
> > > 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> > > 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and 
> > > then either classes or lib ?
> > > 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and 
> > > then either classes or lib ?
> > > 
> > > Just which jar file(s) exactly does Tomcat (Catalina) need 
> > > access to, where do those files need to be located, and where 
> > > (which script) do I make the changes so that the JVM that 
> > > Tomcat (Catalina) uses can find those compilation classes.
> > > 
> > > Thank you!
> > > MC
> > > ---
> > > - Original Message -
> > > From: "John Trollinger" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, January 29, 2003 11:20 AM
> > > Subject: RE: JSP Compilation Error
> > > 
> > > 
> > > > Make sure you have the JDK and not the JRE, if you have 
> the JRE you 
> > > > need the tools.jar from the JDK, if you have the JDK and 
> > > still get the 
> > > > problem make sure tomcats classpath can see tools.jar.
> > > >
> > > > John
> > > >
> > > > > -Original Message-
> > > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, January 29, 2003 11:05 AM
> > > > > To: Tomcat Users List
> > > > > Subject: JSP Compilation Error
> > > > >
> > > > >
> > > > > I know that this topic has been covered over and over... 
> > > I went to 
> > > > > the archives but didn't find a solution to my problem.
> > > > >
> > > > > I downloaded and installed (on Solaris 8 box) 
> > > jakarta-tomcat-4.1.18. 
> > > > > Unzipped the file (I don't have GNU Tar installed on this 
> > > machine to 
> > > > > get the tar version, and my company has FTP firewall access 
> > > > > blocked).
> > > > >
> > > > > I have Java v1.4.1_01.  JAVA_HOME is set to the 
> location of the 
> > > > > aforementioned Java version.  CATALINA_HOME is set to the 
> > > > > installation location of jakarta-tomcat-4.1.18.  I 
> > > proceed to start 
> > > > > tomcat and it comes up.  Then when I try to access it with 
> > > > > http://myserver.company.com:8080 I get the following error:
> > > > >
> > > > > ---
> > > > > org.apache.jasper.JasperException: Unable to compile 
> class for JSP
> > > > >
> > > > > An error occurred at line: -1 in the jsp file: null
> > > > >
> > > > > Generated servlet error:
> > > > > [javac] Compiling 1 source file
> > > > >
> > > > > /e

Re: JSP Compilation Error

2003-01-29 Thread Marcelino Cruz
Still no luck.  I'm downloading the source and building Tomcat locally.
---
- Original Message - 
From: "John Trollinger" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 1:08 PM
Subject: RE: JSP Compilation Error


> I put the tools.jar in my webserver/common/lib
> 
> > -Original Message-
> > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] 
> > Sent: Wednesday, January 29, 2003 12:46 PM
> > To: Tomcat Users List
> > Subject: Re: JSP Compilation Error
> > 
> > 
> > I have the JDK.
> > 
> > In $CATALINA_HOME/bin (I understand this replaces 
> > $TOMCAT_HOME in the newer versions of Tomcat?) there is a 
> > startup.sh that calls catalina.sh that in turn calls 
> > setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR" 
> > variable that I set to be equal to $CATALINA_HOME.  Now, my 
> > questions are:
> > 
> > 1) Do I modify the setclasspath.sh to look for the tools.jar 
> > and dt.jar (as some people have suggested; to me the 
> > tools.jar should be sufficient) in $JAVA_HOME/lib ?
> > 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> > 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and 
> > then either classes or lib ?
> > 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and 
> > then either classes or lib ?
> > 
> > Just which jar file(s) exactly does Tomcat (Catalina) need 
> > access to, where do those files need to be located, and where 
> > (which script) do I make the changes so that the JVM that 
> > Tomcat (Catalina) uses can find those compilation classes.
> > 
> > Thank you!
> > MC
> > ---
> > - Original Message -
> > From: "John Trollinger" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 29, 2003 11:20 AM
> > Subject: RE: JSP Compilation Error
> > 
> > 
> > > Make sure you have the JDK and not the JRE, if you have the JRE you 
> > > need the tools.jar from the JDK, if you have the JDK and 
> > still get the 
> > > problem make sure tomcats classpath can see tools.jar.
> > >
> > > John
> > >
> > > > -Original Message-
> > > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, January 29, 2003 11:05 AM
> > > > To: Tomcat Users List
> > > > Subject: JSP Compilation Error
> > > >
> > > >
> > > > I know that this topic has been covered over and over... 
> > I went to 
> > > > the archives but didn't find a solution to my problem.
> > > >
> > > > I downloaded and installed (on Solaris 8 box) 
> > jakarta-tomcat-4.1.18. 
> > > > Unzipped the file (I don't have GNU Tar installed on this 
> > machine to 
> > > > get the tar version, and my company has FTP firewall access 
> > > > blocked).
> > > >
> > > > I have Java v1.4.1_01.  JAVA_HOME is set to the location of the 
> > > > aforementioned Java version.  CATALINA_HOME is set to the 
> > > > installation location of jakarta-tomcat-4.1.18.  I 
> > proceed to start 
> > > > tomcat and it comes up.  Then when I try to access it with 
> > > > http://myserver.company.com:8080 I get the following error:
> > > >
> > > > ---
> > > > org.apache.jasper.JasperException: Unable to compile class for JSP
> > > >
> > > > An error occurred at line: -1 in the jsp file: null
> > > >
> > > > Generated servlet error:
> > > > [javac] Compiling 1 source file
> > > >
> > > > /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho
> > > > st/_/index_jsp
> > > > .java:266: handlePageException(java.lang.Exception) in 
> > > > javax.servlet.jsp.PageContext cannot be applied to
> > > > (java.lang.Throwable)
> > > >   if (pageContext != null) pageContext.handlePageException(t);
> > > >   ^
> > > > 1 error
> > > >
> > > > ...and a long stack trace...
> > > > ---
> > > >
> > > > I've tried everything I've run into in the archives.  Jasper uses 
> > > > Ant.  How can I ensure that the correct jar files are 
> > being called 
> > > > so that Jasper/Ant can compile JSP files?  Why 

RE: JSP Compilation Error

2003-01-29 Thread John Trollinger
I put the tools.jar in my webserver/common/lib

> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, January 29, 2003 12:46 PM
> To: Tomcat Users List
> Subject: Re: JSP Compilation Error
> 
> 
> I have the JDK.
> 
> In $CATALINA_HOME/bin (I understand this replaces 
> $TOMCAT_HOME in the newer versions of Tomcat?) there is a 
> startup.sh that calls catalina.sh that in turn calls 
> setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR" 
> variable that I set to be equal to $CATALINA_HOME.  Now, my 
> questions are:
> 
> 1) Do I modify the setclasspath.sh to look for the tools.jar 
> and dt.jar (as some people have suggested; to me the 
> tools.jar should be sufficient) in $JAVA_HOME/lib ?
> 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and 
> then either classes or lib ?
> 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and 
> then either classes or lib ?
> 
> Just which jar file(s) exactly does Tomcat (Catalina) need 
> access to, where do those files need to be located, and where 
> (which script) do I make the changes so that the JVM that 
> Tomcat (Catalina) uses can find those compilation classes.
> 
> Thank you!
> MC
> ---
> - Original Message -
> From: "John Trollinger" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 29, 2003 11:20 AM
> Subject: RE: JSP Compilation Error
> 
> 
> > Make sure you have the JDK and not the JRE, if you have the JRE you 
> > need the tools.jar from the JDK, if you have the JDK and 
> still get the 
> > problem make sure tomcats classpath can see tools.jar.
> >
> > John
> >
> > > -Original Message-
> > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 29, 2003 11:05 AM
> > > To: Tomcat Users List
> > > Subject: JSP Compilation Error
> > >
> > >
> > > I know that this topic has been covered over and over... 
> I went to 
> > > the archives but didn't find a solution to my problem.
> > >
> > > I downloaded and installed (on Solaris 8 box) 
> jakarta-tomcat-4.1.18. 
> > > Unzipped the file (I don't have GNU Tar installed on this 
> machine to 
> > > get the tar version, and my company has FTP firewall access 
> > > blocked).
> > >
> > > I have Java v1.4.1_01.  JAVA_HOME is set to the location of the 
> > > aforementioned Java version.  CATALINA_HOME is set to the 
> > > installation location of jakarta-tomcat-4.1.18.  I 
> proceed to start 
> > > tomcat and it comes up.  Then when I try to access it with 
> > > http://myserver.company.com:8080 I get the following error:
> > >
> > > ---
> > > org.apache.jasper.JasperException: Unable to compile class for JSP
> > >
> > > An error occurred at line: -1 in the jsp file: null
> > >
> > > Generated servlet error:
> > > [javac] Compiling 1 source file
> > >
> > > /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho
> > > st/_/index_jsp
> > > .java:266: handlePageException(java.lang.Exception) in 
> > > javax.servlet.jsp.PageContext cannot be applied to
> > > (java.lang.Throwable)
> > >   if (pageContext != null) pageContext.handlePageException(t);
> > >   ^
> > > 1 error
> > >
> > > ...and a long stack trace...
> > > ---
> > >
> > > I've tried everything I've run into in the archives.  Jasper uses 
> > > Ant.  How can I ensure that the correct jar files are 
> being called 
> > > so that Jasper/Ant can compile JSP files?  Why isn't it working?  
> > > Please help.  I need to evaluate a content management 
> solution (Red 
> > > Hat's CCM) that runs on top of Tomcat.
> > >
> > > Thank you.
> > >
> > > MC
> > >
> > >
> > >
> > > 
> 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: JSP Compilation Error

2003-01-29 Thread Turner, John

If you have the JDK and Tomcat 4.1.18, you don't have to do any of that.
All you need to do is set JAVA_HOME, and CATALINA_HOME.  You shouldn't have
to edit any startup scripts whatsoever, nor do you need to set a CLASSPATH
environment variable.

For the exact steps needed to install Tomcat, see the sections named
"Install JDK" and "Build/Install Tomcat" in my Solaris 8 HOWTO:

http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html

My HOWTO uses GNU tar, but that shouldn't make a difference if you are using
the binary version compressed with a different tool.

John

> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 12:46 PM
> To: Tomcat Users List
> Subject: Re: JSP Compilation Error
> 
> 
> I have the JDK.
> 
> In $CATALINA_HOME/bin (I understand this replaces 
> $TOMCAT_HOME in the newer
> versions of Tomcat?) there is a startup.sh that calls 
> catalina.sh that in
> turn calls setclasspath.sh.  setclasspath.sh was asking for a 
> "$BASEDIR"
> variable that I set to be equal to $CATALINA_HOME.  Now, my 
> questions are:
> 
> 1) Do I modify the setclasspath.sh to look for the tools.jar 
> and dt.jar (as
> some people have suggested; to me the tools.jar should be 
> sufficient) in
> $JAVA_HOME/lib ?
> 2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
> 3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and then either
> classes or lib ?
> 4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and then either
> classes or lib ?
> 
> Just which jar file(s) exactly does Tomcat (Catalina) need 
> access to, where
> do those files need to be located, and where (which script) 
> do I make the
> changes so that the JVM that Tomcat (Catalina) uses can find those
> compilation classes.
> 
> Thank you!
> MC
> ---
> - Original Message -
> From: "John Trollinger" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 29, 2003 11:20 AM
> Subject: RE: JSP Compilation Error
> 
> 
> > Make sure you have the JDK and not the JRE, if you have the 
> JRE you need
> > the tools.jar from the JDK, if you have the JDK and still get the
> > problem make sure tomcats classpath can see tools.jar.
> >
> > John
> >
> > > -Original Message-
> > > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 29, 2003 11:05 AM
> > > To: Tomcat Users List
> > > Subject: JSP Compilation Error
> > >
> > >
> > > I know that this topic has been covered over and over... I
> > > went to the archives but didn't find a solution to my problem.
> > >
> > > I downloaded and installed (on Solaris 8 box)
> > > jakarta-tomcat-4.1.18. Unzipped the file (I don't have GNU
> > > Tar installed on this machine to get the tar version, and my
> > > company has FTP firewall access blocked).
> > >
> > > I have Java v1.4.1_01.  JAVA_HOME is set to the location of
> > > the aforementioned Java version.  CATALINA_HOME is set to the
> > > installation location of jakarta-tomcat-4.1.18.  I proceed to
> > > start tomcat and it comes up.  Then when I try to access it
> > > with http://myserver.company.com:8080 I get the following error:
> > >
> > > ---
> > > org.apache.jasper.JasperException: Unable to compile class for JSP
> > >
> > > An error occurred at line: -1 in the jsp file: null
> > >
> > > Generated servlet error:
> > > [javac] Compiling 1 source file
> > >
> > > /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho
> > > st/_/index_jsp
> > > .java:266: handlePageException(java.lang.Exception) in
> > > javax.servlet.jsp.PageContext cannot be applied to
> > > (java.lang.Throwable)
> > >   if (pageContext != null) pageContext.handlePageException(t);
> > >   ^
> > > 1 error
> > >
> > > ...and a long stack trace...
> > > ---
> > >
> > > I've tried everything I've run into in the archives.  Jasper
> > > uses Ant.  How can I ensure that the correct jar files are
> > > being called so that Jasper/Ant can compile JSP files?  Why
> > > isn't it working?  Please help.  I need to evaluate a content
> > > management solution (Red Hat's CCM) that runs on top of Tomcat.
> > >
> > > Thank you.
> > >
> > > MC
> > >
> > >
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: JSP Compilation Error

2003-01-29 Thread Marcelino Cruz
I have the JDK.

In $CATALINA_HOME/bin (I understand this replaces $TOMCAT_HOME in the newer
versions of Tomcat?) there is a startup.sh that calls catalina.sh that in
turn calls setclasspath.sh.  setclasspath.sh was asking for a "$BASEDIR"
variable that I set to be equal to $CATALINA_HOME.  Now, my questions are:

1) Do I modify the setclasspath.sh to look for the tools.jar and dt.jar (as
some people have suggested; to me the tools.jar should be sufficient) in
$JAVA_HOME/lib ?
2) ...or do I copy tools.jar to $JAVA_HOME/jre/lib/ext ?
3) ...or do I copy tools.jar to $CATALINA_HOME/server/ and then either
classes or lib ?
4) ...or do I copy tools.jar to $CATALINA_HOME/shared/ and then either
classes or lib ?

Just which jar file(s) exactly does Tomcat (Catalina) need access to, where
do those files need to be located, and where (which script) do I make the
changes so that the JVM that Tomcat (Catalina) uses can find those
compilation classes.

Thank you!
MC
---
- Original Message -
From: "John Trollinger" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 29, 2003 11:20 AM
Subject: RE: JSP Compilation Error


> Make sure you have the JDK and not the JRE, if you have the JRE you need
> the tools.jar from the JDK, if you have the JDK and still get the
> problem make sure tomcats classpath can see tools.jar.
>
> John
>
> > -Original Message-
> > From: Marcelino Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 29, 2003 11:05 AM
> > To: Tomcat Users List
> > Subject: JSP Compilation Error
> >
> >
> > I know that this topic has been covered over and over... I
> > went to the archives but didn't find a solution to my problem.
> >
> > I downloaded and installed (on Solaris 8 box)
> > jakarta-tomcat-4.1.18. Unzipped the file (I don't have GNU
> > Tar installed on this machine to get the tar version, and my
> > company has FTP firewall access blocked).
> >
> > I have Java v1.4.1_01.  JAVA_HOME is set to the location of
> > the aforementioned Java version.  CATALINA_HOME is set to the
> > installation location of jakarta-tomcat-4.1.18.  I proceed to
> > start tomcat and it comes up.  Then when I try to access it
> > with http://myserver.company.com:8080 I get the following error:
> >
> > ---
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> >
> > An error occurred at line: -1 in the jsp file: null
> >
> > Generated servlet error:
> > [javac] Compiling 1 source file
> >
> > /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho
> > st/_/index_jsp
> > .java:266: handlePageException(java.lang.Exception) in
> > javax.servlet.jsp.PageContext cannot be applied to
> > (java.lang.Throwable)
> >   if (pageContext != null) pageContext.handlePageException(t);
> >   ^
> > 1 error
> >
> > ...and a long stack trace...
> > ---
> >
> > I've tried everything I've run into in the archives.  Jasper
> > uses Ant.  How can I ensure that the correct jar files are
> > being called so that Jasper/Ant can compile JSP files?  Why
> > isn't it working?  Please help.  I need to evaluate a content
> > management solution (Red Hat's CCM) that runs on top of Tomcat.
> >
> > Thank you.
> >
> > MC
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: JSP Compilation Error

2003-01-29 Thread John Trollinger
Make sure you have the JDK and not the JRE, if you have the JRE you need
the tools.jar from the JDK, if you have the JDK and still get the
problem make sure tomcats classpath can see tools.jar.

John

> -Original Message-
> From: Marcelino Cruz [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, January 29, 2003 11:05 AM
> To: Tomcat Users List
> Subject: JSP Compilation Error
> 
> 
> I know that this topic has been covered over and over... I 
> went to the archives but didn't find a solution to my problem.
> 
> I downloaded and installed (on Solaris 8 box) 
> jakarta-tomcat-4.1.18. Unzipped the file (I don't have GNU 
> Tar installed on this machine to get the tar version, and my 
> company has FTP firewall access blocked).
> 
> I have Java v1.4.1_01.  JAVA_HOME is set to the location of 
> the aforementioned Java version.  CATALINA_HOME is set to the 
> installation location of jakarta-tomcat-4.1.18.  I proceed to 
> start tomcat and it comes up.  Then when I try to access it 
> with http://myserver.company.com:8080 I get the following error:
> 
> ---
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: -1 in the jsp file: null
> 
> Generated servlet error:
> [javac] Compiling 1 source file
> 
> /export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localho
> st/_/index_jsp
> .java:266: handlePageException(java.lang.Exception) in 
> javax.servlet.jsp.PageContext cannot be applied to 
> (java.lang.Throwable)
>   if (pageContext != null) pageContext.handlePageException(t);
>   ^
> 1 error
> 
> ...and a long stack trace...
> ---
> 
> I've tried everything I've run into in the archives.  Jasper 
> uses Ant.  How can I ensure that the correct jar files are 
> being called so that Jasper/Ant can compile JSP files?  Why 
> isn't it working?  Please help.  I need to evaluate a content 
> management solution (Red Hat's CCM) that runs on top of Tomcat.
> 
> Thank you.
> 
> MC
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




JSP Compilation Error

2003-01-29 Thread Marcelino Cruz
I know that this topic has been covered over and over... I went to the
archives but didn't find a solution to my problem.

I downloaded and installed (on Solaris 8 box) jakarta-tomcat-4.1.18.
Unzipped the file (I don't have GNU Tar installed on this machine to get the
tar version, and my company has FTP firewall access blocked).

I have Java v1.4.1_01.  JAVA_HOME is set to the location of the
aforementioned Java version.  CATALINA_HOME is set to the installation
location of jakarta-tomcat-4.1.18.  I proceed to start tomcat and it comes
up.  Then when I try to access it with http://myserver.company.com:8080 I
get the following error:

---
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/export/home/u01/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/index_jsp
.java:266: handlePageException(java.lang.Exception) in
javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
  if (pageContext != null) pageContext.handlePageException(t);
  ^
1 error

...and a long stack trace...
---

I've tried everything I've run into in the archives.  Jasper uses Ant.  How
can I ensure that the correct jar files are being called so that Jasper/Ant
can compile JSP files?  Why isn't it working?  Please help.  I need to
evaluate a content management solution (Red Hat's CCM) that runs on top of
Tomcat.

Thank you.

MC



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: JSP Compilation Error

2002-07-22 Thread Paul Ung

Nevermind. I don't think that's your problem. I just tried to do it myself
to get the same problem you did but I get a different error message. Sorry.

-Original Message-
From: Paul Ung [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 12:23 PM
To: 'Tomcat Users List'
Subject: RE: JSP Compilation Error


I'm not sure if this is your problem but I think that the path to your java
compiler should be in your PATH environment variable and not your CLASSPATH.

Try this:
Remove c:\j2sdk1.4.0\bin; from your CLASSPATH and add it to your PATH

Not sure if that will work but you might want to give it a try just in case.



-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 12:15 PM
To: Tomcat Users List
Subject: JSP Compilation Error


Hi
I get the following error when running jsp, but the
servlets have no problem.
I am running windows 2000 server

java.lang.NoClassDefFoundError: sun/tools/javac/Main

my env is as follows
JAVA_HOME=c:\j2sdk1.4.0

CLASSPATH=c:\j2sdk1.4.0\bin;%JAVA_HOME%\lib\tools.jar;C:\j2sdk1.4.0\jre\lib\
rt.jar;C:\j2sdk1.4.0\jre\lib\jaws.jar;

TOMCAT_HOME=c:\tomcat4.0.4

So what should i do??
Ashish


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: JSP Compilation Error

2002-07-22 Thread Paul Ung

I'm not sure if this is your problem but I think that the path to your java
compiler should be in your PATH environment variable and not your CLASSPATH.

Try this:
Remove c:\j2sdk1.4.0\bin; from your CLASSPATH and add it to your PATH

Not sure if that will work but you might want to give it a try just in case.



-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 12:15 PM
To: Tomcat Users List
Subject: JSP Compilation Error


Hi
I get the following error when running jsp, but the
servlets have no problem.
I am running windows 2000 server

java.lang.NoClassDefFoundError: sun/tools/javac/Main

my env is as follows
JAVA_HOME=c:\j2sdk1.4.0

CLASSPATH=c:\j2sdk1.4.0\bin;%JAVA_HOME%\lib\tools.jar;C:\j2sdk1.4.0\jre\lib\
rt.jar;C:\j2sdk1.4.0\jre\lib\jaws.jar;

TOMCAT_HOME=c:\tomcat4.0.4

So what should i do??
Ashish


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




JSP Compilation Error

2002-07-22 Thread Ashish Kulkarni

Hi
I get the following error when running jsp, but the
servlets have no problem.
I am running windows 2000 server

java.lang.NoClassDefFoundError: sun/tools/javac/Main

my env is as follows
JAVA_HOME=c:\j2sdk1.4.0

CLASSPATH=c:\j2sdk1.4.0\bin;%JAVA_HOME%\lib\tools.jar;C:\j2sdk1.4.0\jre\lib\rt.jar;C:\j2sdk1.4.0\jre\lib\jaws.jar;

TOMCAT_HOME=c:\tomcat4.0.4

So what should i do??
Ashish


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: One Solution (JSP-Compilation error)

2002-01-27 Thread Sriram N


Does this happen with Tomcat 4.0.1 too ?

Acc. to the Tomcat docs at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html, the
following order is maintained when loading classes.

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)
$CATALINA_HOME/common/classes
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/classes
$CATALINA_HOME/lib/*.jar

Sriram

--- Michael Kastner <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> as I saw in many mailing lists I am not the only one who had the following
> problem, so I post a solution here.
> 
> Problem:
> After installing tomcat 4.01 all example JSPs in the provided applications
> work well. But when you try to run your own JSPs in your own applications
> you suddenly get this exception thrown:
> 
> exception
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
> ...
> ...
> root cause
> java.lang.ClassCastException:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> 
> 
> Solution (at least in my case):
> 
> I had an xml parser version in my /appname/WEB-INF/lib directory which was
> different from the xml parser located in {TOMCAT-ROOT}/common/lib. It seems
> that if there is an xml parser located in the app's WEB-INF/lib directory,
> then this parser is being used to compile the application's JSPs. And this
> leads eventually to the ClassCastException.
> 
> The application, where this error occured was originally transferred from
> JRUN 3.1 where this behaviour does not occur. On a JRUN 3.1 server the xml
> parser in an application's WEB-INF/lib directory is NOT being used to
> compile the application's JSPs. However in tomcat 4.01 it is being USED. So
> watch out about multiple xml-parser versions!
> 
> Maybe this helps some people.
> 
> Sincerely
> 
> Michael Kastner
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: One Solution (JSP-Compilation error)

2002-01-27 Thread Mark

At 02:08 PM 1/27/2002 +0100, you wrote:
>Hello,
>
>as I saw in many mailing lists I am not the only one who had the following
>problem, so I post a solution here.
>
>Problem:
>After installing tomcat 4.01 all example JSPs in the provided applications
>work well. But when you try to run your own JSPs in your own applications
>you suddenly get this exception thrown:
>
>exception
>javax.servlet.ServletException: Servlet.init() for servlet jsp threw
>exception
>...
>...
>root cause
>java.lang.ClassCastException:
>org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
>
>
>Solution (at least in my case):
>
>I had an xml parser version in my /appname/WEB-INF/lib directory which was
>different from the xml parser located in {TOMCAT-ROOT}/common/lib. It seems
>that if there is an xml parser located in the app's WEB-INF/lib directory,
>then this parser is being used to compile the application's JSPs. And this
>leads eventually to the ClassCastException.
>
>The application, where this error occured was originally transferred from
>JRUN 3.1 where this behaviour does not occur. On a JRUN 3.1 server the xml
>parser in an application's WEB-INF/lib directory is NOT being used to
>compile the application's JSPs. However in tomcat 4.01 it is being USED. So
>watch out about multiple xml-parser versions!
>
>Maybe this helps some people.
>
>Sincerely
>
>Michael Kastner


I had the same problem recently and due to a similar situation.  I
generated a .war file using my IDE's deploy tool, which then included the
parser classes being used during development.  Removing the package under
my Tomcat WEB-INF directory fixed the problem.  My problem was not with a
JSP however, so this issue isn't limited to XML parsing in JSPs. Not sure
what you mean about "this parser is being used to compile application's
JSPs" though. 

Mark


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




One Solution (JSP-Compilation error)

2002-01-27 Thread Michael Kastner

Hello,

as I saw in many mailing lists I am not the only one who had the following
problem, so I post a solution here.

Problem:
After installing tomcat 4.01 all example JSPs in the provided applications
work well. But when you try to run your own JSPs in your own applications
you suddenly get this exception thrown:

exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
...
...
root cause
java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl


Solution (at least in my case):

I had an xml parser version in my /appname/WEB-INF/lib directory which was
different from the xml parser located in {TOMCAT-ROOT}/common/lib. It seems
that if there is an xml parser located in the app's WEB-INF/lib directory,
then this parser is being used to compile the application's JSPs. And this
leads eventually to the ClassCastException.

The application, where this error occured was originally transferred from
JRUN 3.1 where this behaviour does not occur. On a JRUN 3.1 server the xml
parser in an application's WEB-INF/lib directory is NOT being used to
compile the application's JSPs. However in tomcat 4.01 it is being USED. So
watch out about multiple xml-parser versions!

Maybe this helps some people.

Sincerely

Michael Kastner


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat Apache JSP compilation error

2002-01-15 Thread Arnaud Héritier

With Tomcat 4 the package java.util isn't imported by default in your JSP page.

you should add this :

<%@ page language="java"  import="java.util.Vector"%>

or

<%@ page language="java"  import="java.util.*"%>


arno
> -Message d'origine-
> De:   Stuart Stephen [SMTP:[EMAIL PROTECTED]]
> Date: lundi 14 janvier 2002 15:32
> À:Tomcat Users List
> Objet:Tomcat Apache JSP compilation error
> 
> Hi all,
> 
> For some reason i'm getting a class not found exception for a Vector? I
> can't think why the Vector class isn't found? Where should these classes be
> found or what am I doing wrong? The details are at the base of the email.
> 
> Thanks
> Stuart Stephen
> 
> An error occurred at line: 51 in the jsp file:
> /basket_edit_details_content.jsp
> 
> Generated servlet error:
> T:\Tomcat\work\www.myonlineshop.com\shop\basket_0005fedit_0005fdetails_0005f
> content$jsp.java:128: Class org.apache.jsp.Vector not found.
>   Vector points=(Vector)items.get(item_number);
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Tomcat Apache JSP compilation error

2002-01-14 Thread Randy Layman


It probably works because the other server is importing java.util.*
for some of its own wrapper code so it would work on that server, but not
many others without change.

Randy


> -Original Message-
> From: Justin Rowles [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 14, 2002 9:43 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat Apache JSP compilation error
> 
> 
> > Yeah, seemed too obvious though.  It works on the other 
> server we are
> > running here and the codes no different.  Still, works now.  Bargin.
> 
> Are you sure?!  Try copying one across to the other, just for me ;-)
> 
> The difference is likely to be in the list following the 
> import tag in the
> <%@ ... %> section (usually first thing in the code).
> 
> J.
> -- 
> You're only jealous cos the little penguins are talking to me. 
> 
> 
> 
> ***
> For more information on Ordnance Survey products and services,
> visit our web site at http://www.ordnancesurvey.co.uk
> ***
> 
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Tomcat Apache JSP compilation error

2002-01-14 Thread Rodolfo_Garcia_Esteban


Hi,

What version of Tomcat are you using?. I´m using 4.0.1 and I can't execute
any JSP page, how do you start tomcat? ¿how do you configure your
enviroment?.
Do you do something special with jasper?

I will thank you a lot if you could help me.

Best regards,

Rodolfo


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat Apache JSP compilation error

2002-01-14 Thread Justin Rowles

> Yeah, seemed too obvious though.  It works on the other server we are
> running here and the codes no different.  Still, works now.  Bargin.

Are you sure?!  Try copying one across to the other, just for me ;-)

The difference is likely to be in the list following the import tag in the
<%@ ... %> section (usually first thing in the code).

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat Apache JSP compilation error

2002-01-14 Thread Stuart Stephen

Yeah, seemed too obvious though.  It works on the other server we are
running here and the codes no different.  Still, works now.  Bargin.

Ta

-Original Message-
From: Justin Rowles [mailto:[EMAIL PROTECTED]]
Sent: 14 January 2002 14:36
To: 'Tomcat Users List'
Subject: RE: Tomcat Apache JSP compilation error


> For some reason i'm getting a class not found exception for a
> Vector

Better stfw for where you find Vector then!

> Generated servlet error:
> T:\Tomcat\work\www.myonlineshop.com\shop\basket_0005fedit_0005
> fdetails_0005f
> content$jsp.java:128: Class org.apache.jsp.Vector not found.

I'll give you a clue: "import java.util.*" ;-)

J.
--
You're only jealous cos the little penguins are talking to me.



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Tomcat Apache JSP compilation error

2002-01-14 Thread Justin Rowles

> For some reason i'm getting a class not found exception for a 
> Vector

Better stfw for where you find Vector then!

> Generated servlet error:
> T:\Tomcat\work\www.myonlineshop.com\shop\basket_0005fedit_0005
> fdetails_0005f
> content$jsp.java:128: Class org.apache.jsp.Vector not found.

I'll give you a clue: "import java.util.*" ;-)

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat Apache JSP compilation error

2002-01-14 Thread jeff . guttadauro


Since it's not in the java.lang package (the one you get for free), you need
to import the class...

<%@ page import="java.util.Vector" %>

... or reference it with its full package in your code.




   

"Stuart

Stephen" To: "Tomcat Users List" 
<[EMAIL PROTECTED]>  
             Subject: Tomcat Apache JSP compilation 
error  
   

01/14/02   

08:31 AM   

Please 

respond to 

"Tomcat Users  

List"  

   

   





Hi all,

For some reason i'm getting a class not found exception for a Vector? I
can't think why the Vector class isn't found? Where should these classes be
found or what am I doing wrong? The details are at the base of the email.

Thanks
Stuart Stephen

An error occurred at line: 51 in the jsp file:
/basket_edit_details_content.jsp

Generated servlet error:
T:\Tomcat\work\www.myonlineshop.com\shop\basket_0005fedit_0005fdetails_0005f
content$jsp.java:128: Class org.apache.jsp.Vector not found.
  Vector points=(Vector)items.get(item_number);



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Tomcat Apache JSP compilation error

2002-01-14 Thread Stuart Stephen

Hi all,

For some reason i'm getting a class not found exception for a Vector? I
can't think why the Vector class isn't found? Where should these classes be
found or what am I doing wrong? The details are at the base of the email.

Thanks
Stuart Stephen

An error occurred at line: 51 in the jsp file:
/basket_edit_details_content.jsp

Generated servlet error:
T:\Tomcat\work\www.myonlineshop.com\shop\basket_0005fedit_0005fdetails_0005f
content$jsp.java:128: Class org.apache.jsp.Vector not found.
Vector points=(Vector)items.get(item_number);



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JSP compilation error.

2001-11-27 Thread Yoav Shapira

Howdy,
Thanks for the reply ;)  I'd actually figured it out, and it was
that evil "don't have more than one Servlet/JSP jar in your classpath"
issue ;)  (I totally agree with that requirement, by the way).
Turns out the weblogic.jar that's packaged with Weblogic Server 6.0
has javax.servlet and javax.servlet.jsp, older versions than tomcat's,
of course, in it.  Had to repackage the JAR, but problem is solved.

Yoav

David Smith wrote:
> 
> Have you taken a look at the .java file that's generated from the .jsp file?
> It's located in $CATALINA_BASE/work and should give you more insight into
> what's happening.
> 
> --David
> 
> On Monday 26 November 2001 11:08 am, you wrote:
> > Hi there,
> > Tomcat 4.0.1 on Solaris (SunOS 5.6), JDK 1.3.1, trying to run a
> > a jsp page gives the following error:
> >
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> > /home/shapira/jakarta-tomcat-4.0.1/work/localhost/MyDrugDiscovery/jsp/utils
> >/sql$jsp.java:309: Incompatible type for method. Explicit cast needed to
> > convert
> > java.lang.Throwable to java.lang.Exception.
> > if (pageContext != null) pageContext.handlePageException(t);
> >  ^
> > 1 error
> >
> >   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
> >   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
> >   at
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspS
> >ervlet.java:177) at
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
> >ava:189) at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> >   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > (snip)
> >
> > There's no line ilke the above anywhere in my code, so it must be
> > internal
> > somewhere.
> >
> > Any clues?
> >
> > When I try to run jsp to pre-compile the file, I get a
> > java.util.EmptyStackException -- what's that all about??
> >
> > Thanks,
> >
> > Yoav Shapira
> > Millennium Pharmaceuticals
> > [EMAIL PROTECTED]
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JSP compilation error.

2001-11-27 Thread David Smith

Have you taken a look at the .java file that's generated from the .jsp file?  
It's located in $CATALINA_BASE/work and should give you more insight into 
what's happening.

--David

On Monday 26 November 2001 11:08 am, you wrote:
> Hi there,
> Tomcat 4.0.1 on Solaris (SunOS 5.6), JDK 1.3.1, trying to run a
> a jsp page gives the following error:
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
> /home/shapira/jakarta-tomcat-4.0.1/work/localhost/MyDrugDiscovery/jsp/utils
>/sql$jsp.java:309: Incompatible type for method. Explicit cast needed to
> convert
> java.lang.Throwable to java.lang.Exception.
> if (pageContext != null) pageContext.handlePageException(t);
>  ^
> 1 error
>
>   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
>   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspS
>ervlet.java:177) at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j
>ava:189) at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> (snip)
>
> There's no line ilke the above anywhere in my code, so it must be
> internal
> somewhere.
>
> Any clues?
>
> When I try to run jsp to pre-compile the file, I get a
> java.util.EmptyStackException -- what's that all about??
>
> Thanks,
>
> Yoav Shapira
> Millennium Pharmaceuticals
> [EMAIL PROTECTED]
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JSP compilation error.

2001-11-26 Thread Yoav Shapira

Hi there, 
Tomcat 4.0.1 on Solaris (SunOS 5.6), JDK 1.3.1, trying to run a 
a jsp page gives the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP
/home/shapira/jakarta-tomcat-4.0.1/work/localhost/MyDrugDiscovery/jsp/utils/sql$jsp.java:309:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
(snip)

There's no line ilke the above anywhere in my code, so it must be
internal
somewhere.

Any clues?

When I try to run jsp to pre-compile the file, I get a 
java.util.EmptyStackException -- what's that all about??

Thanks,

Yoav Shapira
Millennium Pharmaceuticals
[EMAIL PROTECTED]

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Help: charset in jsp -> compilation error

2001-03-22 Thread Valeriy Molyakov



Hi !
 
I don't find messages where contained 
information about problem using charset in jsp.
I'm using Tomcat 3.2.1 + Apache + mod_jk for 
Windows 2000
My default charset windows-1251
But if I set charset=utf-8 in my jsp I get 
compilation error !
Who had same problem ?
How I can use multilanguage charset 
?
 
Best regards,    Valera 
M.    mailto:[EMAIL PROTECTED]