You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Robert Liguori (JIRA)" <ji...@apache.org> on 2011/07/26 01:09:09 UTC

[jira] [Created] (CXF-3685) Packaging issue in the jax_rs_basic_https sample project.

Packaging issue in the jax_rs_basic_https sample project.
---------------------------------------------------------

                 Key: CXF-3685
                 URL: https://issues.apache.org/jira/browse/CXF-3685
             Project: CXF
          Issue Type: Bug
          Components: Samples
    Affects Versions: 2.4.1
         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
            Reporter: Robert Liguori
            Priority: Minor


The package statements in the jax_rs_basic_https sample project files do not match the actually package names.

Example:

package httpsdemo.client; vs. main.java.httpsdemo.client

Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CXF-3685) IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).

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

Robert Liguori closed CXF-3685.
-------------------------------

    Resolution: Duplicate

This issue has been superseded by CXF-3690; Refactor packaging in approx. six sample projects, for uniformity across examples. 

> IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>         Attachments: packaging_issue.gif
>
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: This appears to be fine with other example projects, but not this one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-3685) Packaging issue in the jax_rs_basic_https sample project.

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

Robert Liguori commented on CXF-3685:
-------------------------------------

Hmmm... I see your point, but both Eclipse and NetBeans flag it as a problem.  

Perhaps the IDEs need to make adjustments for this particular use case?

> Packaging issue in the jax_rs_basic_https sample project.
> ---------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CXF-3685) Packaging issue in the jax_rs_basic_https sample project.

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

Robert Liguori edited comment on CXF-3685 at 7/26/11 3:00 AM:
--------------------------------------------------------------

I look at some of the other projects and they do the same as was done with this project... but the IDEs don't flag any issues... so your observation is correct... thanks!

However, something hokey is going on here as both NetBeans and Eclipse don't like something about this one particular project... and for whatever reason, they are both pointing to the packaging.

      was (Author: rliguori):
    Hmmm... I see your point, but both Eclipse and NetBeans flag it as a problem.  

Perhaps the IDEs need to make adjustments for this particular use case?
  
> Packaging issue in the jax_rs_basic_https sample project.
> ---------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-3685) Packaging issue in the jax_rs_basic_https sample project.

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

Robert Liguori commented on CXF-3685:
-------------------------------------

I'm attaching a screenshot of the issue as I'm a little confused here.

The error show by Eclipse is: The declared package "httpsdemo.client" does not match the expected package "main.java.httpsdemo.client"

NetBean's error is "Incorrect Package".

> Packaging issue in the jax_rs_basic_https sample project.
> ---------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3685) Packaging issue in the jax_rs_basic_https sample project.

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

Robert Liguori updated CXF-3685:
--------------------------------

    Attachment: packaging_issue.gif

> Packaging issue in the jax_rs_basic_https sample project.
> ---------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>         Attachments: packaging_issue.gif
>
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-3685) Packaging issue in the jax_rs_basic_https sample project.

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

Glen Mazza commented on CXF-3685:
---------------------------------

Hi Robert.  We're following the Maven Standard Directory layout (http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html) which dictates a common structure for all source code, so people can hop from project to project without needing to be trained on each project's software layout.  Source code is stored under main/java and does not play a part in the Java code's package structure.  Just about every Mavenized project in Apache follows this structure.

There really is no bug here.


> Packaging issue in the jax_rs_basic_https sample project.
> ---------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3685) IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).

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

Robert Liguori updated CXF-3685:
--------------------------------

    Description: 
The package statements in the jax_rs_basic_https sample project files do not match the actually package names.

Example:

package httpsdemo.client; vs. main.java.httpsdemo.client

Note: This appears to be fine with other example projects, but not this one.

  was:
The package statements in the jax_rs_basic_https sample project files do not match the actually package names.

Example:

package httpsdemo.client; vs. main.java.httpsdemo.client

Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

        Summary: IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).  (was: Packaging issue in the jax_rs_basic_https sample project.)

> IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>         Attachments: packaging_issue.gif
>
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: This appears to be fine with other example projects, but not this one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-3685) IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).

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

Glen Mazza commented on CXF-3685:
---------------------------------

