chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pankaj Tiwari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-595) Fails in Webservices mode with Weblogic12C - Both 0.6 and 0.8 Weblogic exclusive binding jars are tested
Date Fri, 25 Jan 2013 09:31:14 GMT

    [ https://issues.apache.org/jira/browse/CMIS-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562556#comment-13562556
] 

Pankaj Tiwari commented on CMIS-595:
------------------------------------

Also added the following lines in the weblogic-application.xml to specify the package to use
<prefer-application-packages>
    <package-name>com.sun.xml.bind.v2.*</package-name>
    <package-name>javax.wsdl.*</package-name>
<package-name>antlr.*</package-name>

This resolves the Eclipselink exception messages above, but connection to CMIS repository
still fails with the below error
Caused by: java.util.ServiceConfigurationError: javax.xml.ws.spi.Provider: Provider weblogic.wsee.jaxws.spi.WLSProvider
could not be instantiated: jav
a.lang.NoSuchFieldError: theInstance
        at java.util.ServiceLoader.fail(ServiceLoader.java:207)
        at java.util.ServiceLoader.access$100(ServiceLoader.java:164)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:353)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
        at javax.xml.ws.spi.Provider.getProviderUsingServiceLoader(Provider.java:180)
        at javax.xml.ws.spi.Provider.provider(Provider.java:140)
        at javax.xml.ws.Service.<init>(Service.java:92)
        at org.apache.chemistry.opencmis.commons.impl.jaxb.RepositoryService.<init>(RepositoryService.java:42)
        at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.initServiceObject(AbstractPortProvider.java:254)
        at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getPortObject(AbstractPortProvider.java:206)
        at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getRepositoryServicePort(AbstractPortProvider.java:109)
        at org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:57)
        at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
        at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:109)
        at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96)
        at com.primavera.ucr.cmis.CmisRepositoryContentManager.getRepository(CmisRepositoryContentManager.java:289)
        at com.primavera.ucr.cmis.CmisRepositoryContentManager.<init>(CmisRepositoryContentManager.java:48)
        at com.primavera.ucr.cmis.CmisRepositoryContext.initContext(CmisRepositoryContext.java:75)
        at com.primavera.ucr.cmis.CmisRepositoryContext.<init>(CmisRepositoryContext.java:63)
        at com.primavera.ucr.cmis.CmisContentRepositoryImpl.init(CmisContentRepositoryImpl.java:43)

I am trying to find a workaround to get CMIS working with Weblogic12C. Any help is appreciated
                
> Fails in Webservices mode with Weblogic12C - Both 0.6 and 0.8 Weblogic exclusive binding
jars are tested
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CMIS-595
>                 URL: https://issues.apache.org/jira/browse/CMIS-595
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.6.0, OpenCMIS 0.8.0
>         Environment: Weblogic 12C application server in windows OS
>            Reporter: Dilip MD
>
> When a web application embedding OpenCMIS client logic access OpenCMIS repository in
"webservices" mode, following error appears:
> INFO: Connecting to CMIS using webservices, impersonating admin, URL http://host:port/alfresco/cmis
> Oct 18, 2012 12:43:27 PM jsp_servlet._lal._content.__browsecmis getBinding
> INFO: Binding: org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingImpl@1d3a3bc
> javax.xml.bind.JAXBException:
> Descriptor Exceptions:
> ---------------------------------------------------------
> Exception [EclipseLink-110] (Eclipse Persistence Services - 2.3.2.v20111125-r10461):
org.eclipse.persistence.exceptions.DescriptorException
> Exception Description: Descriptor is missing for class [org.apache.chemistry.opencmis.commons.impl.jaxb.EnumIncludeRelationships].
> Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[includeRelationships]
> Descriptor: XMLDescriptor(org.apache.chemistry.opencmis.commons.impl.jaxb.GetDescendants
--> [DatabaseTable(getDescendants)])
> ....
> ...
> Runtime Exceptions:
> ---------------------------------------------------------
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:535)
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:476)
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:435)
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:676)
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:634)
> at org.eclipse.persistence.oxm.XMLContext$XMLContextState.<init>(XMLContext.java:830)
> at org.eclipse.persistence.oxm.XMLContext$XMLContextState.<init>(XMLContext.java:770)
> at org.eclipse.persistence.oxm.XMLContext.<init>(XMLContext.java:177)
> at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:860)
> at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:830)
> ... 76 more
> I have upgraded org.eclipse.persistence_2.0.0.0_2-3.jar in modules directory to org.eclipse.persistence_2.5
from EclipseLink. Then I get class not found error for classes in CMIS jars which are right
inside the WEB-INF/lib folder of war. Looks like Oracle customizes this jar.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message