Oracle oc4j 10.1.3 problems

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Oracle oc4j 10.1.3 problems

Jakub Hozak
Greetings

I have a problem deploying Orbeon on oc4j 10.1.3. it runs on jdk 1.5 so
this shouldn't be a problem. I do know however, that there is a certain
xerces and other jar manipulation required for Tomcat deployment.

The exception (below) seems to be caused by a similar issue, but I
don't know where should I put the jars, or what arrangement should
I make on oc4j. Any experiences in that way?

thanks a lot

Jakub Hozak

-------------------------------------
java.lang.IncompatibleClassChangeError
        at com.sun.msv.reader.trex.ng.DataState.startSelf(DataState.java:58)
        at com.sun.msv.reader.State.init(State.java:153)
        at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:583)
        at com.sun.msv.reader.SimpleState.startElement(SimpleState.java:71)
        at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
        at com.sun.msv.reader.trex.TREXBaseReader.startElement(TREXBaseReader.java:180)
        at com.sun.msv.reader.trex.ng.RELAXNGReader.startElement(RELAXNGReader.java:524)
        at com.sun.msv.reader.trex.ng.comp.RELAXNGCompReader.startElement(RELAXNGCompReader.java:197)
        at orbeon.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:485)
        at orbeon.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
        at orbeon.apache.xerces.xinclude.XIncludeHandler.emptyElement(XIncludeHandler.java:731)
        at orbeon.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:312)
        at orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1534)
        at orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
        at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:828)
        at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758)
        at orbeon.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
        at orbeon.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178)
        at com.sun.msv.reader.util.GrammarLoader._loadSchema(GrammarLoader.java:514)
        at com.sun.msv.reader.util.GrammarLoader.parse(GrammarLoader.java:325)
        at com.sun.msv.reader.util.GrammarLoader.loadSchema(GrammarLoader.java:189)
        at com.sun.msv.verifier.jarv.TheFactoryImpl.parse(TheFactoryImpl.java:42)
        at com.sun.msv.verifier.jarv.FactoryImpl.compileSchema(FactoryImpl.java:98)
        at org.orbeon.oxf.processor.validation.MSVValidationProcessor$6.read(MSVValidationProcessor.java:149)
        at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)
        at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:44)
        at org.orbeon.oxf.processor.validation.MSVValidationProcessor$5.readImpl(MSVValidationProcessor.java:120)
        at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)
        at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
        at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)
        at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:412)
        at org.orbeon.oxf.processor.XMLProcessorRegistry.start(XMLProcessorRegistry.java:42)
        at org.orbeon.oxf.pipeline.InitUtils.initializeProcessorDefinitions(InitUtils.java:231)
        at org.orbeon.oxf.webapp.WebAppContext.<init>(WebAppContext.java:99)
        at org.orbeon.oxf.webapp.WebAppContext.instance(WebAppContext.java:66)
        at org.orbeon.oxf.servlet.OPSServletDelegate.init(OPSServletDelegate.java:72)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:60)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpApplication.findServlet(HttpApplication.java:4617)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpApplication.findServlet(HttpApplication.java:4541)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpApplication.getDefaultDispatcher(HttpApplication.java:3400)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3106)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2441)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
        at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
        at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
        at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
        at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
        at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
        at java.lang.Thread.run(Thread.java:595)



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Oracle oc4j 10.1.3 problems

Alessandro  Vernet
Administrator
Hi Jakub,

We haven't tested OPS on OC4J so far. This seems to be a problem
related to MSV, which we use for validation
(https://msv.dev.java.net/). So just to get past that, you can try to
disable validation by adding to those two lines in your
config/properties.xml:

<property as="xs:boolean" name="oxf.validation.processor" value="false"/>
<property as="xs:boolean" name="oxf.validation.user" value="false"/>

I have also added an entry in our tracker for this OC4J-related issue:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=306266&group_id=168&atid=350207

Alex

On 10/5/06, Jakub Hozak <[hidden email]> wrote:

> Greetings
>
> I have a problem deploying Orbeon on oc4j 10.1.3. it runs on jdk 1.5 so
> this shouldn't be a problem. I do know however, that there is a certain
> xerces and other jar manipulation required for Tomcat deployment.
>
> The exception (below) seems to be caused by a similar issue, but I
> don't know where should I put the jars, or what arrangement should
> I make on oc4j. Any experiences in that way?
>
> thanks a lot
>
> Jakub Hozak
>
> -------------------------------------
> java.lang.IncompatibleClassChangeError
>         at com.sun.msv.reader.trex.ng.DataState.startSelf(DataState.java:58)
>         at com.sun.msv.reader.State.init(State.java:153)
>         at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:583)
>         at com.sun.msv.reader.SimpleState.startElement(SimpleState.java:71)
>         at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
>         at com.sun.msv.reader.trex.TREXBaseReader.startElement(TREXBaseReader.java:180)
>         at com.sun.msv.reader.trex.ng.RELAXNGReader.startElement(RELAXNGReader.java:524)
>         at com.sun.msv.reader.trex.ng.comp.RELAXNGCompReader.startElement(RELAXNGCompReader.java:197)
>         at orbeon.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:485)
>         at orbeon.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
>         at orbeon.apache.xerces.xinclude.XIncludeHandler.emptyElement(XIncludeHandler.java:731)
>         at orbeon.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:312)
>         at orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1534)
>         at orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
>         at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:828)
>         at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758)
>         at orbeon.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
>         at orbeon.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178)
>         at com.sun.msv.reader.util.GrammarLoader._loadSchema(GrammarLoader.java:514)
>         at com.sun.msv.reader.util.GrammarLoader.parse(GrammarLoader.java:325)
>         at com.sun.msv.reader.util.GrammarLoader.loadSchema(GrammarLoader.java:189)
>         at com.sun.msv.verifier.jarv.TheFactoryImpl.parse(TheFactoryImpl.java:42)
>         at com.sun.msv.verifier.jarv.FactoryImpl.compileSchema(FactoryImpl.java:98)
>         at org.orbeon.oxf.processor.validation.MSVValidationProcessor$6.read(MSVValidationProcessor.java:149)
>         at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)
>         at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:44)
>         at org.orbeon.oxf.processor.validation.MSVValidationProcessor$5.readImpl(MSVValidationProcessor.java:120)
>         at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
>         at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)
>         at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
>         at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)
>         at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:412)
>         at org.orbeon.oxf.processor.XMLProcessorRegistry.start(XMLProcessorRegistry.java:42)
>         at org.orbeon.oxf.pipeline.InitUtils.initializeProcessorDefinitions(InitUtils.java:231)
>         at org.orbeon.oxf.webapp.WebAppContext.<init>(WebAppContext.java:99)
>         at org.orbeon.oxf.webapp.WebAppContext.instance(WebAppContext.java:66)
>         at org.orbeon.oxf.servlet.OPSServletDelegate.init(OPSServletDelegate.java:72)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>         at org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:60)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.findServlet(HttpApplication.java:4541)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.getDefaultDispatcher(HttpApplication.java:3400)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3106)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2441)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
>         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
>         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
>         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
>         at java.lang.Thread.run(Thread.java:595)
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Oracle oc4j 10.1.3 problems

Jakub Hozak
Thank you very much - the workaround you suggested has fixed the problem nad
OPS now loads the example page correctly.  Most of the examples work now.
I only noticed the DMS Form example failure with message

"loader constraints violated when linking org/relaxng/datatype/ValidationContext class"

Obviously it needs the classes we just "turned off". My question is: What drawbacks are
there when I set the properties as you told me? Will there be no validation at all? Or will
just the RELAX NG validation dissappear? Is it safe to use OPS at the production level then?

I am asking because we are just deciding whether to use OPS or not, but the oc4j server is
a "must use" technology for us. What would you recommend?


Jakub Hozak

PS: I hadn't developed any application under OPS yet and I am not completely comfortable
with schemas to, so forgive me any ignorance in the paragraph above.


On 10/7/06, Alessandro Vernet <[hidden email]> wrote:
Hi Jakub,

