Installing Jetspeed 2.x on Windows


The Jetspeed project site says that installing the portal server is as simple as running the following command,

java -jar jetspeed-2.1-installer.jar

But things are not that simple if you are behind corporate firewall.🙂 I keep getting the following error message on my Win-XP machine which is behind proxy,

org.tp23.antinstaller.InstallException: Not able to load and read
the AntInstaller config at org.tp23.antinstaller.runtime.exe.InputStreamLoadConfigFilter
.exec(InputStreamLoadConfigFilter.java:45)
at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:85)
at org.tp23.antinstaller.selfextract.NonExtractor.main(NonExtractor.java:59)
Caused by: java.io.IOException: DomFactory error: caused by:class java.net.ConnectException:Connection timed out: connect
at org.tp23.antinstaller.runtime.exe.LoadConfigFilter
.readConfig(LoadConfigFilter.java:179)

The installer uses few xml configuration files which are later validated using their corresponding DTDs. The program tries to load the DTDs from internet but gets blocked by the proxy. Java does not pick up proxy details automatically from the IE/FF setting. So one needs to supply the proxy details in environment. It can like,

java -Dhttp.proxyHost=<value> -Dhttp.proxyPort=<value> -jar jetspeed-2.1-installer.jar

The solution may look very trivial but it did take quite sometime to figure out the actual problem. The documentation at the Jetspeed side didn’t help much. They have this reported as a bug and it can be found in their Jira tracker. But i think this should go in as a FAQ entry or under special instructions section for windows installation guide. I am posting it here for a quick reference for others. They need not go digging in the issue tracker to solve it.🙂

6 comments

  1. Thanks for this solution! However, our corporate firewall requires authentication, so is there any way we can supply Java with a system property corresponding with the proxy username and password? Thanks for your help!

  2. @Amit, we’re getting the same kind of error:

    org.tp23.antinstaller.InstallException: Not able to load and read
    the AntInstaller config at org.tp23.antinstaller.runtime.exe.InputStreamLoadConfigFilter
    .exec(InputStreamLoadConfigFilter.java:45)
    at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:85)
    at org.tp23.antinstaller.selfextract.NonExtractor.main(NonExtractor.java:59)
    Caused by: java.io.IOException: DomFactory error: caused by:class java.net.ConnectException:Connection timed out: connect
    at org.tp23.antinstaller.runtime.exe.LoadConfigFilter
    .readConfig(LoadConfigFilter.java:179)

    So this means that the installer fails to successfully connect to the internet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s