0
votes
0answers
3 views

Browser can't connect with spring4 websocket server

In a working Spring MVC 4.0.5 project running under Tomcat 7.0.50,following the the tutorial. In eclipse console (catalina log) when I start Tomcat, appear the rows Mapped URL path [/websocket.ws] ...
0
votes
0answers
7 views

How to test for performance or locking issues of sharing a database with another app

I have a typical Spring/Hibernate Tomcat webapp that has a user_info table. I’m trying to create another webapp that will do CRUD actions on the user_info table. I'm considering sharing the same ...
0
votes
0answers
13 views

how to ignore javax.el.PropertyNotFoundException: Target Unreachable, identifier resolved to null

Sorry, I know there is tons of similar questions to this one, but none are exactly targeting what I need. All I need is to ignore the property if it is currently null. In my case, the property is an ...
-2
votes
0answers
15 views

@Resource @Autowired @Inject [duplicate]

i would like to know what the difference between @Resource, @Autowired, @Inject . I know which @Autowired is used with spring framework and @Resource and @Inject are javax. is possible used this ...
0
votes
0answers
5 views

Spring Security for Active Directory searches by 'userPrincipalName' — is there a way to change this?

I'm still learning LDAP / Active Directory so correct me if my terminology is wrong at all :) In our Java Web Application, I'm trying to secure it with Spring Security LDAP. I managed to get Spring ...
0
votes
0answers
4 views

Is it possible to MongoTemplate.updateFirst() using Jackson @JsonAnySetter Mapped Model?

I'm using Jackson to map random XML fields into MongoDB (which works great). The class is: @JacksonXmlRootElement(localName = "event") public class NextEvent { @Id public String id; public String ...
0
votes
2answers
16 views

MVC application cannot perform RequestMapping

I'm new with javaEE development, i want to make simple "hello world" - spring,hibernate application, i already have mapped class to hibernate, dao classes etc... problem is that i would like to try my ...
1
vote
2answers
30 views

What is the most efficient way to tally how many bean values are not null?

I have a working form with multiple pages using Spring and Hibernate and need to report the progress of the fields completed thus far by the user (percentage of fields complete). Here are the options ...
0
votes
0answers
29 views

Pretty printed JSON inside an XML

I need to include some JSON data inside an XML output (I know it might not be the best way, but the system requires it). This problem is part of a Spring REST project. The Java method which generates ...
0
votes
1answer
11 views

How to call @NamedQueries from interface method definition?

I'm very new in Spring Framework, I want to know if is possible invoke Entity Named Query only defining the Named Query on the interface without any implementation. I want to do something like this. ...
1
vote
1answer
20 views

SFTP Inbound channel Adapter does not copy file when local directory has any content

I am trying to use Spring Batch Integration with Spring Batch programs that I have constructed already, but at this point I am just trying to get a working sample of Spring Integration with help from ...
1
vote
0answers
7 views

Spring Security filters in Java configuration and multiple WebSecurityConfigurerAdapters

Sorry to cross-post this here and the old spring forums, but I didn't get any responses and thought the original post may have gotten lost in the shuffle when the forums were deactivated. Anyhoo... ...
0
votes
1answer
9 views

Exception org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class

I have been struggling with this error for quite few days. I have a maven based project in eclipse. I am trying to deploy the application in Tomcat. My versions are : Java : JDK 1.7.0_55 Eclipse : ...
0
votes
0answers
12 views

Synchonize device-server time

I have a spring-web-mobile based application which needs to syncronize the instant when the app makes a request REGARDLESS the time zone, i. e. If a client changes the device time manually it would ...
0
votes
0answers
12 views

Providing anonymous access to request-mapping/controller in spring

I'm struggling to figure out what the problem is. I'm working on a spring web application that also has a mobile application. The mobile app needs to talk to our server to refresh the web clients. ...
0
votes
0answers
7 views

CXF-Client proxy not using my registered ParamConverterProvider

I have a fully functional JAXRS REST API setup using CXF and Spring. However, I can't seem to instruct my proxied services to use the use my JAXB setup to de-serialise my JODA time parameters. I get ...
0
votes
0answers
5 views

