cancel
Showing results for 
Search instead for 
Did you mean: 

Start alf_start.bat Errors

zftking
Champ in-the-making
Champ in-the-making
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
6 REPLIES 6

jett
Champ in-the-making
Champ in-the-making
i am getting the same error with Alfresco 3 as well. I've tried using Derby and MySQL - same results during bootstrap.

jett
Champ in-the-making
Champ in-the-making
solved the problem!

try changing the JDK you are using. I originally ran mine using JDK 1.6.0. I modified setpaths.bat found in the root of the Alfresco folder (e.g. c:\alfresco) and changed

SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0

to:

SET JAVA_HOME=C:\Program Files\Java\jdk1.5.0_12

Note: you may have a different path for your JDK so use it accordingly.

workingpeter
Champ in-the-making
Champ in-the-making
Instead of changing JDK's, you can add the JAXB 2.1 jars to the Java endorsed directory. This should be specified in the alfresco or tomcat startup script such as -Djava.endorsed.dirs=/usr/share/tomcat5.5/common/endorsed. Copy the jaxb-api-2.1.jar from the alfresco WEB-INF/lib directory to the endorsed directory and the newer api should be picked up when you start alfresco/tomcat.

ghernando
Champ in-the-making
Champ in-the-making
What does the endorsed directory for tomcat mean?
I'm using tomcat from the Alfresco bundle – there is no endorsed directory.
In fact, there is no longer even a tomcat/common directory.
Where should I move this file to avoid this error?

Thanks

jayjayecl
Confirmed Champ
Confirmed Champ
Exactly same problem as above.
Tomcat/common does not exist anymore.
I tried to create directory tomcat/common/endorsed and put the jar right here… It did not work out

steve
Champ in-the-making
Champ in-the-making
Hi,
The Tomcat documentation on the Apache Tomcat site tells you how to re-add the common or endorsed directories.
Also, our Wiki has some information as well: http://wiki.alfresco.com/wiki/Install_Tomcat6

We also noticed that earlier versions of the JDK6 had conflicts with Tomcat/Alfresco, so please ensure you are using u7 or later.

Steve