1 Reply Latest reply on Nov 28, 2006 11:52 AM by Thomas Hamacher

    Deploying Ear file

    srinivas Sangapalli Newbie

      I am deploying Ear file which contains war and jar file.
      War and jar haveing all the required classes. both war and jar haveing
      same classes. But it was working fine in jboss3.2.6 with out any
      error. When i Try to deploy in 4.0.2 I am getting linkage error.

      See Error log.
      ----------------

      java.lang.LinkageError: Class com/unisys/mcp/demo/banking/dto/FundsTransferDTO violates loader constraints
      java.lang.ClassLoader.defineClass0(Native Method)
      java.lang.ClassLoader.defineClass(ClassLoader.java:539)
      java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
      org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
      java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      com.unisys.mcp.demo.banking.actions.FundsTransferAction.execute(FundsTransferAction.java:203)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      FundsTransferDTO is there in both the war and jar file. If i remove from
      jar (To avoid duplication) deployment time itself i am getting error saying no ClassDefFound Error.

      Please help me in this.