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

Context: Using maven 3,spring portlet mvc 3.1


Background:


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

Issue on Spring mvc when upgrading from Spring 2.5.5 to Spring 3
by tjh0001 in 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

Apache Camel Spring configuration problem - Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring]
by DigDog in 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:

How to restrict a logged in user to access the login page in spring without using spring security?
by Mandaris in 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:


@Controller
@RequestMapping("/login")
@SessionAttributes("userAuthenticator")
public class LoginController {
@Requ

redirection of https urls inside spring framework using spring security xml configuration
by sub-80 in 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


Are Spring beans configured using Grails' Spring Bean DSL transactional by default?
by pad in 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?


LocaleResolver in filter null yet shows it has been autowired! Spring MVC 3.1.1/Spring Security 3.1.0
by amelim in Development Tools & Services

I am using Spring Security 3.1.0 and Spring MVC 3.1.1.
I would like to be able to change the locale based on URL i.e.:


http://localhost:8080/abc?lang=fr

Now, this works under "normal" circumstances, i.e. going from one page to another page HOWEVER, in my application, if I go from a non-secure page to a secure page, it first hit's my login page, courtesy


Make Spring replace placeholders in different file type (other than Spring's configs)
by Steve in Programming Languages

Is there a way to make spring (v.3.0) parse placeholders in files that are not .properties?
I know I can write my own PropertyPlaceholderConfigurer but I was looking for a "cleaner" way to do it.


EDIT:


To be more specific, what I actually want to do is to replace placeholders present in .sql files. So the values of the placehol


How to implement login page using Spring Security so that it works with Spring web flow?
by erlang in 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"
class="org.springframework.security.ui.webapp.AuthenticationProcessingFil

I am trying to use spring application context and spring di in my scala vaadin app, but can't get a datasource to be injected
by MeldarthX in Programming Languages

i am new to scala and vaadin, i'm just experimenting. I am trying to use spring application context and spring di in my scala vaadin app, but can't get a datasource to be injected. I dont know, maybe i'm doing something fundamentally wrong but here's my code:


web.xml


<context-param>
<param-name>contextConfigLocation</param-name>
<

Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .