• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.springframework.web.servlet.DispatcherServlet noHandlerFound

 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I've changed my Spring jar's from 3.0.0 to 3.0.5 and now I cannot get my project to work.

When I try to access the main page [/Coupons/coupon/list.htm] I get on the console:



Although I have in my web.xml



and in my dispatcher-servlet.xml:



Could you please guide me as to what is wrong here? Everything used to work before I upgraded the jar's.

Thanks.
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joseph Sweet wrote:



Can you change the above bean name to /coupon/list.htm and check once?
Joseph Sweet wrote:
Everything used to work before I upgraded the jar's.

Are you sure it was working before? I don't think so..
 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I do not see how changing the name to a more specific one could help. But anyway I just tried it and I still get the same result.

Also, I should mention that my controller does not use annotations.. it looks like this:



BTW I am sure it used to work before upgrading the jar's. I've been working on this project during the last couple of weeks so I'm pretty sure I remember it working.
If you think my code did not use to work up to now then what is there in it that is mistaken?

I appreciate your time.
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't know, that you are using MultiActionController, so told you to use specific one.
In the method signature to
Here we have used Command object instead of Coupon object, inside the method, you can typecast it to Coupon class..

P:S: Since you tell, it was working earlier, are you sure, you are using MultiActionController of servlet package and not portlet package here..
 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you say that using a MultiActionController requires a specific name...? It is supposed to be able to deal with more than one name.

And I do not understand how what you suggest about the portlet package is possible... when I use MultiActionController I import the one that belongs to the right package (the one that used to work until a few days). I did not change my code at all, nor did I change the import statements. If this package had not been in the new jars then I would have received an exception... but I get no exception as I said.. only a warning and that 404 HTTp error.

Thank you for your help.
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I meant, If we use MultiActionController, no need to use specific names.
Did you try changing the method signature as suggested in my previous post?
 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you mean



?

I cannot see how it might change to result. But I tried it and I still get the



And



Is there any place where I could check what went wrong?

 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The 10 jars in bold are the ones I've upgraded. As you can see my code does not work anymore after the upgrade.


My old lib directory (where my code used to work)

03/21/2011 05:03 PM 443,432 antlr-2.7.6.jar
07/02/2009 02:24 PM 92,015 antlr-runtime-3.0.jar
03/21/2011 05:03 PM 559,366 commons-collections-3.1.jar
05/12/2011 12:15 PM 121,757 commons-dbcp-1.2.2.jar
07/02/2009 02:24 PM 38,015 commons-logging-1.0.4.jar
07/04/2009 04:28 AM 44,598 commons-logging-api-1.1.jar
05/12/2011 12:20 PM 42,492 commons-pool-1.2.jar
03/21/2011 05:03 PM 313,898 dom4j-1.6.1.jar
05/06/2011 12:01 PM 50,583 ejb3-persistence-1.0.2.GA.jar
05/13/2011 12:44 PM 100,884 hibernate-jpa-2.0-api-1.0.0.Final.jar
03/21/2011 05:03 PM 4,115,591 hibernate3.jar
03/13/2011 11:04 PM 1,358,802 hsqldb.jar
03/21/2011 05:03 PM 633,312 javassist-3.12.0.GA.jar
07/04/2009 04:46 AM 20,682 jstl.jar
03/21/2011 05:03 PM 10,899 jta-1.1.jar
03/21/2011 05:03 PM 785,998 mysql-connector-java-5.1.15-bin.jar
07/02/2009 02:24 PM 53,050 org.springframework.asm-3.0.0.M3.jar
07/02/2009 02:24 PM 497,506 org.springframework.beans-3.0.0.M3.jar
07/02/2009 02:24 PM 530,360 org.springframework.context-3.0.0.M3.jar
07/02/2009 02:24 PM 99,138 org.springframework.context.support-3.0.0.M3.jar
07/02/2009 02:24 PM 318,696 org.springframework.core-3.0.0.M3.jar
07/02/2009 02:24 PM 193,901 org.springframework.expression-3.0.0.M3.jar
05/12/2011 12:42 PM 360,343 org.springframework.jdbc-3.0.0.M3.jar
05/12/2011 12:43 PM 328,461 org.springframework.orm-3.0.0.M3.jar

05/12/2011 12:44 PM 225,559 org.springframework.transaction-3.0.0.M3.jar
07/02/2009 02:24 PM 259,989 org.springframework.web-3.0.0.M3.jar
07/02/2009 02:24 PM 433,844 org.springframework.web.servlet-3.0.0.M3.jar

