Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Restlet Error "The server has not found anything matching the request URI"

823838Jul 5 2011 — edited Jul 5 2011
I want to serve some static html pages along with my restlet services from the same app ( running in Tomcat )
Here is my web.xml
<?xml version="1.0" encoding="UTF-8"?>  
<web-app id="WebApp_ID" version="2.4"  
            xmlns="http://java.sun.com/xml/ns/j2ee"  
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
            xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  
                 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">  
   <display-name>first steps servlet</display-name>  
   <!-- Application class name -->  
   <context-param>  
      <param-name>org.restlet.application</param-name>  
      <param-value>  
         firstSteps.FirstStepsApplication  
      </param-value>  
   </context-param>  
  
   <!-- Restlet adapter -->  
   <servlet>  
      <servlet-name>RestletServlet</servlet-name>  
      <servlet-class>  
         org.restlet.ext.servlet.ServerServlet  
      </servlet-class>  
   </servlet>  
  
   <!-- Catch all requests -->  
   <servlet-mapping>  
      <servlet-name>RestletServlet</servlet-name>  
      <url-pattern>/*</url-pattern>  
   </servlet-mapping>  
</web-app> 

Here is my Application router class


public class FirstStepsApplication extends Application
{
	@Override
	public synchronized Restlet createInboundRoot()
	{
		Router router = new Router(getContext());
		// Defines only one route
		router.attach("/hello", HelloWorldResource.class);
		router.attach("/login", LoginResource.class);
		router.attach("/", BasicResource.class);
		return router;
	}
}
I've gone back to the basic first steps example.
It works fine if the url pattern is <url-pattern>/*</url-pattern>
localhost/rest/login returns a string from my LoginResource, same too for /hello
However a static html page I have /Mypage.html does not get returned when I enter the URL /MyPage.html
However, if I then modify the url pattern to be
<url-pattern>/login</url-pattern>
and then enter the url /MyPage.html I will get the html page.
But ...... I get the error "The server has not found anything matching the request URI" when I enter the url /login which worked ok the first case.

What must I do in order for both Restlet & Static HTML resources to work together?


Thanks ... J

Comments

Thanos A

Hi there,

Have you confirm that the NumDecimalPlaces of the stat account is not zero but it is more than 1? Only if you have a NumDecimalPlaces value, HFM will not round the number during the input.

Regards,

Thanos

One Truth about...: ...Apps 13, London

Dakku

Would this be in the metadata?

Thanos A

Hi again,

Yes, you should confirm that the stat account that you have created has as a NumDecimalPlaces attribute the value 1. Based on that you will be able to input data with one decimal.

Regards,

Thanos

One Truth about...: ...Apps 13, London

AmarnathK

Yes. You can have a look at the Account properties. Same place where you would see isCalculated, isConsolidated properties

Regards

Amarnath

http://amarnath-essbase-blog.blogspot.com

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 2 2011
Added on Jul 5 2011
3 comments
962 views