|
|
 Rank: Apprentice Coder Groups: Member
Joined: 2/22/2012 Posts: 45 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
|
|
 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: midnightcoderblog: blog.themidnightcoders.comwebsite: www.themidnightcoders.com
|
|
 Rank: Apprentice Coder Groups: Member
Joined: 2/22/2012 Posts: 45 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
|
|
 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: midnightcoderblog: blog.themidnightcoders.comwebsite: www.themidnightcoders.com
|
|
 Rank: Apprentice Coder Groups: Member
Joined: 2/22/2012 Posts: 45 Points: -262 Location: France
|
I thank you so much.
Best regards,
Christophe
|
|
 Rank: Apprentice Coder Groups: Member
Joined: 2/22/2012 Posts: 45 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
|
|
 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: midnightcoderblog: blog.themidnightcoders.comwebsite: www.themidnightcoders.com
|
|
 Rank: Apprentice Coder Groups: Member
Joined: 2/22/2012 Posts: 45 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
|
|
 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: midnightcoderblog: blog.themidnightcoders.comwebsite: www.themidnightcoders.com
|
|
 Rank: Apprentice Coder Groups: Member
Joined: 2/22/2012 Posts: 45 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
|
|
 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: midnightcoderblog: blog.themidnightcoders.comwebsite: www.themidnightcoders.com
|
|
 Rank: Apprentice Coder Groups: Member
Joined: 2/22/2012 Posts: 45 Points: -262 Location: France
|
Ok! I thank you again for your help.
Best regards, Christophe
|
|
|
Guest |