You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by anita kulshreshtha <a_...@yahoo.com> on 2006/11/27 16:05:25 UTC

Make trunk 1.5 only!

   Servlet 2.5 (http://jcp.org/en/jsr/detail?id=154) requires jdk 1.5:
"J2SE 5.0 is the minimum version of the underlying Java platform with
which
servlet containers must be built."
   I would like to change (at least) the target to 1.5 in the trunk.
   comments?
Thanks
Anita 


 
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

Re: Make trunk 1.5 only!

Posted by Prasad Kashyap <go...@gmail.com>.
+1

Cheers
Prasad

On 11/27/06, Paul McMahan <pa...@gmail.com> wrote:
> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
> >    I would like to change (at least) the target to 1.5 in the trunk.
> >    comments?
>
> +1 on changing the target to 1.5 in trunk.  I think the branches
> should stay at 1.4 for now.
>
> Best wishes,
> Paul
>

Re: Make trunk 1.5 only!

Posted by Jason Dillon <ja...@planet57.com>.
Appears there might be a few others places to update...

<snip>
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Building Geronimo Maven2 Plugins :: Geronimo
[INFO]    task-segment: [install]
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] [tools:require-java-version {execution: validate-java-version}]
[INFO] [plugin:descriptor]
[WARNING] Goal prefix is: geronimo; Maven currently expects it to be  
geronimo
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 14 mojo descriptors.
[INFO] Applying extractor for language: bsh
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[INFO] [tools:copy-legal-files {execution: install-legal-files}]
[INFO] Copying 2 files to /Users/jason/ws/geronimo/server/maven- 
plugins/geronimo-maven-plugin/target/classes/META-INF
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 26 source files to /Users/jason/ws/geronimo/server/maven- 
plugins/geronimo-maven-plugin/target/classes
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]  
------------------------------------------------------------------------
[INFO] Compilation failure

/Users/jason/ws/geronimo/server/maven-plugins/geronimo-maven-plugin/ 
src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/ 
InstallerMojoSupport.java:[123,24] as of release 1.5, 'enum' is a  
keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
             Enumeration enum = zipFile.entries();

