Announcement Announcement Module
Collapse
No announcement yet.
deploying to tomcat Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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:

    Code:
    SCHWERWIEGEND: Servlet /how-to-rest threw load() exception
    java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
    	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
    	at org.springframework.web.servlet.DispatcherServlet.<clinit>(DispatcherServlet.java:207)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    	at java.lang.Class.newInstance0(Class.java:355)
    	at java.lang.Class.newInstance(Class.java:308)
    	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116)
    	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:519)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    In the tomcat properties page in eclipse i found that the relative path to the tomcat that eclipse uses is

    .metadata/.plugins/org.eclipse.wst.server.core/tmp0

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

    Kind regards,
    Chang

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

    Comment

    Working...
    X