小弟今天头一回整这个东西,配置好jdbc后,应该是没找到包吧,请问我应该把mysql的jar放到哪里?我用的是2.31版本的,请问我是直接到放根目录下面还是放到bin目录下?
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver).
at org.apache.avalon.phoenix.components.application.DefaultApplication.s
tart(DefaultApplication.java:186)
at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUt
il.java:260)
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(Def
aultKernel.java:295)
... 16 more
Caused by: org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException:
Component named "database-connections" failed to pass through the Starting stage
. (Reason: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver).
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail
(LifecycleHelper.java:354)
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.star
tup(LifecycleHelper.java:226)
at org.apache.avalon.phoenix.components.application.DefaultApplication.s
tartup(DefaultApplication.java:530)
at org.apache.avalon.phoenix.components.application.DefaultApplication.d
oRunPhase(DefaultApplication.java:478)
at org.apache.avalon.phoenix.components.application.DefaultApplication.r
unPhase(DefaultApplication.java:409)
at org.apache.avalon.phoenix.components.application.DefaultApplication.s
tart(DefaultApplication.java:180)
... 18 more
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.apache.avalon.phoenix.components.classloader.PolicyClassLoader.fi
ndClass(PolicyClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.avalon.cornerstone.blocks.datasources.DefaultDataSourceSel
ector.initialize(DefaultDataSourceSelector.java:137)
at org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:244)
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.star
tup(LifecycleHelper.java:200)
... 22 more
rethrown from
org.apache.avalon.framework.CascadingException: Failed to start application jame
s.
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup(Def
aultKernel.java:313)
at org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplicat
ion(DefaultKernel.java:376)
at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(
DefaultDeployer.java:357)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployF
ile(DefaultEmbeddor.java:542)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployF
ile(DefaultEmbeddor.java:535)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployF
iles(DefaultEmbeddor.java:520)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployD
efaultApplications(DefaultEmbeddor.java:509)
at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute
(DefaultEmbeddor.java:268)
at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:198)
at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:184)
地方有限,只贴这么多了,后面还有,要的话我回贴再贴
------解决方案--------------------