I have the same problem with spring security
On 30 Kwi, 09:19, bns <[email protected]> wrote: > Hi, > > I configured spring security on my gwt project that runs fine on app > engine environment on local but does not work on live environment when > i deploy to appspot. > > Here is my configuration file. > --------------- > web.xml > --------------- > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > > <servlet> > <servlet-name>dispatcher</servlet-name> > <servlet- > class>org.springframework.web.servlet.DispatcherServlet</servlet- > class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>dispatcher</servlet-name> > <url-pattern>*.rpc</url-pattern> > </servlet-mapping> > > <filter> > <filter-name>springSecurityFilterChain</filter-name> > <filter- > class>org.springframework.web.filter.DelegatingFilterProxy</filter- > class> > </filter> > <filter-mapping> > <filter-name>springSecurityFilterChain</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > <listener> > <listener- > class>org.springframework.web.context.ContextLoaderListener</listener- > class> > </listener> > > <!-- Default page to serve --> > <welcome-file-list> > <welcome-file>PushUrl.html</welcome-file> > </welcome-file-list> > > </web-app> > > --------------------------------- > dispatcher-servlet.xml > ---------------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:p="http://www.springframework.org/schema/p" > xmlns:context="http://www.springframework.org/schema/context" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd"> > > <bean > class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> > <property name="mappings"> > <value> > /**/users.rpc=userService > /**/categories.rpc=categoryService > </value> > </property> > </bean> > <bean id="userController" > class="com.beda.pushurl.server.GwtRpcController"> > <property name="remoteService" ref="userService"> > > </property> > </bean> > <bean id="userService" > class="com.beda.pushurl.server.UserServiceImpl" > > <property name="userDAO" > ref="myUserDAO"></property> > </bean> > <bean id="categoryService" > class="com.beda.pushurl.server.CategoryServiceImpl"> > <property name="categoryDAO" ref="myCategoryDAO"></property> > </bean> > > <bean id="myUserDAO" class="com.beda.pushurl.server.dao.UserDAOImpl"> > > </bean> > <bean id="myCategoryDAO" > class="com.beda.pushurl.server.dao.CategoryDAOImpl"> > </bean> > > </beans> > > ---------------------------------------------- > applicationContext.xml > ---------------------------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:security="http://www.springframework.org/schema/security" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:p="http://www.springframework.org/schema/p" > xmlns:context="http://www.springframework.org/schema/context" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://www.springframework.org/schema/security > > http://www.springframework.org/schema/security/spring-security-3.0.xsd"> > > <security:http auto-config="true"> > <security:intercept-url pattern="/**/users.rpc" > access="ROLE_USER"/> > <security:intercept-url pattern="/**/categories.rpc" > access="ROLE_ADMIN"/> > <security:intercept-url pattern="/css/**" filters="none"/> > <security:intercept-url pattern="/login.jsp*" filters="none"/> > <security:form-login login-page='/login.jsp' /> > </security:http> > > <security:authentication-manager> > <security:authentication-provider> > > <security:user-service> > <security:user name="jimi" password="jimi" > authorities="ROLE_USER, ROLE_ADMIN" /> > <security:user name="bob" password="bob" > authorities="ROLE_USER" /> > </security:user-service> > </security:authentication-provider> > </security:authentication-manager> > > </beans> > > ---------------------------- > appengine-web.xml > ----------------------------- > > <?xml version="1.0" encoding="utf-8"?> > <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> > <application>pushurl</application> > <version>1</version> > > <!-- Configure java.util.logging --> > <system-properties> > <property name="java.util.logging.config.file" value="WEB-INF/ > logging.properties"/> > </system-properties> > <sessions-enabled>true</sessions-enabled> > </appengine-web-app> > > Urls: > * pushurl.appspot.com > * pushurl.appspot.com/login.jsp > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
