You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jesse Pangburn (JIRA)" <ji...@apache.org> on 2012/04/23 23:38:34 UTC

[jira] [Created] (CXF-4262) oauth sample in 2.5.3 release does not build without POM changes

Jesse Pangburn created CXF-4262:
-----------------------------------

             Summary: oauth sample in 2.5.3 release does not build without POM changes
                 Key: CXF-4262
                 URL: https://issues.apache.org/jira/browse/CXF-4262
             Project: CXF
          Issue Type: Bug
          Components: Samples
    Affects Versions: 2.5.3
            Reporter: Jesse Pangburn
            Priority: Minor


Tried building oauth client and server samples in 2.5.3 release using provided instruction:
mvn jetty:run
Also tried:
mvn clean install
These attempts in both client and server fail with the following relevant exception from the stack trace:
*****
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository

  org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
*****

Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
<version>2.5.3-SNAPSHOT</version>

Changing it to the following resolves the problem and lets the samples build:
<version>2.5.3</version>

The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-4262) oauth sample in 2.5.3 release does not build without POM changes

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin updated CXF-4262:
----------------------------------

    Fix Version/s: 2.5.4
         Assignee: Sergey Beryozkin
    
> oauth sample in 2.5.3 release does not build without POM changes
> ----------------------------------------------------------------
>
>                 Key: CXF-4262
>                 URL: https://issues.apache.org/jira/browse/CXF-4262
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.5.3
>            Reporter: Jesse Pangburn
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>              Labels: oauth, samples
>             Fix For: 2.5.4
>
>
> Tried building oauth client and server samples in 2.5.3 release using provided instruction:
> mvn jetty:run
> Also tried:
> mvn clean install
> These attempts in both client and server fail with the following relevant exception from the stack trace:
> *****
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository
>   org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
> *****
> Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
> <version>2.5.3-SNAPSHOT</version>
> Changing it to the following resolves the problem and lets the samples build:
> <version>2.5.3</version>
> The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.
> The server error is:
> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
> This is apparently due to the use of cglib in the pom.xml.  It can be resolved and let the server start by changing this entry in the pom.xml:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib</artifactId>
>             <version>2.1</version>
>         </dependency>
> to this:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib-nodep</artifactId>
>             <version>2.1</version>
>         </dependency>
> After this it is possible to start "mvn jetty:run" with no errors, though I don't know enough about the sample to verify its functionality yet.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-4262) oauth sample in 2.5.3 release does not build without POM changes

Posted by "Jesse Pangburn (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Pangburn updated CXF-4262:
--------------------------------

    Description: 
Tried building oauth client and server samples in 2.5.3 release using provided instruction:
mvn jetty:run
Also tried:
mvn clean install
These attempts in both client and server fail with the following relevant exception from the stack trace:
*****
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository

  org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
*****

Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
<version>2.5.3-SNAPSHOT</version>

Changing it to the following resolves the problem and lets the samples build:
<version>2.5.3</version>

The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.

The server error is:
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V

This is apparently due to the use of cglib in the pom.xml.  It can be resolved and let the server start by changing this entry in the pom.xml:
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib</artifactId>
            <version>2.1</version>
        </dependency>
to this:
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib-nodep</artifactId>
            <version>2.1</version>
        </dependency>

After this it is possible to start "mvn jetty:run" with no errors, though I don't know enough about the sample to verify its functionality yet.


  was:
Tried building oauth client and server samples in 2.5.3 release using provided instruction:
mvn jetty:run
Also tried:
mvn clean install
These attempts in both client and server fail with the following relevant exception from the stack trace:
*****
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository

  org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
*****

Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
<version>2.5.3-SNAPSHOT</version>

Changing it to the following resolves the problem and lets the samples build:
<version>2.5.3</version>

The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.



    
> oauth sample in 2.5.3 release does not build without POM changes
> ----------------------------------------------------------------
>
>                 Key: CXF-4262
>                 URL: https://issues.apache.org/jira/browse/CXF-4262
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.5.3
>            Reporter: Jesse Pangburn
>            Priority: Minor
>              Labels: oauth, samples
>
> Tried building oauth client and server samples in 2.5.3 release using provided instruction:
> mvn jetty:run
> Also tried:
> mvn clean install
> These attempts in both client and server fail with the following relevant exception from the stack trace:
> *****
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository
>   org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
> *****
> Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
> <version>2.5.3-SNAPSHOT</version>
> Changing it to the following resolves the problem and lets the samples build:
> <version>2.5.3</version>
> The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.
> The server error is:
> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
> This is apparently due to the use of cglib in the pom.xml.  It can be resolved and let the server start by changing this entry in the pom.xml:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib</artifactId>
>             <version>2.1</version>
>         </dependency>
> to this:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib-nodep</artifactId>
>             <version>2.1</version>
>         </dependency>
> After this it is possible to start "mvn jetty:run" with no errors, though I don't know enough about the sample to verify its functionality yet.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4262) oauth sample in 2.5.3 release does not build without POM changes

Posted by "Jesse Pangburn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261193#comment-13261193 ] 

Jesse Pangburn commented on CXF-4262:
-------------------------------------

That is a better example in many ways, the only thing I don't like is that both client and server endpoints reside on the same port.  The sample that comes with CXF has them on different ports so it's easy to see what stuff belongs to the client service and what belongs to the server service.

That said, are the examples in the CXF source code not maintained anymore?  Seems like they should at least compile and run, even if they're not the most advanced samples around.

thanks,
Jesse
                
> oauth sample in 2.5.3 release does not build without POM changes
> ----------------------------------------------------------------
>
>                 Key: CXF-4262
>                 URL: https://issues.apache.org/jira/browse/CXF-4262
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.5.3
>            Reporter: Jesse Pangburn
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>              Labels: oauth, samples
>             Fix For: 2.5.4
>
>
> Tried building oauth client and server samples in 2.5.3 release using provided instruction:
> mvn jetty:run
> Also tried:
> mvn clean install
> These attempts in both client and server fail with the following relevant exception from the stack trace:
> *****
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository
>   org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
> *****
> Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
> <version>2.5.3-SNAPSHOT</version>
> Changing it to the following resolves the problem and lets the samples build:
> <version>2.5.3</version>
> The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.
> The server error is:
> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
> This is apparently due to the use of cglib in the pom.xml.  It can be resolved and let the server start by changing this entry in the pom.xml:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib</artifactId>
>             <version>2.1</version>
>         </dependency>
> to this:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib-nodep</artifactId>
>             <version>2.1</version>
>         </dependency>
> After this it is possible to start "mvn jetty:run" with no errors, though I don't know enough about the sample to verify its functionality yet.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4262) oauth sample in 2.5.3 release does not build without POM changes

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261592#comment-13261592 ] 

Sergey Beryozkin commented on CXF-4262:
---------------------------------------

> That is a better example in many ways, the only thing I don't like is that both client and server endpoints reside on the same port
Agreed, running the client web application in a different container instance would be better/clearer.
The other enhancement that would need to go into a demo is to with getting the Authorization Service running in its own container too - that will be easier to do once we have some SSO solution in place. We can consider also having a collocated Authorization Service interposing the remote one...

> That said, are the examples in the CXF source code not maintained anymore? Seems like they should at least compile and run, even if they're not the most advanced samples around.

