[
https://issues.apache.org/jira/browse/OLINGO-934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15244141#comment-15244141
]
Joaquin Diez commented on OLINGO-934:
-------------------------------------
Hi Michael
Thanks your fast response.
What I need is something more dynamic.
I will to have Services URI in the following form
http://localhost:8080/AA.svc/$metadata
http://localhost:8080/BBsvc/$metadata
......
http://localhost:8080/ZZ.svc/$metadata
...
http://localhost:8080/{service_name}.svc/$metadata
Thats why I try a configuracion similar to
..
<servlet>
<servlet-name>CarServiceServlet</servlet-name>
<servlet-class>org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet</servlet-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>org.apache.olingo.odata2.core.rest.app.ODataApplication</param-value>
</init-param>
<init-param>
<param-name>org.apache.olingo.odata2.service.factory</param-name>
<param-value>${package}.service.ODataJPACarServiceFactory</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CarServiceServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
...
> URI different from Query.svc/* not working
> ------------------------------------------
>
> Key: OLINGO-934
> URL: https://issues.apache.org/jira/browse/OLINGO-934
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 2.0.6
> Reporter: Joaquin Diez
>
> I am developing a Odata Service using Olingo Odata v2.0.6 y need to change
> the web.xml configuration to use diferent names for the servlet than Query.svc
> But when I change it to
> <servlet-mapping>
> <servlet-name>OdataServlet</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
> I get the following error
> <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
> <code/>
> <message xml:lang="en">Could not find container with name: 'Query'.</message>
> </error>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)