Eclipse is assuming that the package root starts with the root directory (and hence main is part of the project), because you did not instruct the IDE otherwise.  From the command prompt, you need to type mvn eclipse:eclipse, then import the project into Eclipse, it should detect the proper directory structure that way.  I'm not sure about Netbeans, but unless instructed otherwise it will also assume the base directory (and not main/java) is the start of the source code, and hence where the package structure must start (i.e., "maven/java/...".

We do not build (compile) with Eclipse or Netbeans, we just code from there (and some use IntelliJ or text editors, etc.)  Building/compiling is done using Maven with a separate console window (although some use Maven IDE plugins, but its essentially the same story.)  We have PMD and checkstyle tools incorporated into the Maven build process to make sure the code is clean but in general those are our only concerns.  Specific IDE complaints are not our concern because developers can and do use many different types of IDEs for development -- the only thing we have in common is Maven for building.

The Maven directory structure we're following you can also see in countless other projects -- WSS4J, Camel, Karaf, Glassfish Metro, etc.  This is an IDE configuration error on your part, not something wrong with the code.

> IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>         Attachments: packaging_issue.gif
>
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: This appears to be fine with other example projects, but not this one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-3685) IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).

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

Glen Mazza commented on CXF-3685:
---------------------------------

Actually, if this is happening only with this project (did you run mvn eclipse:eclipse on it and import it as an already existing project?) there's a slight chance of a configuration error somewhere within CXF code causing this.  The times I've seen this in Eclipse, almost always (if not always) though it was due to an IDE configuration error on my part.

> IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>         Attachments: packaging_issue.gif
>
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: This appears to be fine with other example projects, but not this one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CXF-3685) IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).

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

Robert Liguori commented on CXF-3685:
-------------------------------------

I had done mvn eclipse:eclispe at the base pom.xml, which configured all the examples... I just did it at the project level for jax_rs_basic_https specifically... the errors in Eclipse are still there.

> IDEs flagging issue in the jax_rs_basic_https sample project (as packaging related).
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>         Attachments: packaging_issue.gif
>
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: This appears to be fine with other example projects, but not this one.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CXF-3685) Packaging issue in the jax_rs_basic_https sample project.

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

Robert Liguori updated CXF-3685:
--------------------------------

    Comment: was deleted

(was: I just looked at some of the other projects and they do the same as was done with this project (i.e., include src/main/java)... but the IDEs don't flag any issues... so your observation is correct... thanks!

However, something hokey is going on here as both NetBeans and Eclipse don't like something about this one particular project... and for whatever reason, they are both pointing to the packaging.)

> Packaging issue in the jax_rs_basic_https sample project.
> ---------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CXF-3685) Packaging issue in the jax_rs_basic_https sample project.

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

Robert Liguori edited comment on CXF-3685 at 7/26/11 3:01 AM:
--------------------------------------------------------------

I just looked at some of the other projects and they do the same as was done with this project (i.e., include src/main/java)... but the IDEs don't flag any issues... so your observation is correct... thanks!

However, something hokey is going on here as both NetBeans and Eclipse don't like something about this one particular project... and for whatever reason, they are both pointing to the packaging.

      was (Author: rliguori):
    I look at some of the other projects and they do the same as was done with this project... but the IDEs don't flag any issues... so your observation is correct... thanks!

However, something hokey is going on here as both NetBeans and Eclipse don't like something about this one particular project... and for whatever reason, they are both pointing to the packaging.
  
> Packaging issue in the jax_rs_basic_https sample project.
> ---------------------------------------------------------
>
>                 Key: CXF-3685
>                 URL: https://issues.apache.org/jira/browse/CXF-3685
>             Project: CXF
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 2.4.1
>         Environment: JAX-RS Basic Demo With HTTPS communications (jax_rs_basic_https)
>            Reporter: Robert Liguori
>            Priority: Minor
>
> The package statements in the jax_rs_basic_https sample project files do not match the actually package names.
> Example:
> package httpsdemo.client; vs. main.java.httpsdemo.client
> Note: I'm not sure how the developer of this example project could have missed this, am I missing something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira