Problem starting logical host on eGate 5.1.0

I'm having problem starting logical host for eGate 5.1.0 on Linux platform, and I cant see where is the problem lies. Is there anybody here that can give me some hint or guide?

Below is the error message from the log.

[#|2006-08-22T17:57:28.506+0800|WARNING|IS5.1|javax.enterprise.resource.jms|_Th readID=11; ThreadName=STCMS process monitoring;|STCMS process ended unexpectedly with exit code 1; initiating application server restart|#]

[#|2006-08-22T17:57:28.567+0800|INFO|IS5.1|javax.enterprise.system.core|_Thread ID=11; ThreadName=STCMS process monitoring;|sending restart notification to server...server|#]

[#|2006-08-22T17:57:28.721+0800|WARNING|IS5.1|javax.enterprise.system.tools.adm in|_ThreadID=12; ThreadName=RMI TCP Connection(1)-127.0.0.1;|core.tmp_folder_deletion_failed|#]

[#|2006-08-22T17:57:28.722+0800|INFO|IS5.1|javax.enterprise.resource.jms|_Threa dID=12; ThreadName=RMI TCP Connection(1)-127.0.0.1;|stcms.alert_shutting_down|#]

[#|2006-08-22T17:57:28.722+0800|INFO|IS5.1|javax.enterprise.resource.jms|_Threa dID=12; ThreadName=RMI TCP Connection(1)-127.0.0.1;|stcms.broker_shutting_down|#]

[#|2006-08-22T17:57:31.020+0800|INFO|IS5.1|javax.enterprise.system.container.we b|_ThreadID=10; ThreadName=org.apache.commons.launcher.ChildMain;|Creating virtual server server|#]

[#|2006-08-22T17:57:31.039+0800|INFO|IS5.1|javax.enterprise.system.core|_Thread ID=10; ThreadName=org.apache.commons.launcher.ChildMain;|IS AVK Instrumentation disabled|#]

[#|2006-08-22T17:57:31.045+0800|INFO|IS5.1|javax.enterprise.system.core.securit y|_ThreadID=10; ThreadName=org.apache.commons.launcher.ChildMain;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

[#|2006-08-22T17:57:31.117+0800|INFO|IS5.1|javax.enterprise.system.core|_Thread ID=10; ThreadName=org.apache.commons.launcher.ChildMain;|[STC JTS Extension] The last agent commit optimization is enabled.|#]

[#|2006-08-22T17:57:32.315+0800|INFO|IS5.1|com.stc.corba.any.UtilDelegate|_Thre adID=10; ThreadName=org.apache.commons.launcher.ChildMain;|[STC CORBA Extension]EE/SE Corba Util delegate loaded|#]

[#|2006-08-22T17:57:33.730+0800|INFO|IS5.1|com.stc.corba.any.UtilDelegate|_Thre adID=10; ThreadName=org.apache.commons.launcher.ChildMain;|[STC CORBA Extension]Enabling SE Corba support|#]

[#|2006-08-22T17:57:34.007+0800|SEVERE|IS5.1|javax.enterprise.system.core|_Thre adID=10; ThreadName=org.apache.commons.launcher.ChildMain;|CORE5082: Exception running j2ee services: [java.lang.RuntimeException: java.lang.ExceptionInInitializerError]|#]

[#|2006-08-22T17:57:34.008+0800|SEVERE|IS5.1|javax.enterprise.system.core|_Thre adID=10; ThreadName=org.apache.commons.launcher.ChildMain;stacktrace-id=0;|CORE5091: Error executing J2EE server ...

java.lang.RuntimeException: java.lang.ExceptionInInitializerError

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:351)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:754)

at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer. java:233)

at com.sun.enterprise.server.PEMain.run(PEMain.java:222)

at com.sun.enterprise.server.PEMain.main(PEMain.java:186)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)

Caused by: java.lang.RuntimeException: java.lang.ExceptionInInitializerError

at com.sun.enterprise.server.ServerContextImpl.getMonitoringRegistry(ServerContext Impl.java:374)

at com.sun.enterprise.iiop.ORBMonitoring.<init>(ORBMonitoring.java:48)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:236)

... 9 more

Caused by: java.lang.ExceptionInInitializerError

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:164)

at com.sun.enterprise.server.ServerContextImpl.getMonitoringRegistry(ServerContext Impl.java:368)

... 11 more

Caused by: java.lang.NullPointerException: No MBeanServer was returned by the MBeanServerFactory

at com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.getM BeanServer(MonitoringRegistrationHelper.java:83)

at com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.< init>(MonitoringRegistrationHelper.java:60)

at com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.< clinit>(MonitoringRegistrationHelper.java:55)

... 14 more

|#]

[#|2006-08-22T17:57:34.012+0800|SEVERE|IS5.1|javax.enterprise.system.core|_Thre adID=10; ThreadName=org.apache.commons.launcher.ChildMain;|CORE5092: J2EE server reported following error: [java.lang.ExceptionInInitializerError] |#]

[#|2006-08-22T17:57:34.012+0800|SEVERE|IS5.1|javax.enterprise.system.core|_Thre adID=10; ThreadName=org.apache.commons.launcher.ChildMain;|CORE5093: Error executing J2EE server |#]

[#|2006-08-22T17:57:34.013+0800|SEVERE|IS5.1|javax.enterprise.system.core|_Thre adID=10; ThreadName=org.apache.commons.launcher.ChildMain;stacktrace-id=1;|CORE5071: An error occured during initialization

com.sun.appserv.server.ServerLifecycleException: com.sun.appserv.server.ServerLifecycleException: java.lang.ExceptionInInitializerError

at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer. java:235)

at com.sun.enterprise.server.PEMain.run(PEMain.java:222)

at com.sun.enterprise.server.PEMain.main(PEMain.java:186)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)

Caused by: com.sun.appserv.server.ServerLifecycleException: java.lang.ExceptionInInitializerError

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:763)

at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer. java:233)

... 7 more

Caused by: java.lang.RuntimeException: java.lang.ExceptionInInitializerError

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:351)

at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:754)

... 8 more

Caused by: java.lang.RuntimeException: java.lang.ExceptionInInitializerError

at com.sun.enterprise.server.ServerContextImpl.getMonitoringRegistry(ServerContext Impl.java:374)

at com.sun.enterprise.iiop.ORBMonitoring.<init>(ORBMonitoring.java:48)

at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:236)

... 9 more

Caused by: java.lang.ExceptionInInitializerError

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:164)

at com.sun.enterprise.server.ServerContextImpl.getMonitoringRegistry(ServerContext Impl.java:368)

... 11 more

Caused by: java.lang.NullPointerException: No MBeanServer was returned by the MBeanServerFactory

at com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.getM BeanServer(MonitoringRegistrationHelper.java:83)

at com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.< init>(MonitoringRegistrationHelper.java:60)

at com.sun.enterprise.admin.monitor.registry.spi.MonitoringRegistrationHelper.< clinit>(MonitoringRegistrationHelper.java:55)

... 14 more

|#]

[#|2006-08-22T17:57:34.023+0800|SEVERE|IS5.1|javax.enterprise.system.core|_Thre adID=10; ThreadName=org.apache.commons.launcher.ChildMain;|Server Startup failed. Exiting...|#]

[#|2006-08-22T17:57:34.023+0800|INFO|IS5.1|javax.enterprise.system.core|_Thread ID=10; ThreadName=org.apache.commons.launcher.ChildMain;|Server shutdown in progress...|#]

[#|2006-08-22T17:57:34.024+0800|INFO|IS5.1|javax.enterprise.system.container.we b|_ThreadID=10; ThreadName=org.apache.commons.launcher.ChildMain;|WEB0303: Stopping Tomcat.|#]

[#|2006-08-22T17:57:34.025+0800|WARNING|IS5.1|javax.enterprise.system.core|_Thr eadID=10; ThreadName=org.apache.commons.launcher.ChildMain;stacktrace-id=2;|CORE5061: Exception :

com.sun.appserv.server.ServerLifecycleException: WEB0106: An error occurred while stopping the web container

at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:536)

at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecyc le.java:65)

at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:4 00)

at com.sun.enterprise.server.PEMain.run(PEMain.java:255)

at com.sun.enterprise.server.PEMain.main(PEMain.java:186)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)

Caused by: LifecycleException: WEB0103: This web container has not yet been started

at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:529)

at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:528)