/Users/jason/ws/geronimo/server/maven-plugins/geronimo-maven-plugin/ 
src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/ 
InstallerMojoSupport.java:[124,19] as of release 1.5, 'enum' is a  
keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
             while (enum.hasMoreElements()) {

/Users/jason/ws/geronimo/server/maven-plugins/geronimo-maven-plugin/ 
src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/ 
InstallerMojoSupport.java:[125,43] as of release 1.5, 'enum' is a  
keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                 ZipEntry entry = (ZipEntry)enum.nextElement();
</snip>

--jason


On Nov 27, 2006, at 7:48 PM, anita kulshreshtha wrote:

>   Thanks Rick! Casting it to Class did the trick. The trunk (rev
> 479880) is now all 1.5!
>
> Thanks
> Anita
>
> --- Rick McGuire <ri...@gmail.com> wrote:
>
>> anita kulshreshtha wrote:
>>>    I did not think that changing <source> from 1.4 to 1.5 will
>> cause
>>> any problems. I tried it anyway.. The security module is giving
>>> problem:
>>>
>>> [INFO]
>>>
>>
> ---------------------------------------------------------------------- 
> --
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>>
>>
> ---------------------------------------------------------------------- 
> --
>>> [INFO] Compilation failure
>>>
>>>
>>
> C:\anita\geronimo\g2.0\modules\geronimo-security\src\main\java\org 
> \apache\geronimo\securit
>>> y\ContextManager.java:[256,32] cannot find symbol
>>> symbol  : method
>>>
>>
> getPrincipals 
> (java.lang.Class<org.apache.geronimo.security.realm.provider
>>> s.GeronimoCallerPrincipal>)
>>>
>>> location: class javax.security.auth.Subject
>>>    This compiles with source as 1.4. Any ideas?
>>>
>> Hmmm, for some reason, it's trying to use a generic there.  Try
>> changing
>> the line to:
>>
>>         Set principals =
>> subject.getPrincipals((Class)GeronimoCallerPrincipal.class);
>>
>> To explicitly get that to be a Class signature.
>>
>> Rick
>>
>>
>>> Thanks
>>> Anita
>>>
>>> --- Paul McMahan <pa...@gmail.com> wrote:
>>>
>>>
>>>> OK I misread your suggestion to say that the change should be made
>>>> "at
>>>> least on trunk". Now I realize you mean to change at least
>> <target>
>>>> if
>>>> not also <source> in the pom.xml.   Why not change them both?
>>>>
>>>> Paul
>>>>
>>>> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>>>>
>>>>>    IIUC, the branches/1.2 will always be 1.4 with an ability to
>> run
>>>>>
>>>> the
>>>>
>>>>> server in 1.5.
>>>>>
>>>>> Thanks
>>>>> Anita
>>>>>
>>>>> --- Paul McMahan <pa...@gmail.com> wrote:
>>>>>
>>>>>
>>>>>> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>>>>>>
>>>>>>>    I would like to change (at least) the target to 1.5 in the
>>>>>>>
>>>>>> trunk.
>>>>>>
>>>>>>>    comments?
>>>>>>>
>>>>>> +1 on changing the target to 1.5 in trunk.  I think the branches
>>>>>> should stay at 1.4 for now.
>>>>>>
>>>>>> Best wishes,
>>>>>> Paul
>>>>>>
>>>
>>>
>>>
>>>
>>>
>>
> ______________________________________________________________________ 
> ______________
>>> Do you Yahoo!?
>>> Everyone is raving about the all-new Yahoo! Mail beta.
>>> http://new.mail.yahoo.com
>>>
>>>
>>
>>
>
>
>
>
> ______________________________________________________________________ 
> ______________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com


Re: Make trunk 1.5 only!

Posted by anita kulshreshtha <a_...@yahoo.com>.
  Thanks Rick! Casting it to Class did the trick. The trunk (rev
479880) is now all 1.5!

Thanks
Anita

--- Rick McGuire <ri...@gmail.com> wrote:

> anita kulshreshtha wrote:
> >    I did not think that changing <source> from 1.4 to 1.5 will
> cause
> > any problems. I tried it anyway.. The security module is giving
> > problem:
> >
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> >
>
------------------------------------------------------------------------
> > [INFO] Compilation failure
> >
> >
>
C:\anita\geronimo\g2.0\modules\geronimo-security\src\main\java\org\apache\geronimo\securit
> > y\ContextManager.java:[256,32] cannot find symbol
> > symbol  : method
> >
>
getPrincipals(java.lang.Class<org.apache.geronimo.security.realm.provider
> > s.GeronimoCallerPrincipal>)
> >   
> > location: class javax.security.auth.Subject
> >    This compiles with source as 1.4. Any ideas?
> >   
> Hmmm, for some reason, it's trying to use a generic there.  Try
> changing 
> the line to:
> 
>         Set principals = 
> subject.getPrincipals((Class)GeronimoCallerPrincipal.class);
> 
> To explicitly get that to be a Class signature.
> 
> Rick
> 
> 
> > Thanks
> > Anita
> >
> > --- Paul McMahan <pa...@gmail.com> wrote:
> >
> >   
> >> OK I misread your suggestion to say that the change should be made
> >> "at
> >> least on trunk". Now I realize you mean to change at least
> <target>
> >> if
> >> not also <source> in the pom.xml.   Why not change them both?
> >>
> >> Paul
> >>
> >> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
> >>     
> >>>    IIUC, the branches/1.2 will always be 1.4 with an ability to
> run
> >>>       
> >> the
> >>     
> >>> server in 1.5.
> >>>
> >>> Thanks
> >>> Anita
> >>>
> >>> --- Paul McMahan <pa...@gmail.com> wrote:
> >>>
> >>>       
> >>>> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
> >>>>         
> >>>>>    I would like to change (at least) the target to 1.5 in the
> >>>>>           
> >>>> trunk.
> >>>>         
> >>>>>    comments?
> >>>>>           
> >>>> +1 on changing the target to 1.5 in trunk.  I think the branches
> >>>> should stay at 1.4 for now.
> >>>>
> >>>> Best wishes,
> >>>> Paul
> >>>>         
> >
> >
> >
> >  
> >
>
____________________________________________________________________________________
> > Do you Yahoo!?
> > Everyone is raving about the all-new Yahoo! Mail beta.
> > http://new.mail.yahoo.com
> >
> >   
> 
> 



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Re: Make trunk 1.5 only!

Posted by Rick McGuire <ri...@gmail.com>.
anita kulshreshtha wrote:
>    I did not think that changing <source> from 1.4 to 1.5 will cause
> any problems. I tried it anyway.. The security module is giving
> problem:
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> C:\anita\geronimo\g2.0\modules\geronimo-security\src\main\java\org\apache\geronimo\securit
> y\ContextManager.java:[256,32] cannot find symbol
> symbol  : method
> getPrincipals(java.lang.Class<org.apache.geronimo.security.realm.provider
> s.GeronimoCallerPrincipal>)
>   
> location: class javax.security.auth.Subject
>    This compiles with source as 1.4. Any ideas?
>   
Hmmm, for some reason, it's trying to use a generic there.  Try changing 
the line to:

        Set principals = 
subject.getPrincipals((Class)GeronimoCallerPrincipal.class);

To explicitly get that to be a Class signature.

Rick


> Thanks
> Anita
>
> --- Paul McMahan <pa...@gmail.com> wrote:
>
>   
>> OK I misread your suggestion to say that the change should be made
>> "at
>> least on trunk". Now I realize you mean to change at least <target>
>> if
>> not also <source> in the pom.xml.   Why not change them both?
>>
>> Paul
>>
>> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>>     
>>>    IIUC, the branches/1.2 will always be 1.4 with an ability to run
>>>       
>> the
>>     
>>> server in 1.5.
>>>
>>> Thanks
>>> Anita
>>>
>>> --- Paul McMahan <pa...@gmail.com> wrote:
>>>
>>>       
>>>> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>>>>         
>>>>>    I would like to change (at least) the target to 1.5 in the
>>>>>           
>>>> trunk.
>>>>         
>>>>>    comments?
>>>>>           
>>>> +1 on changing the target to 1.5 in trunk.  I think the branches
>>>> should stay at 1.4 for now.
>>>>
>>>> Best wishes,
>>>> Paul
>>>>         
>
>
>
>  
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
>
>   


Re: Make trunk 1.5 only!

Posted by Rick McGuire <ri...@gmail.com>.
anita kulshreshtha wrote:
>    I did not think that changing <source> from 1.4 to 1.5 will cause
> any problems. I tried it anyway.. The security module is giving
> problem:
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> C:\anita\geronimo\g2.0\modules\geronimo-security\src\main\java\org\apache\geronimo\securit
> y\ContextManager.java:[256,32] cannot find symbol
> symbol  : method
> getPrincipals(java.lang.Class<org.apache.geronimo.security.realm.provider
> s.GeronimoCallerPrincipal>)
> location: class javax.security.auth.Subject
>    This compiles with source as 1.4. Any ideas?
>   
This gives some sort of idea on what's going on with the class literals 
and generics.

http://java.sun.com/docs/books/tutorial/extra/generics/literals.html

Rick


> Thanks
> Anita
>
> --- Paul McMahan <pa...@gmail.com> wrote:
>
>   
>> OK I misread your suggestion to say that the change should be made
>> "at
>> least on trunk". Now I realize you mean to change at least <target>
>> if
>> not also <source> in the pom.xml.   Why not change them both?
>>
>> Paul
>>
>> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>>     
>>>    IIUC, the branches/1.2 will always be 1.4 with an ability to run
>>>       
>> the
>>     
>>> server in 1.5.
>>>
>>> Thanks
>>> Anita
>>>
>>> --- Paul McMahan <pa...@gmail.com> wrote:
>>>
>>>       
>>>> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>>>>         
>>>>>    I would like to change (at least) the target to 1.5 in the
>>>>>           
>>>> trunk.
>>>>         
>>>>>    comments?
>>>>>           
>>>> +1 on changing the target to 1.5 in trunk.  I think the branches
>>>> should stay at 1.4 for now.
>>>>
>>>> Best wishes,
>>>> Paul
>>>>         
>
>
>
>  
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
>
>   


Re: Make trunk 1.5 only!

Posted by anita kulshreshtha <a_...@yahoo.com>.
   I did not think that changing <source> from 1.4 to 1.5 will cause
any problems. I tried it anyway.. The security module is giving
problem:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\anita\geronimo\g2.0\modules\geronimo-security\src\main\java\org\apache\geronimo\securit
y\ContextManager.java:[256,32] cannot find symbol
symbol  : method
getPrincipals(java.lang.Class<org.apache.geronimo.security.realm.provider
s.GeronimoCallerPrincipal>)
location: class javax.security.auth.Subject
   This compiles with source as 1.4. Any ideas?

Thanks
Anita

--- Paul McMahan <pa...@gmail.com> wrote:

> OK I misread your suggestion to say that the change should be made
> "at
> least on trunk". Now I realize you mean to change at least <target>
> if
> not also <source> in the pom.xml.   Why not change them both?
> 
> Paul
> 
> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
> >    IIUC, the branches/1.2 will always be 1.4 with an ability to run
> the
> > server in 1.5.
> >
> > Thanks
> > Anita
> >
> > --- Paul McMahan <pa...@gmail.com> wrote:
> >
> > > On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
> > > >    I would like to change (at least) the target to 1.5 in the
> > > trunk.
> > > >    comments?
> > >
> > > +1 on changing the target to 1.5 in trunk.  I think the branches
> > > should stay at 1.4 for now.
> > >
> > > Best wishes,
> > > Paul
> 



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Re: Make trunk 1.5 only!

Posted by Paul McMahan <pa...@gmail.com>.
OK I misread your suggestion to say that the change should be made "at
least on trunk". Now I realize you mean to change at least <target> if
not also <source> in the pom.xml.   Why not change them both?

Paul

On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>    IIUC, the branches/1.2 will always be 1.4 with an ability to run the
> server in 1.5.
>
> Thanks
> Anita
>
> --- Paul McMahan <pa...@gmail.com> wrote:
>
> > On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
> > >    I would like to change (at least) the target to 1.5 in the
> > trunk.
> > >    comments?
> >
> > +1 on changing the target to 1.5 in trunk.  I think the branches
> > should stay at 1.4 for now.
> >
> > Best wishes,
> > Paul

Re: Make trunk 1.5 only!

Posted by Dain Sundstrom <da...@iq80.com>.
+1 to make trunk Java5 only

dain

On Nov 27, 2006, at 8:18 AM, Paul McMahan wrote:

> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>>    I would like to change (at least) the target to 1.5 in the trunk.
>>    comments?
>
> +1 on changing the target to 1.5 in trunk.  I think the branches
> should stay at 1.4 for now.
>
> Best wishes,
> Paul


Re: Make trunk 1.5 only!

Posted by anita kulshreshtha <a_...@yahoo.com>.
   IIUC, the branches/1.2 will always be 1.4 with an ability to run the
server in 1.5.

Thanks
Anita

--- Paul McMahan <pa...@gmail.com> wrote:

> On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
> >    I would like to change (at least) the target to 1.5 in the
> trunk.
> >    comments?
> 
> +1 on changing the target to 1.5 in trunk.  I think the branches
> should stay at 1.4 for now.
> 
> Best wishes,
> Paul
> 



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Re: Make trunk 1.5 only!

Posted by Paul McMahan <pa...@gmail.com>.
On 11/27/06, anita kulshreshtha <a_...@yahoo.com> wrote:
>    I would like to change (at least) the target to 1.5 in the trunk.
>    comments?

+1 on changing the target to 1.5 in trunk.  I think the branches
should stay at 1.4 for now.

Best wishes,
Paul

Re: Make trunk 1.5 only!

Posted by Sachin Patel <sp...@gmail.com>.
+1

On Nov 27, 2006, at 10:05 AM, anita kulshreshtha wrote:

>    Servlet 2.5 (http://jcp.org/en/jsr/detail?id=154) requires jdk 1.5:
> "J2SE 5.0 is the minimum version of the underlying Java platform with
> which
> servlet containers must be built."
>    I would like to change (at least) the target to 1.5 in the trunk.
>    comments?
> Thanks
> Anita
>
>
>
> ______________________________________________________________________ 
> ______________
> Yahoo! Music Unlimited
> Access over 1 million songs.
> http://music.yahoo.com/unlimited


-sachin



Re: Make trunk 1.5 only!

Posted by Joe Bohn <jo...@earthlink.net>.
+1

Joe

anita kulshreshtha wrote:
>    Servlet 2.5 (http://jcp.org/en/jsr/detail?id=154) requires jdk 1.5:
> "J2SE 5.0 is the minimum version of the underlying Java platform with
> which
> servlet containers must be built."
>    I would like to change (at least) the target to 1.5 in the trunk.
>    comments?
> Thanks
> Anita 
> 
> 
>  
> ____________________________________________________________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs.
> http://music.yahoo.com/unlimited
>