Tomcat 7.0不会在浏览器窗口中显示Web应用程序

时间:2013-07-17 11:22:57

标签: 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 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等)。任何建议。

0 个答案:

没有答案