Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Gaurav Naigaonkar
Hello,

I get a number of similar compilation errors when I try to compile the
Servlets that are generated by  Tomcat 6 Jsp-PreCompilation.

One of them is as follows:

C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\mobiledoc\WEB-INF\src\org\apache\jsp\index_jsp.java:18:
getDependants() in org.apache.jsp.index_jsp cannot implement getDependants()
in org.apache.jasper.runtime.JspSourceDependent; attempting to use
incompatible return type

[javac] found   : java.lang.Object

[javac] required: java.util.List

[javac]   public Object getDependants() {

 I looked up online but couldn’t find any solution to it. Let me know if
someone can help.


Thanks,
-- 
Gaurav Naigaonkar


Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Elliot Huntington
An Object is not a List even though a List is an Object. The method you are
trying to implement requires a return type of List, not Object.

On Fri, Jul 10, 2009 at 9:08 AM, Gaurav Naigaonkar gnaigaon...@gmail.comwrote:

 Hello,

 I get a number of similar compilation errors when I try to compile the
 Servlets that are generated by  Tomcat 6 Jsp-PreCompilation.

 One of them is as follows:

 C:\Program Files\Apache Software Foundation\Tomcat
 6.0\webapps\mobiledoc\WEB-INF\src\org\apache\jsp\index_jsp.java:18:
 getDependants() in org.apache.jsp.index_jsp cannot implement
 getDependants()
 in org.apache.jasper.runtime.JspSourceDependent; attempting to use
 incompatible return type

[javac] found   : java.lang.Object

[javac] required: java.util.List

[javac]   public Object getDependants() {

  I looked up online but couldn’t find any solution to it. Let me know if
 someone can help.


 Thanks,
 --
 Gaurav Naigaonkar




-- 
Elliot


Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Gaurav Naigaonkar
The issue is, I am using ant scripts to Pre-Compile my Jsp's where I use
Jasper2 compiler. So the Servlets are generated by Jasper2 and not manually.
Hence, I do not control the Jsp's that are generated.

Hope this makes the problem clearer.



On Fri, Jul 10, 2009 at 11:14 AM, Elliot Huntington 
elliot.hunting...@gmail.com wrote:

 An Object is not a List even though a List is an Object. The method you are
 trying to implement requires a return type of List, not Object.

 On Fri, Jul 10, 2009 at 9:08 AM, Gaurav Naigaonkar gnaigaon...@gmail.com
 wrote:

  Hello,
 
  I get a number of similar compilation errors when I try to compile the
  Servlets that are generated by  Tomcat 6 Jsp-PreCompilation.
 
  One of them is as follows:
 
  C:\Program Files\Apache Software Foundation\Tomcat
  6.0\webapps\mobiledoc\WEB-INF\src\org\apache\jsp\index_jsp.java:18:
  getDependants() in org.apache.jsp.index_jsp cannot implement
  getDependants()
  in org.apache.jasper.runtime.JspSourceDependent; attempting to use
  incompatible return type
 
 [javac] found   : java.lang.Object
 
 [javac] required: java.util.List
 
 [javac]   public Object getDependants() {
 
   I looked up online but couldn’t find any solution to it. Let me know if
  someone can help.
 
 
  Thanks,
  --
  Gaurav Naigaonkar
 



 --
 Elliot




-- 
Gaurav Naigaonkar


Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Konstantin Kolinko
There is an option in JspC that controls with what version of Java the
generated sources
are compatible with.

Try to explicitly specify 1.5 for source and target
(compilerSourceVM, compilerTargetVM ).
See
http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Configuration
and the source of JspC class.

In current 6.0 releases the default for those options in JspC is 1.4,
which is wrong, and will be changed to be 1.5 in 6.0.21.

Best regards,
Konstantin Kolinko


2009/7/10 Elliot Huntington elliot.hunting...@gmail.com:
 An Object is not a List even though a List is an Object. The method you are
 trying to implement requires a return type of List, not Object.

 On Fri, Jul 10, 2009 at 9:08 AM, Gaurav Naigaonkar 
 gnaigaon...@gmail.comwrote:

 Hello,

 I get a number of similar compilation errors when I try to compile the
 Servlets that are generated by  Tomcat 6 Jsp-PreCompilation.

 One of them is as follows:

 C:\Program Files\Apache Software Foundation\Tomcat
 6.0\webapps\mobiledoc\WEB-INF\src\org\apache\jsp\index_jsp.java:18:
 getDependants() in org.apache.jsp.index_jsp cannot implement
 getDependants()
 in org.apache.jasper.runtime.JspSourceDependent; attempting to use
 incompatible return type

    [javac] found   : java.lang.Object

    [javac] required: java.util.List

    [javac]   public Object getDependants() {

  I looked up online but couldn’t find any solution to it. Let me know if
 someone can help.


 Thanks,
 --
 Gaurav Naigaonkar




 --
 Elliot


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Mark Thomas
Gaurav Naigaonkar wrote:
 The issue is, I am using ant scripts to Pre-Compile my Jsp's where I use
 Jasper2 compiler. So the Servlets are generated by Jasper2 and not manually.
 Hence, I do not control the Jsp's that are generated.
 
 Hope this makes the problem clearer.

Tomcat version?
Is this a clean build? If you try and compile .java files created by one
version of Tomcat with a later version you could see this.

Mark

 
 
 
 On Fri, Jul 10, 2009 at 11:14 AM, Elliot Huntington 
 elliot.hunting...@gmail.com wrote:
 
 An Object is not a List even though a List is an Object. The method you are
 trying to implement requires a return type of List, not Object.

 On Fri, Jul 10, 2009 at 9:08 AM, Gaurav Naigaonkar gnaigaon...@gmail.com
 wrote:
 Hello,

 I get a number of similar compilation errors when I try to compile the
 Servlets that are generated by  Tomcat 6 Jsp-PreCompilation.

 One of them is as follows:

 C:\Program Files\Apache Software Foundation\Tomcat
 6.0\webapps\mobiledoc\WEB-INF\src\org\apache\jsp\index_jsp.java:18:
 getDependants() in org.apache.jsp.index_jsp cannot implement
 getDependants()
 in org.apache.jasper.runtime.JspSourceDependent; attempting to use
 incompatible return type

[javac] found   : java.lang.Object

[javac] required: java.util.List

[javac]   public Object getDependants() {

  I looked up online but couldn’t find any solution to it. Let me know if
 someone can help.


 Thanks,
 --
 Gaurav Naigaonkar



 --
 Elliot

 
 
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Gaurav Naigaonkar
I tried adding these parameters. But still I get the same errors.
As far as I understand, these parameters are associated with Jspc
compilation. The errors I get are when I try to compile the Servlets that
are generated by JspC. So I guess there may not be a problem with JspC
compilation but with Java compilation of these Servlets.


On Fri, Jul 10, 2009 at 11:23 AM, Konstantin Kolinko knst.koli...@gmail.com
 wrote:

 There is an option in JspC that controls with what version of Java the
 generated sources
 are compatible with.

 Try to explicitly specify 1.5 for source and target
 (compilerSourceVM, compilerTargetVM ).
 See
 http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Configuration
 and the source of JspC class.

 In current 6.0 releases the default for those options in JspC is 1.4,
 which is wrong, and will be changed to be 1.5 in 6.0.21.

 Best regards,
 Konstantin Kolinko


 2009/7/10 Elliot Huntington elliot.hunting...@gmail.com:
  An Object is not a List even though a List is an Object. The method you
 are
  trying to implement requires a return type of List, not Object.
 
  On Fri, Jul 10, 2009 at 9:08 AM, Gaurav Naigaonkar 
 gnaigaon...@gmail.comwrote:
 
  Hello,
 
  I get a number of similar compilation errors when I try to compile the
  Servlets that are generated by  Tomcat 6 Jsp-PreCompilation.
 
  One of them is as follows:
 
  C:\Program Files\Apache Software Foundation\Tomcat
  6.0\webapps\mobiledoc\WEB-INF\src\org\apache\jsp\index_jsp.java:18:
  getDependants() in org.apache.jsp.index_jsp cannot implement
  getDependants()
  in org.apache.jasper.runtime.JspSourceDependent; attempting to use
  incompatible return type
 
 [javac] found   : java.lang.Object
 
 [javac] required: java.util.List
 
 [javac]   public Object getDependants() {
 
   I looked up online but couldn’t find any solution to it. Let me know if
  someone can help.
 
 
  Thanks,
  --
  Gaurav Naigaonkar
 
 
 
 
  --
  Elliot
 

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
Gaurav Naigaonkar


Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Gaurav Naigaonkar
I am using Tomcat 6.0.

There isnt a mismatch in Tomcats here. I have a Ant script that I am running
from command line. So I guess Tomcat version should not be an issue.

Let me know if what I am assuming is wrong.

On Fri, Jul 10, 2009 at 11:23 AM, Mark Thomas ma...@apache.org wrote:

 Gaurav Naigaonkar wrote:
  The issue is, I am using ant scripts to Pre-Compile my Jsp's where I use
  Jasper2 compiler. So the Servlets are generated by Jasper2 and not
 manually.
  Hence, I do not control the Jsp's that are generated.
 
  Hope this makes the problem clearer.

 Tomcat version?
 Is this a clean build? If you try and compile .java files created by one
 version of Tomcat with a later version you could see this.

 Mark

 
 
 
  On Fri, Jul 10, 2009 at 11:14 AM, Elliot Huntington 
  elliot.hunting...@gmail.com wrote:
 
  An Object is not a List even though a List is an Object. The method you
 are
  trying to implement requires a return type of List, not Object.
 
  On Fri, Jul 10, 2009 at 9:08 AM, Gaurav Naigaonkar 
 gnaigaon...@gmail.com
  wrote:
  Hello,
 
  I get a number of similar compilation errors when I try to compile the
  Servlets that are generated by  Tomcat 6 Jsp-PreCompilation.
 
  One of them is as follows:
 
  C:\Program Files\Apache Software Foundation\Tomcat
  6.0\webapps\mobiledoc\WEB-INF\src\org\apache\jsp\index_jsp.java:18:
  getDependants() in org.apache.jsp.index_jsp cannot implement
  getDependants()
  in org.apache.jasper.runtime.JspSourceDependent; attempting to use
  incompatible return type
 
 [javac] found   : java.lang.Object
 
 [javac] required: java.util.List
 
 [javac]   public Object getDependants() {
 
   I looked up online but couldn’t find any solution to it. Let me know
 if
  someone can help.
 
 
  Thanks,
  --
  Gaurav Naigaonkar
 
 
 
  --
  Elliot
 
 
 
 



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
Gaurav Naigaonkar


Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Mark Thomas
Gaurav Naigaonkar wrote:
 I am using Tomcat 6.0.

There are 21 different 6.0.x versions. You need to be precise.

 There isnt a mismatch in Tomcats here. I have a Ant script that I am running
 from command line. So I guess Tomcat version should not be an issue.

You must be using *exactly* the same Tomcat version. You can't mix and
match, even within the 6.0.x series. While this usually works, it isn't
guaranteed to work.

 Let me know if what I am assuming is wrong.

That depends on if you are using exactly the same Tomcat versions for
pre-compilation and execution.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Gaurav Naigaonkar
My Tomcat version is: 6.0.18.0
Also, I am using the same Tomcat versions for pre-compilation and execution.

The Ant script that I am using is same as what is available on the Apache
Tomcat site:
http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Web%20Application%20Compilation

So, I am sure there is no issue of different versions of Tomcat.

On Fri, Jul 10, 2009 at 12:02 PM, Mark Thomas ma...@apache.org wrote:

 Gaurav Naigaonkar wrote:
  I am using Tomcat 6.0.

 There are 21 different 6.0.x versions. You need to be precise.

  There isnt a mismatch in Tomcats here. I have a Ant script that I am
 running
  from command line. So I guess Tomcat version should not be an issue.

 You must be using *exactly* the same Tomcat version. You can't mix and
 match, even within the 6.0.x series. While this usually works, it isn't
 guaranteed to work.

  Let me know if what I am assuming is wrong.

 That depends on if you are using exactly the same Tomcat versions for
 pre-compilation and execution.

 Mark



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




-- 
Gaurav Naigaonkar


Re: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Mark Thomas
Gaurav Naigaonkar wrote:
 My Tomcat version is: 6.0.18.0
 Also, I am using the same Tomcat versions for pre-compilation and execution.
 
 The Ant script that I am using is same as what is available on the Apache
 Tomcat site:
 http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Web%20Application%20Compilation
 
 So, I am sure there is no issue of different versions of Tomcat.

Looking at the svn history, I'm not convinced you haven't got a Tomcat 7
(aka trunk) / Tomcat 6 mix-up.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Error: cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent

2009-07-10 Thread Caldarale, Charles R
 From: Gaurav Naigaonkar [mailto:gnaigaon...@gmail.com]
 Subject: Re: Error: cannot implement getDependants() in
 org.apache.jasper.runtime.JspSourceDependent
 
 My Tomcat version is: 6.0.18.0
 The Ant script that I am using is same as what is available 
 on the Apache Tomcat site:
 http://tomcat.apache.org/tomcat-6.0-doc/jasper-
 howto.html#Web%20Application%20Compilation

What JDK are you using?

I just tried precompiling a simple webapp with an index.jsp using JDK 6u14 on 
both Tomcat 6.0.18 and 6.0.20 and everything works properly - no diagnostics.  
You might want to do a fresh install of Tomcat and try again.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org