Archive for October, 2003

SAMBA and STARTTLS

Tuesday, October 21st, 2003

I turned on the master browser for SAMBA. We’ll see tomorrow whether the complaints go away. Now, what about thise STARTTLS verify=fail lines?
Configuring Sendmail’s STARTTLS (SSL) and Relaying

Tomcat Compile Errors

Monday, October 20th, 2003

I tried to compile tomcat using ant and got this:

dropping /usr/share/java/jsse-1.0.3/lib/jsse.jar from path as it doesn’t exist
dropping /opt/IBMJava2-141/jre/lib/jsse.jar from path as it doesn’t exist
dropping /usr/share/java/jsse-1.0.3/lib/jnet.jar from path as it doesn’t exist
dropping /usr/share/java/jsse-1.0.3/lib/jcert.jar from path as it doesn’t exist
dropping /usr/share/java/puretls-0.9b4/build/puretls.jar from path as it doesn’t exist
[javac] Compilation arguments:
[javac] ‘-d’
[javac] ‘/home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-5/build/classes’
[javac] ‘-classpath’
[javac] ‘/home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-5/build/classes:/usr/share/java/mx4j-1.1.1/lib/mx4j-jmx.jar:/usr/share/java/commons-logging-1.0.3/commons-logging.jar:/usr/share/java/commons-modeler-1.1/commons-modeler.jar:/usr/local/apache-ant-1.5.4/lib/xml-apis.jar:/usr/local/apache-ant-1.5.4/lib/xercesImpl.jar:/usr/local/apache-ant-1.5.4/lib/optional.jar:/usr/local/apache-ant-1.5.4/lib/ant.jar:/opt/IBMJava2-141/lib/tools.jar’
[javac] ‘-sourcepath’
[javac] ‘/home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java’
[javac] ‘-target’
[javac] ‘1.1′
[javac] ‘-g’
[javac]
[javac] The ‘ characters around the executable and arguments are
[javac] not part of the command.
[javac] Files to be compiled:
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE14SocketFactory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSEKeyManager.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13Factory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE14Support.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESupport.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/DefaultServerSocketFactory.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/TcpConnectionHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/TcpConnection.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/URL.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/PoolTcpEndpoint.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/MappingData.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/Mapper.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Parameters.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/FastHttpDateFormat.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/MimeMap.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/MimeHeaders.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/BaseRequest.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/ServerCookie.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/LocaleToCharsetMap.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/AcceptLanguage.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/HttpMessages.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/ContentType.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/LogHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/CommonLogHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/CaptureLog.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/LogManager.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/Log.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/SystemLogHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/SimpleHashtable.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/MultiMapValuesEnumeration.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/EmptyEnumeration.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/Queue.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/MultiMap.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/MultiMapNamesEnumeration.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/SimplePool.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/collections/LRUCache.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat/JdkCompat.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/compat/Jdk14Compat.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/handler/TcHandlerCtx.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/handler/HandlerManager.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/handler/TcHandler.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadWithAttributes.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/Expirer.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadPoolRunnable.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/Reaper.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadPoolMX.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/threads/ThreadPool.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/IntrospectionUtils.java
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:105: cannot resolve symbol
[javac] symbol : class Sun
[javac] location: package provider
[javac] Security.addProvider (new sun.security.provider.Sun());
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:106: package com.sun.net.ssl.internal.ssl does not exist
[javac] Security.addProvider (new com.sun.net.ssl.internal.ssl.Provider());
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:122: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.KeyManagerFactory kmf =
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:123: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.KeyManagerFactory.getInstance(algorithm);
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:133: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.TrustManager[] tm = null;
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:136: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.TrustManagerFactory tmf =
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:137: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.TrustManagerFactory.getInstance(”SunX509″);
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:143: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.SSLContext context =
[javac] ^
[javac] /home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:144: package com.sun.net.ssl does not exist
[javac] com.sun.net.ssl.SSLContext.getInstance(protocol);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 9 errors



BUILD FAILED
file:/home/andrew/jakarta-tomcat-5.0.12-src/src/jakarta-tomcat-connectors/util/build.xml:67: Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:844)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)

Some Links

Monday, October 20th, 2003

Java 2 Platform, Standard Edition (J2SE Platform), version 1.4.2
Eye on performance: Referencing objects
An Introduction to Java Stack Traces
struts book

WebSphere Installer

Sunday, October 19th, 2003

WebSphere installer not working (installshield) works fine if you run the setup jar directly.

winbindd

Sunday, October 19th, 2003

Why does winbindd use so much memory. It’s eaten up over 300M on a 1Gig RAM system.

Red Oak

Sunday, October 19th, 2003

Chopped some wood today, been burning for a few nights to get the feel of the stove. I like the red oak.

DNS Problems

Sunday, October 19th, 2003

I think I’ve got DNS problems. I’m using zoneedit to hose my external records, but also have a caching authoritative server for the local network. The local network is private and IP addresses differ in some cases from the public DNS. The NAT gateway is also the backup DNS and points to the ISP DHCP assigned DNS. Here are some of the weirdnesses:
1. Outlook express GP faults and windows pings the wrong (public) IP address. ipconfig /flushdns resolves the problem.
2. IE pointed to Apache proxying to Tomcat 5.0.12 seems to lock up. The servlet is hitting mysql with some primitive connection code. When I put better exception handling in and reinitialize the pool on error I see a permission problem after an IO problem with mysql. I suspect DNS as mysql security is host/user/password based here.
3. Sometimes the backup mail server picks up the mail. I think this is a load average problem as I’ve got some heavy load cron based java jobs that run on the hour and the problem seems to happen on a regular basis.
4. I haven’t checked the serial nobers on the zone-edit records so perhaps I’m doing something really wrong here. I know I’m cheating with the private DNS, but there should be a good way to accomplish this. Perhaps I need to eliminate backup DNS to the outside world.

Squirrelmail Prefs Lost?

Saturday, October 18th, 2003

Apache 2.0.47 + PHP 4.3.3 is working for squirrelmail but the prefs files are lost. I guess I’ll have to figure out where the path is set.

PHP 4.3.3 with Apache 2

Friday, October 17th, 2003

Trying to get PHP 4.3.3 working with Apache 2. This looks pretty good: http://us2.php.net/manual/en/install.apache2.php.
It looks like I just did a ./configure –enable-ssl for httpd last time. Added –enable-so this time.
The php configure looked like this:
./configure –enable-track-vars –enable-force-cgi-redirect –with-gettext –with-mysql.
Added the apxs directive and gor this:
./configure –enable-track-vars –enable-force-cgi-redirect –with-gettext –with-mysql –with-apxs2=/usr/local/apache2/bin/apxs.

Fish

Friday, October 17th, 2003

Mahi-mahi is tasty with barbequeue sauce.