RE: [xep-support] Servlet Connector issue

From: Morten Tangaa-Andersen <tangaa-andersen.morten@gene.com>
Date: Wed Aug 24 2005 - 10:16:09 PDT

Actually I think I have a better solution now:

        TransformerFactory tf = new com.icl.saxon.TransformerFactoryImpl();
        Transformer trns = tf.newTransformer(style);
        FOTransformer transformer = new FOTransformer(trns,xep);

The advantage is that the System properties are left alone for other
applications running in the same JVM.

Cheers,
Morten

-----Original Message-----
From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com]
On Behalf Of Morten Tangaa-Andersen
Sent: Wednesday, August 24, 2005 9:15 AM
To: 'Khachik Kocharyan'; 'RenderX Support'
Cc: xep-support@renderx.com; 'Oliver Steiner'; kevin@renderx.com
Subject: RE: [xep-support] Servlet Connector issue

Hi Khachik,
That worked like a charm, thanks a lot!
The solution was to keep xep.jar at the end of the WebLogic classpath, and
add the line of code mentioned below to my servlet.
Cheers,
Morten

-----Original Message-----
From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com]
On Behalf Of Khachik Kocharyan
Sent: Wednesday, August 24, 2005 12:55 AM
To: xep-support@renderx.com
Subject: Re: [xep-support] Servlet Connector issue

Hello,

add the following to your code, before calling the transformer:
System.setProperty("javax.xml.transform.TransformerFactory",
"com.icl.saxon.TransformerFactoryImpl");

This will set saxon as an explicit transformer.

Best Regards,
Khachik
RenderX

On Aug 23, 2005, at 10:17 PM, Morten Tangaa-Andersen wrote:

