AnsweredAssumed Answered

Start alf_start.bat Errors

Question asked by zftking on Oct 20, 2008
Latest reply on Feb 10, 2009 by steve
Dear all :
  I have a problem,I cannot  solve,please all help me..

…………………………………………….
……………………………………………….
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
09:53:06,421  ERROR [[Catalina].[localhost].[/alfresco]] Exception sending conte
xt initialized event to listener instance of class org.springframework.web.conte
xt.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [META-IN
F/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springfram
ework.beans.BeanInstantiationException: Could not instantiate bean class [org.ap
ache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception
is java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap class
loader, but this RI (from jar:file:/C:/Alfresco.3.0/tomcat/webapps/alfresco/WEB-
INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the
bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards
/)
Caused by: org.springframework.beans.BeanInstantiationException: Could not insta
ntiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exc
eption; nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded
from the bootstrap classloader, but this RI (from jar:file:/C:/Alfresco.3.0/tom
cat/webapps/alfresco/WEB-INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/
impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to
place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1
.5.0/docs/guide/standards/)
Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstr
ap classloader, but this RI (from jar:file:/C:/Alfresco.3.0/tomcat/webapps/alfre
sco/WEB-INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder
.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.ja
r in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/s
tandards/)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.jav
a:173)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex
tImpl.java:422)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.ja
va:286)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
139)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
117)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
188)
        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:597)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
        at org.apache.cxf.wsdl.JAXBExtensionHelper.createJAXBContext(JAXBExtensi
onHelper.java:183)
        at org.apache.cxf.wsdl.JAXBExtensionHelper.getJAXBContext(JAXBExtensionH
elper.java:170)
        at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHe
lper.java:155)
        at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHe
lper.java:86)
        at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLM
anagerImpl.java:241)
        at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLM
anagerImpl.java:221)
        at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:110
)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:8
5)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy
.instantiate(SimpleInstantiationStrategy.java:61)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.instantiateBean(AbstractAutowireCapableBeanFactory.java:756)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:721)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:384)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:287)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3764)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
216)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714
)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
09:53:06,703  ERROR [[Catalina].[localhost].[/alfresco]] Exception sending conte
xt initialized event to listener instance of class org.alfresco.web.app.ContextL
istener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [META-IN
F/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springfram
ework.beans.BeanInstantiationException: Could not instantiate bean class [org.ap
ache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception
is java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap class
loader, but this RI (from jar:file:/C:/Alfresco.3.0/tomcat/webapps/alfresco/WEB-
INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the
bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards
/)
Caused by: org.springframework.beans.BeanInstantiationException: Could not insta
ntiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exc
eption; nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded
from the bootstrap classloader, but this RI (from jar:file:/C:/Alfresco.3.0/tom
cat/webapps/alfresco/WEB-INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/
impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to
place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1
.5.0/docs/guide/standards/)
Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstr
ap classloader, but this RI (from jar:file:/C:/Alfresco.3.0/tomcat/webapps/alfre
sco/WEB-INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder
.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.ja
r in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/s
tandards/)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.jav
a:173)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex
tImpl.java:422)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.ja
va:286)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
139)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
117)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
188)
        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:597)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
        at org.apache.cxf.wsdl.JAXBExtensionHelper.createJAXBContext(JAXBExtensi
onHelper.java:183)
        at org.apache.cxf.wsdl.JAXBExtensionHelper.getJAXBContext(JAXBExtensionH
elper.java:170)
        at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHe
lper.java:155)
        at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHe
lper.java:86)
        at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLM
anagerImpl.java:241)
        at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLM
anagerImpl.java:221)
        at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:110
)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:8
5)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy
.instantiate(SimpleInstantiationStrategy.java:61)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.instantiateBean(AbstractAutowireCapableBeanFactory.java:756)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:721)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:384)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:287)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3764)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
216)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714
)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2008-10-20 9:53:07 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2008-10-20 9:53:07 org.apache.catalina.core.StandardContext start
严重: Context [/alfresco] startup failed due to previous errors
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class
reloading, using NOPLoggerRepository.
2008-10-20 10:06:31 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive ROOT.war
2008-10-20 10:06:32 org.apache.catalina.startup.HostConfig deployWAR
信息: Deploying web application archive share.war
10:07:17,203  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Fram
ework
2008-10-20 10:07:17 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-10-20 10:07:17 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2008-10-20 10:07:17 org.apache.catalina.startup.Catalina start
信息: Server startup in 983812 ms

Outcomes