MWS 9.9 started but unavailable: 503 Service Unavailable

I have installed wM9.9 on my machine and I have problem with MWS. According to the logs server has stared but web interface is not available. I have noticed in the problem.log following exception:

java.lang.ClassNotFoundException: org.cometd.server.CometdServlet cannot be found by com.webMethods.caf.server_9.9.0.0000-0221

2015-10-29 10:03:39 CET (org.eclipse.jetty.webapp.WebAppContext:WARN) - Failed startup of context o.e.j.w.WebAppContext@777b6fa0{/,file:/opt/softwareag/MWS/server/default/deploy/portal.war/,STARTING}{/opt/softwareag/MWS/server/default/deploy/portal.war}
MultiException[javax.servlet.UnavailableException: org.cometd.server.CometdServlet cannot be found by com.webMethods.caf.server_9.9.0.0000-0221, javax.servlet.ServletException: cometd-initializer@a433b709==com.webMethods.portal.framework.impl.BayeuxInitializer,2,false, javax.servlet.UnavailableException: org.cometd.server.CometdServlet cannot be found by com.webMethods.caf.server_9.9.0.0000-0221]

I have checked for the missing class and it exists in softwareag/common/runtime/bundles/mws-main/eclipse/plugins/cometd-java-server_3.0.3.jar

but inside I noticed class name: org.cometd.server.CometDServlet and in the error it is referrenced as org.cometd.server.CometdServlet

Is that a bug or anybody has other ideas?

After successful installation did you ran database scripts for MWS component via Database component configuration?

Please note for this you need an external db (like SQL, Oracle)

Hi!
No I didn’t since I don’t need to use external DB, for the past few versions you can run MWS using Embedded DB.

But its recommended to have external DB. :slight_smile:

Thanks but embedded was working for me on wM 9.8 and 9.7 etc. so I’m not convinced :slight_smile:

Any other ideas appreciated.

I never installed MWS on embedded db. Hence no other ideas currently.

Radek – While installing MWS did you face any challenges, as it is 9.9, very less might have installed. Also, please raise a ticket to SAG for suggestions.

Thanks,

No errors or problems. Yes, I know it is brand new. I guess I need to wait for SAG to fix it. Thanks!

Hi Radek,

Did you get this issue fixed ? Can anyone please share the resolution for this issue.

I have installed MWS on embedded DB and facing the same issue.

Regards,
Venkat.

Unfortunately not. I started using Oracle XE instead of embedded DB.

I believe you were only using MWS for checking the Broker clients and all and also it was was a non-clustered environment. The same has been clearly mentioned in the installation guide ( 9-9_Installing_Software_AG_Products.pdf) on page 160. The MWS tables in external DB holds information related to cluster and others (snapshot provided). Hence if you are not using cluster it can easily run as it contain all the data at file level ( war files , pdp files . etc ) . But there is a high chance that if one file of the derby db gets corrupted the entire db becomes corrupted. In that case try to recreate the MWS profile itself.

  1. (Optional) Back up the old profile folder (usually c:\softwareag\profiles\MWS_default).
  2. Open a command prompt and navigate to the c:\softwareag\MWS\bin folder.
  3. Remove the old profile folder by running this command: mws.bat delete-osgi-profile.
  4. Create the new profile folder by running this command: mws.bat create-osgi-profile.

Thanks and Regards
Abir Banerjee

Hi,

Did you update any of the installation files?
In that case, did you run a mws.sh -s <servername> update?

Best Regards