Category Archives: Java

Java tips and tricks

How to protect Cognos 10 app server

Problem: Protecting Cognos 10 App Server The Cognos 10 application runs within an application server. As a result it is vulnerable to attacks over the Internet through the open ports for WWW traffic. Here are some notes on CAF. Ant … Continue reading

Posted in AIX, Cognos 10, Java, Linux | Tagged , , , | Leave a comment

Qpid, an AMQP implementation

Joshua Kramer has an article in LJ about Qpid and AMQP. One of the most compelling aspects of Qpid is its cross plaform and cross language capability. Finally there is a message broker that is easy to use and has … Continue reading

Posted in Java | Tagged , , | 2 Comments

Install Open MQ 4.4 on Mac OS X 10.6 (Snow Leopard)

Intro Snow Leopard comes with a native 64 bit Java 1.6 environment. The Open MQ binaries are made for the JDK 1.5 in 32 bit. This article shows how to make Open MQ work on OS X 1.6 by compiling … Continue reading

Posted in Java | Tagged | 1 Comment

How to create an MD5 password in java or Tomcat

To create an MD5 password at the prompt, assuming you have tomcat installed in /usr/local/tomcat, type $ export TOMCAT=”/usr/local/tomcat” $ java -cp “$TOMCAT/server/lib/catalina.jar:/usr/share/java/jmxri.jar:$TOMCAT/bin/commons-logging-api.jar” \ org.apache.catalina.realm.RealmBase -a md5 [secret] by replacing “[secret]” with the password. Some systems have a working digest.sh … Continue reading

Posted in Java | Tagged , , | Leave a comment

Problems starting Java

If running a legacy java app on a newer RH or RHEL system, youget: Error occurred during initialization of VM Unable to load native library: …/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference This … Continue reading

Posted in Java | Tagged , , | Leave a comment

How to load/reload/unload apps while Tomcat is running

To manage web applications with Tomcat, you can use the Tomcat manager application that comes with Tomcat. These simple steps show how it is done: Make sure that there is a user with manager role set up in the …/tomcat4/conf/tomcat-users.xml file. The … Continue reading

Posted in Java | Tagged | Leave a comment

Creating a PostgreSQL datasource with ColdFusion MX

To set up a PostgreSQL datasource for ColdFusion (CFMX), follow these steps: Open CFMX administrator Click on “Data Sources” In the “add new datasource” write in a name and select “other” before clicking “add” Fill our the fields as follows: … Continue reading

Posted in Java | Tagged , , | 1 Comment