2013年11月17日星期日

Spring could not be loaded question : org.springframework.web.servlet.DispatcherServlet. . .

Spring version : spring-framework-3.2.2.RELEASE



error message is as follows :

SEVERE: Servlet / CMS threw load () exception

java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java: 1664)

at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java: 1509)

......


web.xml configuration file content is:



springServlet

org.springframework.web.servlet.DispatcherServlet

1





springServlet

*. html





in Internet search reasons, some do not see the introduction of spring package, or whether it is class does not exist , I have carefully examined , the existence of


say there is the question of agency , but I do not understand what is meant agent , how check it ?


project is as follows:



------ Solution ------------------------------------ --------
org.springframework.web.servlet.DispatcherServlet
you hold down ctrl, click on that , if you go to prove that there is .
then you release the bag checking whether that class ,
------ Solution ----------------------- ---------------------
to your project under the tomcat webapp inside to see if there webmvc this jar, or whether to repeat .
------ Solution ---------------------------------------- ----
as mentioned above , tomcat 's webapp directory,
If the project is not released in that , went to the workspaces \. metadata \ below to find.

generally determine that class , but can not find the class burst , I will first kind of problem , first clear the release of the project , and then build and then publish
------ Solution ----- ---------------------------------------

re- clean under try restarting under compilation
------ Solution ------------------------------ --------------
the lib emptied , buildpath inside with jar files to try ?
------ For reference only -------------------------------------- -


reconfirmed , there is this class , as shown in


also ask, how check it needs to publish a package ?
I used eclipse to engage in, thank you very much for your answer
------ For reference only --------------------- ------------------
halo, wrong, how there is no hint of this class . . .

I check the next . . . Thank
------ For reference only ------------------------------------- -
class exists , but the source file does not exist , only to come out that prompted the introduction of the original document read, the problem remains.
------ For reference only -------------------------------------- -
me this has not been released , but in the process of developing , debugging, through elipse start tomcat, errors encountered , not in the operating environment after the release start .

in eclipse , I put the spring bag on webContent \ web-inf \ lib below

error now becomes:
java.lang.ClassNotFoundException: org.springframework.web.context.ConfigurableWebEnvironment

I changed two spring versions ( 3.2.2 and 3.2.0 ) , different versions , suggesting that the class can not be found are all different .
one is unable to find : org.springframework.web.context.ConfigurableWebEnvironment (3.2.0 version of Down Under )
one is unable to find : org.springframework.web.context.request.async.CallableProcessingInterceptor (3.2.2 versions )

engage giddy




------ For reference only ---------------------------------- -----
replaced by another version 3.1.0 , everything is normal , do not take my latest version of it . . . I do not know where to cause conflicts , thank you . . .

------ For reference only ---------------------------------- -----
I'm going crazy , I found this jar to remove the core will be able to start tomcat, but the core behind many had not even removed the
------ For normal operation reference only ---------------------------------------
or refresh , and sometimes add good package , no refresh will not find package

没有评论:

发表评论