We haven't tested OPS on OC4J so far. This seems to be a problem
related to MSV, which we use for validation
(https://msv.dev.java.net/). So just to get past that, you can try to
disable validation by adding to those two lines in your
config/properties.xml:

<property as="xs:boolean" name="oxf.validation.processor" value="false"/>
<property as="xs:boolean" name=" oxf.validation.user" value="false"/>

I have also added an entry in our tracker for this OC4J-related issue:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=306266&group_id=168&atid=350207

Alex

On 10/5/06, Jakub Hozak <[hidden email]> wrote:

> Greetings
>
> I have a problem deploying Orbeon on oc4j 10.1.3. it runs on jdk 1.5 so
> this shouldn't be a problem. I do know however, that there is a certain
> xerces and other jar manipulation required for Tomcat deployment.
>
> The exception (below) seems to be caused by a similar issue, but I
> don't know where should I put the jars, or what arrangement should
> I make on oc4j. Any experiences in that way?
>
> thanks a lot

>
> Jakub Hozak
>
> -------------------------------------
> java.lang.IncompatibleClassChangeError
>         at com.sun.msv.reader.trex.ng.DataState.startSelf(DataState.java :58)
>         at com.sun.msv.reader.State.init(State.java:153)
>         at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:583)
>         at com.sun.msv.reader.SimpleState.startElement(SimpleState.java :71)
>         at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
>         at com.sun.msv.reader.trex.TREXBaseReader.startElement(TREXBaseReader.java:180)
>         at com.sun.msv.reader.trex.ng.RELAXNGReader.startElement (RELAXNGReader.java:524)
>         at com.sun.msv.reader.trex.ng.comp.RELAXNGCompReader.startElement(RELAXNGCompReader.java:197)
>         at orbeon.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java :485)
>         at orbeon.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
>         at orbeon.apache.xerces.xinclude.XIncludeHandler.emptyElement(XIncludeHandler.java :731)
>         at orbeon.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:312)
>         at orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (XMLDocumentFragmentScannerImpl.java:1534)
>         at orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
>         at orbeon.apache.xerces.parsers.XML11Configuration.parse (XML11Configuration.java:828)
>         at orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758)
>         at orbeon.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
>         at orbeon.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178)
>         at com.sun.msv.reader.util.GrammarLoader._loadSchema(GrammarLoader.java:514)
>         at com.sun.msv.reader.util.GrammarLoader.parse (GrammarLoader.java:325)
>         at com.sun.msv.reader.util.GrammarLoader.loadSchema(GrammarLoader.java:189)
>         at com.sun.msv.verifier.jarv.TheFactoryImpl.parse(TheFactoryImpl.java:42)
>         at com.sun.msv.verifier.jarv.FactoryImpl.compileSchema(FactoryImpl.java:98)
>         at org.orbeon.oxf.processor.validation.MSVValidationProcessor$6.read(MSVValidationProcessor.java:149)
>         at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject (ProcessorImpl.java:470)
>         at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:44)
>         at org.orbeon.oxf.processor.validation.MSVValidationProcessor$5.readImpl (MSVValidationProcessor.java:120)
>         at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
>         at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java :1195)
>         at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
>         at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)
>         at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:412)
>         at org.orbeon.oxf.processor.XMLProcessorRegistry.start(XMLProcessorRegistry.java:42)
>         at org.orbeon.oxf.pipeline.InitUtils.initializeProcessorDefinitions (InitUtils.java:231)
>         at org.orbeon.oxf.webapp.WebAppContext.<init>(WebAppContext.java:99)
>         at org.orbeon.oxf.webapp.WebAppContext.instance(WebAppContext.java:66)
>         at org.orbeon.oxf.servlet.OPSServletDelegate.init (OPSServletDelegate.java:72)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>         at org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:60)
>         at javax.servlet.GenericServlet.init (GenericServlet.java:256)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
>         at com.evermind[Oracle Containers for J2EE 10g ( 10.1.3.0.0)
> ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.findServlet(HttpApplication.java :4541)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.getDefaultDispatcher(HttpApplication.java:3400)
>         at com.evermind[Oracle Containers for J2EE 10g ( 10.1.3.0.0)
> ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3106)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpApplication.getRequestDispatcher( HttpApplication.java:2441)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)
>         at com.evermind [Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.serveOneRequest( HttpRequestHandler.java:218)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
>         at com.evermind[Oracle Containers for J2EE 10g ( 10.1.3.0.0)
> ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
>         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket (ServerSocketAcceptHandler.java:230)
>         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
>         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run (ServerSocketAcceptHandler.java:831)
>         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
> ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
>         at java.lang.Thread.run(Thread.java:595)
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>


--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Oracle oc4j 10.1.3 problems

Erik Bruchez
Administrator
Jakub Hozak wrote:

 > I only noticed the DMS Form example failure with message
 >
 > "loader constraints violated when linking
 > org/relaxng/datatype/ValidationContext class"
 >
 > Obviously it needs the classes we just "turned off". My question is:
 > What drawbacks are there when I set the properties as you told me?
 > Will there be no validation at all? Or will just the RELAX NG
 > validation dissappear? Is it safe to use OPS at the production level
 > then?

It's a little bit like turning off type checking in Java, is that was
possible at all. This means that a lot of the validation done to check
processors inputs in XPL will not take place at all, so it will be
harder to find errors in your XPL code. This also applies to XForms,
which won't be able to do schema validation. So you are losing a
feature there as well.

 > I am asking because we are just deciding whether to use OPS or not,
 > but the oc4j server is a "must use" technology for us. What would
 > you recommend?

Start by trying to remove (backup) the following JARs from the OPS WAR:

   msv-20031020.jar
   isorelax-20031020.jar
   relaxngDatatype-20031020.jar
   xsdlib-20031020.jar

If that doesn't work, keep those JARs in but try enabling the OPS
classloader in web.xml with:

   <context-param>
       <param-name>oxf.classloader.enable</param-name>
       <param-value>true</param-value>
   </context-param>

Finally, you could talk to Oracle and ask them:

1. Why they expose the MSV classes to your web application which needs
    a different version of MSV.

2. If there is a way to *not* expose them to your web application.

3. If not, what version of MSV they use, and then try to either
    upgrade their version or the OPS version.

For the container to explose a whole universe of classes to your web
applications is broken, even though all app server vendors make the
same mistake with certain classes. This in the end is a bug of the
J(2)EE spec, which should prevent containers from doing so, but the
world has been plagued by this kind of issues forever now.

-Erik

 >
 >
 > Jakub Hozak
 >
 > PS: I hadn't developed any application under OPS yet and I am not
 > completely comfortable
 > with schemas to, so forgive me any ignorance in the paragraph above.
 >
 >
 > On 10/7/06, *Alessandro Vernet* <[hidden email]
 > <mailto:[hidden email]>> wrote:
 >
 >     Hi Jakub,
 >
 >     We haven't tested OPS on OC4J so far. This seems to be a problem
 >     related to MSV, which we use for validation
 >     (https://msv.dev.java.net/). So just to get past that, you can try to
 >     disable validation by adding to those two lines in your
 >     config/properties.xml:
 >
 >     <property as="xs:boolean" name="oxf.validation.processor"
 >     value="false"/>
 >     <property as="xs:boolean" name=" oxf.validation.user" value="false"/>
 >
 >     I have also added an entry in our tracker for this OC4J-related
issue:
 >
 >
http://forge.objectweb.org/tracker/index.php?func=detail&aid=306266&group_id=168&atid=350207
 >
<http://forge.objectweb.org/tracker/index.php?func=detail&aid=306266&group_id=168&atid=350207>
 >
 >     Alex
 >
 >     On 10/5/06, Jakub Hozak <[hidden email]
 >     <mailto:[hidden email]>> wrote:
 >      > Greetings
 >      >
 >      > I have a problem deploying Orbeon on oc4j 10.1.3. it runs on jdk
 >     1.5 so
 >      > this shouldn't be a problem. I do know however, that there is a
 >     certain
 >      > xerces and other jar manipulation required for Tomcat deployment.
 >      >
 >      > The exception (below) seems to be caused by a similar issue, but I
 >      > don't know where should I put the jars, or what arrangement should
 >      > I make on oc4j. Any experiences in that way?
 >      >
 >      > thanks a lot
 >      >
 >      > Jakub Hozak
 >      >
 >      > -------------------------------------
 >      > java.lang.IncompatibleClassChangeError
 >      >         at
 >     com.sun.msv.reader.trex.ng.DataState.startSelf(DataState.java :58)
 >      >         at com.sun.msv.reader.State.init(State.java:153)
 >      >         at
 >     com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:583)
 >      >         at
 >     com.sun.msv.reader.SimpleState.startElement(SimpleState.java :71)
 >      >         at
 >
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
 >      >         at
 >
com.sun.msv.reader.trex.TREXBaseReader.startElement(TREXBaseReader.java:180)
 >      >         at com.sun.msv.reader.trex.ng.RELAXNGReader.startElement
 >     (RELAXNGReader.java:524)
 >      >         at
 >
com.sun.msv.reader.trex.ng.comp.RELAXNGCompReader.startElement(RELAXNGCompReader.java:197)
 >      >         at
 >
orbeon.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java
 >     :485)
 >      >         at
 >
orbeon.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
 >      >         at
 >
orbeon.apache.xerces.xinclude.XIncludeHandler.emptyElement(XIncludeHandler.java
 >     :731)
 >      >         at
 >
orbeon.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:312)
 >      >         at
 >
orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
 >     (XMLDocumentFragmentScannerImpl.java:1534)
 >      >         at
 >
orbeon.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
 >      >         at orbeon.apache.xerces.parsers.XML11Configuration.parse
 >     (XML11Configuration.java:828)
 >      >         at
 >
orbeon.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758)
 >      >         at
 >     orbeon.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
 >      >         at
 >
orbeon.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178)
 >      >         at
 >
com.sun.msv.reader.util.GrammarLoader._loadSchema(GrammarLoader.java:514)
 >      >         at com.sun.msv.reader.util.GrammarLoader.parse
 >     (GrammarLoader.java:325)
 >      >         at
 >
com.sun.msv.reader.util.GrammarLoader.loadSchema(GrammarLoader.java:189)
 >      >         at
 >
com.sun.msv.verifier.jarv.TheFactoryImpl.parse(TheFactoryImpl.java:42)
 >      >         at
 >
com.sun.msv.verifier.jarv.FactoryImpl.compileSchema(FactoryImpl.java:98)
 >      >         at
 >
org.orbeon.oxf.processor.validation.MSVValidationProcessor$6.read(MSVValidationProcessor.java:149)
 >      >         at
 >     org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject
 >     (ProcessorImpl.java:470)
 >      >         at
 >
org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$600(MSVValidationProcessor.java:44)
 >      >         at
 >     org.orbeon.oxf.processor.validation.MSVValidationProcessor$5.readImpl
 >     (MSVValidationProcessor.java:120)
 >      >         at
 >
