Re: JSP Compilation Problem

2005-02-03 Thread Tim Funk
1) try a newer version
2) you might have older jasper libraries in your path
-Tim
Rodrigo Avila wrote:
Hi!
When I create a new JSP file in tomcat 5.0.24 and try to run it, the
Tomcat send me this 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.24/work/Catalina/localhost/intranet/org/apache/jsp/web/Test_jsp.java:7:
org.apache.jsp.web.Test_jsp is not abstract and does not override
abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase
public final class Test_jsp extends org.apache.jasper.runtime.HttpJspBase
^
1 error

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:306)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398)
[...]
The jsp file is Test.jsp. I don try to compile it manually; that error
appear when Tomcat try to compile it. I try clean work/ directory; no
sucess. I try to change to newest Tomcat binary: no sucess. And, it
occur in only one context. If I create another context, create a new
.jsp file, all works ok.
I make searches in Google, but nothing resolve my problem.
Thanks the attention!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JSP Compilation Problem

2005-02-03 Thread Rodrigo Avila
Oh, my God... Idiot!

I have in my classpath the jasper-runtime.jar (I use it in the Eclipse
classpath)...

duh!

Clouse, it works now!

Thanks the attention!


On Thu, 03 Feb 2005 09:25:29 -0500, Tim Funk [EMAIL PROTECTED] wrote:
 1) try a newer version
 2) you might have older jasper libraries in your path
 
 -Tim
 
 Rodrigo Avila wrote:
 
  Hi!
  When I create a new JSP file in tomcat 5.0.24 and try to run it, the
  Tomcat send me this 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.24/work/Catalina/localhost/intranet/org/apache/jsp/web/Test_jsp.java:7:
  org.apache.jsp.web.Test_jsp is not abstract and does not override
  abstract method getIncludes() in org.apache.jasper.runtime.HttpJspBase
  public final class Test_jsp extends org.apache.jasper.runtime.HttpJspBase
  ^
  1 error
 
 

  org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)

  org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:306)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398)
[...]
 
  The jsp file is Test.jsp. I don try to compile it manually; that error
  appear when Tomcat try to compile it. I try clean work/ directory; no
  sucess. I try to change to newest Tomcat binary: no sucess. And, it
  occur in only one context. If I create another context, create a new
  .jsp file, all works ok.
 
  I make searches in Google, but nothing resolve my problem.
 
  Thanks the attention!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Rodrigo de Avila
[EMAIL PROTECTED]

http://www.avila.eti.br

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



Re: Re: JSP compilation problem

2005-01-03 Thread Ryan Stewart
As QM mentioned, Tomcat 5.0 doesn't support Java 5.0 out of the box, so to 
speak. I believe there's a patch you need to make them play nicely. Tomcat 5.5, 
as he pointed out, is very tight with Java 5.0.

-Original Message-
From: Frank W. Zammetti[EMAIL PROTECTED]
To: Tomcat Users Listtomcat-user@jakarta.apache.org
Date: Sun Jan 02 11:46:49 PST 2005
Subject: Re: JSP compilation problem

Very interesting... Switching to JDK 1.4.2 solved the problem.  I didn't 
even do an uninstall/reinstall... I always install my SDK to c:\java, so 
all I did was rename it and copy the directory over from another PC, so 
any paths and registry settings should still be valid, there's just an 
older version in it's place.  I made sure to delete the Tomcat work 
folder for the app, started up Tomcat and tried it, everything worked 
fine... JSP class was generared, servlet compiled, and page came up, no 
problem.

So... Is there actually a problem using JDK 5.0 with Tomcat 5.0.29?  If 
so, what version of Tomcat is OK with 5.0? (assuming any are, which I DO 
assume).  Or is this just some sort of fluke situation?

In any case, my problem is solved, and that was the resolution.



___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com



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



Re: JSP compilation problem

2005-01-02 Thread Frank W. Zammetti
Very interesting... Switching to JDK 1.4.2 solved the problem.  I didn't 
even do an uninstall/reinstall... I always install my SDK to c:\java, so 
all I did was rename it and copy the directory over from another PC, so 
any paths and registry settings should still be valid, there's just an 
older version in it's place.  I made sure to delete the Tomcat work 
folder for the app, started up Tomcat and tried it, everything worked 
fine... JSP class was generared, servlet compiled, and page came up, no 
problem.

So... Is there actually a problem using JDK 5.0 with Tomcat 5.0.29?  If 
so, what version of Tomcat is OK with 5.0? (assuming any are, which I DO 
assume).  Or is this just some sort of fluke situation?

In any case, my problem is solved, and that was the resolution.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Ryan Stewart wrote:
First, I apologize if I came of sounding rude before. As an infrequent visitor 
to this list, I wasn't aware that you are a frequent contributor. I also don't 
seem to have received the other reply you mention. My next thought is that you 
might have two versions of Java installed. If so, which version is Tomcat 
using? Are you sure you compiled the servlet with the same one?
-Original Message-
From: Frank W. Zammetti[EMAIL PROTECTED]
To: Tomcat Users Listtomcat-user@jakarta.apache.org
Date: Sat Jan 01 07:22:09 PST 2005
Subject: Re: JSP compilation problem

I did not post twice Ryan.  If two posts appeared, it is the same 
problem with the list processor that we've been seeing for weeks now.

I did post a reply however... I tried your suggestion and manually 
compiled.  I have NO classpath variable in the environment (I thought 
this might have been a classpath issue, and I guess it could still be, 
but I don't see how at this point).  I manually put servlet-api.jar, 
jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the 
classpath and compiled, and it compiles cleanly.  So the problem would 
not appear to be a problem with the generated servlet.  Any other ideas?

Thank you!

___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com

-
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 problem

2005-01-02 Thread QM
On Sun, Jan 02, 2005 at 02:46:49PM -0500, Frank W. Zammetti wrote:
: So... Is there actually a problem using JDK 5.0 with Tomcat 5.0.29?

Perhaps...  I have a vague recollection of seeing such posts a long time ago.


: so, what version of Tomcat is OK with 5.0? (assuming any are, which I DO 
: assume).

The 5.5 series is not only OK with JDK 1.5, it requires it. =)

(OK, there's the JDK 1.4 compat package, but that didn't sound as cool)

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: JSP compilation problem

2005-01-01 Thread Ryan Stewart
I answered you yesterday on this. There's generally no reason to post the same 
question two days in a row. Just wait and see if an answer shows up. Your 
problem is (still) that you have one or more errors in your JSP. If you can't 
figure out where the compiler output is, then go and compile the translated 
servlet manually.

-Original Message-
From: Frank W. Zammetti[EMAIL PROTECTED]
To: Tomcat Usertomcat-user@jakarta.apache.org
Date: Thu Dec 30 06:53:31 PST 2004
Subject: JSP compilation problem

Hello.  I'm using Tomcat 5.0.29.  Working from home today and trying to 
run a working application on my laptop, and I'm seeing an exception when 
trying to access the first JSP of the app.  Here's the on-screen display:
[...]
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
[...]

___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com



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



Re: JSP compilation problem

2005-01-01 Thread Frank W. Zammetti
I did not post twice Ryan.  If two posts appeared, it is the same 
problem with the list processor that we've been seeing for weeks now.

I did post a reply however... I tried your suggestion and manually 
compiled.  I have NO classpath variable in the environment (I thought 
this might have been a classpath issue, and I guess it could still be, 
but I don't see how at this point).  I manually put servlet-api.jar, 
jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the 
classpath and compiled, and it compiles cleanly.  So the problem would 
not appear to be a problem with the generated servlet.  Any other ideas?

Thank you!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Ryan Stewart wrote:
I answered you yesterday on this. There's generally no reason to post the same 
question two days in a row. Just wait and see if an answer shows up. Your 
problem is (still) that you have one or more errors in your JSP. If you can't 
figure out where the compiler output is, then go and compile the translated 
servlet manually.
-Original Message-
From: Frank W. Zammetti[EMAIL PROTECTED]
To: Tomcat Usertomcat-user@jakarta.apache.org
Date: Thu Dec 30 06:53:31 PST 2004
Subject: JSP compilation problem

Hello.  I'm using Tomcat 5.0.29.  Working from home today and trying to 
run a working application on my laptop, and I'm seeing an exception when 
trying to access the first JSP of the app.  Here's the on-screen display:
[...]
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
[...]
___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com

-
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 problem

2005-01-01 Thread Ben Souther





Frank,
Forgive me if this has already been suggested, I just came into this
thread, midpoint (left my machine on at work ;)).  Just for kicks, have
you tried a fresh install of Tomcat on that machine?

Ryan,
I agree with you 100% about people not posting the same question twice
and about netiquette in general.  However, in this case, the rant is
misdirected.  After watching this list for the last several years (as
well as the dev list), I can say that Mr, Zammetti has never been
anything but helpful, knowledgeable, and respectful.

I've also been seeing issues with this list in the last few weeks. 
There were days when it's taken 45 minutes or more for my posts to show
up.

-Ben









