cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Bosschaert <david.bosscha...@gmail.com>
Subject Re: CXF DOSGi Client Issue
Date Tue, 02 Mar 2010 10:16:54 GMT
Hi Chris,

WRT to the Felix, you could try Equinox and see if that solves the
hanging issue.

On your custom bundle, this is the remote service client bundle right?
You say: "when I try and use the ServiceTracker object (or the
Context.getServiceReference method) I am unable to retrieve the
service"
does this mean that you do actually get a ServiceReference but when
you use it you get problems
- if so, then please send us the stack trace

or does this mean that you don't get a ServiceReference at all
- given that you say that you can see the service in the system (I
presume you found this out by using the Felix console) there are two
possible problems here:
1. Maybe the filter that you're passing in isn't selecting the
service? Well, you probably checked this already...
2. The class space of the service isn't compatible with the class
space of your consumer. This can be caused by misaligned
export-package/import-package definitions in your bundles. Before
diving too deep into this you can quite easily check whether this is
your problem by checking what BundleContext.getAllServiceReferences()
returns. If it does return your SR then you have a class space problem
which needs further analysis, but the bottom line is that in that case
your system contains two (or more) instances of the same class and you
will get a ClassCastException when trying to cast a service from one
to the other...

BTW what version of DOSGi are you using?

Hope this helps,

David

On 1 March 2010 20:10, Christopher Perry <cperry@sapient.com> wrote:
>  Hey all,
>
> Following the samples, I was able to make some headway getting this to work (I missed
the remote-services.xml config file). However, I'm still having issues. Now when I deploy
our custom bundle, I can see a new service created by the DOSGi bundle for our interface.
However, when I try and use the ServiceTracker object (or the Context.getServiceReference
method) I am unable to retrieve the service. Additionally, when I try to reload the DOSGi
bundle, Felix hangs and has to be restarted. I don't see any errors in the logs (other than
the null service error). Can anyone point me in the right direction here? I know it's not
a lot to go off of...please let me know if there is information I'm not aware of that might
help diagnose.
>
> Thanks in advance for your help,
> --Chris
>
>
> -----Original Message-----
> From: Christopher Perry
> Sent: Thursday, February 25, 2010 1:51 PM
> To: users@cxf.apache.org
> Subject: CXF DOSGi Client Issue
>
> Hey all,
>
> I am attempting to connect to a remote CXF web service from inside an OSGi envornment
(Apache Felix). I'm trying to use the distributed OSGi bundle for all of the CXF dependencies.
Currently, when I try and test to connection to the service, I get a ServiceConstructionException
(copied below). I know that the service is setup correctly as I can use a simple Java console
application to connect to it which runs without issue....I just can't get it to run inside
the OSGi environment. I'm not very knowledgeable with CXF, so I would appreciate any help
people can give me debugging this issue. Thanks in advance!
>
> --Chris
>
> The POM file used to build the client:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>
>        <modelVersion>4.0.0</modelVersion>
>
>        <groupId>my.test.ws</groupId>
>        <artifactId>cis</artifactId>
>        <packaging>bundle</packaging>
>        <version>1.0-SNAPSHOT</version>
>        <name>Test CIS Webservice</name>
>        <description>Provides access to the CIS webservice</description>
>
>        <properties>
>                <file.encoding>utf-8</file.encoding>
>        </properties>
>
>        <build>
>                <plugins>
>                        <plugin>
>                                <artifactId>maven-compiler-plugin</artifactId>
>                                <configuration>
>                                        <source>5</source>
>                                        <target>5</target>
>                                </configuration>
>                        </plugin>
>                        <plugin>
>                                <groupId>org.apache.felix</groupId>
>                                <artifactId>maven-scr-plugin</artifactId>
>                                <version>1.2.0</version>
>                                <executions>
>                                        <execution>
>                                                <id>generate-scr-scrdescriptor</id>
>                                                <goals>
>                                                        <goal>scr</goal>
>                                                </goals>
>                                        </execution>
>                                </executions>
>                        </plugin>
>
>                        <plugin>
>                                <groupId>org.apache.felix</groupId>
>                                <artifactId>maven-bundle-plugin</artifactId>
>                                <extensions>true</extensions>
>                                <version>2.0.1</version>
>                                <configuration>
>                                        <instructions>
>                                                <Export-Package>
>                                                        my.test.ws.poc;version=${pom.version},
>                                                        javax.jws.*;version=1.0-MR1
>                                                </Export-Package>
>                                                <Private-Package>
>                                                        org.cis.ws.api;version=1.5.0-SNAPSHOT,
>                                                        org.cis.ws.model;version=1.5.0-SNAPSHOT,
>                                                        javax.xml.bind;version=2.2,
>                                                        javax.xml.bind.attachment;version=2.2,
>                                                        javax.xml.stream;version=1.0,
>                                                        javax.xml.stream.events;version=1.0,
>                                                        javax.xml.stream.util;version=1.0,
>                                                        org.apache.servicemix.specs.locator;version=1.4.0
>                                                </Private-Package>
>                                        </instructions>
>
>                                </configuration>
>                        </plugin>
>                </plugins>
>        </build>
>
>        <dependencies>
>                <dependency>
>                        <groupId>javax.servlet.jsp</groupId>
>                        <artifactId>jsp-api</artifactId>
>                        <version>2.1</version>
>                        <scope>compile</scope>
>                </dependency>
>                <dependency>
>                        <groupId>org.slf4j</groupId>
>                        <artifactId>slf4j-simple</artifactId>
>                        <version>1.5.2</version>
>                </dependency>
>                <dependency>
>                        <groupId>cis-ws-api</groupId>
>                        <artifactId>cis-ws-api</artifactId>
>                        <version>1.5.0-SNAPSHOT</version>
>                </dependency>
>                <dependency>
>                        <groupId>org.apache.cxf.dosgi</groupId>
>                        <artifactId>cxf-dosgi-ri-singlebundle-distribution</artifactId>
>                        <version>1.1</version>
>                </dependency>
>                <dependency>
>                        <groupId>javax.xml.bind</groupId>
>                        <artifactId>jaxb-api</artifactId>
>                        <version>2.2</version>
>                </dependency>
>                <dependency>
>                        <groupId>javax.xml.stream</groupId>
>                        <artifactId>stax-api</artifactId>
>                        <version>1.0</version>
>                </dependency>
>                <dependency>
>                        <groupId>org.apache.servicemix.specs</groupId>
>                        <artifactId>org.apache.servicemix.specs.locator</artifactId>
>                        <version>1.4.0</version>
>                </dependency>
>                <dependency>
>                        <groupId>javax.jws</groupId>
>                        <artifactId>jsr181-api</artifactId>
>                        <version>1.0-MR1</version>
>                </dependency>
>        </dependencies>
> </project>
>
> And the error I recieve:
>
> javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
>        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:317)
>        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:302)
>        at javax.xml.ws.Service.getPort(Service.java:40)
>        at org.cis.ws.api.CustomerInformationServiceClient.getCustomerInformationEndpointPort(CustomerInformationServiceClient.java:57)
>        at org.cis.ws.api.CustomerInformationService.getEndpoint(CustomerInformationService.java:94)
>        at org.cis.ws.api.CustomerInformationService.echo(CustomerInformationService.java:112)
>        at my.test.ws.poc.TestWsTag.doTag(TestWsTag.java:35)
>        at org.apache.jsp.apps.customApps.eventRegistration.components.management.administrationOverview.administrationOverview_jsp._jspx_meth_cfc_002dws_005ftestWs_005f0(administrationOverview_jsp.java:270)
>        at org.apache.jsp.apps.customApps.eventRegistration.components.management.administrationOverview.administrationOverview_jsp._jspService(administrationOverview_jsp.java:165)
>        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:394)
>        at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:142)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:73)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:344)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:224)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:161)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:320)
>        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:525)
>        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
>        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:183)
>        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:150)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:239)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at org.apache.sling.engine.impl.SlingMainServlet.processRequest(SlingMainServlet.java:427)
>        at org.apache.sling.engine.impl.SlingMainServlet.includeContent(SlingMainServlet.java:408)
>        at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatcher.java:175)
>        at org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(SlingRequestDispatcher.java:69)
>        at com.day.cq.wcm.core.impl.WCMRequestFilter$ForwardRequestDispatcher.include(WCMRequestFilter.java:457)
>        at org.apache.sling.scripting.jsp.taglib.IncludeTagHandler.dispatch(IncludeTagHandler.java:47)
>        at org.apache.sling.scripting.jsp.taglib.AbstractDispatcherTagHandler.doEndTag(AbstractDispatcherTagHandler.java:129)
>        at org.apache.jsp.libs.foundation.components.parsys.parsys_jsp._jspService(parsys_jsp.java:308)
>        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:394)
>        at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:142)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:73)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:344)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:224)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:161)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:320)
>        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:525)
>        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
>        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:183)
>        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:150)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:239)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at org.apache.sling.engine.impl.SlingMainServlet.processRequest(SlingMainServlet.java:427)
>        at org.apache.sling.engine.impl.SlingMainServlet.includeContent(SlingMainServlet.java:408)
>        at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatcher.java:175)
>        at org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(SlingRequestDispatcher.java:69)
>        at com.day.cq.wcm.core.impl.WCMRequestFilter$ForwardRequestDispatcher.include(WCMRequestFilter.java:457)
>        at com.day.cq.wcm.tags.IncludeTag.includeResource(IncludeTag.java:296)
>        at com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:90)
>        at org.apache.jsp.apps.common.components.page.contentpage.main_jsp._jspx_meth_cq_005finclude_005f0(main_jsp.java:176)
>        at org.apache.jsp.apps.common.components.page.contentpage.main_jsp._jspService(main_jsp.java:147)
>        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:394)
>        at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:142)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:73)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:344)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:224)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:161)
>        at com.day.cq.wcm.tags.IncludeTag.includeScript(IncludeTag.java:165)
>        at com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:86)
>        at org.apache.jsp.apps.common.components.page.contentpage.body_jsp._jspx_meth_cq_005finclude_005f7(body_jsp.java:372)
>        at org.apache.jsp.apps.common.components.page.contentpage.body_jsp._jspService(body_jsp.java:189)
>        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:394)
>        at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:142)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:73)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:344)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:224)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:161)
>        at com.day.cq.wcm.tags.IncludeTag.includeScript(IncludeTag.java:165)
>        at com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:86)
>        at org.apache.jsp.apps.common.components.page.contentpage.contentpage_jsp._jspx_meth_cq_005finclude_005f1(contentpage_jsp.java:193)
>        at org.apache.jsp.apps.common.components.page.contentpage.contentpage_jsp._jspService(contentpage_jsp.java:142)
>        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:394)
>        at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:142)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:73)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:344)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:224)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:161)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:320)
>        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:525)
>        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
>        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:183)
>        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:150)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:239)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at org.apache.sling.engine.impl.SlingMainServlet.processRequest(SlingMainServlet.java:427)
>        at org.apache.sling.engine.impl.SlingMainServlet.includeContent(SlingMainServlet.java:408)
>        at org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatcher.java:175)
>        at org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(SlingRequestDispatcher.java:69)
>        at com.day.cq.wcm.core.impl.WCMRequestFilter$ForwardRequestDispatcher.include(WCMRequestFilter.java:457)
>        at org.apache.jsp.libs.foundation.components.primary.cq.Page.Page_jsp._jspService(Page_jsp.java:104)
>        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:394)
>        at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter.java:59)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:142)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:73)
>        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:344)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:224)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:161)
>        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:320)
>        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:525)
>        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
>        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at com.day.cq.wcm.core.impl.WCMRequestFilter.filterRootInclude(WCMRequestFilter.java:328)
>        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:161)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at org.apache.sling.engine.impl.SlingMainServlet.processRequest(SlingMainServlet.java:427)
>        at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:48)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
>        at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at com.day.cq.collab.wiki.impl.WikiMailServiceImpl.doFilter(WikiMailServiceImpl.java:552)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at com.day.cq.collab.wiki.impl.WikiServiceImpl.doFilter(WikiServiceImpl.java:440)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:193)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:75)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.java:76)
>        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
>        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:308)
>        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:189)
>        at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:93)
>        at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
>        at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
>        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
>        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
>        at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
>        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
>        at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>        at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate.java:275)
>        at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:130)
>        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:228)
>        at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
>        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)
>        at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilter.java:96)
>        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)
>        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
>        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)
>        at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:313)
>        at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
>        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:351)
>        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:363)
>        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:459)
>        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:212)
>        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:163)
>        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
>        at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52)
>        at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
>        at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
>        at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:438)
>        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:315)
>        ... 173 more
> Caused by: javax.xml.bind.JAXBException: Unable to create context
>  - with linked exception:
> [java.lang.reflect.InvocationTargetException]
>        at javax.xml.bind.ContextFinder.find(ContextFinder.java:93)
>        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:65)
>        at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:510)
>        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:334)
>        ... 183 more
> Caused by: java.lang.reflect.InvocationTargetException
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at javax.xml.bind.ContextFinder.find(ContextFinder.java:91)
>        ... 186 more
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 8 counts of IllegalAnnotationExceptions
> The createEcho method has @XmlElementMapping on it, but it doesn't return a sub-type
of JAXBElement.
>        this problem is related to the following location:
>                at @javax.xml.bind.annotation.XmlElementDecl(namespace=http://model.ws.cis.org/,
defaultValue= , substitutionHeadName=, scope=class javax.xml.bind.annotation.XmlElementDecl$GLOBAL,
substitutionHeadNamespace=##default, name=echo)
>                at public javax.xml.bind.JAXBElement org.cis.ws.model.ObjectFactory.createEcho(java.lang.String)
>                at org.cis.ws.model.ObjectFactory
> <7 more of these.....>
>
>        at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
>        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
>        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
>        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
>        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
>        ... 191 more
>

Mime
View raw message