1 Reply Latest reply: Jul 27, 2014 4:00 PM by dvohra21 RSS

    Weblogic Deploy Issue with RestEasy

    7b17de25-8890-4899-b6d7-995e74578c8e

      I have a web project which uses RestEasy, I'm trying to deploy it to WebLogic(12.1.2) but deploying fails. I added WebLogic as a server in Eclipse and all tryings that I did is done with that. Stack trace is following :     (StubLifecycleHelper.java:60)     at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:34)     at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:648)     at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:593)     at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1924)     at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1901)     at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1791)     at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2807)     at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661)     at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:822)     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:42)     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:213)     at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)     at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)     at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)     at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)     at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)     at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)     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:586)     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148)     at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114)     at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339)     at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846)     at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275)     at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442)     at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176)     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:550)     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)     at weblogic.work.ExecuteThread.run(ExecuteThread.java:254) As I understood, weblogic assumes that project uses Jersey but there is nothing about Jersey in the project. Here is how I added RestEasy jar files to my project with maven :             org.jboss.resteasy    jaxrs-api    3.0.8.Final            org.jboss.resteasy    resteasy-jaxrs    3.0.8.Final        Here is my `weblogic.xml` :   

                  12.1.2        ProjectName                        true                    I've created basic project with same configuration(pom.xml) which uses RestEasy but I got exactly same exception. How can I specify to WebLogic that project uses RestEasy, not Jersey?