tomcat « MVC « Spring Q&A





1. Tomcat not showing Spring Context initialization errors when running from Eclipse WTP    stackoverflow.com

Im working with Eclipse Galileo (WTP), Spring 2.5.6-SEC01 and Apache Tomcat 5.5.28. When I run my application from Eclipse, I'm able to see Tomcat standard output and error from the console view. When ...

2. what tomcat native library should I be using in production?    stackoverflow.com

When I compile my spring mvc app, I get this in the output:

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on ...

3. Spring MVC annotation config problem    stackoverflow.com

I'm trying to improve my spring mvc configuration so as to not require a new config file for every servlet I add, but I'm running into problems. I've tried using

4. Tomcat serving static resources on Spring MVC app    stackoverflow.com

I'm building a Spring MVC application, and the frontController servlet is mapped in "/" intercepting all requests, I'd to be able to serve the static contents (.js,.css,.png...) from tomcat and ...

5. What is recommended way for spawning threads from a servlet in Tomcat    stackoverflow.com

Probably a repeat! I am using Tomcat as my server and want to know what is best way to spawn threads in the servlet with deterministic outcomes. I am running some ...

6. How to debug Spring MVC tomcat application?    stackoverflow.com

I am trying a spring MVC application on tomcat server.. I am always getting the error as resource not found(please see the question if you have time)..I think there is some ...

7. changing app root for spring mvc app on tomcat    stackoverflow.com

I am working with a sample RESTEasy 2.0 resource on Spring MVC 3.0 and deplying to Tomcat 6. I can get to my resource through http: //localhost:8080/examples-resteasy-2.1-SNAPSHOT/contacts but I would like ...

8. Spring MVC IndexOutOfBounds under load    stackoverflow.com

I have a simple Spring MVC application with a REST-like web service. When I load-test this app - from time to time it throws the following exception. I don't know why ...

9. Accessing Files From Web Document Root    stackoverflow.com

I'm using Spring MVC 3.0 and Tomcat. I have a bean that has a property whose value should be a path rooted from the web document root. For example, I would specify ...





10. Best way to have tomcat app reside at /    stackoverflow.com

At work we have many Spring apps running on one tomcat server. Some of the apps have their own domains with a virtualhost in apache that rewrites requests from /url to ...

11. Spring deployment in tomcat 5.5 problem    stackoverflow.com

I have made a web application using spring and spring-mvc 2.5.I also used jdk-5 and tomcat 6 for development.Now I want to deploy it in a live server which is tomcat ...

12. Eclipse: Error starting static Resources java.lang.IllegalArgumentException    stackoverflow.com

I have a project called myproject2 in my Eclipse IDE. I have a Tomcat application server and I can add there the resource myproject2 (it is a Spring MVC project). Now I ...

13. Spring Tomcat and static resources and mvc:resources    stackoverflow.com

I started doing a web app from scratch. Before I've always been working on apps that were already running for a long time, so I didn't have to deal with the ...

14. Spring MVC, JSP and NullPointerException    stackoverflow.com

I have spring mvc application with dummy jsp page (named htmlcontent.jsp). The jsp contains just a string:

HalloText
and this is the entire content of the jsp. The controller looks as follow:
package springapp.web;

import ...

15. Setting a maximum response time in a spring 3.0 application    stackoverflow.com

I have a web application that our product owner has stated must respond within 2.5 seconds and be usable within 3 seconds. Right now it's mostly POJOs on top of a thinly ...

16. How does Tomcat prioritize which type of error page to use?    stackoverflow.com

I have two error pages; 1 is for SpecificExceptionA and the other is for Throwable.

<error-page>
  <exception-type>org.SpecificExceptionA</exception-type>
  <location>/WEB-INF/views/error/timedout.jsp</location>
</error-page>

<error-page>
  <exception-type>java.lang.Throwable</exception-type>
  <location>/WEB-INF/views/error/error.jsp</location>
</error-page>
If I have both of these defined in my ...





17. Spring 3.0 URL Mapping Issues    stackoverflow.com

I'm testing an upgrade from Spring 2.0 to Spring 3.0.5 on Tomcat and am having an issue where there is different mapping behavior for URLs that have a trailing slash versus ...

18. Problem using @Valid with Spring MVC application deployed to Tomcat    stackoverflow.com

I am building a Spring MVC application and deploying to Tomcat. When I try to use the @Valid syntax, I get a compilation error: Valid cannot be resolved to a type. I ...

19. page.jsp does not work    stackoverflow.com

I have a tomcat - spring mvc - jsp application. I have discovered that a page called page.jsp is not found (404). But if I called page2.jsp then it just works fine. ...

20. Java, Tomcat, ServletContextListener, and a background thread    stackoverflow.com

I have a servlet that handles a particular incoming request. We'll call it `UpdateUserStats'. I want the call to be fast, but I also need the request to do ...

21. Deploying a sample Spring Web MVC project    stackoverflow.com

I'm new to Tomcat, Maven and Spring Web MVC (framework v3 to be precise). I was trying to build the example project mvc-basic so that I could deploy the ...

22. Unable to capture exception on error page    stackoverflow.com

I'm trying to print out the an exception stack trace on a jsp page. However, the implicit exception object doesn't seem to be populated.

<div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions"
 xmlns:spring="http://www.springframework.org/tags"
 xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:output omit-xml-declaration="yes"/>
<jsp:directive.page ...

23. Is there any special configuration to cause "application/json" mime type to be accepted Tomcat 6.0 (Spring MVC 3.0)?    stackoverflow.com

Is there any special configuration one must do? or should it work out of the box? e.g. should I add something like this to make it work?

 <mime-mapping>
    <extension>json</extension>
 ...

24. Spring MVC IllegalStateException Error    stackoverflow.com

I'm trying to create a simple test website using spring MVC and I cannot seem to get past the most simple case. I have a jsp website that is a "login" ...

25. Strange error in SpringMVC Application Startup    stackoverflow.com

I'm getting a very strange stack trace when trying to load a SpringMVC application and at a lost to why this is occurring.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0': Cannot create ...

26. problems with validation files Spring mvc 3    stackoverflow.com

I'm having some problem with the Validation files in my Spring 3 project. I have a very basic validation project for tests thats the bean:

public class User { 
    ...

27. Problem in copy task    stackoverflow.com

When I war a spring mvc project, the war file cannot be deployed to tomcat with ZipException oversubscribed literal/length tree. I find that when I open All files in WEB-INF/LIB/*.jar when ...

28. Open new thread in Tomcat    stackoverflow.com

I'm just asking theoretical question. I' have an operation which takes some period of time which is performed in some Servlet doGet/doPost method or inside of Spring MVC controller . is is ...

29. Spring 3 MVC, Tomcat -Webap hangs after a few requests    stackoverflow.com

i created (my first) small spring 3 MVC application, but ran into an issue which is a little bit mysterious for me. The application has a few forms to manipulate a database. ...

30. Tomcat servlet RequestDispatcher forward overrides the response code    stackoverflow.com

I'm seeing some strange behavior with a RequestDispatcher forward in Tomcat. I'm mentioning Tomcat because the the exact code doesn't generate the problem on Jetty, so it is probably related to ...

31. How can I enable java assertions in Tomcat    stackoverflow.com

I would like to use the Java assert keyword in my Spring web-app, primarily on my domain classes (checking invariants within constructors), but I cannot see how to enable runtime assertion ...

32. Auto refresh of static content in Spring 3    stackoverflow.com

In my Spring 3 web app the users are able to upload images using Springs multipart resolver. The image is save to the folder defined in the apps servlet-context.xml:

<mvc:resources mapping="/resources/**" location="/resources/" ...

33. Does Spring MVC support extension-less URLs?    stackoverflow.com

Does Spring MVC support extension-less URLs like asp.net mvc does? I would appreciate any info anyone has. I am just getting started with spring MVC. Or maybe has nothing to do with Spring ...

34. How to configure maping in Spring MVC and Tomcat    stackoverflow.com

im trying configure SpringMVC project and i have error when compile

WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/test/home.jsp] in DispatcherServlet with name 'appServlet'
I have a jsp ...

35. NullPointerException DefaultListableBeanFactory    stackoverflow.com

When i run the tomcat in debug mode inside eclipse, i get DefaultListableBeanFactory:

INFO: FrameworkServlet 'mvc-dispatcher': initialization started
30/Ago/2011 17:07:33 org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'mvc-dispatcher-servlet': startup date [Tue Aug 30 17:07:33 ...

36. Ant, Tomcat Build Error: java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/B2CConverter    stackoverflow.com

Tomcat Version: 7.0.20 I am attempting to work my way through the following Spring MVC tutorial: http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html In this tutorial, an ant build script is setup to deploy to tomcat using the manager. ...

37. Remote editing of a SpringSource application on Tomcat    stackoverflow.com

I'm working on a project currently up and running on a Tomcat 6 install and coded with SpringSource. I downloaded STS, but I don't understand how I get my STS installation to ...

38. JSP Spring app on Tomcat not delivering page    stackoverflow.com

Ok I'm stumped. I am writing a Spring based app that queries a web service for information to load a SELECT object based on the user's id. I've set ...

39. Spring 3 Web MVC error - requested URL /app-context/page-name was not found on this server    stackoverflow.com

I am new to Spring and I developed my first spring mvc web app using sts/eclipse. I need your help on this error that surfaced after deployment to my webhost. Please note that ...

40. I can't debug using breakpoints    stackoverflow.com

I'm getting a strange error message in SpringSource Tool Suite (eclipse) when I try to place breakpoints and debug my project, so in this case, when I start Tomcat for debug ...

41. Spring MVC: CannotLoadBeanClassException for bean in classpath resource    stackoverflow.com

My set up is as follows:

  • Tomcat 7
  • Spring MVC 3.0.6
  • Eclipse Indigo
File structur looks like this
src
    - main
      - java
      ...

42. Tomcat 6.0.32 and Spring 3.0.5 MVC Problem    forum.springsource.org

Tomcat 6.0.32 and Spring 3.0.5 MVC Problem Hi All, I am finally taking the plunge and ditching struts for Spring. I have been attempting to follow the older tutorials like this: ...

43. STS springMVC project how to run on tomcat application    forum.springsource.org

STS springMVC project how to run on tomcat application hi people i m beginner about Spring and i want to use STS with eclipse. well i use template Springproject with STS ...

44. Spring Web MVC app problem deployed as root on a webhost Tomcat server    forum.springsource.org

Spring Web MVC app problem deployed as root on a webhost Tomcat server Hi everyone. This is driving me crazy. I am new to Spring and I developed my first ...

45. deploy spring mvc project to external tomcat    forum.springsource.org

deploy spring mvc project to external tomcat Hi, i'm beginer on spring java, and i need a little help. I've created mvc project in STS, i've added tomcat to servers in ...

46. Returning static files with Spring MVC and Tomcat    forum.springsource.org

Returning static files with Spring MVC and Tomcat Hi - [ This is a question about the collaboration between Spring and Tomcat configurations for serving CERTAIN urls as just static file ...

47. Having a problem w/tomcat-connect in "Developing a Spring Framework MVC - Part 1"    forum.springsource.org

Hi, I am going through the tutorial at http://www.springframework.org/docs/...ep-Part-1.html and I am trying to run the ANT directives for controlling tomcat ... eg, ant start . I copied the build.xml file ...

48. Spring MVC are compatible with Tomcat 5.5    forum.springsource.org

I'm interested on spring development, and I use lot tutorials but every time I have an error when I deploy it in tomcat 5.5 and run it in browser, an error ...

49. Spring MVC, Sitemesh & Tomcat - error view not rendered    forum.springsource.org

Spring MVC, Sitemesh & Tomcat - error view not rendered Hi all, I'm hoping someone can help. I've been looking at this for two days, and I've come to a dead ...

50. STS - Spring MVC deployment on Tomcat    forum.springsource.org

STS - Spring MVC deployment on Tomcat Hello, I'm having the following problem with Springsource Tool Set - I can't deploy created MVC application on existing Tomcat server. That's definaltely a ...