You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by "asha a.v" <as...@yahoo.com> on 2007/06/15 07:32:21 UTC

Issue while using SCA with JDK 1.6

I have taken the EchoSCA sample service (taken from
one of the website related to SCA). I have created an
application with this and deployed it in tomcat 6.0.
Every thing works as expected when I had JAVA_HOME as
JDK 1.5. However, I see an exception for the same
application when I have JAVA_HOME pointing to JDK 1.6.
Any idea why this could be happening?

Here is the exception that I see in the localhost...
log of the tomcat/logs folder:

<EXCEPTION TRACE: BEGIN>
=====================================
Jun 14, 2007 10:12:39 PM
org.apache.catalina.core.ApplicationContext log
SEVERE: exception initializing SCADomain
javax.xml.stream.FactoryConfigurationError: Provider
javax.xml.stream.XMLInputFactory could not be
instantiated: java.lang.InstantiationException
	at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158)
	at
org.apache.tuscany.sca.contribution.service.impl.ContributionRepositoryImpl.<init>(ContributionRepositoryImpl.java:88)
	at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntimeBuilder.createContributionService(ReallySmallRuntimeBuilder.java:184)
	at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(ReallySmallRuntime.java:93)
	at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:86)
	at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:229)
	at
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:81)
	at
org.apache.tuscany.sca.webapp.SCADomainHelper.initSCADomain(SCADomainHelper.java:63)
	at
org.apache.tuscany.sca.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:37)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
	at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
	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(LifecycleSupport.java:120)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
	at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
	at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	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(DelegatingMethodAccessorImpl.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)
Jun 14, 2007 10:12:39 PM
org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 14, 2007 10:12:39 PM
org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 14, 2007 10:13:13 PM
org.apache.catalina.core.ApplicationContext log
SEVERE: exception initializing SCADomain
javax.xml.stream.FactoryConfigurationError: Provider
javax.xml.stream.XMLInputFactory could not be
instantiated: java.lang.InstantiationException
	at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158)
	at
org.apache.tuscany.sca.contribution.service.impl.ContributionRepositoryImpl.<init>(ContributionRepositoryImpl.java:88)
	at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntimeBuilder.createContributionService(ReallySmallRuntimeBuilder.java:184)
	at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(ReallySmallRuntime.java:93)
	at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:86)
	at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:229)
	at
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:81)
	at
org.apache.tuscany.sca.webapp.SCADomainHelper.initSCADomain(SCADomainHelper.java:63)
	at
org.apache.tuscany.sca.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:37)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
	at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1177)
	at
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:542)
	at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:105)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
	at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
	at java.lang.Thread.run(Thread.java:619)


=================================================
</EXCEPTION TRACE: END>


Any help would be highly appreciated.

thanks/ regards,
asha


Asha.A.V
Software Engineer
SatPath Systems Inc.
46661,Fremont blvd.
Fremont.CA.


       
____________________________________________________________________________________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org