> Update ...
>
> I have now installed the latest version of RenderX (4.4) and STRUTS
> (1.2.7) and I have the same problem (still running WebLogic 8.1 SP2):
> If xep.jar is first in the classpath (causing saxon.jar and xt.jar
> to load because of the manifest) the STRUTS ActionServlet will not
> initialize:
>
> ERROR:
>
> Aug 23, 2005 10:13:01 AM org.apache.commons.digester.Digester
> getParser
> SEVERE: Digester.getParser:
> javax.xml.parsers.ParserConfigurationException: AElfred parser is
> non-validating
>
> at com.icl.saxon.aelfred.SAXParserFactoryImpl.newSAXParser
> (SAXParserFact
> oryImpl.java:34)
> at
> org.apache.commons.digester.parser.GenericParser.newSAXParser(Generic
> Parser.java:71)
> at
> org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(P
> arserFeatureSetterFactory.java:75)
> at org.apache.commons.digester.Digester.getParser
> (Digester.java:682)
> at org.apache.commons.digester.Digester.getXMLReader
> (Digester.java:891)
> at org.apache.commons.digester.Digester.parse(Digester.java:
> 1572)
> at
> org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
> rvlet.java:738)
> at org.apache.struts.action.ActionServlet.initModuleConfig
> (ActionServlet
> .java:687)
> at org.apache.struts.action.ActionServlet.init
> (ActionServlet.java:333)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at weblogic.servlet.internal.ServletStubImpl
> $ServletInitAction.run(Servl
> etStubImpl.java:993)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> (Authenticate
> dSubject.java:317)
> at weblogic.security.service.SecurityManager.runAs
> (SecurityManager.java:
> 118)
> at weblogic.servlet.internal.ServletStubImpl.createServlet
> (ServletStubIm
> pl.java:869)
> at weblogic.servlet.internal.ServletStubImpl.createInstances
> (ServletStub
> Impl.java:848)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet
> (ServletStubI
> mpl.java:787)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
> ervletContext.java:3252)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
> ServletContext.java:3197)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
> pServletContext.java:3174)
> at weblogic.servlet.internal.HttpServer.preloadResources
> (HttpServer.java
> :688)
> at weblogic.servlet.internal.WebService.preloadResources
> (WebService.java
> :483)
> at weblogic.servlet.internal.ServletInitService.resume
> (ServletInitServic
> e.java:30)
> at weblogic.t3.srvr.SubsystemManager.resume
> (SubsystemManager.java:131)
> at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
> at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
> at weblogic.Server.main(Server.java:32)
> Aug 23, 2005 10:13:01 AM org.apache.struts.action.ActionServlet init
> SEVERE: Unable to initialize Struts ActionServlet due to an
> unexpected exception
> or error thrown, so marking the servlet as unavailable. Most
> likely, this is d
> ue to an incorrect or missing library dependency.
> java.lang.NullPointerException
> at org.apache.commons.digester.Digester.getXMLReader
> (Digester.java:891)
> at org.apache.commons.digester.Digester.parse(Digester.java:
> 1572)
> at
> org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
> rvlet.java:738)
> at org.apache.struts.action.ActionServlet.initModuleConfig
> (ActionServlet
> .java:687)
> at org.apache.struts.action.ActionServlet.init
> (ActionServlet.java:333)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at weblogic.servlet.internal.ServletStubImpl
> $ServletInitAction.run(Servl
> etStubImpl.java:993)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> (Authenticate
> dSubject.java:317)
> at weblogic.security.service.SecurityManager.runAs
> (SecurityManager.java:
> 118)
> at weblogic.servlet.internal.ServletStubImpl.createServlet
> (ServletStubIm
> pl.java:869)
> at weblogic.servlet.internal.ServletStubImpl.createInstances
> (ServletStub
> Impl.java:848)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet
> (ServletStubI
> mpl.java:787)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
> ervletContext.java:3252)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
> ServletContext.java:3197)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
> pServletContext.java:3174)
> at weblogic.servlet.internal.HttpServer.preloadResources
> (HttpServer.java
> :688)
> at weblogic.servlet.internal.WebService.preloadResources
> (WebService.java
> :483)
> at weblogic.servlet.internal.ServletInitService.resume
> (ServletInitServic
> e.java:30)
> at weblogic.t3.srvr.SubsystemManager.resume
> (SubsystemManager.java:131)
> at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
> at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
> at weblogic.Server.main(Server.java:32)
> <Aug 23, 2005 10:13:01 AM PDT> <Error> <HTTP> <BEA-101216>
> <Servlet: "action" fa
> iled to preload on startup in Web application: "argus2".
> javax.servlet.UnavailableException
> at org.apache.struts.action.ActionServlet.init
> (ActionServlet.java:368)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at weblogic.servlet.internal.ServletStubImpl
> $ServletInitAction.run(Servl
> etStubImpl.java:993)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs
> (Authenticate
> dSubject.java:317)
> at weblogic.security.service.SecurityManager.runAs
> (SecurityManager.java:
> 118)
> at weblogic.servlet.internal.ServletStubImpl.createServlet
> (ServletStubIm
> pl.java:869)
> at weblogic.servlet.internal.ServletStubImpl.createInstances
> (ServletStub
> Impl.java:848)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet
> (ServletStubI
> mpl.java:787)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
> ervletContext.java:3252)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
> ServletContext.java:3197)
> at
> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
> pServletContext.java:3174)
> at weblogic.servlet.internal.HttpServer.preloadResources
> (HttpServer.java
> :688)
> at weblogic.servlet.internal.WebService.preloadResources
> (WebService.java
> :483)
> at weblogic.servlet.internal.ServletInitService.resume
> (ServletInitServic
> e.java:30)
> at weblogic.t3.srvr.SubsystemManager.resume
> (SubsystemManager.java:131)
> at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
> at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
> at weblogic.Server.main(Server.java:32)
> >
>
> CLASSPATH:
> CLASSPATH=\opt\renderx\xep\lib\xep.jar;\usr\local\gene
> \classes12.zip;\opt\oracle\xdk\lib\xmlparserv2.jar;;C:\opt\weblogic
> \8.1\JDK141~1\lib\tools.jar;C:\opt\weblogic\8.1\wls\server\lib
> \weblogic_sp.jar;C:\opt\weblogic\8.1\wls\server\lib\weblogic.jar;C:
> \opt\weblogic\8.1\wls\server\lib\ojdbc14.jar;C:\opt\weblogic\8.1\wls
> \common\eval\pointbase\lib\pbserver44.jar;C:\opt\weblogic\8.1\wls
> \common\eval\pointbase\lib\pbclient44.jar;C:\opt\weblogic\8.1
> \JDK141~1\jre\lib\rt.jar;C:\opt\weblogic\8.1\wls\server\lib
> \webservices.jar;\usr\local\gene\gene.jar;\opt\oracle\xdk\lib
> \xsu12_817.jar;\opt\oracle\xdk\lib\oraclexsql.jar;\opt\oracle\xdk
> \lib\xsqlserializers.jar;\opt\renderx\xep\lib\xep.jar;\opt\renderx\xep
>
> If xep.jar goes in the back of the classpath the STRUTS
> ActionServlet initializes, but the RenderX transformation process
> hangs/produces a blank page. It must be an XML parser version issue.
>
> Any advice and/or comments would be appreciated.
> Thanks,
> Morten, Genentech
>
> From: owner-xep-support@renderx.com [mailto:owner-xep-
> support@renderx.com] On Behalf Of Morten Tangaa-Andersen
> Sent: Monday, August 22, 2005 5:06 PM
> To: xep-support@renderx.com
> Subject: RE: [xep-support] Servlet Connector issue
>
> It is a classpath issue. Unfortunately it looks like xep.jar needs
> to go first in the classpath, but so does xmlparserv2.jar from
> Oracle ...
> Any suggestions would be appreciated.
> Cheers,
> Morten
>
> From: owner-xep-support@renderx.com [mailto:owner-xep-
> support@renderx.com] On Behalf Of Morten Tangaa-Andersen
> Sent: Monday, August 22, 2005 4:25 PM
> To: xep-support@renderx.com
> Subject: [xep-support] Servlet Connector issue
>
> I am trying to run a servlet under WebLogic 8.1 to transform an XML
> file into PDF using an XSL stylesheet. My application and the
> servlet connector from the dev kit both return a blank page.
> The code with a few modifications runs fine as a standalone
> application.
> I can forward the code if necessary.
> Any advice would be appreciated.
> Cheers,
> Morten, Genentech
>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/terms-of-service.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/terms-of-service.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Wed Aug 24 10:41:35 2005

This archive was generated by hypermail 2.1.8 : Wed Aug 24 2005 - 10:41:36 PDT