... 9 more

|#]

Hopefully somebody can help me as I'm stuck with it for few days already. Thank you.

[9917 byte] By [eGate] at [2007-11-26 9:37:03]
# 1

What is happening is that the JMS server (stcms.exe) fails to start. That triggers a restart of the application server, which again encounters a failures of stcms.exe to start.

Can you take a look at the stcms server log? You can find it in a location similar to this: logicalhost\is\domains\domain1\logs\stcms.log. It may give you an idea of why it doesn't start. Also you could try to start stcms.exe from the prompt in a shell. You may see more hints of why it won't start.

Can you make sure that you are in fact using the right binaries of the logicalhost / stcms for the Linux platform that you are on? Keep in mind that there are different binaries for different Linux versions.

Kind regards,

Frank Kieviet

http://blogs.sun.com/fkieviet

fgkieviet at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2

Hi Frank Kieviet,

There is no stcms server log available in the location similar to what you had mention. Do I have to enable it through some configuration file? If do so, where is it? And how do you start stcms.exe from linux environment?

By the way, what do you mean by the last sentence regarding binaries? I do not quite get what do you mean.

Sorry to ask so many questions, but I'm still new with eGate 5.1.0 and Linux environment as my previous experience in eGate was version 4.5 running on Windows environment.

Anyway, thank you very much for the reply. Indeed you have give me some new tips where to start checking. Thank you.

eGate at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 3

This is what I got when I try to start the server from the directory logicalhost/is/domains/domain1/bin/

> ./startserv

Aug 23, 2006 7:23:55 PM com.stc.is.util.pinger.HttpOKPinger <init>

INFO: Setting URL to http://localhost:18000

Aug 23, 2006 7:23:55 PM com.stc.is.util.pinger.HttpOKPinger isAlive

INFO: Opening connection to http://localhost:18000

Aug 23, 2006 7:23:55 PM com.stc.is.util.pinger.HttpOKPinger isAlive

INFO: Connection to http://localhost:18000 opened successfully.

Aug 23, 2006 7:23:55 PM com.stc.is.util.pinger.HttpOKPinger isAlive

SEVERE: Connection refused

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.Socket.connect(Socket.java:507)

at java.net.Socket.connect(Socket.java:457)

at sun.net.NetworkClient.doConnect(NetworkClient.java:157)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)

at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)

at sun.net.www.http.HttpClient.New(HttpClient.java:287)

at sun.net.www.http.HttpClient.New(HttpClient.java:299)

at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection. java:792)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java :744)

at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.ja va:913)

at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)

at com.stc.is.util.pinger.HttpOKPinger.isAlive(Unknown Source)

at com.stc.is.util.Ping.main(Unknown Source)

Aug 23, 2006 7:23:55 PM com.stc.is.util.Ping main

INFO: IS is not alive.

Startup failed.

any clue what is it about?

eGate at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 4

SEVERE: Connection refused

java.net.ConnectException: Connection refused

That looks like you have something that is already listening on port 18000.

Check with netstat like this:

netstat -t -n -p -l | grep 18000

Does that give you any output? If it does than you need to kill your run-away domain.

Sebastian.

sebykrueger at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 5
actually now that I think of it, why don't you do this:ps ax|grep jreDo you see any existing domains running? If so, kill them.
sebykrueger at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 6

I already killed all the domains that running on that port before I start the server, still the problem persists.

Anyway, this is my latest found out, which I have no idea what does it mean.

./stcms.exe: /usr/lib/libstdc++.so.5: version `GLIBCPP_3.2.2' not found (required by ./libstc_mscommon.so)

./stcms.exe: /usr/lib/libstdc++.so.5: version `GLIBCPP_3.2.2' not found (required by ./libstcmslib.so)

Any clue?

eGate at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 7
what version of linux are you running?
sebykrueger at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 8
We are running on SuSe Linux version 8, without any patch currently. Is there anything that I can do to get the update library?
eGate at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 9
Looks like your linux is broken...Can you try it on another linux box? We run SuSE Linux Enterprise Server 9 and I am having no trouble at all...
sebykrueger at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 10

We are trying to look for the patch for the linux, but sadly speaking our contract support end last year. And another sad thing to say is we do not have any other linux box, sigh....

Anyway in the requirement it did mentioned that SuSE Linux version 8 must patch it with Service Pack 3, which somehow I just miss it. So we are suspecting that is the cause of problem, and our admin guy is try to resolve it now.

Thanks for the help, sebykrueger. Indeed you help me a lot in tracing where the error comes from. Thank you very much.

eGate at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 11
No worries. We have service pack 3 installed as well here. However by the error you are getting I'm thinking that you are probably working with a broken linux installation or that your libgcc is out of date which may be resolved once you move to service pack 3.Good luck.
sebykrueger at 2007-7-7 0:29:54 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...