Java.lang.LinkageError Exception

Hi,
Here is an exception where i have got stuck up. I have been using weblogic9 with myeclipse. I have successfully deployed the application and when i was try to access a page in the application i have been end up with the following exception. Below is the exception message.
javax.faces.FacesException: #{FlightSearchBean.searchFlightOnly}: javax.faces.el.EvaluationException: java.lang.LinkageError: Class javax/xml/namespace/QName violates loader constraints
     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
     at javax.faces.component.UICommand.broadcast(UICommand.java:312)
I have searched for solution with the exception message on net, but none of the solutions could solve my problem. The problem seems to be with the Qname.class, i think due the duplicate existance of this class in different jar files is the reason for problem. I have followed different approach to load my application specific jar files but none worked. Can any one help me out in this regard where i was lacking. Any help rendered is greatly appreciated. Thanks in advance.
Thank You,
Tarun.

I too have same error with WebLogic 9.2 and Java5. I tried to make sure that it wont load QName.class from app lib but only from container. Still it has issues. Could anybody suggest me the go?

Similar Messages

  • Servlet failed with Exception java.lang.LinkageError: Class javax/servlet/ServletConfig

              Hi
              I registered a web app with Weblogic 5.1 in the weblogic.properties file. I try
              to run the web app from my browser typing http://localhost:7001/xxx(Webapp name)
              and a jsp page. Following is the error I get. It would be helpful if some one
              could point me to a fix for this problem
              Tue May 01 13:56:41 CDT 2001:<I> <ServletContext-omxclient> Generated java file:
              D:\weblogic\myserver\omxclient\_tmp_war\jsp_servlet\_omx\_login.java
              Tue May 01 13:56:43 CDT 2001:<E> <ServletContext-omxclient> Servlet failed with
              Exception
              java.lang.LinkageError: Class javax/servlet/ServletConfig violates loader constr
              aints
              at jsp_servlet._omx._login._jspService(_login.java:59)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:105)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:123)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

              Sorry, I didn't look very closely - the exception is for
              javax.servlet.ServletConfig - should be in weblogicaux.jar.
              Is there anything wrong with it? What service pack are you
              using? Could be a problem with weblogic.policy.
              mike
              >>java.lang.LinkageError: Class javax/servlet/ServletConfig
              "KC" <[email protected]> wrote:
              >
              >Hi Mike
              >The login.jsp page just contains a javascript function and two text boxes
              >in it.
              >Will try making changing it. If that is not the issue could you let me
              >know of
              >any other issues.
              >
              >"mreiche" <[email protected]> wrote:
              >>
              >>I would guess that login.jsp is a very large JSP and that
              >>the generated service method is too large for the classloader's
              >>liking. Try making it smaller.
              >>
              >>Mike
              >>
              >>
              >>"KC" <[email protected]> wrote:
              >>>
              >>>Hi
              >>>I registered a web app with Weblogic 5.1 in the weblogic.properties
              >>file.
              >>>I try
              >>>to run the web app from my browser typing http://localhost:7001/xxx(Webapp
              >>>name)
              >>>and a jsp page. Following is the error I get. It would be helpful if
              >>>some one
              >>>could point me to a fix for this problem
              >>>
              >>>Tue May 01 13:56:41 CDT 2001:<I> <ServletContext-omxclient> Generated
              >>>java file:
              >>> D:\weblogic\myserver\omxclient\_tmp_war\jsp_servlet\_omx\_login.java
              >>>Tue May 01 13:56:43 CDT 2001:<E> <ServletContext-omxclient> Servlet
              >>failed
              >>>with
              >>>Exception
              >>>java.lang.LinkageError: Class javax/servlet/ServletConfig violates
              >loader
              >>>constr
              >>>aints
              >>> at jsp_servlet._omx._login._jspService(_login.java:59)
              >>> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              >>> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              >>>pl.java:105)
              >>> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              >>>pl.java:123)
              >>> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              >>>textImpl.java:742)
              >>> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              >>>textImpl.java:686)
              >>> at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              >>>ContextManager.java:247)
              >>> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              >>>a:361)
              >>> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              >>>
              >>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >>>
              >>>
              >>
              >
              

  • Error Message - java.lang.LinkageError: loader constraint violation

    Hi
    I get the following errormessage if I try to apply a more recent build of the JPA Toplink Essentials.
    If I use the glassfish-persistence-installer-v2-b45.jar all things work fine, but if a try to upgrade my program will fail. I tried the glassfish-persistence-installer-v2-b54.jar, all also tried all builds between?!
    I have no idea how I may resolve the problem?!
    Any ideas?
    Thanks
    Marcel
    (I am using Java 6, Netbeans 5.5)
    Exception in thread "AWT-EventQueue-0" java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "DatenStruktur.ConditionBasic.getCouplingElement()LDatenStruktur/CouplingElement;" the class loader (instance of oracle/toplink/essentials/internal/ejb/cmp3/JavaSECMPInitializer$TempEntityLoader) of the current class, DatenStruktur/ConditionBasic, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for interface DatenStruktur/Conditionable have different Class objects for the type DatenStruktur/CouplingElement used in the signature
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
    at java.lang.Class.getDeclaredFields(Class.java:1743)
    at oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.getDeclaredFields(PrivilegedAccessHelper.java:204)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataHelper.getFields(MetadataHelper.java:443)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataDescriptor.usesPropertyAccess(MetadataDescriptor.java:1081)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processAccessors(ClassAccessor.java:564)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:498)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.MetadataAccessor.processAccessor(MetadataAccessor.java:514)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.processTableAndInheritance(ClassAccessor.java:1388)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ClassAccessor.process(ClassAccessor.java:484)
    at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.processAnnotations(MetadataProcessor.java:240)
    at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:370)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:600)
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:169)
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:237)
    at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:253)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:140)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java):96)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java):73)
    at MainProgramManagement.ProgramMain.getEntityManagerFactory(ProgramMain.java:347)
    at MainProgramManagement.ProgramMain.persistData(ProgramMain.java:788)

    upgrade to cf8, which supports jdk 1.6.
    mx7 does not support 1.5 or 1.6
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Java.lang.LinkageError: Class org/jdom/Document

    I run my program in developemnt its working... but its working in production it throws these below mention error.... Any one help me to olve this problem.....
    Exception : java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.RemoteException: ; nested exception is:
         java.lang.LinkageError: Class org/jdom/Document violates loader constraints: parent and child already loaded different classes

    What program is this? Something you wrote in Java? If so, you're posting to a forum that can't help you. We deal with Messagng Server here, not Java programming. . .

  • Java.lang.LinkageError while deploying.

    Hello All,
    I am working on an application which runs on jboss and while deploying I come accross the below error.
    09:55:37,607 ERROR [[ehaweb]] Servlet.service() for servlet ehaweb threw exception
    java.lang.LinkageError: loader constraint violation: when resolving interface method "com.eha.service.PageAccessMangementLoca
    l.savePageAccessLog(Lcom/eha/domain/PageAccessLog;)V" the class loader (instance of org/jboss/web/tomcat/service/WebAppClassL
    oader) of the current class, com/eha/web/filter/PageAccessLogFilter, and the class loader (instance of org/jboss/mx/loading/U
    nifiedClassLoader3) for resolved class, com/eha/service/PageAccessMangementLocal, have different Class objects for the type c
    om/eha/domain/PageAccessLog used in the signature
    Please let me know if something else is needed.
    I am deploying an ear file which also has a war file and all required libs and jars in it.
    Thanks in advance.

    First of all thanks for the reply,
    Your reply resolved my issue but now I am facing different error at deployment as given below.
    15:55:05,833 ERROR [ContextLoader] Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchService' defined in ServletCont
    ext resource [WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.
    PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.ope
    nsymphony.oscache.general.GeneralCacheAdministrator] to required type [com.opensymphony.oscache.general.GeneralCacheAdministr
    ator] for property 'generalCacheAdministrator'; nested exception is java.lang.IllegalArgumentException: No matching editors o
    r conversion strategy found
    Caused by:
    org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
    PropertyAccessException 1:
    org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.opensymphony.oscache.general.G
    eneralCacheAdministrator] to required type [com.opensymphony.oscache.general.GeneralCacheAdministrator] for property 'general
    CacheAdministrator'; nested exception is java.lang.IllegalArgumentException: No matching editors or conversion strategy found
    Caused by:
    **java.lang.IllegalArgumentException: No matching editors or conversion strategy found**
    at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:212)
    My EAR structure is like this,
    EAR
    -meta inf
    -jar's
    -war
    - web inf
    - classes
    - lib
    The classes in war's "classses" directory needed to access some classes in jar's of ear's root directory.
    since I had first bundled these jars again in lib directory of war's web inf, I deployed it sucessfully but at run time
    It gave me previous errors that was solved by first reply (due to duplicate jars), now since I have deleted those
    duplicate jars, It gives me above error.
    Please help, I have stuck here for a long time now.

  • Java.lang.LinkageError in weblogic 10.3

    i had deployed the jasperserver.war in weblogic 10.3 server...
    i am getting the following exception...
    Context Initialization failed
    org.springframework.beans.factory.BeanDefinationStroreException:unexpected exception parsing xml document from ServletCotext resource[WEB-INF/applicationContext.xml]nested exception is java.lang.LinkageError:loader constraint voilation when resolving the method javax.xml.parser.DocumentBuilder.setEntityResolver(Lorg/xml/sax/EntityResolver:)V"the class loader intance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class,og/springframework/factory/xm/DefaultDocumentLoader and the classloader<instance of <bootloader>) for resolved classes javax/xml/parsers/DocumentBuiler have different class objects for the type org/xml/sax/EntityResolver used in the signature
    please help me out ...
    thanks in advance
    venkat seerla

    I think there is conflict with a class in the system classloader an one into jasperserver.war. Maybe It is due to a diferent implementation of Spring framework of WebLogic and jasper reports. Check if jasper spring version matches weblogic spring version.
    To understand classloading visit http://download.oracle.com/docs/cd/E17904_01/web.1111/e13706/classloading.htm

  • Java.lang.LinkageError:loader constraints

    Hi,
              I am having problem with on of my ejb having some
              classes sharing with my servlet. The following is the
              exception which I get. I guess this is due to different
              classloader trying to load the sharing class. I have
              my app dur struct. in exploded format under WEB-INF\classes
              My ejbs do not contain the common classes. WEB-INF\classes
              is in weblogic classpath.
              <Servlet failed with Exception
              java.lang.LinkageError: Class com/pmi/enterprise/securityauthority/Roles
              violates loader constraints
              at java.lang.ClassLoader.defineClass0(Native Method)
              at java.lang.ClassLoader.defineClass0(Compiled Code)
              at java.lang.ClassLoader.defineClass(Compiled Code)
              at java.lang.ClassLoader.defineClass(Compiled Code)
              at
              weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Compiled Code)
              at
              weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Compiled
              Code)
              at
              weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadCla
              ss(Compiled Code)
              at weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled
              Code)
              at java.lang.ClassLoader.loadClassInternal(Compiled Code)
              at
              com.pmi.webedi.servlets.RequestServlet.doPost(RequestServlet.java:215)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :105)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              I donot have anything under WEB-INF\lib. If I include the EJB Jars then I
              get ClassCastException.
              Can anyone help me with this. This is working application on Win2000 and I
              am moving to sun
              and restructuring accor. to servlet spec2.2.
              Thanks in advance,
              - Rishi Prakash
              

    I tried recompiling all the related classes and rebuilt my ejb. But it
              didn't help. I tried a couple of more things.
              I moved one of the common class from my classpath
              to the ejb jar. This in effect eliminated the from this class
              and showed the same error on another common class. Then I moved both the
              classes to the ejb jar. Now I got
              NoclassDef FoundError from the servlet. I also tried including at both
              places (ie in jar as well as Classpath). Again it did not help. I have no
              clue now what to do.
              Any more help or clue is appriciated.
              - Rishi Prakash
              "Mark Spotswood" <[email protected]> wrote in message
              news:[email protected]...
              > The error means that a class which
              com/pmi/enterprise/securityauthority/Roles
              > depends on has changed in a way that is incompatible with the current
              version
              > of Roles. This could happen if the JDK being used is different than the
              JDK
              > that Roles was originally compiled against, or if you have rebuilt some
              class
              > that Roles uses, but have not also rebuilt Roles.
              > --
              > mark
              >
              > Rishi Prakash wrote:
              >
              > > Hi,
              > >
              > > I am having problem with on of my ejb having some
              > > classes sharing with my servlet. The following is the
              > > exception which I get. I guess this is due to different
              > > classloader trying to load the sharing class. I have
              > > my app dur struct. in exploded format under WEB-INF\classes
              > > My ejbs do not contain the common classes. WEB-INF\classes
              > > is in weblogic classpath.
              > >
              > > <Servlet failed with Exception
              > > java.lang.LinkageError: Class com/pmi/enterprise/securityauthority/Roles
              > > violates loader constraints
              > > at java.lang.ClassLoader.defineClass0(Native Method)
              > > at java.lang.ClassLoader.defineClass0(Compiled Code)
              > > at java.lang.ClassLoader.defineClass(Compiled Code)
              > > at java.lang.ClassLoader.defineClass(Compiled Code)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Compiled
              Code)
              > > at
              > > weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Compiled
              > > Code)
              > > at
              > >
              weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadCla
              > > ss(Compiled Code)
              > > at
              weblogic.utils.classloaders.GenericClassLoader.loadClass(Compiled
              > > Code)
              > > at java.lang.ClassLoader.loadClassInternal(Compiled Code)
              > > at
              > > com.pmi.webedi.servlets.RequestServlet.doPost(RequestServlet.java:215)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
              > > at
              > >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > > :105)
              > > at
              > >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > > l.java:742)
              > > at
              > >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > > l.java:686)
              > > at
              > >
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              > > Manager.java:247)
              > > at
              > >
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              > > at
              > > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > > at weblogic.kernel.ExecuteThread.run(Compiled Code)
              > >
              > > I donot have anything under WEB-INF\lib. If I include the EJB Jars then
              I
              > > get ClassCastException.
              > > Can anyone help me with this. This is working application on Win2000 and
              I
              > > am moving to sun
              > > and restructuring accor. to servlet spec2.2.
              > >
              > > Thanks in advance,
              > > - Rishi Prakash
              >
              

  • Java.lang.LinkageError in SessionBean

    I get this error:
    Error occurred in server thread; nested exception is: java.lang.LinkageError: Class org/jdom/Document violates loader constraints
    I try to call method from SessionBean like this:
    org.jdom.Document doc = home.getJDOMDocument();
    Remote interface:
    public org.jdom.Document getJDOMDocument();throws java.rmi.RemoteException;
    Bean:
    public org.jdom.Document createDOM()
    org.jdom.Document doc = new org.jdom.Document();
    return doc;
    I just can't get it working...

    I think there is conflict with a class in the system classloader an one into jasperserver.war. Maybe It is due to a diferent implementation of Spring framework of WebLogic and jasper reports. Check if jasper spring version matches weblogic spring version.
    To understand classloading visit http://download.oracle.com/docs/cd/E17904_01/web.1111/e13706/classloading.htm

  • Java.lang.NullPointer Exception in File-RFC-File wtihout BPM scenario

    Hi All,
    I have implemented scenario File - RFC - File without BPM in PI7.1 according to below link by bhavesh
    [File - RFC - File without a BPM - Possible from SP 19.;
    but I am getting error java.lang.NullPointer Exception  in Audit log of sender communication channel when it enters in ResponseOnewayBean.
    I had implemented the same in PI 7.0 but there it was working fine.
    Is there any limitations on the use of the above beans in PI7.1 as I could see two more threads on the same unanswered yet.
    Please help me in resolving as it is priority task for me
    Thanks,
    Amit

    Sometime back I saved this SAP Note 1261159 for this error. Not sure if it is still valid. Try to get it implemented.
    Regards,
    Prateek

  • Java.lang.NoClassDefFoundError: Exception in thread "main"

    Hello People,
    I am aware that this topic has been raised before. I have browsed through all the postings of this particular question, but i have not found the solution.
    While compilign i get no errors but this is what i get when i run the java program.
    java.lang.NoClassDefFoundError: Exception in thread "main"
    Tool completed with exit code 1
    The following is my path and classpath files under autoexec.bat
    SET PATH=%PATH%;C:\j2sdk1.4.0_03\bin
    SET CLASSPATH=.;%CLASSPATH%;C:\j2sdk1.4.0_03\bin
    These are the settings i have in MY COMPUTER properties/environments
    SYSTEM VARIABLES
    Variable - classpath
    Value - C:\Program Files\TextPad 4
    USER VARIABLES
    Variable - PATH
    Value - C:\j2sdk1.4.0_03\bin
    SYSTEM VARIABLES
    Variable - path
    Value - C:\PROGRA~1\PVCS\VM\win32\bin;C:\WINNT4\system32;C:\WINNT4;C:\WINNT4\system32\nls\ENGLISH;C:\WINNT4\system32\nls;C:\Program Files\Rational\common
    USER VARIABLES
    Variable - PATH
    Value - C:\j2sdk1.4.0_03\bin
    I hope this infromation will help.
    Thanks
    Regards,
    Shah

    SET PATH=%PATH%;C:\j2sdk1.4.0_03\bin
    SET CLASSPATH=.;%CLASSPATH%;C:\j2sdk1.4.0_03\bin
    These are the settings i have in MY COMPUTER
    properties/environments
    SYSTEM VARIABLES
    Variable - classpath
    Value - C:\Program Files\TextPad 4I am concerned that the classpath in the autoexec.bat is different from what you posted under System variables. What version of Windows are you running? autoexec.bat is used by 98. Others use the system variables. The classpath you show for autoexec.bat looks OK but the classpath you show for system variables looks wrong. It should be the same as what you show for autoexec.bat You do not need the sdk\bin directory in your classpath unless you plan to put classes there.
    The NoClassDefFound error means that the java.exe command could not find the class that you specified. You did not post the command that you entered. You may have specified the class wrong. Otherwise, it is probably a classpath problem.

  • Java.lang.LinkageError: duplicate class definition

    Dear Experts,
    We are in the process of Migrating current Mi2.5 application to NWM7.1.
    We have that 2.5 application properly running in production system but in 7.1 while opening some JSP page of application
    it sometimes opens properly & sometimes gives this error..
    java.lang.LinkageError: duplicate class definition
    The detailed error description is as given below..
    Pls advice..

    Error: 500
    Location: /ZEFL_BP_MI/jsp/stock/bp_technicians_issue_sparesforms.jsp
    Internal Servlet Error:
    java.lang.LinkageError: duplicate class definition: com/sap/BP/bean/TableViewBean
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at org.apache.tomcat.loader.AdaptiveClassLoader.doDefineClass(AdaptiveClassLoader.java:575)
    at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:542)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.beans.Beans.instantiate(Unknown Source)
    at java.beans.Beans.instantiate(Unknown Source)
    at jsp.stock.bp_0005ftechnicians_0005fissue_0005fsparesforms._jspService(bp_0005ftechnicians_0005fissue_0005fsparesforms.java:101)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:222)
    at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:162)
    at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.dispatchRequest(AbstractMEHttpServlet.java:780)
    at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetThreadSafe(AbstractMEHttpServlet.java:281)
    at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:552)
    at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:190)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Unknown Source)
    Regards,
    Saptak

  • Java.lang.LinkageError when executing a CT mapping

    Hello,
    I'm trying to execute a simple LCT_SQL_TO_SQL_ROW_BY_ROW CT mapping which transfers data from a DB2 table into an Oracle table.
    It deploys OK, but execution fails with the following stack:
    File "<string>", line 133, in ?
    java.lang.LinkageError: Class sqlj/runtime/ref/DefaultContext violates loader constraints
    I have supplied the DB2 JDBC file db2jcc.jar file to the Control Center Agent, which can find it OK (when I remove the JAR file the error changes to a class not found).
    Also, db2jcc.jar is the only one in the CLASSPATH which contains class sqlj/runtime/ref/DefaultContext
    Does anybody have any ideas what steps I should take next to find out what's going wrong?
    I'm on OWB 11.2.0.1, with OC4J 10.1.3.3, deployed on Linux

    David, thanks for your reply.
    I did originally follow the instructions in the documentation but the problem was that I had added the extra argument to the wrong java call in the ccastart file (there are 3, and it's the last one in the file that needs to be modified).
    You can also copy-and-paste from the HTML documentation but you need to get rid of the extra spaces that get added.
    Cheers,
    Ian

  • Java.lang.LinkageError

    Im getting the following error when i run my xml to access data transfer in a servlet. I have a crimson jar file in the lib folder. How can i solve this error
    java.lang.LinkageError: Class org/w3c/dom/Document violates loader constraints
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at desisoft.server.servlets.ContextLoader.loadClass(ContextLoader.java:
    43)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at XMLToAccess.doGet(XMLToAccess.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at desisoft.server.servlets.Servlet.service(Servlet.java:86)
    14:57:02 127.0.0.1 GET /_blazix_error_header.jsp

    You probably have different versions of crimson.jar in your classpaths. Do a search for dom jar's and try moving them one by one.

  • Java.lang.LinkageError Help

    Hi All,
    I am deploying a WAR file to Weblogic (latest version 10.3). Since I need to force Weblogic to use the libraries in the WAR file, I set prefer-web-inf-classes to true:
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    into weblogic.xml,
    but after that my application failed to load/start. Here is what I got from screen:
    java.lang.LinkageError: loader constraint violation: loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) previously initiated loading for a different type with name "org/xml/sax/XMLReader"
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
    Does that mean some libraries loaded multiple times? How do I fix this? Thanks!
    cheney

    If you are putting part of your application in the shared library then please make sure that it should not import any of the classes which are there in other 2 war or jar files which are loaded separately.
    So organize your classes in that way.

  • Java.lang.LinkageError on execution of RFC

    Hi all,
    I am getting java.lang.LinkageError: loader constraints violated when linking com/sap/tc/cmi/model/ICMIModelClass class when trying to execute a RFC.
    Does anyone has any idea why thie error is thrown.
    Thanks and regards,
    Jaydeep

    Hi Jaydeep, 
    Check this:
    Re: Unable to access external jars in DC during run time!!
    Regards,
    Shyam.

Maybe you are looking for