cancel
Showing results for 
Search instead for 
Did you mean: 

Exception installing Alfresco Community 4.2.c in Weblogic 12c

julioc
Champ in-the-making
Champ in-the-making
I am trying to deploy Alfresco Community 4.2.c in Weblogic 12c applications server, but it is throwing an exception about the cmisws servlet, where this is generating that the deployment of alfresco has been stopped.

Context:
- Windows Server 2008 R2 Enterprise
- Alfresco Community 4.2.c
- Weblogic Server 12c

The server log is indicating the following:

<20/06/2013 06:25:21 PM CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application "alfresco-com4.2.c".
weblogic.application.ModuleException: [HTTP:101216]Servlet: "cmisws" failed to preload on startup in Web application: "/alfresco".
java.lang.NullPointerException
at org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet.getDelegate(CmisWebServicesServlet.java:42)
at com.sun.xml.ws.transport.http.servlet.WSServlet.init(WSServlet.java:64)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
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.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:94)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:82)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:74)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:60)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:34)
at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:624)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:565)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1874)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1848)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1738)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781)
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:35)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212)
at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111)
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:35)
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:35)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:192)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:369)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:186)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:94)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1706)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781)
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:35)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet.getDelegate(CmisWebServicesServlet.java:42)
at com.sun.xml.ws.transport.http.servlet.WSServlet.init(WSServlet.java:64)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
Truncated. see log file for complete stacktrace


Can someone indicate me how to fix this?
6 REPLIES 6

abarisone
Star Contributor
Star Contributor
Hi,
according to supported platforms document http://www.alfresco.com/services/subscription/supported-platforms, Windows Server 2008 R2 Enterprise is good, but the last certified Oracle Weblogic Server is 11g Rel1(10.3.5).
Moreover which DB are you using?

Regards,
Andrea

julioc
Champ in-the-making
Champ in-the-making
Hi,
Yeap, I know that currently to deploy Alfresco Community 4.2.c in Weblogic 12c is not supported, but I want to know if someone know the reason about the cmisws servlet exception. Do you know or have an idea which can be the reason?
By the way, I am using Oracle 11g database.

abarisone
Star Contributor
Star Contributor
Hi,
I'm afraid it is tightly related to the interaction with Weblogic 12c.
Besides, since Oracle is not supported as well for community edition, it may be a source of further problems…

Regards,
Andrea

julioc
Champ in-the-making
Champ in-the-making
This is a possible error due to the way how WebLogic 12c tries to deploy Alfresco Community. I was able to install Alfresco Community 4.2.c on WebLogic 11g and Oracle 11g. Currently I want to do the deployment on WebLogic 12c but it is throwing the exception mentioned in this post.

novajim
Champ in-the-making
Champ in-the-making
Did you ever come up with a solution? I'm running into the same issue and am looking for a workable answer.

praveen33in
Champ in-the-making
Champ in-the-making
Hi Julio,
I am planning to do install Alf Community 5.0.a in Weblogic 12.1.2. Do you by any chance remember the steps that you followed to install Alfresco and deploy in Weblogic.

I thought of replicating looking at the documentation available for Enterprise version, but there is no EAR file in the Community version Zip. Any help is really appreciated. Thanks.