users@glassfish.java.net

Re: Using Xalan native jars in Glassfish V3 - WHY?

From: Pete Helgren <pete_at_valadd.com>
Date: Mon, 08 Nov 2010 08:43:32 -0700

So can I assume the workaround won't work? I saw a post from a blog
that applied to V2 and that was the workaround he used.

Based on what I have seen, it should work but I need a confirmation from
the Glassfish team that I can *never* use any other Transformer than the
one included in the Sun JVM. Once I hear that, I'll stop trying.

Pete Helgren
Value Added Software, Inc
www.asaap.com
www.opensource4i.com


On 11/6/2010 2:12 AM, Sanjeeb Sahoo wrote:
> Yes, that's what I predicted. Your best bet is to ask when glassfish
> can be supported against J9 runtime.
>
> Sahoo
> On Saturday 06 November 2010 12:58 AM, Pete Helgren wrote:
>> Thanks. Based on information I have gotten from the list, IBM and
>> the web, here is what I know:
>>
>> Glassfish is requiring the
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.
>> Somewhere that is hardcoded or is defined in a config file that I
>> have yet to find. Since it is a Glassfish requirement/setting/coded
>> default AND the IBM J9 JVM doesn't have it, the Admin Console fails.
>>
>> The workaround, which I have been trying based on some information I
>> have found elsewhere is to do the following:
>>
>> Add the following to to the jvm-options in domain.xml file:
>>
>> <jvm-options>-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl</jvm-options>
>>
>> Then add the jars to the glassfish/lib/endorsed as you directed me.
>>
>> This apparently doesn't work because I get the following stack trace:
>>
>>
>> [#|2010-11-04T18:07:19.376-0600|INFO|glassfish3.0.1|null|_ThreadID=15;_ThreadName=Thread-5;|The
>> Admin Console is already installed, but not yet loaded.|#]
>>
>> [#|2010-11-04T18:07:19.377-0600|INFO|glassfish3.0.1|null|_ThreadID=15;_ThreadName=Thread-5;|The
>> Admin Console is loading...|#]
>>
>> [#|2010-11-04T18:07:23.703-0600|INFO|glassfish3.0.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=15;_ThreadName=Thread-5;|Initializing
>> Mojarra 2.0.2 (FCS b10) for context ''|#]
>>
>> [#|2010-11-04T18:07:28.486-0600|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-30;|Loading
>> application __admingui at /|#]
>>
>> [#|2010-11-04T18:07:28.486-0600|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-30;|Loading
>> application __admingui at /|#]
>>
>> [#|2010-11-04T18:07:28.486-0600|INFO|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=15;_ThreadName=Thread-5;|Loading
>> application __admingui at /|#]
>>
>> [#|2010-11-04T18:07:28.489-0600|INFO|glassfish3.0.1|null|_ThreadID=15;_ThreadName=Thread-5;|Loading
>> __admingui Application done is 9112 ms|#]
>>
>> [#|2010-11-04T18:07:28.489-0600|INFO|glassfish3.0.1|null|_ThreadID=15;_ThreadName=Thread-5;|The
>> Admin Console application is loaded.|#]
>>
>> [#|2010-11-04T18:07:36.137-0600|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=16;_ThreadName=Thread-5;|AMX
>> ComplianceMonitor: ValidationLevel = full, UnregisterNonCompliant =
>> false, LogInaccessibleAttributes = true|#]
>>
>> [#|2010-11-04T18:07:37.434-0600|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=17;_ThreadName=Thread-5;|AMX
>> config read, domain config registered as amx:pp=/,type=domain|#]
>>
>> [#|2010-11-04T18:07:37.830-0600|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=18;_ThreadName=Thread-5;|AMXStartupServiceNew._loadAMXMBeans:
>> AMXLoader failed to load
>> javax.management.RuntimeMBeanException: RuntimeException thrown in
>> postRegister method
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.postRegisterInvoke(DefaultMBeanServerInterceptor.java:1037)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:974)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
>> at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
>> at
>> org.glassfish.admin.amx.impl.j2ee.loader.AMXJ2EEStartupService.loadAMXMBeans(AMXJ2EEStartupService.java:133)
>> at
>> org.glassfish.admin.amx.impl.AMXStartupService$AMXLoaderThread.run(AMXStartupService.java:321)
>> Caused by: java.lang.RuntimeException:
>> javax.management.RuntimeErrorException: Error thrown in postRegister
>> method
>> at
>> org.glassfish.admin.amx.impl.mbean.AMXImplBase.registerChild(AMXImplBase.java:1249)
>> at
>> org.glassfish.admin.amx.impl.j2ee.J2EEDomainImpl.registerChildren(J2EEDomainImpl.java:93)
>> at
>> org.glassfish.admin.amx.impl.mbean.AMXImplBase.postRegisterHook(AMXImplBase.java:1168)
>> at
>> org.glassfish.admin.amx.impl.mbean.MBeanImplBase.postRegister(MBeanImplBase.java:448)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.postRegisterInvoke(DefaultMBeanServerInterceptor.java:1035)
>> ... 6 more
>> Caused by: javax.management.RuntimeErrorException: Error thrown in
>> postRegister method
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.postRegisterInvoke(DefaultMBeanServerInterceptor.java:1040)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:974)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
>> at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
>> at
>> org.glassfish.admin.amx.impl.mbean.AMXImplBase.registerChild(AMXImplBase.java:1243)
>> ... 10 more
>> Caused by: javax.xml.transform.TransformerFactoryConfigurationError:
>> Provider
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
>> not found
>> at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
>> at
>> com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocumentBuilder.java:150)
>> at
>> com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocumentBuilder.java:136)
>> at
>> com.sun.enterprise.deployment.io.DeploymentDescriptorFile.write(DeploymentDescriptorFile.java:369)
>> at
>> org.glassfish.admin.amx.impl.j2ee.RegistrationSupport.getDeploymentDescriptor(RegistrationSupport.java:206)
>> at
>> org.glassfish.admin.amx.impl.j2ee.RegistrationSupport.registerWebModuleAndItsComponents(RegistrationSupport.java:383)
>> at
>> org.glassfish.admin.amx.impl.j2ee.RegistrationSupport.createAppMBeans(RegistrationSupport.java:262)
>> at
>> org.glassfish.admin.amx.impl.j2ee.RegistrationSupport.processApplicationRef(RegistrationSupport.java:522)
>> at
>> org.glassfish.admin.amx.impl.j2ee.RegistrationSupport.registerApplications(RegistrationSupport.java:474)
>> at
>> org.glassfish.admin.amx.impl.j2ee.RegistrationSupport.<init>(RegistrationSupport.java:158)
>> at
>> org.glassfish.admin.amx.impl.j2ee.J2EEServerImpl.registerChildren(J2EEServerImpl.java:116)
>> at
>> org.glassfish.admin.amx.impl.j2ee.DASJ2EEServerImpl.registerChildren(DASJ2EEServerImpl.java:68)
>> at
>> org.glassfish.admin.amx.impl.mbean.AMXImplBase.postRegisterHook(AMXImplBase.java:1168)
>> at
>> org.glassfish.admin.amx.impl.mbean.MBeanImplBase.postRegister(MBeanImplBase.java:448)
>> at
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.postRegisterInvoke(DefaultMBeanServerInterceptor.java:1035)
>> ... 15 more
>> |#]
>>
>> [#|2010-11-04T18:07:37.834-0600|INFO|glassfish3.0.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=16;_ThreadName=Thread-5;|AMXStartupServiceNew:
>> AMX ready for use, DomainRoot = amx:pp=,type=domain-root|#]
>>
>> [#|2010-11-04T18:10:00.573-0600|INFO|glassfish3.0.1|org.glassfish.admingui|_ThreadID=16;_ThreadName=Thread-5;|admin
>> console: initSessionAttributes()|#]
>>
>> [#|2010-11-04T18:10:00.610-0600|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=16;_ThreadName=http-thread-pool-7848-(2);|StandardWrapperValve[FacesServlet]:
>> PWC1406: Servlet.service() for servlet FacesServlet threw exception
>> java.lang.RuntimeException:
>> java.lang.reflect.InvocationTargetException while attempting to
>> process a 'initPage' event for '/common/index.jsf'.
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutDefinition.dispatchInitPageHandlers(LayoutDefinition.java:332)
>> at
>> com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:201)
>> at
>> com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:152)
>> at
>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:257)
>> at
>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:228)
>> at
>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:201)
>> at
>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:253)
>> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>> at
>> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
>> at
>> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>> at
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>> at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
>> at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
>> at
>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>> at
>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>> at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>> at
>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>> at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>> at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>> at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>> at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>> at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>> at java.lang.Thread.run(Thread.java:736)
>> Caused by: java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:600)
>> at
>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
>> ... 41 more
>> Caused by: javax.xml.transform.TransformerFactoryConfigurationError:
>> Provider
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
>> not found
>> at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
>> at
>> com.sun.enterprise.registration.impl.RepositoryManager.<init>(RepositoryManager.java:554)
>> at
>> com.sun.enterprise.registration.impl.SysnetRegistrationService.getRepositoryManager(SysnetRegistrationService.java:321)
>> at
>> com.sun.enterprise.registration.impl.SysnetRegistrationService.getRegistrationStatus(SysnetRegistrationService.java:280)
>> at
>> org.glassfish.admingui.registration.RegisterHandlers.getRegistrationStatus(RegisterHandlers.java:128)
>> at
>> org.glassfish.admingui.registration.RegisterHandlers.showRegistration(RegisterHandlers.java:103)
>> ... 47 more
>> |#]
>>
>> [#|2010-11-04T18:10:00.610-0600|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=16;_ThreadName=http-thread-pool-7848-(2);|StandardWrapperValve[FacesServlet]:
>> PWC1406: Servlet.service() for servlet FacesServlet threw exception
>> java.lang.RuntimeException:
>> java.lang.reflect.InvocationTargetException while attempting to
>> process a 'initPage' event for '/common/index.jsf'.
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutDefinition.dispatchInitPageHandlers(LayoutDefinition.java:332)
>> at
>> com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:201)
>> at
>> com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:152)
>> at
>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:257)
>> at
>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:228)
>> at
>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:201)
>> at
>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:253)
>> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>> at
>> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
>> at
>> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>> at
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>> at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
>> at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
>> at
>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>> at
>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>> at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>> at
>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>> at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>> at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>> at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>> at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>> at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>> at java.lang.Thread.run(Thread.java:736)
>> Caused by: java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:600)
>> at
>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
>> ... 41 more
>> Caused by: javax.xml.transform.TransformerFactoryConfigurationError:
>> Provider
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
>> not found
>> at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
>> at
>> com.sun.enterprise.registration.impl.RepositoryManager.<init>(RepositoryManager.java:554)
>> at
>> com.sun.enterprise.registration.impl.SysnetRegistrationService.getRepositoryManager(SysnetRegistrationService.java:321)
>> at
>> com.sun.enterprise.registration.impl.SysnetRegistrationService.getRegistrationStatus(SysnetRegistrationService.java:280)
>> at
>> org.glassfish.admingui.registration.RegisterHandlers.getRegistrationStatus(RegisterHandlers.java:128)
>> at
>> org.glassfish.admingui.registration.RegisterHandlers.showRegistration(RegisterHandlers.java:103)
>> ... 47 more
>> |#]
>>
>> [#|2010-11-04T18:10:00.610-0600|WARNING|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=16;_ThreadName=Thread-5;|StandardWrapperValve[FacesServlet]:
>> PWC1406: Servlet.service() for servlet FacesServlet threw exception
>> java.lang.RuntimeException:
>> java.lang.reflect.InvocationTargetException while attempting to
>> process a 'initPage' event for '/common/index.jsf'.
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutDefinition.dispatchInitPageHandlers(LayoutDefinition.java:332)
>> at
>> com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:201)
>> at
>> com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:152)
>> at
>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:257)
>> at
>> com.sun.jsftemplating.layout.ViewRootUtil.getLayoutDefinition(ViewRootUtil.java:228)
>> at
>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:201)
>> at
>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:253)
>> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
>> at
>> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
>> at
>> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>> at
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:233)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>> at
>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
>> at
>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
>> at
>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>> at
>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>> at
>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>> at
>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>> at
>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>> at
>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>> at
>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>> at
>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>> at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>> at
>> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>> at java.lang.Thread.run(Thread.java:736)
>> Caused by: java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:600)
>> at
>> com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
>> ... 41 more
>> Caused by: javax.xml.transform.TransformerFactoryConfigurationError:
>> Provider
>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
>> not found
>> at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
>> at
>> com.sun.enterprise.registration.impl.RepositoryManager.<init>(RepositoryManager.java:554)
>> at
>> com.sun.enterprise.registration.impl.SysnetRegistrationService.getRepositoryManager(SysnetRegistrationService.java:321)
>> at
>> com.sun.enterprise.registration.impl.SysnetRegistrationService.getRegistrationStatus(SysnetRegistrationService.java:280)
>> at
>> org.glassfish.admingui.registration.RegisterHandlers.getRegistrationStatus(RegisterHandlers.java:128)
>> at
>> org.glassfish.admingui.registration.RegisterHandlers.showRegistration(RegisterHandlers.java:103)
>> ... 47 more
>> |#]
>>
>>
>>
>> Pete Helgren
>> Value Added Software, Inc
>> www.asaap.com
>> www.opensource4i.com
>>
>>
>> On 11/5/2010 12:23 PM, Sanjeeb Sahoo wrote:
>>> Have you actually verified Apache Xalan contains
>>> com.sun.org.apache.xalan classes? I doubt.
>>>
>>> I have already told that you can place your JAXP parser
>>> implementation in glassfish/lib/endorsed to override platform
>>> supplied one.
>>>
>>> The error makes me think that some code has coded the provider name
>>> as
>>> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl,
>>> so no matter what you configure somewhere else, it's not going to
>>> work. I could be wrong, because I am guessing from the limited
>>> information supplied here. I am copying admin console engineer who
>>> should be able to tell why they need com.sun.org.apache classes.
>>> More over, can you post the stack trace?
>>>
>>> Sahoo
>>> On Thursday 04 November 2010 10:40 PM, Pete Helgren wrote:
>>>> My prior post may not have made it back to the list so I am
>>>> reposting as I need to resolve this soon:
>>>>
>>>> The IBM J9 JVM that I have to use doesn't contain the
>>>> com.sun.org.apache.xalan.* classes as far as I can tell and that
>>>> causes the Administration Console to fail. So I was going to
>>>> "manually" include them. *Just* for Glassfish.
>>>>
>>>> So I still need to know: Where do I put the jars? What
>>>> configuration changes/directives do I need to make?
>>>>
>>>> The jvm-options entry is in the email below . I put the jars in
>>>> several different places to no avail. The error still points to
>>>> missing xalan classes that are only found in Sun's implementation
>>>> of the JVM:
>>>>
>>>> javax.xml.transform.TransformerFactoryConfigurationError: Provider
>>>> com.
>>>> sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl not
>>>> found
>>>>
>>>> Just need to implement the standalone Xalan from Apache to work
>>>> around this issue. How do I do that?
>>>>
>>>> Pete Helgren
>>>> Value Added Software, Inc
>>>> www.asaap.com
>>>> www.opensource4i.com
>>>>
>>>>
>>>> On 10/29/2010 8:29 PM, Sanjeeb Sahoo wrote:
>>>>> Can you elaborate why you have to use a different JAXP
>>>>> implementation? Do you want to replace it JVM wide or you want it
>>>>> to be used only by some applications? If you want JVM wide, then
>>>>> you can place the jar in glassfish/lib/endorsed or glassfish/lib/ext.
>>>>>
>>>>> On Saturday 30 October 2010 03:07 AM, Pete Helgren wrote:
>>>>>> I have posted this as part of a problem with the Administration
>>>>>> Console but perhaps this approach will bear more fruit:
>>>>>>
>>>>>> Because of the JVM I am using, I have to include the native
>>>>>> Xalan jars from Apache rather than relying on the ones in Java
>>>>>> 6. Can anyone give me a pointer or two on how to accompish that
>>>>>> in Glassfish V3? I *think* I need to add the following to the
>>>>>> java-config section of the domain.xml:
>>>>>>
>>>>>> <jvm-options>-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl</jvm-options>
>>>>>>
>>>>>>
>>>>>> What I am having difficulty with is where to place the jar so
>>>>>> that they will be picked up in the classpath. Where should they go?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>
>>>>>
>>>
>