AnsweredAssumed Answered

context intilization failed

Question asked by sandeep_123 on Sep 30, 2009
Latest reply on Sep 30, 2009 by sandeep_123
Hi All
         I have sucessfully installed the alfresco Enterprise
but when i start the tomcat it shows error context initilization
failed .And from web browser alfresco application is not access

This is the error report. pls give the solution to solve this issue

INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Sep 30, 2009 11:10:51 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Sep 30, 2009 11:10:53 AM org.apache.catalina.core.StandardContext addApplication
Listener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is
already configured for this context. The duplicate definition has been ignored.
11:10:58,953  INFO  [alfresco.config.SystemPropertiesFactoryBean] Loading proper
ties file from class path resource [alfresco/domain/hibernate-cfg.properties]
11:10:58,953  INFO  [alfresco.config.SystemPropertiesFactoryBean] Loading proper
ties file from class path resource [alfresco/extension/custom-hibernate-dialect.
properties]
11:11:08,609  INFO  [config.xml.XMLConfigService$PropertyConfigurer] Loading pro
perties file from class path resource [alfresco/file-servers.properties]
11:11:13,140  ERROR [web.context.ContextLoader] Context initialization failed
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:/E:/Alfresco/tomcat/webapps/alfresco/WEB-INF/
lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) need
s 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the boo
tstrap 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:/E:/Alfresco/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 plac
e 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:/E:/Alfresco/tomcat/webapps/alfresco/
WEB-INF/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.cla
ss) 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/stand
ards/)
        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:757)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:722)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:386)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:249)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:155)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:246)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:291)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:189)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

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

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719
)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 30, 2009 11:11:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 30, 2009 11:11:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class
reloading, using NOPLoggerRepository.
Sep 30, 2009 11:11:14 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
11:11:17,453  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Fram
ework
Sep 30, 2009 11:11:41 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 30, 2009 11:11:41 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 49797 ms

Outcomes