Closed asd1245dss closed 7 years ago
karaf@root()> scr:list BundleId Component Name Default State Component Id State PIDs (Factory PID) [ 98] ScrServiceMBean enabled [ 0] [active ] [ 146] com.thingswise.appframework.jaxrs.utils.AppframeworkDynamicFeature enabled [ 1] [active ] [ 146] com.thingswise.appframework.jaxrs.utils.AuthorizationAnnotationProcessor enabled [ 2] [active ] [ 146] com.thingswise.appframework.jaxrs.utils.AuthorizationSchemes enabled [ 3] [active ] [ 146] com.thingswise.appframework.jaxrs.utils.OAuth2AnnotationProcessor enabled [ 4] [active ] [ 146] com.thingswise.appframework.jaxrs.utils.TokenHandlers enabled [ 5] [active ] [ 151] net.wapwag.authn.AuthenticationServiceImpl enabled [ 6] [active ] [ 152] net.wapwag.authn.dao.UserDaoImpl enabled [ 7] [active ] [ 154] net.wapwag.authn.mysql.hibernate.MysqlTxAwareEntityManager enabled [ 8] [active ] [ 155] net.wapwag.authn.rest.AuthenticationResource enabled [ 9] [active ] [ 155] net.wapwag.authn.rest.AuthenticationResourceExceptionMapper enabled [ 10] [active ] [ 155] net.wapwag.authn.rest.authz.AnyAuthenticatedUserScheme enabled [ 11] [active ] [ 155] net.wapwag.authn.rest.authz.AuthorizationOnlyUserIdScheme enabled [ 12] [active ] [ 155] net.wapwag.authn.rest.filter.AuthorizationFilter enabled [ 13] [active ] [ 155] net.wapwag.authn.rest.oauth2.UsersTokenHandler enabled [ 14] [active ] [ 206] net.wapwag.wemp.WaterEquipmentServiceImpl enabled [ 15] [active ] [ 207] net.wapwag.wemp.dao.WaterEquipmentDaoImpl enabled [ 16] [active ] [ 209] net.wapwag.wemp.mysql.hibernate.MysqlTxAwareEntityManager enabled [ 17] [active ] [ 210] net.wapwag.wemp.rest.ObjectResource enabled [ 18] [active ] [ 210] net.wapwag.wemp.rest.OrgGroupResource enabled [ 19] [active ] [ 210] net.wapwag.wemp.rest.UserResource enabled [ 20] [active ] [ 210] net.wapwag.wemp.rest.WempResourceExceptionMapper enabled [ 21] [active ] [ 210] net.wapwag.wemp.rest.authz.FineGrainedAuthorizationScheme enabled [ 22] [active ] [ 210] net.wapwag.wemp.rest.oauth2.WempTokenHandler enabled
There are indeed 2 resources with the same base URL: /user. Since they are deployed in the same container you need to change URL of one of them.
@alexlukichev I put the
net.wapwag.base-0.1.0-SNAPSHOT.kar
into the karaf deploy folder first,after its initialization,I put thenet.wapwag.authn-app.prod-0.1.0-SNAPSHOT.kar
. Now do the testcurl -H "authorization: Bearer token1" -v localhost:8181/services/user/uX0000000000000001
,passed Finally put thenet.wapwag.wemp-app.prod-0.1.0-SNAPSHOT.kar
,repeat the testHTTP ERROR 404
Problem accessing /services/user/uX0000000000000001. Reason:
Powered by Jetty://
It seems there may be some conflicts between the kar file But the servlet is't affected.