15 September 2015

WebLogic Server XML Parsers

Many times there are question in WebLogic Server about parser factories:

java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature

  java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
    Error weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory

 java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.newInstance(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljavax/xml/parsers/DocumentBuilderFactory;
java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl$Parser




Because the classpath retrieve from different parts these implementations, including the JDK6 which bundles in it now.

This is how you can change by system properties the implementation, using xerces:

-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParser=org.apache.xerces.jaxp.SAXParserImpl

maybe you'll need to add xercesImpl.jar to your classpath. 



More info: 
https://docs.oracle.com/cd/E57014_01/wls/WLACH/pagehelp/Corexmlregistryxmlregistryconfigtitle.html



09 July 2015

Eclipse Platform Runtime Binary

Although, it is on the web, it is not easier to get a basic/minimal Eclipse installer.

You need to go to: http://download.eclipse.org/eclipse/downloads/
and get the desired version.

i.e.: 4.5 Luna: http://download.eclipse.org/eclipse/downloads/drops4/R-4.5-201506032000/


There you can find several basic binaries, such us, SDK, Plug-ins, SDK-RPC, etc.

The smallest is: Platform Runtime Binary

More details in each binary: http://download.eclipse.org/eclipse/downloads/drops4/R-4.5-201506032000/details.html#PlatformRuntime

Anyway, if you want this basic version to install another plug-ins, such us, Dynamic Languages Toolkit then you need to download another version (it is not sufficent with only PLatform Runtime Binary).




01 June 2015

monson-haefel.com @archive.org

The domain http://www.monson-haefel.com/ seems to be lost by Monson-Haefel and for the same reason the Errata page of his bestselling J2EE Web Services http://www.monson-haefel.com/jws_errata.html

Although, it is JAX-RPC and kind of old for current days, still is a good knowledge repository.

The page can be retrieved at https://web.archive.org/web/20111206223908/http://www.monson-haefel.com/jws_errata.html


12 March 2015

Wonders of Numbers: Adventures in Mathematics, Mind, and Meaning

Fe de Errata

Small Errata for Hardcover First Edition of Wonders of Numbers

 
page 205, boxed equation, Chapter 89, near bottom: "c" should be superscripted

page 358, Chapter 89, 2nd line in Further Exploring: "c" should be superscripted

page 216, Chapter 95, line 3, missing upside-down F symbol. Should read "F(24)" not "(24)", where the "F" is the upside-down symbol. Similarly line 2 should read "Let's define a new function F(n)."

page 262, figure drawing error. Line segment misplaced. Figure 114.1 should have a line connecting point B to the dot directly to the the left instead of the line from the point below B to the point directly to the left.

page 374, figure drawing error. Line segment misplaced. Figure 114.1 should have a line connecting point B to the dot directly to the the left instead of the line from the point below B to the point directly to the left.
 
page 94, Equation 10 towards the bottom of the page is missing an italics "i" before the "sin".
 
page 379, it says " 9 + 9 + 999 = 1000 " should be " 9/9 + 999 = 1000 " 

 

http://www.devweb.cl/mathfun

I used to have a webpage where I was posting about recreational mathematics.
As usual, it can be found at archive.org:

https://web.archive.org/web/20100416024912/http://devweb.cl/mathfun/


10 March 2015

OC4J: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

When using JDK 1.6 the following CastException may be obtained:

 org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

This is because we are using different Xalan.
 [06/03/2015 11:42:52,105] com.sample.AutenticaAction.execute(AutenticaAction.java:331) - Error = java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager
        at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:137)
        at org.apache.xpath.XPathContext.(XPathContext.java:102)
        at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:115)
        at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:99)
        at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:184)
        at com.sample.AutenticaAction.selectSingleNode(AutenticaAction.java:59)
        at com.sample.AutenticaAction.execute(AutenticaAction.java:130)
        at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
        at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)

This was replicated in OC4J 10.1.3.3.0 because we are using different xalan.jar

Blog Archive

Disclaimer

Qux