严重 Error starting endpointjava.lang.Exception Socket bind failed
2012-9-15 20:48:21 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.20.
2012-9-15 20:48:21 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2012-9-15 20:48:21 org.apache.coyote.http11.Http11AprProtocol init
严重: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] ??????????á???(Э?¨|/???????/???)????¨a??
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649)
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1022)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2012-9-15 20:48:21 org.apache.catalina.core.StandardService initialize
严重: Failed to initialize connector [Connector[HTTP/1.1-10003]]
LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] ??????????á???(Э?¨|/???????/???)????¨a??
at org.apache.catalina.connector.Connector.initialize(Connector.java:1024)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2012-9-15 20:48:21 org.apache.coyote.ajp.AjpAprProtocol init
严重: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] ??????????á???(Э?¨|/???????/???)????¨a??
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649)
at org.apache.coyote.ajp.AjpAprProtocol.init(AjpAprProtocol.java:160)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1022)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2012-9-15 20:48:21 org.apache.catalina.core.StandardService initialize
严重: Failed to initialize connector [Connector[AJP/1.3-8009]]
LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] ??????????á???(Э?¨|/???????/???)????¨a??
at org.apache.catalina.connector.Connector.initialize(Connector.java:1024)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2012-9-15 20:48:21 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 713 ms
2012-9-15 20:48:21 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-9-15 20:48:21 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.32
2012-9-15 20:48:21 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2012-9-15 20:48:22 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory composite
2012-9-15 20:48:22 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\apache-tomcat-6.0.32\webapps\composite\WEB-INF\lib\geronimo-servlet_2.5_spec-1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2012-9-15 20:48:22 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\apache-tomcat-6.0.32\webapps\composite\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
2012-9-15 20:48:22 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
go gog
查询了
HQL:FROM Resource WHERE type=? ORDER BY ordervalue ASCVALUES:1
---->query:::QueryImpl(FROM Resource WHERE type=? ORDER BY ordervalue ASC)
Hibernate: select resource0_.urid as urid115_, resource0_.ordervalue as ordervalue115_, resource0_.type as type115_, resource0_.value as value115_ from usr_resource resource0_ where resource0_.type=? order by resource0_.ordervalue ASC
Hibernate: select auths0_.urid as urid1_, auths0_.anid as anid1_, authority1_.anid as anid113_0_, authority1_.aclayer as aclayer113_0_, authority1_.action as action113_0_, authority1_.anname as anname113_0_, authority1_.ishaschild as ishaschild113_0_, authority1_.name as name113_0_, authority1_.ordervalue as ordervalue113_0_, authority1_.parentid as parentid113_0_, authority1_.remark as remark113_0_, authority1_.rootid as rootid113_0_, authority1_.viewmode as viewmode113_0_ from usr_relation_resource auths0_ left outer join usr_action authority1_ on auths0_.anid=authority1_.anid where auths0_.urid=? order by authority1_.anid asc
Hibernate: select auths0_.urid as urid1_, auths0_.anid as anid1_, authority1_.anid as anid113_0_, authority1_.aclayer as aclayer113_0_, authority1_.action as action113_0_, authority1_.anname as anname113_0_, authority1_.ishaschild as ishaschild113_0_, authority1_.name as name113_0_, authority1_.ordervalue as ordervalue113_0_, authority1_.parentid as parentid113_0_, authority1_.remark as remark113_0_, authority1_.rootid as rootid113_0_, authority1_.viewmode as viewmode113_0_ from usr_relation_resource auths0_ left outer join usr_action authority1_ on auths0_.anid=authority1_.anid where auths0_.urid=? order by authority1_.anid asc
Hibernate: select auths0_.urid as urid1_, auths0_.anid as anid1_, authority1_.anid as anid113_0_, authority1_.aclayer as aclayer113_0_, authority1_.action as action113_0_, authority1_.anname as anname113_0_, authority1_.ishaschild as ishaschild113_0_, authority1_.name as name113_0_, authority1_.ordervalue as ordervalue113_0_, authority1_.parentid as parentid113_0_, authority1_.remark as remark113_0_, authority1_.rootid as rootid113_0_, authority1_.viewmode as viewmode113_0_ from usr_relation_resource auths0_ left outer join usr_action authority1_ on auths0_.anid=authority1_.anid where auths0_.urid=? order by authority1_.anid asc
Hibernate: select auths0_.urid as urid1_, auths0_.anid as anid1_, authority1_.anid as anid113_0_, authority1_.aclayer as aclayer113_0_, authority1_.action as action113_0_, authority1_.anname as anname113_0_, authority1_.ishaschild as ishaschild113_0_, authority1_.name as name113_0_, authority1_.ordervalue as ordervalue113_0_, authority1_.parentid as parentid113_0_, authority1_.remark as remark113_0_, authority1_.rootid as rootid113_0_, authority1_.viewmode as viewmode113_0_ from usr_relation_resource auths0_ left outer join usr_action authority1_ on auths0_.anid=authority1_.anid where auths0_.urid=? order by authority1_.anid asc
Hibernate: select auths0_.urid as urid1_, auths0_.anid as anid1_, authority1_.anid as anid113_0_, authority1_.aclayer as aclayer113_0_, authority1_.action as action113_0_, authority1_.anname as anname113_0_, authority1_.ishaschild as ishaschild113_0_, authority1_.name as name113_0_, authority1_.ordervalue as ordervalue113_0_, authority1_.parentid as parentid113_0_, authority1_.remark as remark113_0_, authority1_.rootid as rootid113_0_, authority1_.viewmode as viewmode113_0_ from usr_relation_resource auths0_ left outer join usr_action authority1_ on auths0_.anid=authority1_.anid where auths0_.urid=? order by authority1_.anid asc
---->query.list():::[org.eline.entity.user.Resource@73cc11, org.eline.entity.user.Resource@d420eb, org.eline.entity.user.Resource@bd4dc2, org.eline.entity.user.Resource@3c0737, org.eline.entity.user.Resource@fde050]
Hibernate: select resource0_.urid as urid115_, resource0_.ordervalue as ordervalue115_, resource0_.type as type115_, resource0_.value as value115_ from usr_resource resource0_ where resource0_.type=? order by resource0_.ordervalue ASC
srcMap:5
key:[/index.do],value:[A_MAN_ALL]
key:[/user/user!list*],value:[A_MAN_USER]
key:[/main/user/authority*],value:[A_MAN_ACTION]
key:[/user/role*],value:[A_MAN_ROLE]
key:[/main/user/region*],value:[A_MAN_REGION]
WARN --- FilterChainProxyPostProcessor.checkForDuplicates(117) | Possible error: Filters at position 10 and 11 are both instances of org.springframework.security.intercept.web.FilterSecurityInterceptor
2012-9-15 20:48:31 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2012-9-15 20:48:31 org.apache.coyote.http11.Http11AprProtocol start
严重: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] ??????????á???(Э?¨|/???????/???)????¨a??
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:756)
at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)
at org.apache.catalina.connector.Connector.start(Connector.java:1095)
at org.apache.catalina.core.StandardService.start(StandardService.java:540)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012-9-15 20:48:31 org.apache.catalina.core.StandardService start
严重: Failed to start connector [Connector[HTTP/1.1-10003]]
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] ??????????á???(Э?¨|/???????/???)????¨a??
at org.apache.catalina.connector.Connector.start(Connector.java:1102)
at org.apache.catalina.core.StandardService.start(StandardService.java:540)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012-9-15 20:48:31 org.apache.coyote.ajp.AjpAprProtocol start
严重: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] ??????????á???(Э?¨|/???????/???)????¨a??
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:756)
at org.apache.coyote.ajp.AjpAprProtocol.start(AjpAprProtocol.java:188)
at org.apache.catalina.connector.Connector.start(Connector.java:1095)
at org.apache.catalina.core.StandardService.start(StandardService.java:540)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012-9-15 20:48:31 org.apache.catalina.core.StandardService start
严重: Failed to start connector [Connector[AJP/1.3-8009]]
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] ??????????á???(Э?¨|/???????/???)????¨a??
at org.apache.catalina.connector.Connector.start(Connector.java:1102)
at org.apache.catalina.core.StandardService.start(StandardService.java:540)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012-9-15 20:48:31 org.apache.catalina.startup.Catalina start
信息: Server startup in 9343 ms
2012-9-15 20:48:31 org.apache.catalina.core.StandardServer await
严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at java.net.ServerSocket.<init>(ServerSocket.java:194)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2012-9-15 20:48:31 org.apache.coyote.http11.Http11AprProtocol pause
信息: Pausing Coyote HTTP/1.1 on http-10003
2012-9-15 20:48:31 org.apache.coyote.ajp.AjpAprProtocol pause
信息: Pausing Coyote AJP/1.3 on ajp-8009
2012-9-15 20:48:32 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2012-9-15 20:48:32 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/composite] registered the JDBC driver [org.apache.derby.jdbc.ClientDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/composite] registered the JDBC driver [net.sourceforge.jtds.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/composite] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/composite] appears to have started a thread named [localQuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/composite] appears to have started a thread named [localQuartzScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/composite] appears to have started a thread named [localQuartzScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/composite] appears to have started a thread named [localQuartzScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/composite] appears to have started a thread named [localQuartzScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/composite] appears to have started a thread named [Quartz Scheduler [localQuartzScheduler]] but has failed to stop it. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/composite] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@17e5fde]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1c82208]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/composite] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1fc0f04]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@13ded59]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2012-9-15 20:48:32 org.apache.coyote.http11.Http11AprProtocol destroy
信息: Stopping Coyote HTTP/1.1 on http-10003
2012-9-15 20:48:32 org.apache.coyote.ajp.AjpAprProtocol destroy
信息: Stopping Coyote AJP/1.3 on ajp-8009
Exception in thread "Quartz Scheduler [localQuartzScheduler]"2012-9-15 20:48:37 org.apache.catalina.loader.WebappClassLoader loadClass
信息: Illegal access: this web application instance has been stopped already. Could not load org.springframework.core.NestedExceptionUtils. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1566)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.springframework.core.NestedRuntimeException.getMessage(NestedRuntimeException.java:67)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
at java.lang.Throwable.toString(Throwable.java:343)
at java.lang.String.valueOf(String.java:2826)
at java.io.PrintStream.println(PrintStream.java:771)
at org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:242)
at java.lang.Throwable.printStackTrace(Throwable.java:461)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:985)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)
at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)
总结了一下,大致有以下几种解决方案:
1.端口号被占用,更改tomcat端口号;
2.把Tmcat服务属性更改为手动,重新加载Tomcat;
3.重启Myeclipse;
4.打开任务管理器,找到javaw.exe,把这个进程杀掉;
5.开始-运行-输入cmd-netstat ?-ano-回车-查到8888端口的PID
?通过Ctrl+Alt+Delete快捷键打开Windows任务管理器-查看-选择列-勾选PID(进程标识符)(P)-找到8888端口的PID-结束进程
? 或开始-运行-输入cmd-netstat -ano|find"8888"-tasklist|find "PID "-askkill /pid PID?
我是用地2种方法解决此问题的。