Welcome Guest Search | Active Topics | Members | Log In | Register

How to shutdown WebORB server (Cloud Edition) ? Options · View
Christophe
Posted: Wednesday, February 22, 2012 6:58:23 AM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Hello,

I'm new in WebORB for Java (Cloud Edition AmazonEC2).

Installation was done perfectly.

However, I can not stop the WebORB.

I tried this: java -jar weborb.jar -stop -port 8080
but I get :

Exception in thread "main" java.lang.NoClassDefFoundError: org/mortbay/log/Logger
Caused by: java.lang.ClassNotFoundException: org.mortbay.log.Logger
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: weborb.ORBMain. Program will exit.

What should I do please ?

Thank you in advance for your help.

Christophe

Mark Piller
Posted: Wednesday, February 22, 2012 2:16:17 PM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 1,607
Points: 4,082
Location: Frisco, TX
Hi Christophe,

Do you need to do it programmatically or by hand?

Regards,
Mark

Mark Piller
Midnight Coders, Inc.
twitter: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
Christophe
Posted: Wednesday, February 22, 2012 2:39:28 PM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Hi Mark,

Thank you. I wanted to do it manually, but know how to do programmatically would be very helpful too.

Best regards,

Christophe
Mark Piller
Posted: Wednesday, February 22, 2012 2:43:20 PM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 1,607
Points: 4,082
Location: Frisco, TX
Hi Christophe,

To do it manually you should be able to simply Ctrl+C the process or terminate it using the "kill" command (on Linux).

We will add an ability to do it programmatically in the next release.

Regards,
Mark

Mark Piller
Midnight Coders, Inc.
twitter: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
Christophe
Posted: Wednesday, February 22, 2012 3:31:32 PM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
I thank you so much.

Best regards,

Christophe
Christophe
Posted: Thursday, February 23, 2012 1:18:04 AM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Sorry to revisit the subject.

I tried the kill command, but when I kill the process that seems to be that of WebORB (the only one running process : USER: tomcat), I am unable to reboot WebORB with java-jar weborb.jar or even to stop or restart tomcat. The process seems not to stop cleanly.

If I try to start WebORB with java-jar weborb.jar, I still get the following message:

Exception in thread "main" java.lang.NoClassDefFoundError: org / mortbay / log / Logger
Caused by: java.lang.ClassNotFoundException: org.mortbay.log.Logger
at java.net.URLClassLoader $ 1.run (URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (URLClassLoader.java: 205)
at java.lang.ClassLoader.loadClass (ClassLoader.java: 321)
at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java: 294)
at java.lang.ClassLoader.loadClass (ClassLoader.java: 266)
Could not find the main class: weborb.ORBMain. Program Will exit.


What could I do?

Thanks

Best regards,
Christophe
Mark Piller
Posted: Thursday, February 23, 2012 3:56:43 PM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 1,607
Points: 4,082
Location: Frisco, TX
Hi Christophe,

If you start WebORB using "java -jar weborb.jar", the process to kill would be "java" rather than "tomcat". In that mode WebORB will be running with Jetty.

The exception seems rather strange. Do you start WebORB from the root directory of the WebORB installation?

Regards,
Mark

Mark Piller
Midnight Coders, Inc.
twitter: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
Christophe
Posted: Friday, February 24, 2012 7:46:46 AM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Hi Mark,

Indeed, I installed WebORB in the webapps folder of tomcat6 on my EC2 instance, copying weborb.war in webapps folder

As I understand it, I did not need tomcat (?)

Should I simply do this : java -jar weborb4java.installer.jar or this java -jar weborb4java.installer.jar -console for the right configuration with Jetty?

So, I assume that when the developper guide says: "1. Copy weborb.jar from [WEBORB HOME DIR]/webapp/WEB-INF/lib to WEB-INF/lib of your Java web application", the Java web application is the webapp folder of Jetty?

Thanks you in advance.

Best regards,
Christophe
Mark Piller
Posted: Friday, February 24, 2012 10:49:27 AM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 1,607
Points: 4,082
Location: Frisco, TX
Hi Christophe,

When you run:

java -jar weborb4java.installer.jar

it will launch the installer for WebORB, however, when you run:

hava -jar weborb.jar

it will run WebORB itself (which needs to be installed first). In that case, you do not need to do any copying at all, since WebORB will already have everything for the standalone execution.

Hope this helps.

Regards,
Mark

Mark Piller
Midnight Coders, Inc.
twitter: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
Christophe
Posted: Friday, February 24, 2012 11:56:05 AM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Hi Mark,

Thank you so much.

I'll reinstall WebORB in this way.

Should I install it in a specific directory on my EC2 Instance or it does not matter?

Regards,
Christophe
Mark Piller
Posted: Friday, February 24, 2012 2:58:38 PM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 1,607
Points: 4,082
Location: Frisco, TX
You can install it anywhere, but try to stay away from the hierarchies of other web servers like tomcat.. ;)

Cheers,
Mark

Mark Piller
Midnight Coders, Inc.
twitter: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
Christophe
Posted: Friday, February 24, 2012 5:01:20 PM

Rank: Apprentice Coder
Groups: Member

Joined: 2/22/2012
Posts: 46
Points: -262
Location: France
Ok!
I thank you again for your help.

Best regards,
Christophe
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v4.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.163 seconds.