On Sat, 2005-01-01 at 10:22, Frank W. Zammetti wrote:
 I did not post twice Ryan.  If two posts appeared, it is the same 
 problem with the list processor that we've been seeing for weeks now.
 
 I did post a reply however... I tried your suggestion and manually 
 compiled.  I have NO classpath variable in the environment (I thought 
 this might have been a classpath issue, and I guess it could still be, 
 but I don't see how at this point).  I manually put servlet-api.jar, 
 jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the 
 classpath and compiled, and it compiles cleanly.  So the problem would 
 not appear to be a problem with the generated servlet.  Any other ideas?
 
 Thank you!


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



Re: Re: JSP compilation problem

2005-01-01 Thread Ryan Stewart
First, I apologize if I came of sounding rude before. As an infrequent visitor 
to this list, I wasn't aware that you are a frequent contributor. I also don't 
seem to have received the other reply you mention. My next thought is that you 
might have two versions of Java installed. If so, which version is Tomcat 
using? Are you sure you compiled the servlet with the same one?

-Original Message-
From: Frank W. Zammetti[EMAIL PROTECTED]
To: Tomcat Users Listtomcat-user@jakarta.apache.org
Date: Sat Jan 01 07:22:09 PST 2005
Subject: Re: JSP compilation problem

I did not post twice Ryan.  If two posts appeared, it is the same 
problem with the list processor that we've been seeing for weeks now.

I did post a reply however... I tried your suggestion and manually 
compiled.  I have NO classpath variable in the environment (I thought 
this might have been a classpath issue, and I guess it could still be, 
but I don't see how at this point).  I manually put servlet-api.jar, 
jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the 
classpath and compiled, and it compiles cleanly.  So the problem would 
not appear to be a problem with the generated servlet.  Any other ideas?

Thank you!



___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com



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



Re: JSP compilation problem

2004-12-31 Thread Ryan Stewart
Quite simply, you have an error in your JSP that is preventing the translated 
servlet from compiling. If you don't know where to look for the compiler 
output, then just go and manually compile the servlet.

-Original Message-
From: Frank W. Zammetti[EMAIL PROTECTED]
To: Tomcat Usertomcat-user@jakarta.apache.org
Date: Thu Dec 30 06:53:31 PST 2004
Subject: JSP compilation problem

[...]
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented 
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
[...]
root cause
Compile failed; see the compiler error output for details.
[...]

___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com



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



Re: JSP compilation problem

2004-12-31 Thread Frank W. Zammetti
Interesting response... The exact same JSP is compiling on two other 
machines.  Your right though, manually compiling it is a good next step 
(one that I'm ashamed to say I didn't think of myself), so I'm off to do 
that now.  Maybe I have a corrupt file in some minor, hard-to-detect way 
that is causing a problem on this one Tomcat instance.  Thanks for the 
suggestion, it's a logical course of action.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Ryan Stewart wrote:
Quite simply, you have an error in your JSP that is preventing the translated 
servlet from compiling. If you don't know where to look for the compiler 
output, then just go and manually compile the servlet.
-Original Message-
From: Frank W. Zammetti[EMAIL PROTECTED]
To: Tomcat Usertomcat-user@jakarta.apache.org
Date: Thu Dec 30 06:53:31 PST 2004
Subject: JSP compilation problem
[...]
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented 
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
[...]
root cause
Compile failed; see the compiler error output for details.
[...]
___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com

-
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 Problem

2003-09-23 Thread Tim Funk
It looks like a bug. I will follow up to tomcat-dev with more detail.

-Tim

Anatol Pomazau wrote:
Hi.

I just upgrade tomcat server from 4.1.12 to Tomcat-dev (I get sources
from CVS and compile it yesterday)
But I have a problem with one jsp.
So, such code
% String fullname = Anatol Pomazau; %
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\%=fullname%.doc%=fulln
ame%/a
Works fine in old version but in new Tomcat generates
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\%=fullname%.docAnatol
Pomazau/a
Insead of
a target=newForm
href=\\epmsa007\applForm\new_applicant_form\Anatol Pomazau.docAnatol
Pomazau/a
I have looked JSP Spec 2.0 and I have not found any remarks about such
quoting.
What I do wrong? Please help me.

epam
EPAM Systems, Minsk, Belarus
work: +375 17 210 1662, ext. #1373
icq uin: 138182429
 

-
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 problem with tc-4.1.27 if reloadable=true

2003-08-07 Thread Tim Funk
Probably this:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096
-Tim

Zsolt Koppany wrote:
Hi,

I have just moved from tc-4.1.24 to 27 and have the following problem:

In Context .../Context I set reloadable=true. After a Java class
file re-compiled and I try to use any JSP pages I always get compilation
error messages saying the some classes cannot be found in the classpath.
When I restart tomcat everything works fine. I have been using 4.1.24
very long and have never had this problem.
Any ideas?

Zsolt


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


Re: jsp compilation problem, Timeout too quick

2002-01-02 Thread Brandon Cruz

Did you just upgrade to ajp13?  I just noticed this problem when upgrading
from 3.2.1 and ajp12 as well.  I'm thinking there might be some kind of
setting we can change...  see the thread about needing to refresh jsp page
around 5 times
- Original Message -
From: James Chuang [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 02, 2002 3:23 PM
Subject: jsp compilation problem, Timeout too quick


 I was trying to regenerate and compile all the JSPs I had to make sure
 everything is up-to-date.  I am now finding a different behavior.  I am
 chaining to my JSPs from my servlet, running under Redhat 7.1, Apache,
 Tomcat 3.24, using AJP13.

 What I am finding is that rather than waiting for the JSP to compile and
 return output, the user is quickly (  ~ 1 sec) returned to an Apache
error
 page.  If I press Refresh enough times, the page will properly show.

 Is there some sort of timeout setting I'm missing in Tomcat or Apache that
 was introduced post 3.23?  Whn I was running 3.23, I didn't have this
 problem.

 Thanks in Advance.

 jchuang


 --
 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]