» Home » Spring » Page 1
Accessing other spring defined beans in the portlet spring application context (Spring Portlet MVC)
Category : Development Tools & Services

Context: Using maven 3,spring portlet mvc 3.1


I have built a portlet using spring portlet mvc 3.1.
This portlet uses the spring portlet mvc defined Dispatched and is defined accordingly in the -portlet.xml.
The dispatcher portlet is configured to pass requests to the myController (POJO with annotation of @Controller)
I also have a service project

View Replies

Issue on Spring mvc when upgrading from Spring 2.5.5 to Spring 3
Category : Programming Languages

I upgraded the module of my project to use spring 3 instead of spring 2.5.5.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/beans/factory/generic/Gen

View Replies

Apache Camel Spring configuration problem - Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring]
Category : Web Design

I've posted an excerpt from my spring.xml file and the stack trace I'm getting.

<?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:lang="http://www.springframework.org/schema/lang"
xmlns:util="http://www.springframework.org/schema/util" xmlns:

View Replies

redirection of https urls inside spring framework using spring security xml configuration
Category : Development Tools & Services

I have a Java EE setup with Apache in front end , jboss eap in backend. Have load balancer before apache layer.

I need to route all https requests hitting load balancer via apache to jboss. I use proxy pass for doing that in the apache connector layer. Have changed server.xml in jboss eap.

In login module we found that after logging in the page is getting redirected to

View Replies

How to restrict a logged in user to access the login page in spring without using spring security?
Category : Programming Languages

I am new to Spring and developing a dynamic web application in Spring and Tomcat and for some reason
I am not using Spring Security. I want to prevent users to access the login page who
are already in a session.Here is my code:

public class LoginController {

View Replies

Configure spring-data-mongodb repositories with Spring 3.1's Java configuration
Category : Java
<mongo:repositories base-package="com.acme.*.repositories" />

Is there a way to do this with new Java based @Configuration support?

View Replies

Are Spring beans configured using Grails' Spring Bean DSL transactional by default?
Category : Programming Languages

Services in Grails (which are Spring beans) are transactional by default, but I can also configure my own Spring beans using the Spring Bean DSL.

Are these beans also transactional by default?

View Replies

How to implement login page using Spring Security so that it works with Spring web flow?
Category : Programming Languages

I have a web application using Spring 2.5.6 and Spring Security 2.0.4. I have implemented a working login page, which authenticates the user against a web service. The authentication is done by defining a custom authentincation manager, like this:

<beans:bean id="customizedFormLoginFilter"

View Replies

Implementing a mixed authentication using Spring security and Spring social Facebook
Category : Development Tools & Services

I am relatively new to Spring security and Spring social. I am trying to implement a mixed authentication with either standard Spring Security or Spring social Facebook.

Thus, a user can authenticate:

either with a standard Spring security login form as follows:

Snippet from my Thymeleaf template:

<form name="f" th:action="@{/resources/j_spring_sec

View Replies

Is there a good reason why Spring Roo puts database.properties in META-INF/spring?
Category : Programming Languages

I'm trying to understand the reasoning behind why Spring Roo places database.properties in META-INF/spring, where it will be deployed as part of the WAR.

Surely database properties are environment specific and should be outside a WAR where they can be changed without rebuilding? I'm about to change the line in application-context.xml to search for properties files anywhere on the c

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .