Announcement Announcement Module
No announcement yet.
deploying to tomcat Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • deploying to tomcat

    Hello Spring community

    I'm new to spring and i try to run an example spring 3.0 webservice on a local tomcat 6.0 server from eclipse with spring source toolsuite plugin.
    The webservice gets compiled correctly and then i right click on tomcat in the server section in the down right corner of the spring view in eclipse and choose
    "Add and remove..." to copy the webservice to the webapp directory of the tomcat which eclipse uses. When i then start tomcat i get the following error message:

    SCHWERWIEGEND: Servlet /how-to-rest threw load() exception
    java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(
    	at org.springframework.web.servlet.DispatcherServlet.<clinit>(
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    	at java.lang.reflect.Constructor.newInstance(
    	at java.lang.Class.newInstance0(
    	at java.lang.Class.newInstance(
    	at org.apache.catalina.core.StandardWrapper.loadServlet(
    	at org.apache.catalina.core.StandardWrapper.load(
    	at org.apache.catalina.core.StandardContext.loadOnStartup(
    	at org.apache.catalina.core.StandardContext.start(
    	at org.apache.catalina.core.ContainerBase.start(
    	at org.apache.catalina.core.StandardHost.start(
    	at org.apache.catalina.core.ContainerBase.start(
    	at org.apache.catalina.core.StandardEngine.start(
    	at org.apache.catalina.core.StandardService.start(
    	at org.apache.catalina.core.StandardServer.start(
    	at org.apache.catalina.startup.Catalina.start(
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    	at java.lang.reflect.Method.invoke(
    	at org.apache.catalina.startup.Bootstrap.start(
    	at org.apache.catalina.startup.Bootstrap.main(
    In the tomcat properties page in eclipse i found that the relative path to the tomcat that eclipse uses is


    but the webapp subfolder of this directory is empty.
    How can i deploy the application correctly?

    Kind regards,

  • #2
    Of course the commons-logging-api-1.1.1.jar is in the referenced libraries of the application.