cancel
Showing results for 
Search instead for 
Did you mean: 

something wrong connecting to mysql

sharrie
Champ in-the-making
Champ in-the-making
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!
8 REPLIES 8

tvenkatmca
Champ in-the-making
Champ in-the-making
when u r going to run the alfresco first time first double click the db_setup.bat file which will be available in the alfresco folder


then run alf_start_tc.bat

may be every thing will be ok.

sharrie
Champ in-the-making
Champ in-the-making
and database alfresco exist
user name alfresco exist
password is 123456(I have changed relative terms in repository.properties)

and i have typed the following line:
mysql -u root -p -e "grant all on alfresco.* to 'alfresco'@'localho
st'  identified by '123456' with grant option;"

my os is : winxp with sp2
i have enabled the firewall which windows itself brings

gavinc
Champ in-the-making
Champ in-the-making
You have a couple of errors during startup due to missing files.

In the "bin" directory of the distribution, you'll find two files, an executable and a DLL, these must both be on the system path i.e. c:\windows\system32 or your JRE's bin directory.

This should remove the ERROR messages you are seeing and allow all the bootstrap data to be loaded.

derek
Star Contributor
Star Contributor
Hi,

Are you running Tomcat from the distribution or one from a previous installation?

If the latter is true, you will also need to drop the mysql jdbc connector jar into the tomcat common lib folder.

Have there been any other modifications made to the configuration files?  If so, it might be worth zipping the entire config folder up and sending them to me: Derek dot Hulley at Alfresco dot org.  Include a description of any other changes that you may have made, if relevant.

Regards

sharrie
Champ in-the-making
Champ in-the-making
Hi,

Are you running Tomcat from the distribution or one from a previous installation?

If the latter is true, you will also need to drop the mysql jdbc connector jar into the tomcat common lib folder.

Have there been any other modifications made to the configuration files?  If so, it might be worth zipping the entire config folder up and sending them to me: Derek dot Hulley at Alfresco dot org.  Include a description of any other changes that you may have made, if relevant.

Regards
Hi,
I compile alfrsco from source code, using ant   build_tomcat to build and deploy.

I have changed build.xml besides repository.xml. 
I changed mysql-connector-* to mysql-connector-java-3.1.10-bin-g.jar in build.xml.

sharrie
Champ in-the-making
Champ in-the-making
You have a couple of errors during startup due to missing files.

In the "bin" directory of the distribution, you'll find two files, an executable and a DLL, these must both be on the system path i.e. c:\windows\system32 or your JRE's bin directory.

This should remove the ERROR messages you are seeing and allow all the bootstrap data to be loaded.
Hi,
what executable and dll I have missed?

sharrie
Champ in-the-making
Champ in-the-making
once more, I have replaced the original mysql driver from 3rd-party/lib with mysql-connector-java-3.1.10-bin-g.jar.

I have examined many times, just dont know what happens

sharrie
Champ in-the-making
Champ in-the-making
Well, i used mysql without install , then everything gets ok!