How to configure Quartz Instance to not process jobs

We have particular deployment specifics which are requiring us to need to split our Quartz deployment into 2 modules. The first module exposes REST endpoints and adds jobs (via the Quartz API) to ...
0
votes
1answer
12 views

spring batch error not showing on my web page

My spring batch process has some bad SQL error in the console....... I am using spring batch job from URL..At this time of error I am not able to see any errors on my webpage but there is some error ...
0
votes
0answers
27 views

Spring MVC Hibernate web application

Spring MVC + Hibernate web application with mysql database. 3 tables (products, members and cart to connect this two). Members table have two different users: admin and customer. It should be ...
0
votes
0answers
36 views

In Java Spring, how would I create a URL route that's only visible in development?

So I'm pretty new to Spring MVC, but I'm wondering if there's a way to setup a route that's visible in a development or test environment but not visible in production? To differentiate between ...
-1
votes
1answer
18 views

Synchonize time zones

I have a spring-web-mobile based application which needs to synchonize the instant when an event is produced regardless the time zone of both parts of the application. For instance: A client makes a ...
0
votes
0answers
16 views

Creating a plugin for TeamCity

Need to develop a plugin for TeamCity. Plugin must run code before each build. Should be able to configure the settings for the plugin in "Build step" menu. I did not find more information how to make ...
2
votes
1answer
28 views

Why is no TransactionRequiredException thrown when @Transactional is missing?

I've got a Spring/JPA configuration with Hibernate as the persistence provider. However I don't understand why there's no TransactionRequiredException thrown when I call save() on the following DAO ...
0
votes
1answer
23 views

Are model beans singleton in spring?

In spring the classes annotated with @Controller,@Service,@Repository,@Component act as spring beans and will be instantiated by spring container in singleton (Default scope). Here the model beans ...
-1
votes
2answers
37 views

JAVA EE web application and big traffic [on hold]

I choose java to make my web application with maven + hibernate + spring MVC + apache tomcat server (Java EE). My web application will have many users and many visitors every day. But my friend told ...
0
votes
2answers
28 views

Java Spring common way to implement user authentication

I am new to Java and I trying to write first web application with Spring framework (I have some experience with django/python and sinatra/ruby). I need to implement user authentication system and have ...
0
votes
2answers
19 views

Spring Boot Samples FileNot found error

I am folowing the examples about spring boot project. I have compiled and created a jar file via maven but having an error while running attempt. ...
0
votes
3answers
32 views

Spring controller best practice to receive data

I' m developing a REST WebApp with spring framework, now i'd like to know the best practice to receive data. It s best to retrieve them with @RequestParam or @PathVariable?Obviously i'm interested in ...
0
votes
2answers
12 views

CascadeType.ALL error when using FetchType.EAGER

I have this situation (using springMVC + hibernate): One "PriceList" record is made by one "Service" and one "Company": PriceList Class: //Many to one with Company @NotNull(message = "....") ...
2
votes
3answers
40 views

Conditional initialization of classes in spring

I have a service which refers to a single source. <bean id="XYZService" class="com.services.impl.DataService1"> <constructor-arg ref="DataSource1" /> </bean> <bean ...
0
votes
0answers
26 views

Joined Inheritance not working

We have updated following jars Spring from 3.1 to 4.0 Hibernate from 4.1 to 4.3 JPA from 1.0.1 to 2 and our schema is some what like this Primary table (having Id) Parent Table (having primary ...
3
votes
0answers
26 views

Re-throw Throwable from inside callback

I am implementing an AOP interceptor which process the logic in RetryTemplate. And problem is that ProceedingJoinPoint#execute is declared to throw Throwable, but RetryTemplate#doWithRetry allows to ...
0
votes
0answers
8 views

spring-data-mongodb entity implementing an interface create wrong collections

I want to allow user to choose their own persistence technologies, and to do so developers must write entities that implements given interface. By default application use spring-data with mongodb, ...
0
votes
1answer
21 views

Spring context is loaded twice when Spring DispatcherServlet is used from within MeteorServlet of Atmosphere

I am trying to setup a Web application that uses Spring 3.2.x Spring Security 3.x Atmosphere 2.x I started using this example SpringMVC-Atmosphere-Example. Using this web.xml configuration: ...
1
vote
0answers
5 views

Migration JOnAS to JBoss : carol.properties

I am currently trying to perform the migration of a web application from JOnAS 5.2.2 to JBoss 7.2.0. I am getting some troubles with the deployment under the JBoss server because my application is ...
0
votes
0answers
31 views

String MVC. Sometimes http request running too long

I am using HandlerInterceptor for calculating time of execution request. Most http requests to controller, that just returns String, running about 20ms, but 2% of requests running 250-1000ms. Server ...
2
votes
2answers
32 views

spring integration time out clients

My scenario with spring integration is: tens producer that send the data using a custom protocol(size and content) I have to decode this custom protocol and then handler the result. So I tried ...
0
votes
1answer
30 views

Get user information like user OS, Browser, Ip address etc

As the title says i am trying to get user information when he loges in into my site. I am using spring framework. So far I have used following HttpServletRequest httpRequest = (HttpServletRequest) ...
2
votes
2answers
47 views

JPA with Spring Data

I'm a newbie with Java and I need to create a console application that is going to connect with 4 databases (access, vfp, mysql and sqlserver). I started with hibernate.cfg.xml files and managed to ...
0
votes
1answer
24 views

bean reference again reference to another bean

@Autowired private Map<Integer, String> departments; My spring config file <bean id="date" class="java.util.Date" /> <util:map id="myMap" map-class="java.util.LinkedHashMap" ...
-3
votes
0answers
37 views

Java 3 layers options [on hold]

I want to develop a java web app following the 3 layers model, using the java EE. I have chosen JSF for the presentation layer. My question is the next one: Could I use Spring for the business logic ...
0
votes
0answers
20 views

Jackson SerializationConfig with spring and jersey

My problem is fairly similar to many other questions on here, such as this one: Jackson serializationConfig The difference is that I am not using Spring MVC. I am using spring 3.2.6 and jersey 1.18. ...
0
votes
1answer
16 views

Pass model object from spring controller to jsp

I am trying to pass a model object from spring controller to jsp. But the object is not rendering on the target page. Controller @Controller @RequestMapping("test"); public ModelandView ...
0
votes
0answers
18 views

Preferred way to query jdbctemplate in this situation?

I have 3 tables : movie, user, favorites movie : movieId, title,.... user : userId , name,... favorites : movieId, userId I want to check if a movie is a user's favorites. I can only think of 2 ways ...
1
vote
0answers
15 views

Connect MariaDB through Spring and Hibernate using SSL (Self-Signed) certificates

I have developed the J2EE application with Spring and Hibernate. Now I wanted to connect my application with MariaDB with SSL certificate (without using password) I can able to connect to my database ...
0
votes
2answers
42 views

Which classes should I turn to beans in a Spring project? [on hold]

I'm learning a spring framework and I have a question. When I create a Java/Spring project, which classes should I choose to describe as beans in Spring xml? For example: if I want to access DB table ...
0
votes
1answer
7 views

Third Party MBEANS operations management

I have a spring project where I have my custom mbeans(defined by user) and mbeans provided by jars. If I don't have to expose few operations of custom mbeans, I can put the mathod name values in ...
-1
votes
0answers
40 views

Debug Spring Boot app in Eclipse with embedded Tomcat

Here is what I want to do: Start the Application (http://spring.io/guides/tutorials/rest/3/) in embedded tomcat so I can debug in Eclipse. I try the spring-boot: public class MyApplication { ...
0
votes
1answer
10 views

How to Redirect Header Not Found Exception to Login Page in Spring Security

I am implementing solution using spring security siteminder. I am able to check SM_USER in header if the header is not found in the request i want to redirect the request to login page .how can i do ...
1
vote
2answers
44 views

Interceptors Java and checked exception

I am using Spring's AOP feature. I have class called class UserService { public User insertUserService(User user) throws PersistenceLayerException { ...