Jun 13th, 2006, 07:29 PM
Having a problem w/tomcat-connect in "Developing a Spring Framework MVC - Part 1"
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 verbatim. Here is the shell input/output.
C:\dev\springapp\build.xml:103: java.net.ConnectException: Connection refused: connect
Any suggestions/thoughts on the problem could be?
Jun 14th, 2006, 01:49 AM
Wrong Tomcat address?
Could it be that you have input the wrong path to the Tomcat installation? Or maybe wrong username or password?
Jun 14th, 2006, 11:58 AM
hi, i thought you might be interested to know i checked out the config stuff and it all looked right... finally I started Tomcat manually and actually/manually logged into the manager ... then it worked from ANT to start & stop it after that ... maybe there was some init thing that needed to happen? thanks for the nudge to keep at it
Jun 22nd, 2006, 04:26 AM
i'm following the same exmaple to start working with Spring..
I have this problem when trying to reach hello.htm how the exmaple explain
org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'springappcontroller' defined in ServletContext resource [/WEB-INF/springapp-servlet.xml]: Bean class [SpringappController] not found; nested exception is java.lang.ClassNotFoundException: SpringappController
why the context can't find my .class?
any suggestion ?
thanks for the help.
Jul 14th, 2006, 04:31 PM
"Developing a Spring Framework MVC - Part 1"
I had a similar problem and needed to add the fully qualified name to the bean class. See below.
<bean id="SpringTutorialController" class="com.ibx.SpringTutorial.controller.SpringTut orialController"/>
<bean id="urlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
Jul 16th, 2006, 03:30 AM
Actually, I was facing the same problem till you realize the simple fact that the start and stop targets as described by the build.xml are only referring to starting and stopping the application itself and not the server. So for the application to be started or stopped, the foremost requirement is for the server to be running in the first place. That is why you kepy getting that connect error simply because the server was not running at all. Hope that helps. If you want the targets to start and stop the server, let me know and I will post it for you.
Originally Posted by gkasrel