MWS issue

When I am trying to start MWS for the first time in a new machine the following is the error message log i noticed :


2009-02-07 04:59:11 EST (Framework : FATAL) - [POP.001.0002] A “java.lang.NoClassDefFoundError” occurred with the Message “com/webMethods/portal/portlet/wm_discotres_common/IForumConstants”
java.lang.NoClassDefFoundError: com/webMethods/portal/portlet/wm_discotres_common/IForumConstants
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at com.webMethods.portal.service.classmanager.impl.ComponentClassManager$ManagedClassLoader.findClass(ComponentClassManager.java:514)
at com.webMethods.portal.service.classmanager.impl.ComponentClassManager$ManagerClassLoader.findClass(ComponentClassManager.java:589)
at com.webMethods.portal.service.classmanager.impl.ComponentClassManager$ManagerClassLoader.loadClass(ComponentClassManager.java:566)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.webMethods.rtl.util.ObjectUtil.getClass(ObjectUtil.java:195)
at com.webMethods.rtl.util.ObjectUtil.createComponent(ObjectUtil.java:167)
at com.webMethods.portal.system.impl.BaseProvider.initComponent(BaseProvider.java:598)
at com.webMethods.portal.mech.impl.MechanicsManager.initComponent(MechanicsManager.java:158)
at com.webMethods.portal.system.impl.BaseProvider.initComponents(BaseProvider.java:512)
at com.webMethods.portal.system.impl.BaseProvider.init(BaseProvider.java:125)
at com.webMethods.portal.system.impl.ThingComponentProvider.init(ThingComponentProvider.java:74)
at com.webMethods.portal.system.init.impl.DefaultPhase.initComponent(DefaultPhase.java:99)
at com.webMethods.portal.system.impl.BaseProvider.initComponents(BaseProvider.java:512)
at com.webMethods.portal.system.impl.BaseProvider.init(BaseProvider.java:125)
at com.webMethods.portal.system.init.impl.DefaultPhase.init(DefaultPhase.java:44)
at com.webMethods.portal.system.init.impl.DefaultPhaseProvider.initComponent(DefaultPhaseProvider.java:257)
at com.webMethods.portal.system.impl.BaseProvider.initComponents(BaseProvider.java:512)
at com.webMethods.portal.system.impl.BaseProvider.init(BaseProvider.java:125)
at com.webMethods.portal.system.init.impl.DefaultPhaseProvider.initializePhases(DefaultPhaseProvider.java:89)
at com.webMethods.portal.system.init.impl.ClusterPhaseProvider.initializePhases(ClusterPhaseProvider.java:27)
at com.webMethods.portal.system.PortalSystem.init(PortalSystem.java:868)
at com.webMethods.portal.system.PortalSystem.main(PortalSystem.java:827)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webMethods.portal.system.start.Main.start(Main.java:131)
at com.webMethods.portal.system.start.Main.main(Main.java:48)


I understand from the message is problem with java class path and related to portlets…

Can somebody please advice on this

Thanks!
~R

Make sure the MWS DB is created using the DB Configurator Tool.

If its 7.1.2 version? Did you create the default server. If not.
If yes, delete the default server, ./mws.sh –s default delete.

And then create the default server using:
./mws.sh new -Dserver.name=default -Dhttp.port=8185 -Ddb.type=oracle “-Ddb.url=jdbc:wm:oracle://hostname:port;ServiceName=orcl;” -Ddb.username=mws -Ddb.password=abc

And then Initialize the server.
./mws.sh -s default run

Thanks for the details…its working!!!

Folks,
I am facing same issue and I read the thread.But I could not get where and how to add that default server.Can someone please elaborate?

Thanks in advance.

Did you check in the MWS Administrator–>System-Wide Settings section?

HTH,
RMg

Thanks rmg.I got it.And I am able to start it via comand prompt.But the real problem is not being able to start it via Windows service account and it it still throwing the same error.Pls let me know if you can suggest a way out.

Thanks again.

What is the exact error you are getting while starting via Windows service?

HTH,
RMG

Open CMD

cd c:\path/MWS/bin
mws.bat -s default uninstallservice (Deleted current windows service).
mws.bat -s default installservice (install windows service with current parameters)

That should fix.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.