cannot publish but manual can't deploy to the administration console

Hello

I work on a project with spring 4.23, 4.03 spring-security. Work well with weblogic maven plugin, I can deploy on the weblogic 12.1.2 without problem.

But when I use the strange thing of service edition arrives and the publication has not, I am sure that I have @EnableWebSecurity and @Configuration in my SecurityConfig file

Kindly help me to understand what goes wrong, thank you.

Here is the error:

weblogic.application.ModuleException: java.lang.IllegalStateException: org.springframework.security.config.annotation.ObjectPostProcessor is a required bean. Make sure that you have used @EnableWebSecurity and @Configuration

java.lang.Exception: Exception received from the pilot deployment. Check the log of the errors discovered for more details.

at oracle.eclipse.tools.weblogic.server.internal.DeploymentProgressListener.watch(DeploymentProgressListener.java:189)

at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.redeploy(WlsJ2EEDeploymentHelper.java:644)

at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:474)

at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1455)

at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:913)

at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:704)

at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:555)

at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)

at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3172)

to org.eclipse.wst.server.core.internal.Server$ PublishJob.run (Server.java:345)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Caused by: weblogic.application.ModuleException: java.lang.IllegalStateException: org.springframework.security.config.annotation.ObjectPostProcessor is a required bean. Make sure that you have used @EnableWebSecurity and @Configuration

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

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

to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:213)

to 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)

to 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)

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

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

to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:550)

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

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

Caused by: java.lang.IllegalStateException: org.springframework.security.config.annotation.ObjectPostProcessor is a required bean. Make sure that you have used @EnableWebSecurity and @Configuration

to org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter$ 1.postProcess(WebSecurityConfigurerAdapter.java:79)

at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.getHttp(WebSecurityConfigurerAdapter.java:172)

at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.init(WebSecurityConfigurerAdapter.java:290)

at com.gammon.pcms.config.SecurityConfig.init(SecurityConfig.java:0)

at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.init(WebSecurityConfigurerAdapter.java:67)

at com.gammon.pcms.config.SecurityConfig.init(SecurityConfig.java:0)

to com.gammon.pcms.config.SecurityConfig$ $EnhancerBySpringCGLIB$ $66e1b5df.init (< generated >: 0)

at org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.init(AbstractConfiguredSecurityBuilder.java:370)

at org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.doBuild(AbstractConfiguredSecurityBuilder.java:324)

at org.springframework.security.config.annotation.AbstractSecurityBuilder.build(AbstractSecurityBuilder.java:41)

at org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.springSecurityFilterChain(WebSecurityConfiguration.java:105)

to org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$ $EnhancerBySpringCGLIB$ $d9c7728c. CGLIB$ springSecurityFilterChain$ 2(<generated>:0))

to org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$ $EnhancerBySpringCGLIB$ $d9c7728c$ $FastClassBySpringCGLIB$ $d5f1163a.invoke (< generated >: 0)

at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)

to org.springframework.context.annotation.ConfigurationClassEnhancer$ BeanMethodInterceptor.intercept (ConfigurationClassEnhancer.java:318)

to org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$ $EnhancerBySpringCGLIB$ $d9c7728c.springSecurityFilterChain (< generated >: 0)

at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)

at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)

to org.springframework.beans.factory.support.AbstractBeanFactory$ 1.getObject(AbstractBeanFactory.java:306)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)

at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)

to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:661)

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

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

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

at weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:241)

at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:198)

at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:186)

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

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)

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

to 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)

I fixed that with the help of the link below:

https://github.com/spring-projects/spring-loaded/issues/49

I have replace under method in my SecurityConfig:

@Override

@Autowired

public void setObjectPostProcessor (ObjectPostProcessor objectPostProcessor) {}

super.setObjectPostProcessor (objectPostProcessor);

}

@Override

@Autowired

public void setApplicationContext (ApplicationContext context) {}

super.setApplicationContext (context);

}

@Override

@Autowired

{} public void setAuthenticationConfiguration (AuthenticationConfiguration authenticationConfiguration)

super.setAuthenticationConfiguration (authenticationConfiguration);

}

Look how the ClassLoader to publish is different through the publication of works and deploy maven/manual, some @Autowired does not work.

I have a base class for the other controller to extend, but the @Autowired does not work, I have to @Override the composer in the child's class...

Public MustInherit class GWTSpringController extends PersistentRemoteService implements controller {ServletContextAware}

@Override

@Autowired / /.<-- this="" not="">

{} public void setBeanManager (Manager PersistentBeanManager)

super.setBeanManager (manager);

}

...

}

@Service

public class userservicecontroller extends GWTSpringController implements {UserServiceRemote}

@Override

@Autowired / / I need to override the setter in any class of child...

{} public void setBeanManager (Manager PersistentBeanManager)

super.setBeanManager (manager);

}

...

}

Tags: Fusion Middleware

Similar Questions

Maybe you are looking for

  • How to clear the cache keyboard on iPhone?

    I am a new user of iPhone. so it would be a stupid question, please never mind. During the strike, I discovered the suggestions were wrong, perhaps that the system just remembered the bad old tying. I need to erase the coz it's very annoying. Someone

  • Satellite A100-206 supervisor password problem

    Hello We have a Satellite A100-206 at the office. A colleague trying to protect the laptop set the user password in the bios.I do not exactly know what she does but at startup is asked for a password. Then she ask me to remove the password so I typed

  • Pavilion dm1z-4200: Pavilion dm1z-4200 multiple problems

    My laptop, model mentioned above, is about 4 years old and the display of several annoying habits or problems of age at least. First, he takes a loonngg to exit the mode time "sleep" despite the repeated keyboard taps, clicks of mouse and touchpad ta

  • Activity report of my child is generated automatically?

    If it is generated automatically, how often?  If it is not generated automatically, how to request a report?

  • void / vi façade opens when main vi opens

    When I opened my main vi I one of my signs in front of vi that opens.  I looked in properties for the sub vi and see the front loading is NOT checked. Is there something else I need to look?