AnsweredAssumed Answered

Blaze 7.4 Deployment failed with error "org.glassfish.jersey.server.model.ModelValidationException"

Question asked by anoobkumar on Mar 9, 2018
Latest reply on Mar 9, 2018 by karenyue@fairisaac.com

We are upgrading our project from Blaze 7.1.1 to 7.4. Code remediation is completed and when the code is getting deployed to WebLogic 12.2.1 server, the deployment getting failed with below error. Could anyone let me know if I miss anything.

I am getting Jersey error in logs, but my project is not using any Jersey or REST webservice.

 

"org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization."

 

 

--------------------

WARNING: No injection source found for a parameter of type public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.promItem(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,java.lang.String,java.io.InputStream) at index 2.

WARNING: No injection source found for a parameter of type public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.uploadRules(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.ws.rs.core.UriInfo,java.io.InputStream,org.glassfish.jersey.media.multipart.FormDataContentDisposition,boolean,com.blazesoft.rmaserver.server.java.dmp.api.NdDeployRulesOptions,java.lang.String) at index 3.

WARNING: No injection source found for a parameter of type public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.deployRuleService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,com.blazesoft.rmaserver.server.java.dmp.api.NdDeployRulesOptions,java.lang.String) at index 2.

WARNING: No injection source found for a parameter of type public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.functions.endpoints.NdRmaFunctionsEndpoints.pushInterface(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.ws.rs.core.UriInfo,java.util.List,java.lang.String,com.fico.dmp.functions.descriptor.FunctionInterfaceDescriptor) at index 3.

WARNING: A resource model has ambiguous (sub-)resource method for HTTP method GET and input mime-types as defined by"@Consumes" and "@Produces" annotations at Java methods public java.lang.String com.blazesoft.server.deploy.dmp.endpoints.NdStandardDMPEndpoints.getComponentDescriptor() and public java.lang.String com.blazesoft.server.deploy.dmp.endpoints.NdStandardDMPEndpoints.getComponentDescriptor() at matching regular expression /component\.json. These two methods produces and consumes exactly the same mime-types and therefore their invocation as a resource methods will always fail.

>

####<Mar 9, 2018 2:10:01 PM EST> <Error> <HTTP> <5CG739492G> <AdminServer> <[STANDBY] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <801b1e35-0e56-4df6-a238-7c49d2d57c57-0000002c> <1520622601772> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-101216> <Servlet: "JAX-RS/Jersey#1" failed to preload on startup in Web application: "/BI_MRQTRules".

org.glassfish.jersey.server.model.ModelValidationException: Validation of the application resource model has failed during application initialization.

[[FATAL] No injection source found for a parameter of type public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.promItem(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,java.lang.String,java.io.InputStream) at index 2.; source='ResourceMethod{httpMethod=POST, consumedTypes=[multipart/form-data], producedTypes=[application/xml, application/json], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@3283f155]}, definitionMethod=public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.promItem(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,java.lang.String,java.io.InputStream), parameters=[Parameter [type=interface javax.servlet.http.HttpServletRequest, source=null, defaultValue=null], Parameter [type=interface javax.servlet.http.HttpServletResponse, source=null, defaultValue=null], Parameter [type=class java.lang.String, source=projectPath, defaultValue=null], Parameter [type=class java.lang.String, source=itemPath, defaultValue=null], Parameter [type=class java.io.InputStream, source=itemFile, defaultValue=null]], responseType=class javax.ws.rs.core.Response}, nameBindings=[]}', [FATAL] No injection source found for a parameter of type public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.uploadRules(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.ws.rs.core.UriInfo,java.io.InputStream,org.glassfish.jersey.media.multipart.FormDataContentDisposition,boolean,com.blazesoft.rmaserver.server.java.dmp.api.NdDeployRulesOptions,java.lang.String) at index 3.; source='ResourceMethod{httpMethod=POST, consumedTypes=[multipart/form-data], producedTypes=[application/xml, application/json], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@7cc6bb2]}, definitionMethod=public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.uploadRules(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.ws.rs.core.UriInfo,java.io.InputStream,org.glassfish.jersey.media.multipart.FormDataContentDisposition,boolean,com.blazesoft.rmaserver.server.java.dmp.api.NdDeployRulesOptions,java.lang.String), parameters=[Parameter [type=interface javax.servlet.http.HttpServletRequest, source=null, defaultValue=null], Parameter [type=interface javax.servlet.http.HttpServletResponse, source=null, defaultValue=null], Parameter [type=interface javax.ws.rs.core.UriInfo, source=null, defaultValue=null], Parameter [type=class java.io.InputStream, source=uploadFile, defaultValue=null], Parameter [type=class org.glassfish.jersey.media.multipart.FormDataContentDisposition, source=uploadFile, defaultValue=null], Parameter [type=boolean, source=deployAfterUpload, defaultValue=false], Parameter [type=class com.blazesoft.rmaserver.server.java.dmp.api.NdDeployRulesOptions, source=deployOptions, defaultValue=null], Parameter [type=class java.lang.String, source=wizardType, defaultValue=null]], responseType=class javax.ws.rs.core.Response}, nameBindings=[]}', [FATAL] No injection source found for a parameter of type public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.deployRuleService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,com.blazesoft.rmaserver.server.java.dmp.api.NdDeployRulesOptions,java.lang.String) at index 2.; source='ResourceMethod{httpMethod=POST, consumedTypes=[multipart/form-data], producedTypes=[application/xml, application/json], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@6cf1c259]}, definitionMethod=public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.endpoints.NdAdvisorRmaDMPEndpoints.deployRuleService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,com.blazesoft.rmaserver.server.java.dmp.api.NdDeployRulesOptions,java.lang.String), parameters=[Parameter [type=interface javax.servlet.http.HttpServletRequest, source=null, defaultValue=null], Parameter [type=interface javax.servlet.http.HttpServletResponse, source=null, defaultValue=null], Parameter [type=class com.blazesoft.rmaserver.server.java.dmp.api.NdDeployRulesOptions, source=deployOptions, defaultValue=null], Parameter [type=class java.lang.String, source=wizardType, defaultValue=null]], responseType=class javax.ws.rs.core.Response}, nameBindings=[]}', [FATAL] No injection source found for a parameter of type public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.functions.endpoints.NdRmaFunctionsEndpoints.pushInterface(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.ws.rs.core.UriInfo,java.util.List,java.lang.String,com.fico.dmp.functions.descriptor.FunctionInterfaceDescriptor) at index 3.; source='ResourceMethod{httpMethod=POST, consumedTypes=[multipart/form-data], producedTypes=[application/json], suspended=false, suspendTimeout=0, suspendTimeoutUnit=MILLISECONDS, invocable=Invocable{handler=ClassBasedMethodHandler{handlerClass=class com.blazesoft.rmaserver.server.java.dmp.functions.endpoints.NdRmaFunctionsEndpoints, handlerConstructors=[org.glassfish.jersey.server.model.HandlerConstructor@63908499]}, definitionMethod=public javax.ws.rs.core.Response com.blazesoft.rmaserver.server.java.dmp.functions.endpoints.NdRmaFunctionsEndpoints.pushInterface(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.ws.rs.core.UriInfo,java.util.List,java.lang.String,com.fico.dmp.functions.descriptor.FunctionInterfaceDescriptor), parameters=[Parameter [type=interface javax.servlet.http.HttpServletRequest, source=null, defaultValue=null], Parameter [type=interface javax.servlet.http.HttpServletResponse, source=null, defaultValue=null], Parameter [type=interface javax.ws.rs.core.UriInfo, source=null, defaultValue=null], Parameter [type=interface java.util.List, source=interfaceJars, defaultValue=null], Parameter [type=class java.lang.String, source=functionId, defaultValue=null], Parameter [type=class com.fico.dmp.functions.descriptor.FunctionInterfaceDescriptor, source=interface, defaultValue=null]], responseType=class javax.ws.rs.core.Response}, nameBindings=[]}', [FATAL] A resource model has ambiguous (sub-)resource method for HTTP method GET and input mime-types as defined by"@Consumes" and "@Produces" annotations at Java methods public java.lang.String com.blazesoft.server.deploy.dmp.endpoints.NdStandardDMPEndpoints.getComponentDescriptor() and public java.lang.String com.blazesoft.server.deploy.dmp.endpoints.NdStandardDMPEndpoints.getComponentDescriptor() at matching regular expression /component\.json. These two methods produces and consumes exactly the same mime-types and therefore their invocation as a resource methods will always fail.; source='org.glassfish.jersey.server.model.RuntimeResource@4e34c8e7']

at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:555)

at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184)

at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350)

at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347)

at org.glassfish.jersey.internal.Errors.process(Errors.java:315)

at org.glassfish.jersey.internal.Errors.process(Errors.java:297)

at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)

at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:347)

at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:390)

at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)

at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:362)

at javax.servlet.GenericServlet.init(GenericServlet.java:244)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:343)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:294)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)

at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)

at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)

at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)

at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:99)

at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:87)

at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:71)

at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:57)

at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:31)

at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:673)

at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:612)

at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2053)

at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:2030)

at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1919)

at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3063)

at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1830)

at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:875)

at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)

at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)

at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)

at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:237)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:232)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)

at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:82)

at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:52)

at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:753)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)

at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:263)

at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:67)

at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)

at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)

at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:601)

at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:171)

at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:121)

at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:343)

at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:895)

at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1422)

at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:454)

at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:181)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)

at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:643)

at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)

at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)

at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)

at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)

at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)

>

Outcomes