chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Streit <mcs...@gmail.com>
Subject Re: [jira] [Created] (CMIS-812) Error deploying chemistry-opencmis-server-inmemory-0.11.0.war on WebLogic
Date Thu, 05 Jun 2014 12:35:04 GMT
Jana

Is it possible that due to classloading precedence, this occurs?. If I
recall correctly, the Chemistry servers carry all the JARS they need
including the JAX-WS runtime stack and its dependencies. Weblogic has its
own stack entirely.  Usually this requires something like setting the
classloading policy to PARENT_LAST (often with Websphere) for just that WAR
application, such that the classloading sees the JAX-WS JARS and
dependencies in the WAR first, before those of the app servers runtime
stack. I just don't know how that is done in Weblogic.  I have also heard
of disabling the JAX-WS stack on the app server itself so that the WAR
files get precedence by default. However if you have other JAX-WS apps
(beyond your Chemistry server) running that do use it, that may not be an
option.



On Thursday, June 5, 2014, Jana (JIRA) <jira@apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/CMIS-812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14018718#comment-14018718
> ]
>
> Jana commented on CMIS-812:
> ---------------------------
>
> Thanks, but how to do that?
> I added the following JAR to the classpath:
> modules/databinding.override_1.0.0.0.jar which prevents the Exceptions but
> I then I could not login anonymous to the repository (which is working for
> WebSphere and Tomcat). I always need to provide the application Server
> Admin user and Passwort to logon
>
> > Error deploying chemistry-opencmis-server-inmemory-0.11.0.war on WebLogic
> > -------------------------------------------------------------------------
> >
> >                 Key: CMIS-812
> >                 URL: https://issues.apache.org/jira/browse/CMIS-812
> >             Project: Chemistry
> >          Issue Type: Bug
> >          Components: opencmis-server-inmemory
> >    Affects Versions: OpenCMIS 0.11.0
> >         Environment: Windows
> >            Reporter: Jana
> >
> > chemistry-opencmis-server-inmemory-0.11.0.war can be deployt to
> WebSphere and Tomcat without issues. After deploying to WebLogic and trying
> to start the application a NullPointerException occured.
> > weblogic.application.ModuleException: [HTTP:101216]Servlet: "cmisws10"
> failed to preload on startup in Web application:
> "chemistry-opencmis-server-inmemory-0.11.0.war".
> > java.lang.NullPointerException
> >       at
> org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet.getDelegate(CmisWebServicesServlet.java:250)
> >       at
> com.sun.xml.ws.transport.http.servlet.WSServlet.init(WSServlet.java:64)
> >       at
> org.apache.chemistry.opencmis.server.impl.webservices.CmisWebServicesServlet.init(CmisWebServicesServlet.java:101)
> >       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)
> > Beforehand



-- 
Regards,

Mark

Sent from Gmail Mobile on iPhone

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message