misha nesterenko

Greenhorn
+ Follow
since Feb 05, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by misha nesterenko

Hello

how can set jvm property in jar file? so now I am using bat file with command java -jar jar.jar -Dsome.property.name=value, I would like to avoid this additional parameter -D
13 years ago

Peter Johnson wrote:Now I understand - thank you. How are you deploying the app? Via Eclipse or via a Maven plugin?


via eclipse

Peter Johnson wrote:
BTW, I used to do exactly what you are asking for with an Ant script (at least for adding a JAR) - the <copy> task would copy only the new JARs and leave the rest there. But for Maven I always clean and rebuild.


heh, but I thought that eclipse has more tight connection between eclipse and maven, i.e. eclipse is deploying webapp, it knows that all dependencies goes to WEB-INF/lib, it asks maven "give me dependencies"; something like that.
13 years ago

Lee Button wrote:Have all the spring jars been deployed to the server in the WEB-INF/lib folder?


Yes
13 years ago
for instance I have added one dependency, I want it to appear in WEB-INF/lib without repackaging. I want just this one dependency to be copied to WEB-INF/lib. The same with deleting, if I have deleted one dependency I do not want to clean and then package project again, I want this deleted assembly to disappear from WEB-INF/lib.

It is a bit cumbersome to repackage project (not all projects, just only one) when only one file needs to be copied.
13 years ago
Hello

I am using Maven2, Eclipse with m2e plugin and Tomcat. How can I configure eclipse to take maven dependencies when deploying to tomcat? I have configured (in project properties) deployment assembly which folders to take for deployment, but when I have to change list of dependencies I have to clean and then package all project again, that is a bit long process. How can I tell eclipse that it has to take all necessary dependencies, so cleaning and subsequent packaging won't be necessary.
13 years ago
Hello

I am stuck with some weird xml validation error. Eclipse says




but despite this fact webapp is successfully compiled and deployed

could you explain me, what is root of this error and how to avoid it?
I have already done it.
I have used reCaptcha, no problems here. Main problem was to intercept authentication process to check captcha and reject authentication whenever that is necessary. I don't know if my way is the best one, so if there is better solution I would like to hear it . I had to declare my own authentication provider sublassed from DaoAuthenticationProvider and there I overrode additionalAuthenticationChecks, that is a place where I verify captcha. Moreover I subclassed WebAuthenticationDetails to save captcha from request for subsequent verification. That was a bit difficult to tie together, as I am new to spring and had to search internet for lots of things.
13 years ago
I think books is more user friendly than just a documentation

how one can measure amount of knowledge you get?
13 years ago
Hello

I would like to add captcha to a login form, how can I implement it?
13 years ago
you could try start reading their documentation to get used to their inversion of control container first
http://www.springsource.org/documentation
13 years ago
Hello, I have recently encountered the same problem

matter is not in model, If you bind correctly, object is contained in it, you have to specify correct xml schema

solution: https://coderanch.com/t/527405/JSP/java/EL-not-working
13 years ago
I am trying to get spring security working, but still no luck

I have web.xml


and applicationContext-security.xml


when I run it, I get

13 years ago
thank you, proper xmlns helped
13 years ago
JSP
this variable goes from spring model, which scope is it in jsp page?

actually isELIgnored="false" helped, but how can configure application to avoid including this attribute
13 years ago
JSP
Hello



after execution I get in output ${cmd} but not its contents, how to solve this?
13 years ago
JSP