They are, the cglib issue was fixed in 2.6.-SNAPSHOT and Glen and myself tested this very demo. Right now though the oauth demo plus a couple of others, are not referenced from the parent pom, hence the CXF version in the released oauth demo have not been updated both on the trunk & 2.5.x. We'll sort it out in time for the next release 
 
                
> oauth sample in 2.5.3 release does not build without POM changes
> ----------------------------------------------------------------
>
>                 Key: CXF-4262
>                 URL: https://issues.apache.org/jira/browse/CXF-4262
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.5.3
>            Reporter: Jesse Pangburn
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>              Labels: oauth, samples
>             Fix For: 2.5.4
>
>
> Tried building oauth client and server samples in 2.5.3 release using provided instruction:
> mvn jetty:run
> Also tried:
> mvn clean install
> These attempts in both client and server fail with the following relevant exception from the stack trace:
> *****
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository
>   org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
> *****
> Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
> <version>2.5.3-SNAPSHOT</version>
> Changing it to the following resolves the problem and lets the samples build:
> <version>2.5.3</version>
> The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.
> The server error is:
> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
> This is apparently due to the use of cglib in the pom.xml.  It can be resolved and let the server start by changing this entry in the pom.xml:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib</artifactId>
>             <version>2.1</version>
>         </dependency>
> to this:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib-nodep</artifactId>
>             <version>2.1</version>
>         </dependency>
> After this it is possible to start "mvn jetty:run" with no errors, though I don't know enough about the sample to verify its functionality yet.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CXF-4262) oauth sample in 2.5.3 release does not build without POM changes

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-4262.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6.1
    
> oauth sample in 2.5.3 release does not build without POM changes
> ----------------------------------------------------------------
>
>                 Key: CXF-4262
>                 URL: https://issues.apache.org/jira/browse/CXF-4262
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.5.3
>            Reporter: Jesse Pangburn
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>              Labels: oauth, samples
>             Fix For: 2.5.4, 2.6.1
>
>
> Tried building oauth client and server samples in 2.5.3 release using provided instruction:
> mvn jetty:run
> Also tried:
> mvn clean install
> These attempts in both client and server fail with the following relevant exception from the stack trace:
> *****
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository
>   org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
> *****
> Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
> <version>2.5.3-SNAPSHOT</version>
> Changing it to the following resolves the problem and lets the samples build:
> <version>2.5.3</version>
> The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.
> The server error is:
> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
> This is apparently due to the use of cglib in the pom.xml.  It can be resolved and let the server start by changing this entry in the pom.xml:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib</artifactId>
>             <version>2.1</version>
>         </dependency>
> to this:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib-nodep</artifactId>
>             <version>2.1</version>
>         </dependency>
> After this it is possible to start "mvn jetty:run" with no errors, though I don't know enough about the sample to verify its functionality yet.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-4262) oauth sample in 2.5.3 release does not build without POM changes

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260511#comment-13260511 ] 

Sergey Beryozkin commented on CXF-4262:
---------------------------------------

Please check CXF examples at https://github.com/Talend/tesb-rt-se/tree/master/examples/cxf for a more advanced demonstration of the current OAuth support in CXF
                
> oauth sample in 2.5.3 release does not build without POM changes
> ----------------------------------------------------------------
>
>                 Key: CXF-4262
>                 URL: https://issues.apache.org/jira/browse/CXF-4262
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.5.3
>            Reporter: Jesse Pangburn
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>              Labels: oauth, samples
>             Fix For: 2.5.4
>
>
> Tried building oauth client and server samples in 2.5.3 release using provided instruction:
> mvn jetty:run
> Also tried:
> mvn clean install
> These attempts in both client and server fail with the following relevant exception from the stack trace:
> *****
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.cxf.samples:cxf-samples' not found in repository: Unable to download the artifact from any repository
>   org.apache.cxf.samples:cxf-samples:pom:2.5.3-SNAPSHOT
> *****
> Looking in the pom.xml file for this 2.5.3-SNAPSHOT problem, I find this entry:
> <version>2.5.3-SNAPSHOT</version>
> Changing it to the following resolves the problem and lets the samples build:
> <version>2.5.3</version>
> The client now starts with "mvn jetty:run", but the server still fails with an apparently unrelated error.  Still, at least it builds with this change.
> The server error is:
> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
> This is apparently due to the use of cglib in the pom.xml.  It can be resolved and let the server start by changing this entry in the pom.xml:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib</artifactId>
>             <version>2.1</version>
>         </dependency>
> to this:
>         <dependency>
>             <groupId>cglib</groupId>
>             <artifactId>cglib-nodep</artifactId>
>             <version>2.1</version>
>         </dependency>
> After this it is possible to start "mvn jetty:run" with no errors, though I don't know enough about the sample to verify its functionality yet.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira