chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-796) Runtime descriptor "/WEB-INF/sun-jaxws.xml" is mising
Date Sun, 04 May 2014 14:30:20 GMT

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

Florian Müller commented on CMIS-796:
-------------------------------------

The {{sun-jaxws.xml}} file is automatically added when you build your server project with
Maven. It is copied from an overlay (chemistry-opencmis-server-bindings-war) and doesn't need
to be created by the archetype. 

But the {{sun-jaxws.xml}} file is not the only file that has to be available in the WEB-INF
directory. There are also templates for the WSDL and XSD files. We will not going to change
that anytime soon, because that would be a major refactoring.

(In fact, you can change the location of the files by manipulating the ServletContext. You
have override the getResource() and getResourceAsStream() methods. But that's not something
we support.)


> Runtime descriptor "/WEB-INF/sun-jaxws.xml" is mising
> -----------------------------------------------------
>
>                 Key: CMIS-796
>                 URL: https://issues.apache.org/jira/browse/CMIS-796
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 0.11.0
>            Reporter: Petar Tahchiev
>
> Hi guys,
> i'm following this tutorial:
> https://github.com/cmisdocs/ServerDevelopmentGuide
> on page 22 I saw this:
> {code}
> mvn archetype:generate \ -DgroupId=org.example.cmis \ -DartifactId=server \ -Dversion=1.0-SNAPSHOT
\ -Dpackage=org.example.cmis.server \ -DprojectPrefix=FileBridge \ -DarchetypeGroupId=org.apache.chemistry.opencmis
\ -DarchetypeArtifactId=chemistry-opencmis-server-archetype \ -DarchetypeVersion=1.0.0-SNAPSHOT
\ -DinteractiveMode=false
> {code}
> so i used it to create my own project. Unfortunately it creates a web.xml with this listener:
> {code}
>     <listener>
>         <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
>     </listener>
> {code}
> which seems to require a {{sun-jaxws.xml}} file, which the archetype did not create.
I managed to find this file in the Chemistry repository, but now I have another problem. I'm
trying to use Spring's {{WebApplicationInitializer}} and get rid of my web.xmls and {{WEB-INF}}
folder, and instead package my Cmis server as a jar and deploy it in an existing application
under {{/cmis}}. Unfortunately this is not possible, because I get this exception:
> {code}
> Caused by: javax.xml.ws.WebServiceException: Runtime descriptor "/WEB-INF/sun-jaxws.xml"
is mising
>         at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:107)
> {code}
> For now I will override the {{WSServletContextListener}} to look for this file elsewhere,
but please can you improve the code so that it doesn't rely on {{WEB-INF}} and on the {{sun-jaxws.xml}}
file being there.
> Thanks



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message