Hermes2 install - problem with ant installer

383 views
Skip to first unread message

a2eng

unread,
Jun 23, 2010, 2:51:53 PM6/23/10
to Hermes 2.0 Discussion List
Hello,

I would be grateful if anyone can help me get to the root of this
problem. I am trying to install on a debian lenny intel platform. I
have tried using several versions of Java but the result is always the
same, I have spent two days on this but now have run out of ideas, I
don't know how to diagnose it further. Below is the ant.install.log

Logger initialized
Ant basedir:/tmp/antinstall
Filter: org.tp23.antinstaller.runtime.exe.LoadConfigFilter
Config loaded
Filter: org.tp23.antinstaller.runtime.exe.CreateUIFilter
Created UI classes
Filter: org.tp23.antinstaller.runtime.exe.PropertyLoaderFilter
Filter: org.tp23.antinstaller.runtime.exe.ExecuteRunnerFilter
Install screens rendered
Filter: org.tp23.antinstaller.runtime.exe.PropertyPrinterFilter
auto build supported: false
Filter: org.tp23.antinstaller.runtime.exe.AntLauncherFilter
Installation error: Error running the install, Ant run failed -
examine the error logs for details: class
org.tp23.antinstaller.InstallException

Many thanks,
Adrian.

Ronnie Kwok

unread,
Jun 23, 2010, 10:22:16 PM6/23/10
to Hermes 2.0 Discussion List
Hello Adrian,

Can you share the output of "java --version"?

Also, can you try executing the installer as root?

Regards,
ronnie

a2eng

unread,
Jun 24, 2010, 12:46:20 AM6/24/10
to Hermes 2.0 Discussion List
Hello Ronnie,
I am executing the installer as root from a bash shell at the console.

The output of java -version is as follows:
java version "1.5.0_17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)

I have 4 versions of "java" installed in the machine, I have tested
tomcat5.5 works OK with 3 and 4 below. I switch between them using
the update-java-alternatives command. The versions installed are:
1. /usr/bin/gij-4.3
2. /usr/lib/jvm/java-gcj/jre/bin/java
3. /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
4. /usr/lib/jvm/java-6-sun/jre/bin/java

Kind regards,
Adrian.

Ronnie Kwok

unread,
Jun 24, 2010, 2:41:31 AM6/24/10
to cecid-...@googlegroups.com
Hello Adrian,

After you run "java -jar hermes2_installer.jar" at the prompt, did you see a graphical dialog being invoked (I am assuming you are in the X environment)?

Can you try to ssh from another machine and try the installation again? What I am not certain is, if the exception is thrown due to the failure of invoking the graphical shell. By installing through SSH, it force the installer to execute through text mode.

Let me know if it helps.

ronnie

--
You received this message because you are subscribed to the Google Groups "Hermes 2.0 Discussion List" group.
To post to this group, send email to cecid-...@googlegroups.com.
To unsubscribe from this group, send email to cecid-hermes...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cecid-hermes2?hl=en.


a2eng

unread,
Jun 24, 2010, 4:43:12 AM6/24/10
to Hermes 2.0 Discussion List
Ronnie,
I ran the installer form another machine via SSL and it connected back
to an X session. In the GUI I can see much more logging detail. The
problem appears to be with the connection to Mysql. The log says
connection refused, but I can connect OK at the command line:

mysql -ucorvus -pcorvus ebms

It is interesting that there is nothing following the colon at the set-
mysql-db: statement in the progress log. I have attached the two logs
for info.

Progress Log:
Targets:core,install_ebms,web-service-usage-sample,recreate-ebms-
tables,install_as2,recreate-as2-tables,cleanup
Buildfile: /tmp/antinstall/build.xml

set-postgres-db:

set-mysql-db:

set-oracle-db:

core:
[echo] Installing Hermes 2 core
[mkdir] Created dir: /tmp/antinstall/temp
[unzip] Expanding: /tmp/antinstall/hermes2_bin.zip into /tmp/
antinstall/temp
[echo] Configure web application properties
[echo] Copy web application /var/lib/tomcat5.5/webapps
[copy] Copying 2 files to /var/lib/tomcat5.5/webapps
[echo] Copy module /home/corvus/hermes2/plugins/
hk.hku.cecid.piazza.corvus.admin
[echo] Copy module /home/corvus/hermes2/plugins/
hk.hku.cecid.piazza.corvus.core.main
[echo] Copy module /home/corvus/hermes2/plugins/
hk.hku.cecid.piazza.corvus.core.main.admin
[copy] Copying 1 file to /home/corvus/hermes2/plugins/
hk.hku.cecid.piazza.corvus.core.main.admin