org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
 >      >         at
 >
org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java
 >     :1195)
 >      >         at
 >
org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)
 >      >         at
 >
org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)
 >      >         at
 >
org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:412)
 >      >         at
 >
org.orbeon.oxf.processor.XMLProcessorRegistry.start(XMLProcessorRegistry.java:42)
 >      >         at
 >     org.orbeon.oxf.pipeline.InitUtils.initializeProcessorDefinitions
 >     (InitUtils.java:231)
 >      >         at
 >     org.orbeon.oxf.webapp.WebAppContext.<init>(WebAppContext.java:99)
 >      >         at
 >     org.orbeon.oxf.webapp.WebAppContext.instance(WebAppContext.java:66)
 >      >         at org.orbeon.oxf.servlet.OPSServletDelegate.init
 >     (OPSServletDelegate.java:72)
 >      >         at
javax.servlet.GenericServlet.init(GenericServlet.java:256)
 >      >         at
org.orbeon.oxf.servlet.OPSServlet.init(OPSServlet.java:60)
 >      >         at javax.servlet.GenericServlet.init
 >     (GenericServlet.java:256)
 >      >         at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      >
].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
 >      >         at com.evermind[Oracle Containers for J2EE 10g (
10.1.3.0.0)
 >      >
].server.http.HttpApplication.findServlet(HttpApplication.java:4617)
 >      >         at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      > ].server.http.HttpApplication.findServlet(HttpApplication.java
:4541)
 >      >         at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      >
 >
].server.http.HttpApplication.getDefaultDispatcher(HttpApplication.java:3400)
 >      >         at com.evermind[Oracle Containers for J2EE 10g (
10.1.3.0.0)
 >      >
 >
].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3106)
 >      >         at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      > ].server.http.HttpApplication.getRequestDispatcher(
 >     HttpApplication.java:2441)
 >      >         at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      >
 >
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)
 >      >         at com.evermind [Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      >
 >
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
 >      >         at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      > ].server.http.HttpRequestHandler.serveOneRequest(
 >     HttpRequestHandler.java:218)
 >      >         at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
 >      >         at com.evermind[Oracle Containers for J2EE 10g (
10.1.3.0.0)
 >      > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
 >      >         at
 >
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
 >      >         at
 >     oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket
 >     (ServerSocketAcceptHandler.java:230)
 >      >         at
 >
oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
 >      >         at
 >     oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run
 >     (ServerSocketAcceptHandler.java:831)
 >      >         at com.evermind[Oracle Containers for J2EE 10g
(10.1.3.0.0)
 >      >
 >
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
 >      >         at java.lang.Thread.run(Thread.java:595)

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws