Issue in class Loading for com.sun.msv.grammar.Grammar for WAS(WPS6.1) - Websphere

This is a discussion on Issue in class Loading for com.sun.msv.grammar.Grammar for WAS(WPS6.1) - Websphere ; Hi, I have portal.ear built in java 5.0. I have deployed the ear on WAS/wps 6.1 Ear is deployed properly. But while running the app, class laoding issue appears. The log is below...... [12/23/08 16:35:27:580 IST] 00000065 ServletWrappe I SRVE0242I: ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Issue in class Loading for com.sun.msv.grammar.Grammar for WAS(WPS6.1)

  1. Issue in class Loading for com.sun.msv.grammar.Grammar for WAS(WPS6.1)

    Hi, I have portal.ear built in java 5.0. I have deployed the ear on WAS/wps 6.1
    Ear is deployed properly. But while running the app, class laoding issue appears.
    The log is below......

    [12/23/08 16:35:27:580 IST] 00000065 ServletWrappe I SRVE0242I: [PORTALEAR.ear] [/corp] [Accounts]: Initialization successful.
    [12/23/08 16:35:28:564 IST] 00000065 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Accounts. Exception thrown : java.lang.NoClassDefFoundError: com.sun.msv.grammar.Grammar
    at java.lang.ClassLoader.defineClassImpl(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :258)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.defineClass(DefaultClassLoader.java:160)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.defineClass(ClasspathManager.java:498)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findClassImpl(ClasspathManager.java:468)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClassImpl(ClasspathManager.java:427)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManag er.findLocalClass(ClasspathManager.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.findLocalClass(DefaultClassLoader.java:188)
    at org.eclipse.osgi.framework.internal.core.BundleLoa der.findLocalClass(BundleLoader.java:334)
    at org.eclipse.osgi.framework.internal.core.SingleSou rcePackage.loadClass(SingleSourcePackage.java:37)
    at org.eclipse.osgi.framework.internal.core.BundleLoa der.findClass(BundleLoader.java:374)
    at org.eclipse.osgi.framework.internal.core.BundleLoa der.findClass(BundleLoader.java:347)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClass Loader.loadClass(DefaultClassLoader.java:83)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:6 23)
    at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtC lassLoader.java:87)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:5 97)
    at com.ibm.ws.classloader.ProtectionClassLoader.loadC lass(ProtectionClassLoader.java:58)
    at com.ibm.ws.classloader.ProtectionClassLoader.loadC lass(ProtectionClassLoader.java:54)
    at com.ibm.ws.classloader.CompoundClassLoader.loadCla ss(CompoundClassLoader.java:394)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:5 97)
    at com.ibm.ws.classloader.CompoundClassLoader.loadCla ss(CompoundClassLoader.java:375)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:5 97)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:163)
    at java.io.ObjectInputStream.resolveClass(ObjectInput Stream.java:600)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectI nputStream.java:1568)
    at java.io.ObjectInputStream.readClassDesc(ObjectInpu tStream.java:1490)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1723)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:363)
    at com.infosys.j2ee.core.jaxb.impl.runtime.GrammarInf oImpl.getGrammar(GrammarInfoImpl.java:145)
    at com.infosys.j2ee.core.jaxb.impl.runtime.DefaultJAX BContextImpl.getGrammar(DefaultJAXBContextImpl.jav a:83)
    at com.infosys.j2ee.core.jaxb.impl.runtime.Unmarshall erImpl.setValidating(UnmarshallerImpl.java:63)
    at com.infosys.j2ee.core.impl.XMLConfigReader.unmarsh al(XMLConfigReader.java:80)
    at com.infosys.j2ee.core.impl.RadienServiceDefReader. unmarshal(RadienServiceDefReader.java:66)
    at com.infosys.j2ee.core.impl.RadienServiceManager.cr eateAllServices(RadienServiceManager.java:106)
    at com.infosys.j2ee.core.impl.RadienServiceLocator.ge tService(RadienServiceLocator.java:76)
    at com.infosys.bankaway.util.LogManager.(Unknown Source)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
    at com.infosys.bankaway.interceptor.portlet.BankAwayP ortlet.init(Unknown Source)


    I checked if class file is avaialble in the proper class loader hirarchy. Everything is fine. Is is class versioning/format issue or something else.

    One issue is that grammerInfoIml class is using jdk1.4 build (the jar whhich consists it) .Is that the problem? Please Help

  2. Re: Issue in class Loading for com.sun.msv.grammar.Grammar for WAS(WPS6.1)

    Please let me know if you got a solution of this issue. I am having the same issue.

    Regards
    Paul

+ Reply to Thread