abrarShariar / ffead-cpp

Automatically exported from code.google.com/p/ffead-cpp
0 stars 0 forks source link

Windows : only Index page comes. Not getting any response from server #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello Summet,

I followed the instruction you mentioned for install ffead on windows 
environment.

Default page if index.html came successfully. But nothing else work.

I tried to use RestController example , it did not work either even I added new 
users in user file. it goes to login page , I entered user and then came back 
to Index.html. 

Am I doing something wrong here? How to test other default examples mentioned 
by you in wiki ?

Many thanks for your wonderful application. 

Thanks and Regards
Abhishek Kumar

Original issue reported on code.google.com by abhishek...@gmail.com on 16 Aug 2012 at 10:52

GoogleCodeExporter commented 8 years ago
Hi Abhishek,

The /rest/* is a protected resource hence when accessing that resource it takes 
you to the login page, now when you enter the correct credentials it will take 
you to the welcome page defined in your security configuration 
(http://code.google.com/p/ffead-cpp/wiki/SecurityConfig) i.e., <welcome 
file="index.html"/>. Now you would again need to type your rest uri in the 
browser to check the rest service call, it should work.
If you have any other problems, please do let me know. 

For other examples you can type
1. http://localhost:8080/test.dcp (Dynamic C++ pages)
2. http://localhost:8080/test.fview (Ffead view pages - FViews)
3. http://localhost:8080/indexmain.html (Ajax, web-service and oauth calls)
4. http://localhost:8080/flexApp/index.html (A simple flex demo app)
5. http://localhost:8080/oauthApp/indexmain.html (Oauth control flow)
6. http://localhost:8080/bg.jpg (Test whether the image file gets rendered)
7. http://localhost:8080/test.dcp (Dynamic C++ pages)
8. http://localhost:8080/Testing.wsdl (WSDL for file Testing(.h/.cpp))
9. For rest try the below after successful login,
   1. http://localhost:8080/rest/path/rest1/add/1/2 => 1+2=3
   2. http://localhost:8080/rest/path1/rest2/+/1/2 => 1+2=3
   3. http://localhost:8080/rest3/ad/1/2 => 1+2=3
   4. http://localhost:8080/rest/controller/base5/power/exp2 => 5^2=25
   5. http://localhost:8080/DefaultRestController/addNumbers/1/2 => 1+2=3

You can check the logs for more revealing information on filter handling and 
other internal stuff.

Original comment by sumeet.chhetri@gmail.com on 20 Aug 2012 at 8:02

GoogleCodeExporter commented 8 years ago
Thanks Sumit ,

Look everything working , except Rest. 
I used username password as your name as I find it in USER file . 

After entering the user/pass in login.html. It goes back to Index.html. But 
when I put your URL , it goes back to login.html again. May be some issue with 
credential.

Please let me know.

Original comment by abhishek...@gmail.com on 20 Aug 2012 at 9:07

GoogleCodeExporter commented 8 years ago
   1. http://localhost:8080/rest/path/rest1/add/1/2 => 1+2=3   NOK
   2. http://localhost:8080/rest/path1/rest2/+/1/2 => 1+2=3    NOK
   3. http://localhost:8080/rest3/ad/1/2 => 1+2=3              WORKING
   4. http://localhost:8080/rest/controller/base5/power/exp2 => 5^2=25      NOK
   5. http://localhost:8080/DefaultRestController/addNumbers/1/2 => 1+2=3   WORKING

Original comment by abhishek...@gmail.com on 20 Aug 2012 at 9:12

GoogleCodeExporter commented 8 years ago
Hi Abhishek,

I re-tested this scenario after pulling the latest binary from downloads for 
winx-cygwin, and it seems to be running perfectly fine. Are you sure you have 
not changed anything that is causing this functionality to not work, and are 
cookies enabled on your browser? 

Please check and do let me know...

Thanks,
Sumeet Chhetri

Original comment by sumeet.chhetri@gmail.com on 27 Aug 2012 at 8:39

GoogleCodeExporter commented 8 years ago
I'm seeing the same problem after a fresh install on Ubuntu. The URLs that work 
for Abhishek  don't work for me either. 

Here are the logs when I browse to http://localhost:8080/rest/path1/rest2/+/1/2

[2/02/2013 10:57:11] (CHServer) <info> :service method 

[2/02/2013 10:57:11] (ServiceTask) <info> :into run method

[2/02/2013 10:57:11] () <info> :file is 
[2/02/2013 10:57:11] () <info> :

[2/02/2013 10:57:11] (ServiceTask) <info> :has the session id

[2/02/2013 10:57:11] (ServiceTask) <info> :

[2/02/2013 10:57:11] (SecurityHandler) <info> :/rest/path1/rest2/+/1/2

[2/02/2013 10:57:11] (Security) <info> :checking security path 
[2/02/2013 10:57:11] (Security) <info> :*
[2/02/2013 10:57:11] (Security) <info> : against url 
[2/02/2013 10:57:11] (Security) <info> :/rest/path1/rest2/+/1/2

[2/02/2013 10:57:11] (Security) <info> :checking security path 
[2/02/2013 10:57:11] (Security) <info> :/rest/*
[2/02/2013 10:57:11] (Security) <info> : against url 
[2/02/2013 10:57:11] (Security) <info> :/rest/path1/rest2/+/1/2

[2/02/2013 10:57:11] (SecurityHandler) <info> :matched secure path 
[2/02/2013 10:57:11] (SecurityHandler) <info> :/rest/*
[2/02/2013 10:57:11] (SecurityHandler) <info> :, which requires role 
[2/02/2013 10:57:11] (SecurityHandler) <info> :ROLE_USER

[2/02/2013 10:57:11] (FilterHandler) <info> :filter handled by class 
[2/02/2013 10:57:11] (FilterHandler) <info> :getReflectionCIForDefaultIOFilter
[2/02/2013 10:57:11] (FilterHandler) <info> : 
[2/02/2013 10:57:11] (FilterHandler) <info> :0x104c630

Processed input request
[2/02/2013 10:57:11] (FilterHandler) <info> :filter called

[2/02/2013 10:57:11] (FilterHandler) <info> :filter handled by class 
[2/02/2013 10:57:11] (FilterHandler) <info> :getReflectionCIForDefaultIOFilter

Processed output response
[2/02/2013 10:57:11] (FilterHandler) <info> :filter called

[2/02/2013 10:57:11] (ServiceTask) <info> :
got fd from parent--read data--processed data
[2/02/2013 10:57:11] (ServiceTask) <info> :--sent data--DONE
[2/02/2013 10:57:11] (CHServer) <info> :service method 

[2/02/2013 10:57:11] (ServiceTask) <info> :into run method

[2/02/2013 10:57:11] () <info> :file is 
[2/02/2013 10:57:11] () <info> :

[2/02/2013 10:57:11] (ServiceTask) <info> :has the session id

[2/02/2013 10:57:11] (ServiceTask) <info> :

[2/02/2013 10:57:11] (SecurityHandler) <info> :/login.html

[2/02/2013 10:57:11] (Security) <info> :checking security path 
[2/02/2013 10:57:11] (Security) <info> :*
[2/02/2013 10:57:11] (Security) <info> : against url 
[2/02/2013 10:57:11] (Security) <info> :/login.html

[2/02/2013 10:57:11] (Security) <info> :checking security path 
[2/02/2013 10:57:11] (Security) <info> :/rest/*
[2/02/2013 10:57:11] (Security) <info> : against url 
[2/02/2013 10:57:11] (Security) <info> :/login.html

[2/02/2013 10:57:11] (FilterHandler) <info> :filter handled by class 
[2/02/2013 10:57:11] (FilterHandler) <info> :getReflectionCIForDefaultIOFilter
[2/02/2013 10:57:11] (FilterHandler) <info> : 
[2/02/2013 10:57:11] (FilterHandler) <info> :0x104c630

Processed input request
[2/02/2013 10:57:11] (FilterHandler) <info> :filter called

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/login.html
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> 
:default/DefaultRestController/addNumbers

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :,vals: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> 
:default/DefaultRestController/addNumbers

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/login.html
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> 
:default/rest/controller/base{1}/power/exp{2}

[2/02/2013 10:57:11] (ControllerHandler) <info> :GET
[2/02/2013 10:57:11] (ControllerHandler) <info> : <> 
[2/02/2013 10:57:11] (ControllerHandler) <info> :GET

[2/02/2013 10:57:11] (ControllerHandler) <info> :Rest Controller Param/Method 
Error

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/login.html
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/rest/path/rest1/add

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :,vals: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/rest/path/rest1/add

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/login.html
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/rest/path1/rest2/+

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :,vals: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/rest/path1/rest2/+

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/login.html
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/rest3/ad

[2/02/2013 10:57:11] (ControllerHandler) <info> :checking url : 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default
[2/02/2013 10:57:11] (ControllerHandler) <info> :,param size: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :,vals: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :2
[2/02/2013 10:57:11] (ControllerHandler) <info> :, against url: 
[2/02/2013 10:57:11] (ControllerHandler) <info> :default/rest3/ad

[2/02/2013 10:57:11] (ServiceTask) <info> :html page requested

[2/02/2013 10:57:11] (ServiceTask) <info> :content request for -- 
[2/02/2013 10:57:11] (ServiceTask) <info> 
:/home/apearce/downloads/ffead-server-unix/Release/ffead-server/web/default//log
in.html
[2/02/2013 10:57:11] (ServiceTask) <info> : 
[2/02/2013 10:57:11] (ServiceTask) <info> :.html

[2/02/2013 10:57:11] (FilterHandler) <info> :filter handled by class 
[2/02/2013 10:57:11] (FilterHandler) <info> :getReflectionCIForDefaultIOFilter

Processed output response
[2/02/2013 10:57:11] (FilterHandler) <info> :filter called

[2/02/2013 10:57:11] (ServiceTask) <info> :
got fd from parent--read data--processed data
[2/02/2013 10:57:11] (ServiceTask) <info> :--sent data--DONE

Original comment by andrewkp...@gmail.com on 2 Feb 2013 at 6:59