AnsweredAssumed Answered

something wrong connecting to mysql

Question asked by sharrie on Aug 23, 2005
Latest reply on Aug 24, 2005 by sharrie
mysql version:4.1.11
jdk version: 1.5.0_04

I have started mysql, and have tried:
mysql -h localhost -u root -p
mysql -h 127.0.0.1 -u root -p

they are both ok.

now when i start tomcat, the console print the following error msg:
/*****************************************************/
2005-8-23 14:45:42 org.apache.coyote.http11.Http11Protocol init
info: Initializing Coyote HTTP/1.1 on http-80
2005-8-23 14:45:42 org.apache.catalina.startup.Catalina load
info: Initialization processed in 1391 ms
2005-8-23 14:45:42 org.apache.catalina.core.StandardService start
info: Starting service Catalina
2005-8-23 14:45:42 org.apache.catalina.core.StandardEngine start
info: Starting Servlet Engine: Apache Tomcat/5.0.28
2005-8-23 14:45:42 org.apache.catalina.core.StandardHost start
info: XML validation disabled
2005-8-23 14:45:42 org.apache.catalina.core.StandardHost getDeployer
info: Create Host deployer for direct deployment ( non-jmx )
2005-8-23 14:45:42 org.apache.catalina.core.StandardHostDeployer install
info: Processing Context configuration file URL file:E:\xyzh\Tomcat\conf\Catalin
a\localhost\balancer.xml
2005-8-23 14:45:43 org.apache.catalina.core.StandardHostDeployer install
info: Processing Context configuration file URL file:E:\xyzh\Tomcat\conf\Catalin
a\localhost\admin.xml
2005-8-23 14:45:44 org.apache.struts.util.PropertyMessageResources <init>
info: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
2005-8-23 14:45:44 org.apache.struts.util.PropertyMessageResources <init>
info: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
2005-8-23 14:45:44 org.apache.struts.util.PropertyMessageResources <init>
info: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
2005-8-23 14:45:46 org.apache.catalina.core.StandardHostDeployer install
info: Processing Context configuration file URL file:E:\xyzh\Tomcat\conf\Catalin
a\localhost\manager.xml
2005-8-23 14:45:48 org.apache.catalina.core.StandardHostDeployer install
info: Installing web application at context path /web-client from URL file:E:/xy
zh/Tomcat/webapps/web-client
2005-8-23 14:46:01 net.sf.joott.uno.UnoConnection connect
info: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
2005-8-23 14:46:02 net.sf.joott.uno.UnoConnection connect
severe: connection failed: com.sun.star.connection.NoConnectException: java.net.Co
nnectException: Connection refused: connect
14:46:02,718 ERROR [AbstractImageMagickContentTransformer] JMagickContentTransfo
rmer not available:
14:46:02,765 ERROR [AbstractImageMagickContentTransformer] ImageMagickContentTra
nsformer not available: Failed to execute command: imconvert E:\xyzh\Tomcat\temp
\Alfresco\ImageMagickContentTransformer_init_source_33708.gif E:\xyzh\Tomcat\tem
p\Alfresco\ImageMagickContentTransformer_init_target_33709.png
14:46:13,953 ERROR [protocol] Error accessing Win32 NetBIOS, check DLL is on the
path
14:46:30,671 ERROR [ContextListener] Failed to initialise
org.alfresco.error.AlfrescoRuntimeException: Root path not created prior to appl
ication startup: 公�首页
        at org.alfresco.web.app.ContextListener.contextInitialized(ContextListen
er.java:128)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
343)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

        at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625
)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
80)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2005-8-23 14:46:30 org.apache.catalina.core.StandardContext start
severe: Error listenerStart
2005-8-23 14:46:30 org.apache.catalina.core.StandardContext start
severe: Context startup failed due to previous errors
2005-8-23 14:46:31 org.apache.catalina.core.StandardHostDeployer install
info: Installing web application at context path  from URL file:E:\xyzh\Tomcat\w
ebapps\ROOT
2005-8-23 14:46:31 org.apache.catalina.core.StandardHostDeployer install
info: Installing web application at context path /tomcat-docs from URL file:E:\x
yzh\Tomcat\webapps\tomcat-docs
2005-8-23 14:46:31 org.apache.catalina.core.StandardHostDeployer install
info: Installing web application at context path /jsp-examples from URL file:E:\
xyzh\Tomcat\webapps\jsp-examples
2005-8-23 14:46:31 org.apache.catalina.core.StandardHostDeployer install
info: Installing web application at context path /servlets-examples from URL fil
e:E:\xyzh\Tomcat\webapps\servlets-examples
2005-8-23 14:46:31 org.apache.catalina.core.StandardHostDeployer install
info: Installing web application at context path /webdav from URL file:E:\xyzh\T
omcat\webapps\webdav
2005-8-23 14:46:31 org.apache.coyote.http11.Http11Protocol start
info: Starting Coyote HTTP/1.1 on http-80
2005-8-23 14:46:32 org.apache.jk.common.ChannelSocket init
info: JK2: ajp13 listening on /0.0.0.0:8009
2005-8-23 14:46:32 org.apache.jk.server.JkMain start
info: Jk running ID=0 time=0/172  config=E:\xyzh\Tomcat\conf\jk2.properties
2005-8-23 14:46:32 org.apache.catalina.startup.Catalina start
info: Server startup in 49922 ms
/************************************************************/
I have tried many times, but still the error appears. and when I type:
http://localhost/web-client
tomcat says that the resource does not existï¼?

Please give me some advice. Thanks a lot!

Outcomes