install_ebms:
[echo] Installing ebMS modules
[copy] Copying 1 file to /var/lib/tomcat5.5/webapps/corvus/WEB-
INF/lib
[echo] Copy module /home/corvus/hermes2/plugins/hk.hku.cecid.ebms
[copy] Copying 2 files to /home/corvus/hermes2/plugins/
hk.hku.cecid.ebms
[echo] Copy module /home/corvus/hermes2/plugins/
hk.hku.cecid.ebms.admin
[echo] Configure JDBC properties in ebms.module.xml

web-service-usage-sample:
[echo] Clean up temp files

recreate-ebms-tables:
[echo] Recreating ebMS tables
[echo] Drop existing ebMS tables

Error Log:
BUILD FAILED
/tmp/antinstall/build.xml:381: com.mysql.jdbc.CommunicationsException:
Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.ConnectException
MESSAGE: Connection refused

STACKTRACE:

java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at java.net.Socket.<init>(Socket.java:367)
at java.net.Socket.<init>(Socket.java:209)
at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:
256)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)
at com.mysql.jdbc.Connection.<init>(Connection.java:1555)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:
285)
at org.apache.tools.ant.taskdefs.JDBCTask.getConnection(JDBCTask.java:
319)
at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:414)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.tp23.antinstaller.antmod.Main.runBuild(Main.java:704)
at org.tp23.antinstaller.antmod.Main.startAnt(Main.java:216)
at org.tp23.antinstaller.antmod.Launcher.run(Launcher.java:215)
at
org.tp23.antinstaller.runtime.exe.AntLauncherFilter.exec(AntLauncherFilter.java:
76)
at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:
85)
at
org.tp23.antinstaller.selfextract.SelfExtractor.main(SelfExtractor.java:
370)


** END NESTED EXCEPTION **



Last packet sent to the server was 1 ms ago.

Total time: 2 seconds

Kind regards,
Adrian.
> > cecid-hermes...@googlegroups.com<cecid-hermes2%2Bunsu...@googlegroups.com>
> > .

Ronnie Kwok

unread,
Jun 28, 2010, 3:57:34 AM6/28/10
to Hermes 2.0 Discussion List
Hello Adrian,

Is the Mysql allowing remote connection? One way to verify is to use
tools like DBVisualizer which establish connection through JDBC.

Hope this help.

ronnie

Lavanya Kakani

unread,
May 17, 2016, 2:21:43 AM5/17/16
to Hermes 2.0 Discussion List
Hi ,


Hi Team,

 

Am getting java.io.ioexception while running install.sh script on Linux Vertual machine.

 

I need  help on the below issue.

 

I am installing MFP domain on Virtual machine using install.sh script, but it is failing with the below error.

 

/home/lavanya/Desktop/Lavanya/Mfp/CDROM/mfpretail/build.xml:220: Execute failed: java.io.IOException: Cannot run program "/home/lavanya/Desktop/Lavanya/mfprtl/make_domain.mfpretail" (in directory "/home/lavanya/Desktop/Lavanya/mfprtl"): error=2, No such file or directory

 

 

Build.xml:

 

Line 220: 

<exec executable="make_domain.${installer.name}" dir="${input.solution.basedir}" failifexecutionfails="true" failonerror="true" resolveExecutable="true" />

    </target>

 

Here installer.name is mfpretail

 

This install.sh script copies files and directories from source to destination directory and also it builds Mfp domain.

 

Please find attached script and log file for more details.

 

My destination directory contains make_domain.mfpretail file and it has full access. But for some reason install.sh script is not recognizing make_domain.mfpretail file on my destination directory and it is failing with the above specified error.

 


Please any one can help me to resolve this issue.


Thanks & Regards,


Lavanya K

Reply all
Reply to author
Forward
0 new messages