B
boardrider
Hi All,
I need to have both Java and tomcat on a Linux redhat AS 3.0
(2.4.21-37.Elsmp).
However, when installing xml-commons-apis after Java is already
installed, e.g. in the following order:
[root@ronb-ppg118 tmp]# ls -ls /usr/java
total 4
0 lrwxrwxrwx 1 root root 11 Aug 15 10:44 java_jdk
-> jdk1.5.0_05
4 drwxr-xr-x 9 root root 4096 Aug 15 09:49
jdk1.5.0_05
[root@ronb-ppg118 tmp]# rpm -ev xml-commons-apis
[root@ronb-ppg118 tmp]# rpm -ihUv
13tomcat/xml-commons-apis-1.0-0.b2.6jpp_2rh.noarch.rpm
warning: 13tomcat/xml-commons-apis-1.0-0.b2.6jpp_2rh.noarch.rpm: V3 DSA
signature: NOKEY, key ID db42a60e
Preparing... ###########################################
[100%]
1:xml-commons-apis ###########################################
[100%]
[root@ronb-ppg118 tmp]# rpm -qa | grep jdk
[root@ronb-ppg118 tmp]# ls -ls /usr/java
total 0
0 lrwxrwxrwx 1 root root 11 Aug 15 10:44 java_jdk
-> jdk1.5.0_05
The Java disappears.
I traced the source of xml-commons-apis to the xml-apis JAR. This JAR
includes some 190 files.
When the '.class' files therein are converted to text files, there are
100 references to jdk or java (see below).
However, going though all these references, I cannot ascertain which is
responsible for disappearing my java.
Could any of you tell me which in xml-commons-apis RPM is responsible
for disappearing my Java ?
BTW, if I install Java after tomcat (namely, after xml-commons-apis),
then Java does not disappear, so I have a work around. I just wish to
understand what is going on.
Thanks,
Ron.
If possible, please answer to comp_lang_java_programmer DOT comverse AT
9ox DOT net
[root@mddinstall java-tomcat]# grep -Ein 'jdk|java' *.jad
AttributeListImpl.jad:7:import java.util.Vector;
DefaultHandler.jad:7:import java.io.IOException;
DocumentBuilderFactory.jad:5ackage javax.xml.parsers;
DocumentBuilderFactory.jad:8:// Referenced classes of package
javax.xml.parsers:
DocumentBuilderFactory.jad:65: return
(DocumentBuilderFactory)FactoryFinder.find("javax.xml.parsers.DocumentBuilderFactory",
null);
DocumentBuilder.jad:5ackage javax.xml.parsers;
DocumentBuilder.jad:7:import java.io.*;
DOMLocator.jad:5ackage javax.xml.transform.dom;
DOMLocator.jad:7:import javax.xml.transform.SourceLocator;
DOMResult.jad:5ackage javax.xml.transform.dom;
DOMResult.jad:7:import javax.xml.transform.Result;
DOMResult.jad:49: public static final String FEATURE =
"http://javax.xml.transform.dom.DOMResult/feature";
DOMSource.jad:5ackage javax.xml.transform.dom;
DOMSource.jad:7:import javax.xml.transform.Source;
DOMSource.jad:49: public static final String FEATURE =
"http://javax.xml.transform.dom.DOMSource/feature";
EntityResolver.jad:7:import java.io.IOException;
ErrorListener.jad:5ackage javax.xml.transform;
ErrorListener.jad:8:// Referenced classes of package
javax.xml.transform:
FactoryConfigurationError.jad:5ackage javax.xml.parsers;
FactoryFinder.jad:5ackage javax.xml.transform;
FactoryFinder.jad:7:import java.io.*;
FactoryFinder.jad:8:import java.lang.reflect.InvocationTargetException;
FactoryFinder.jad:9:import java.lang.reflect.Method;
FactoryFinder.jad:10:import java.util.Properties;
FactoryFinder.jad:69: String s3 =
System.getProperty("java.home");
FactoryFinder.jad:77: debugPrintln("found java.home
property " + s7);
FactoryFinder.jad:85: java.io.InputStream inputstream =
null;
FactoryFinder.jad:128: method =
(java.lang.Thread.class).getMethod("getContextClassLoader", null);
FactoryFinder.jad:132: debugPrintln("assuming JDK 1.1");
FactoryFinder.jad:133: return
(javax.xml.transform.FactoryFinder.class).getClassLoader();
InputSource.jad:7:import java.io.InputStream;
InputSource.jad:8:import java.io.Reader;
NamespaceSupport.jad:7:import java.util.*;
OutputKeys.jad:5ackage javax.xml.transform;
ParserAdapter.jad:7:import java.io.IOException;
ParserAdapter.jad:8:import java.util.Enumeration;
ParserAdapter.jad:9:import java.util.Vector;
ParserConfigurationException.jad:5ackage javax.xml.parsers;
Parser.jad:7:import java.io.IOException;
Parser.jad:8:import java.util.Locale;
Result.jad:5ackage javax.xml.transform;
Result.jad:15: public static final String PI_DISABLE_OUTPUT_ESCAPING
= "javax.xml.transform.disable-output-escaping";
Result.jad:16: public static final String PI_ENABLE_OUTPUT_ESCAPING
= "javax.xml.transform.enable-output-escaping";
SAXParserFactory.jad:5ackage javax.xml.parsers;
SAXParserFactory.jad:9:// Referenced classes of package
javax.xml.parsers:
SAXParserFactory.jad:39: return
(SAXParserFactory)FactoryFinder.find("javax.xml.parsers.SAXParserFactory",
null);
SAXParser.jad:5ackage javax.xml.parsers;
SAXParser.jad:7:import java.io.*;
SAXResult.jad:5ackage javax.xml.transform.sax;
SAXResult.jad:7:import javax.xml.transform.Result;
SAXResult.jad:54: public static final String FEATURE =
"http://javax.xml.transform.sax.SAXResult/feature";
SAXSource.jad:5ackage javax.xml.transform.sax;
SAXSource.jad:7:import javax.xml.transform.Source;
SAXSource.jad:8:import javax.xml.transform.stream.StreamSource;
SAXSource.jad:82: public static final String FEATURE =
"http://javax.xml.transform.sax.SAXSource/feature";
SAXTransformerFactory.jad:5ackage javax.xml.transform.sax;
SAXTransformerFactory.jad:7:import javax.xml.transform.*;
SAXTransformerFactory.jad:10:// Referenced classes of package
javax.xml.transform.sax:
SAXTransformerFactory.jad:38: public static final String FEATURE =
"http://javax.xml.transform.sax.SAXTransformerFactory/feature";
SAXTransformerFactory.jad:39: public static final String
FEATURE_XMLFILTER =
"http://javax.xml.transform.sax.SAXTransformerFactory/feature/xmlfilter";
Source.jad:5ackage javax.xml.transform;
SourceLocator.jad:5ackage javax.xml.transform;
StreamResult.jad:5ackage javax.xml.transform.stream;
StreamResult.jad:7:import java.io.*;
StreamResult.jad:8:import javax.xml.transform.Result;
StreamResult.jad:79: public static final String FEATURE =
"http://javax.xml.transform.stream.StreamResult/feature";
StreamSource.jad:5ackage javax.xml.transform.stream;
StreamSource.jad:7:import java.io.*;
StreamSource.jad:8:import javax.xml.transform.Source;
StreamSource.jad:101: public static final String FEATURE =
"http://javax.xml.transform.stream.StreamSource/feature";
TemplatesHandler.jad:5ackage javax.xml.transform.sax;
TemplatesHandler.jad:7:import javax.xml.transform.Templates;
Templates.jad:5ackage javax.xml.transform;
Templates.jad:7:import java.util.Properties;
Templates.jad:9:// Referenced classes of package javax.xml.transform:
TransformerConfigurationException.jad:5ackage javax.xml.transform;
TransformerConfigurationException.jad:8:// Referenced classes of
package javax.xml.transform:
TransformerException.jad:5ackage javax.xml.transform;
TransformerException.jad:7:import java.io.PrintStream;
TransformerException.jad:8:import java.io.PrintWriter;
TransformerException.jad:9:import
java.lang.reflect.InvocationTargetException;
TransformerException.jad:10:import java.lang.reflect.Method;
TransformerException.jad:12:// Referenced classes of package
javax.xml.transform:
TransformerFactoryConfigurationError.jad:5ackage javax.xml.transform;
TransformerFactory.jad:5ackage javax.xml.transform;
TransformerFactory.jad:8:// Referenced classes of package
javax.xml.transform:
TransformerFactory.jad:36: return
(TransformerFactory)FactoryFinder.find("javax.xml.transform.TransformerFactory",
null);
TransformerHandler.jad:5ackage javax.xml.transform.sax;
TransformerHandler.jad:7:import javax.xml.transform.Result;
TransformerHandler.jad:8:import javax.xml.transform.Transformer;
Transformer.jad:5ackage javax.xml.transform;
Transformer.jad:7:import java.util.Properties;
Transformer.jad:9:// Referenced classes of package javax.xml.transform:
URIResolver.jad:5ackage javax.xml.transform;
URIResolver.jad:8:// Referenced classes of package javax.xml.transform:
Version.jad:7:import java.io.PrintStream;
XMLFilterImpl.jad:7:import java.io.IOException;
XMLReaderAdapter.jad:7:import java.io.IOException;
XMLReaderAdapter.jad:8:import java.util.Locale;
XMLReader.jad:7:import java.io.IOException;
I need to have both Java and tomcat on a Linux redhat AS 3.0
(2.4.21-37.Elsmp).
However, when installing xml-commons-apis after Java is already
installed, e.g. in the following order:
[root@ronb-ppg118 tmp]# ls -ls /usr/java
total 4
0 lrwxrwxrwx 1 root root 11 Aug 15 10:44 java_jdk
-> jdk1.5.0_05
4 drwxr-xr-x 9 root root 4096 Aug 15 09:49
jdk1.5.0_05
[root@ronb-ppg118 tmp]# rpm -ev xml-commons-apis
[root@ronb-ppg118 tmp]# rpm -ihUv
13tomcat/xml-commons-apis-1.0-0.b2.6jpp_2rh.noarch.rpm
warning: 13tomcat/xml-commons-apis-1.0-0.b2.6jpp_2rh.noarch.rpm: V3 DSA
signature: NOKEY, key ID db42a60e
Preparing... ###########################################
[100%]
1:xml-commons-apis ###########################################
[100%]
[root@ronb-ppg118 tmp]# rpm -qa | grep jdk
[root@ronb-ppg118 tmp]# ls -ls /usr/java
total 0
0 lrwxrwxrwx 1 root root 11 Aug 15 10:44 java_jdk
-> jdk1.5.0_05
The Java disappears.
I traced the source of xml-commons-apis to the xml-apis JAR. This JAR
includes some 190 files.
When the '.class' files therein are converted to text files, there are
100 references to jdk or java (see below).
However, going though all these references, I cannot ascertain which is
responsible for disappearing my java.
Could any of you tell me which in xml-commons-apis RPM is responsible
for disappearing my Java ?
BTW, if I install Java after tomcat (namely, after xml-commons-apis),
then Java does not disappear, so I have a work around. I just wish to
understand what is going on.
Thanks,
Ron.
If possible, please answer to comp_lang_java_programmer DOT comverse AT
9ox DOT net
[root@mddinstall java-tomcat]# grep -Ein 'jdk|java' *.jad
AttributeListImpl.jad:7:import java.util.Vector;
DefaultHandler.jad:7:import java.io.IOException;
DocumentBuilderFactory.jad:5ackage javax.xml.parsers;
DocumentBuilderFactory.jad:8:// Referenced classes of package
javax.xml.parsers:
DocumentBuilderFactory.jad:65: return
(DocumentBuilderFactory)FactoryFinder.find("javax.xml.parsers.DocumentBuilderFactory",
null);
DocumentBuilder.jad:5ackage javax.xml.parsers;
DocumentBuilder.jad:7:import java.io.*;
DOMLocator.jad:5ackage javax.xml.transform.dom;
DOMLocator.jad:7:import javax.xml.transform.SourceLocator;
DOMResult.jad:5ackage javax.xml.transform.dom;
DOMResult.jad:7:import javax.xml.transform.Result;
DOMResult.jad:49: public static final String FEATURE =
"http://javax.xml.transform.dom.DOMResult/feature";
DOMSource.jad:5ackage javax.xml.transform.dom;
DOMSource.jad:7:import javax.xml.transform.Source;
DOMSource.jad:49: public static final String FEATURE =
"http://javax.xml.transform.dom.DOMSource/feature";
EntityResolver.jad:7:import java.io.IOException;
ErrorListener.jad:5ackage javax.xml.transform;
ErrorListener.jad:8:// Referenced classes of package
javax.xml.transform:
FactoryConfigurationError.jad:5ackage javax.xml.parsers;
FactoryFinder.jad:5ackage javax.xml.transform;
FactoryFinder.jad:7:import java.io.*;
FactoryFinder.jad:8:import java.lang.reflect.InvocationTargetException;
FactoryFinder.jad:9:import java.lang.reflect.Method;
FactoryFinder.jad:10:import java.util.Properties;
FactoryFinder.jad:69: String s3 =
System.getProperty("java.home");
FactoryFinder.jad:77: debugPrintln("found java.home
property " + s7);
FactoryFinder.jad:85: java.io.InputStream inputstream =
null;
FactoryFinder.jad:128: method =
(java.lang.Thread.class).getMethod("getContextClassLoader", null);
FactoryFinder.jad:132: debugPrintln("assuming JDK 1.1");
FactoryFinder.jad:133: return
(javax.xml.transform.FactoryFinder.class).getClassLoader();
InputSource.jad:7:import java.io.InputStream;
InputSource.jad:8:import java.io.Reader;
NamespaceSupport.jad:7:import java.util.*;
OutputKeys.jad:5ackage javax.xml.transform;
ParserAdapter.jad:7:import java.io.IOException;
ParserAdapter.jad:8:import java.util.Enumeration;
ParserAdapter.jad:9:import java.util.Vector;
ParserConfigurationException.jad:5ackage javax.xml.parsers;
Parser.jad:7:import java.io.IOException;
Parser.jad:8:import java.util.Locale;
Result.jad:5ackage javax.xml.transform;
Result.jad:15: public static final String PI_DISABLE_OUTPUT_ESCAPING
= "javax.xml.transform.disable-output-escaping";
Result.jad:16: public static final String PI_ENABLE_OUTPUT_ESCAPING
= "javax.xml.transform.enable-output-escaping";
SAXParserFactory.jad:5ackage javax.xml.parsers;
SAXParserFactory.jad:9:// Referenced classes of package
javax.xml.parsers:
SAXParserFactory.jad:39: return
(SAXParserFactory)FactoryFinder.find("javax.xml.parsers.SAXParserFactory",
null);
SAXParser.jad:5ackage javax.xml.parsers;
SAXParser.jad:7:import java.io.*;
SAXResult.jad:5ackage javax.xml.transform.sax;
SAXResult.jad:7:import javax.xml.transform.Result;
SAXResult.jad:54: public static final String FEATURE =
"http://javax.xml.transform.sax.SAXResult/feature";
SAXSource.jad:5ackage javax.xml.transform.sax;
SAXSource.jad:7:import javax.xml.transform.Source;
SAXSource.jad:8:import javax.xml.transform.stream.StreamSource;
SAXSource.jad:82: public static final String FEATURE =
"http://javax.xml.transform.sax.SAXSource/feature";
SAXTransformerFactory.jad:5ackage javax.xml.transform.sax;
SAXTransformerFactory.jad:7:import javax.xml.transform.*;
SAXTransformerFactory.jad:10:// Referenced classes of package
javax.xml.transform.sax:
SAXTransformerFactory.jad:38: public static final String FEATURE =
"http://javax.xml.transform.sax.SAXTransformerFactory/feature";
SAXTransformerFactory.jad:39: public static final String
FEATURE_XMLFILTER =
"http://javax.xml.transform.sax.SAXTransformerFactory/feature/xmlfilter";
Source.jad:5ackage javax.xml.transform;
SourceLocator.jad:5ackage javax.xml.transform;
StreamResult.jad:5ackage javax.xml.transform.stream;
StreamResult.jad:7:import java.io.*;
StreamResult.jad:8:import javax.xml.transform.Result;
StreamResult.jad:79: public static final String FEATURE =
"http://javax.xml.transform.stream.StreamResult/feature";
StreamSource.jad:5ackage javax.xml.transform.stream;
StreamSource.jad:7:import java.io.*;
StreamSource.jad:8:import javax.xml.transform.Source;
StreamSource.jad:101: public static final String FEATURE =
"http://javax.xml.transform.stream.StreamSource/feature";
TemplatesHandler.jad:5ackage javax.xml.transform.sax;
TemplatesHandler.jad:7:import javax.xml.transform.Templates;
Templates.jad:5ackage javax.xml.transform;
Templates.jad:7:import java.util.Properties;
Templates.jad:9:// Referenced classes of package javax.xml.transform:
TransformerConfigurationException.jad:5ackage javax.xml.transform;
TransformerConfigurationException.jad:8:// Referenced classes of
package javax.xml.transform:
TransformerException.jad:5ackage javax.xml.transform;
TransformerException.jad:7:import java.io.PrintStream;
TransformerException.jad:8:import java.io.PrintWriter;
TransformerException.jad:9:import
java.lang.reflect.InvocationTargetException;
TransformerException.jad:10:import java.lang.reflect.Method;
TransformerException.jad:12:// Referenced classes of package
javax.xml.transform:
TransformerFactoryConfigurationError.jad:5ackage javax.xml.transform;
TransformerFactory.jad:5ackage javax.xml.transform;
TransformerFactory.jad:8:// Referenced classes of package
javax.xml.transform:
TransformerFactory.jad:36: return
(TransformerFactory)FactoryFinder.find("javax.xml.transform.TransformerFactory",
null);
TransformerHandler.jad:5ackage javax.xml.transform.sax;
TransformerHandler.jad:7:import javax.xml.transform.Result;
TransformerHandler.jad:8:import javax.xml.transform.Transformer;
Transformer.jad:5ackage javax.xml.transform;
Transformer.jad:7:import java.util.Properties;
Transformer.jad:9:// Referenced classes of package javax.xml.transform:
URIResolver.jad:5ackage javax.xml.transform;
URIResolver.jad:8:// Referenced classes of package javax.xml.transform:
Version.jad:7:import java.io.PrintStream;
XMLFilterImpl.jad:7:import java.io.IOException;
XMLReaderAdapter.jad:7:import java.io.IOException;
XMLReaderAdapter.jad:8:import java.util.Locale;
XMLReader.jad:7:import java.io.IOException;