03/21/2011 05:03 PM 25,496 slf4j-api-1.6.1.jar
03/21/2011 05:02 PM 7,669 slf4j-simple-1.6.1.jar
07/04/2009 04:46 AM 393,259 standard.jar
30 File(s) 12,459,595 bytes

My new lib directory (where my code DOES NOT work anymore)

03/21/2011 05:03 PM 443,432 antlr-2.7.6.jar
07/02/2009 02:24 PM 92,015 antlr-runtime-3.0.jar
03/21/2011 05:03 PM 559,366 commons-collections-3.1.jar
05/12/2011 12:15 PM 121,757 commons-dbcp-1.2.2.jar
07/02/2009 02:24 PM 38,015 commons-logging-1.0.4.jar
07/04/2009 04:28 AM 44,598 commons-logging-api-1.1.jar
05/12/2011 12:20 PM 42,492 commons-pool-1.2.jar
03/21/2011 05:03 PM 313,898 dom4j-1.6.1.jar
05/06/2011 12:01 PM 50,583 ejb3-persistence-1.0.2.GA.jar
05/13/2011 12:44 PM 100,884 hibernate-jpa-2.0-api-1.0.0.Final.jar
03/21/2011 05:03 PM 4,115,591 hibernate3.jar
03/13/2011 11:04 PM 1,358,802 hsqldb.jar
03/21/2011 05:03 PM 633,312 javassist-3.12.0.GA.jar
07/04/2009 04:46 AM 20,682 jstl.jar
03/21/2011 05:03 PM 10,899 jta-1.1.jar
03/21/2011 05:03 PM 785,998 mysql-connector-java-5.1.15-bin.jar
05/12/2011 12:44 PM 225,559 org.springframework.transaction-3.0.0.M3.jar
03/21/2011 05:03 PM 25,496 slf4j-api-1.6.1.jar
03/21/2011 05:02 PM 7,669 slf4j-simple-1.6.1.jar
06/05/2011 10:27 AM 53,082 spring-asm-3.0.5.RELEASE.jar
06/05/2011 10:23 AM 555,410 spring-beans-3.0.5.RELEASE.jar
06/05/2011 10:28 AM 668,861 spring-context-3.0.5.RELEASE.jar
06/05/2011 10:28 AM 100,870 spring-context-support-3.0.5.RELEASE.jar
06/05/2011 10:20 AM 382,442 spring-core-3.0.5.RELEASE.jar
06/05/2011 10:29 AM 169,752 spring-expression-3.0.5.RELEASE.jar
06/05/2011 10:29 AM 385,712 spring-jdbc-3.0.5.RELEASE.jar
06/05/2011 10:27 AM 334,327 spring-orm-3.0.5.RELEASE.jar
06/05/2011 10:31 AM 395,587 spring-web-3.0.5.RELEASE.jar
06/05/2011 10:09 AM 418,977 spring-webmvc-3.0.5.RELEASE.jar

07/04/2009 04:46 AM 393,259 standard.jar
30 File(s) 12,849,327 bytes

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that this should matter but in your new list of jars you have

05/12/2011 12:44 PM 225,559 org.springframework.transaction-3.0.0.M3.jar

Why didn't you upgrade that jar to 3.0.5?

Also, just so you know, the Controller interfaces have been deprecated over the preferred approach of using Annotations in your POJO Controllers.

Mark
 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark Spritzler wrote:05/12/2011 12:44 PM 225,559 org.springframework.transaction-3.0.0.M3.jar

Why didn't you upgrade that jar to 3.0.5?

Also, just so you know, the Controller interfaces have been deprecated over the preferred approach of using Annotations in your POJO Controllers.


I did not upgrade org.springframework.transaction because I did not find something like spring-transaction in the repository....

http://shrub.appspot.com/maven.springframework.org/release/org/springframework/

I know the controller interfaces are deprecated now.. I was thinking to upgrade them at some point in the near future. However as far as I know they still should basically work in 3.0.5... is this not the case? They are included in the jars.

Also, I have another question regarding these jars... some repositories have these jars with the older(?) package names. Like here:

http://repository.opencastproject.org/nexus/content/repositories/com.springsource.repository.bundles.release/org/springframework/

Why do they do it and who actually distributes Spring with two different sets of jar names? The same version of Spring (3.0.5.RELEASE) appears in the first repository with names like spring-XXX-3.0.5.RELEASE while in the second repository these jars appear with names like org.springframework.XXX-3.0.5.RELEASE.
Also, I have noticed that the servlet jar appears as "webmvc" in the first repository and as "web.servlet" in the second repository.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Maven central repo uses

<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<packaging>jar</packaging>
<version>3.0.5.RELEASE</version>

So for Transactions jar you use spring-tx.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic