Bug 802590 - ClinicController is annotated with @Component
Summary: ClinicController is annotated with @Component
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise WFK Platform 2
Classification: Retired
Component: Spring, Examples
Version: 2.0.0.ER3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.0.0.ER7
Assignee: Isaac Rooskov
QA Contact: Tomas Repel
URL:
Whiteboard: petclinic
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-13 02:26 UTC by Rebecca Newton
Modified: 2015-08-06 05:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, ClinicController was annotated with @Component instead of @Controller. This meant http://localhost:8080/petclinic/welcome.do failed to work. This is fixed with the release of JBoss Web Framework Kit 2.
Clone Of:
Environment:
Last Closed: 2012-08-13 13:20:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rebecca Newton 2012-03-13 02:26:53 UTC
Description of problem:
From: https://bugzilla.redhat.com/show_bug.cgi?id=746970

Please note that http://localhost:8080/petclinic-fixed/welcome.do does not work
in this version because ClinicController is annotated with @Component instead
of @Controller


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Rebecca Newton 2012-03-13 02:29:44 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
ClinicController is annotated with @Component instead of @Controller. This means <ulink url="http://localhost:8080/petclinic-fixed/welcome.do"/> will fail to work.

Comment 3 Marius Bogoevici 2012-04-05 19:46:13 UTC
Technical note can be removed, the distributed example is correct.

Comment 5 Tomas Repel 2012-06-04 12:43:57 UTC
Verified in WFK2 ER7.

Comment 6 Tomas Repel 2012-06-04 12:43:57 UTC
Deleted Technical Notes Contents.

Old Contents:
ClinicController is annotated with @Component instead of @Controller. This means <ulink url="http://localhost:8080/petclinic-fixed/welcome.do"/> will fail to work.

Comment 10 Rebecca Newton 2012-06-20 06:53:31 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
ClinicController is annotated with @Component instead of @Controller. This means http://localhost:8080/petclinic-fixed/welcome.do will fail to work.

Comment 11 Rebecca Newton 2012-06-20 06:55:22 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-ClinicController is annotated with @Component instead of @Controller. This means http://localhost:8080/petclinic-fixed/welcome.do will fail to work.+Previously, ClinicController was annotated with @Component instead of @Controller. This meant http://localhost:8080/petclinic-fixed/welcome.do failed to work. This is fixed with the release of JBoss Web Framework Kit 2, and the ClinicController class is annotated with @Controller in both cases.

Comment 13 Karel Piwko 2012-06-22 07:09:39 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Previously, ClinicController was annotated with @Component instead of @Controller. This meant http://localhost:8080/petclinic-fixed/welcome.do failed to work. This is fixed with the release of JBoss Web Framework Kit 2, and the ClinicController class is annotated with @Controller in both cases.+Previously, ClinicController was annotated with @Component instead of @Controller. This meant http://localhost:8080/petclinic/welcome.do failed to work. This is fixed with the release of JBoss Web Framework Kit 2.

Comment 15 Isaac Rooskov 2012-08-13 03:50:32 UTC
Docs doesn't usually control or deal with code examples (and I believe bec didn't). I see she added the correct technical note information for the WFK 2.0 release, so who should this be assigned to now? Or should it be closed?

Thanks, 

Isaac


Note You need to log in before you can comment on or make changes to this bug.