Re: [appengine-java] Re: 404 for app thats deployed successfully.

2011-10-10 Thread Manilal K M
On 7 October 2011 16:33, Manilal K M libreg...@gmail.com wrote:
 I forgot to add all the configuration files in my earlier email:

 WEB-INF/web.xml:
 http://pastie.org/2654599

 WEB-INF/spring/application-config.xml
 http://pastie.org/2654607

 WEB-INF/spring/servlet-config.xml
 http://pastie.org/2654618

 WEB-INF/spring/spring-security.xml
 http://pastie.org/2654633

 Welcome file
 http://pastie.org/2654645

 I have spend almost one week on this error, but couldn't track the
 root cause. As I said earlier the application works fine in eclipse
 and ant with the above configurations. It seems I'm missing something
 very trivial. Any help would be highly appreciated.

Apologies for re-posting. But I'm really lost in darkness with this
error. I have tried various options and workarounds suggested in
various forums and mailing lists, but still cannot figure out the root
cause.

thanks
Manilal

-- 
Manilal K M : മണിലാല്‍ കെ എം.
http://libregeek.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: 404 for app thats deployed successfully.

2011-10-10 Thread Manilal K M
On 10 October 2011 21:27, Manilal K M libreg...@gmail.com wrote:
 On 7 October 2011 16:33, Manilal K M libreg...@gmail.com wrote:
 I forgot to add all the configuration files in my earlier email:

 WEB-INF/web.xml:
 http://pastie.org/2654599

 WEB-INF/spring/application-config.xml
 http://pastie.org/2654607

 WEB-INF/spring/servlet-config.xml
 http://pastie.org/2654618

 WEB-INF/spring/spring-security.xml
 http://pastie.org/2654633

 Welcome file
 http://pastie.org/2654645

 I have spend almost one week on this error, but couldn't track the
 root cause. As I said earlier the application works fine in eclipse
 and ant with the above configurations. It seems I'm missing something
 very trivial. Any help would be highly appreciated.

 Apologies for re-posting. But I'm really lost in darkness with this
 error. I have tried various options and workarounds suggested in
 various forums and mailing lists, but still cannot figure out the root
 cause.

After several days of tests and experiments, I got the solution for
the problem in appspot.com. There was an issue with the JSP
configuration in which the prefix had an additional slash.

Old Configuration:

bean
 class=org.springframework.web.servlet.view.InternalResourceViewResolver
property name=order value=2 /
property name=prefix value=/WEB-INF/views/ /
property name=suffix value=.jsp /
/bean

New configuration:

bean
 class=org.springframework.web.servlet.view.InternalResourceViewResolver
property name=order value=2 /
property name=prefix value=/WEB-INF/views /
property name=suffix value=.jsp /
/bean

In the controller the return path was /Login/LoginPage.jsp. ( did
the change in xml file since there were too much controller methods
which returned the jsp file location).

I couldn't trace the issue until log4j was enabled to record the debug
issues. The key in identifying the issue was the following line in the
logs:

2011-10-10 21:38:14.644
[s~exampleapp-test/8.353868453989422042].stdout: 16:08:14,644 DEBUG
[org.springframework.web.servlet.view.JstlView] - Forwarding to
resource [/WEB-INF/views//Login/LoginPage.jsp] in InternalResourceView
'/Login/LoginPage'

Special thanks  to Nichole for guiding me with regards to XML configuration.

thanks  regards

-- 
Manilal K M : മണിലാല്‍ കെ എം.
http://libregeek.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: 404 for app thats deployed successfully.

2011-10-07 Thread Manilal K M
On 6 October 2011 11:27, Nichole nichole.k...@gmail.com wrote:
 2 things to fix in your web.xml:
 --param-value should be single valued
 --url-pattern ExampleApp/* should be changed.
    url-pattern has the following rules
       path mapping:      starts with /, ends with /*
       extension mapping: begins with *.
       default servlet: single character /
       all other strings are exact matches only

 The loader (appengine-tools) validates all other xml content against
 schemas
 except for the web.xml against the web-app_2_5.xsd schema, at least as
 of sdk 1.5.2...

Thanks for your suggestion, but unfortunately it didn't worked in
GAE(It worked in eclipse and ant). Here is the modified web.xml. Am I
missing something else?

?xml version=1.0 encoding=utf-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
version=2.5

filter
filter-namespringSecurityFilterChain/filter-name

filter-classorg.springframework.web.filter.DelegatingFilterProxy/filter-class
/filter

filter-mapping
filter-namespringSecurityFilterChain/filter-name
url-pattern/*/url-pattern
/filter-mapping

context-param
param-namecontextConfigLocation/param-name
param-value/WEB-INF/spring/*.xml/param-value
/context-param

!-- Bootstraps the root web application context before
servlet initialization --
listener

listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
/listener

servlet
servlet-namedispatcher/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-class
init-param
param-namecontextConfigLocation/param-name

param-value/WEB-INF/spring/servlet-config.xml/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-namedispatcher/servlet-name
url-pattern/ExampleApp/*/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
/web-app


-- 
Manilal K M : മണിലാല്‍ കെ എം.
http://libregeek.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: 404 for app thats deployed successfully.

2011-10-07 Thread Manilal K M
I forgot to add all the configuration files in my earlier email:

WEB-INF/web.xml:
http://pastie.org/2654599

WEB-INF/spring/application-config.xml
http://pastie.org/2654607

WEB-INF/spring/servlet-config.xml
http://pastie.org/2654618

WEB-INF/spring/spring-security.xml
http://pastie.org/2654633

Welcome file
http://pastie.org/2654645

I have spend almost one week on this error, but couldn't track the
root cause. As I said earlier the application works fine in eclipse
and ant with the above configurations. It seems I'm missing something
very trivial. Any help would be highly appreciated.

thanks
-- 
Manilal K M : മണിലാല്‍ കെ എം.
http://libregeek.blogspot.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: 404 for app thats deployed successfully.

2011-10-05 Thread Nichole
2 things to fix in your web.xml:
--param-value should be single valued
--url-pattern ExampleApp/* should be changed.
url-pattern has the following rules
   path mapping:  starts with /, ends with /*
   extension mapping: begins with *.
   default servlet: single character /
   all other strings are exact matches only

The loader (appengine-tools) validates all other xml content against
schemas
except for the web.xml against the web-app_2_5.xsd schema, at least as
of sdk 1.5.2...


On Oct 5, 12:09 am, Manilal libreg...@gmail.com wrote:
 I am having the same issue. I have checked web.xml and the welcome-file
 doesn't start with slash. Is there some other reason why this error occurs?

 In my case, the application runs successfully from Eclipse, dev_appserver
 and Ant, but not in appspot. Here is the web.xml:

 ?xml version=1.0 encoding=utf-8?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
         xmlns=http://java.sun.com/xml/ns/javaee;
 xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
         
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
         version=2.5

 filter
                 filter-namespringSecurityFilterChain/filter-name

 filter-classorg.springframework.web.filter.DelegatingFilterProxy/filter- 
 class
         /filter

         filter-mapping
                 filter-namespringSecurityFilterChain/filter-name
                 url-pattern/*/url-pattern
         /filter-mapping

         context-param
                 param-namecontextConfigLocation/param-name
                 param-value
                 /WEB-INF/spring/servlet-config.xml
                 /WEB-INF/spring/application-config.xml
                 /WEB-INF/spring/spring-security.xml

                 /param-value
         /context-param

         !-- Bootstraps the root web application context before servlet
 initialization --
         listener

 listener-classorg.springframework.web.context.ContextLoaderListener/list 
 ener-class
         /listener

         servlet
                 servlet-namedispatcher/servlet-name

 servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-c 
 lass
                 init-param
                         param-namecontextConfigLocation/param-name

 param-value/WEB-INF/spring/servlet-config.xml/param-value
                 /init-param
                 load-on-startup1/load-on-startup
         /servlet
         servlet-mapping
                 servlet-namedispatcher/servlet-name
                 url-patternExampleApp/*/url-pattern
         /servlet-mapping
         welcome-file-list
                 welcome-fileindex.jsp/welcome-file
         /welcome-file-list

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.