Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse Tomcat 7.0韩元';t在浏览器Windos中显示Web应用程序_Eclipse_Spring_Tomcat - Fatal编程技术网

Eclipse Tomcat 7.0韩元';t在浏览器Windos中显示Web应用程序

Eclipse Tomcat 7.0韩元';t在浏览器Windos中显示Web应用程序,eclipse,spring,tomcat,Eclipse,Spring,Tomcat,我正在构建一个在Eclipse中使用Spring+MyBatis+JSP的应用程序。这是一个非常基本的应用。程序符合要求,没有任何错误或警告。当我在项目中单击服务器上运行时,我在控制台中得到以下输出 输出: Jul 17, 2013 4:42:45 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal p

我正在构建一个在Eclipse中使用Spring+MyBatis+JSP的应用程序。这是一个非常基本的应用。程序符合要求,没有任何错误或警告。当我在项目中单击服务器上运行时,我在控制台中得到以下输出

输出

Jul 17, 2013 4:42:45 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Python33\;C:\Oracle\Ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Symantec\Workspace Virtualization\;C:\Program Files\Enterprise Vault\EVClient\;C:\Program Files\Lenovo\Access Connections\;C:\Program Files\Microsoft Office\Office14;C:\Program Files\Perforce;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\Nmap;C:\eclipse-jee-juno-SR2-win32\eclipse;;.
Jul 17, 2013 4:42:45 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:MyBatisHelloWorld' did not find a matching property.
Jul 17, 2013 4:42:46 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jul 17, 2013 4:42:46 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 17, 2013 4:42:46 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1133 ms
Jul 17, 2013 4:42:46 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 17, 2013 4:42:46 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.12
Jul 17, 2013 4:42:47 PM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'webapp.root' = [C:\Users\Anand_Roongta\workspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\MyBatisHelloWorld\]
Jul 17, 2013 4:42:48 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j from [C:\Users\Anand_Roongta\workspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\MyBatisHelloWorld\WEB-INF\classes\log4j-helloworld.xml]
Jul 17, 2013 4:42:48 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'HelloWorldMyBatis'
2013-07-17 16:42:48,436 INFO  DispatcherServlet:454 FrameworkServlet 'HelloWorldMyBatis': initialization started 
2013-07-17 16:42:48,502 INFO  XmlWebApplicationContext:510 Refreshing WebApplicationContext for namespace 'HelloWorldMyBatis-servlet': startup date [Wed Jul 17 16:42:48 IST 2013]; root of context hierarchy 
2013-07-17 16:42:48,597 INFO  XmlBeanDefinitionReader:315 Loading XML bean definitions from ServletContext resource [/WEB-INF/HelloWorldMyBatis-servlet.xml] 
2013-07-17 16:42:49,090 INFO  DefaultListableBeanFactory:596 Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@ac0f75: defining beans [helloWorldController,numbersServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,viewResolver,dataSource,txManager,sqlSessionFactory,sqlSession,userDao,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy 
2013-07-17 16:42:49,844 INFO  DefaultAnnotationHandlerMapping:315 Mapped URL path [/index] onto handler 'helloWorldController' 
2013-07-17 16:42:49,844 INFO  DefaultAnnotationHandlerMapping:315 Mapped URL path [/index.*] onto handler 'helloWorldController' 
2013-07-17 16:42:49,844 INFO  DefaultAnnotationHandlerMapping:315 Mapped URL path [/index/] onto handler 'helloWorldController' 
2013-07-17 16:42:49,844 INFO  DefaultAnnotationHandlerMapping:315 Mapped URL path [/helloWorld] onto handler 'helloWorldController' 
2013-07-17 16:42:49,845 INFO  DefaultAnnotationHandlerMapping:315 Mapped URL path [/helloWorld.*] onto handler 'helloWorldController' 
2013-07-17 16:42:49,845 INFO  DefaultAnnotationHandlerMapping:315 Mapped URL path [/helloWorld/] onto handler 'helloWorldController' 
2013-07-17 16:42:50,184 INFO  DispatcherServlet:473 FrameworkServlet 'HelloWorldMyBatis': initialization completed in 1745 ms 
Jul 17, 2013 4:42:50 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 17, 2013 4:42:50 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 17, 2013 4:42:50 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3847 ms

我认为这是一个有效的应用程序。但该应用程序根本不会显示在浏览器窗口中。Tomcat不会打开任何浏览器(就像它的默认行为一样,比如内部浏览器或Firefox等)任何建议

您的意思是,问题是启动Tomcat时浏览器没有启动吗?当你在浏览器中输入你的URL时,它工作吗?自己打开一个浏览器并转到Nope。我试着输入德克提到的URL。它给了我一个404。我无法理解,如果没有任何错误,我该如何找出404发生的原因。@user2339071您是否设置了响应
../MyBatisHelloWorld/
?如果没有,请尝试指向您实际希望存在的资源(例如,
../MyBatisHelloWorld/foo.html
)。@ChristopherSchultz:我已将我的设置为index.jsp,并且在Web内容目录中有一个名为index.jsp的jsp。我想应该显示在右边。。?我还向控制器中的(\index)添加了一个“@RequestMapping”。