1 Reply Latest reply on Sep 3, 2007 5:11 AM by selia68

    LinkageError when accessing to admin portal

    Angelo D'Angelo Newbie

      Hi,
      I'm using JBoss Portal 2.6.1 in bundle with AS 4.2.1 and Oracle 10 db.
      I deployed my ear application, which contains (besides the WARs of my portlets) the following libraries:
      - commons-validator-1.3.0.jar
      - jakarta-oro-2.0.8.jar
      - joda-time-1.4.jar
      - jsf-facelets.jar (ver 1.1.12)
      - jsf-portlet.jar (ver 1.2.1)
      - tomahawk-1.1.6.jar

      After visited my portlets, If I try to access to admin portal, clicking Admin link in the dashboard nav, I have this error:

      15:27:04,828 ERROR [CommandServlet] Exception in command invocation
      java.lang.LinkageError: loader constraints violated when linking javax/faces/component/UIComponent class
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:242)
       at com.sun.facelets.compiler.ReflectionUtil.forName(ReflectionUtil.java:55)
       at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.createClass(TagLibraryConfig.java:278)
       at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement(TagLibraryConfig.java:205)
       at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      ...
      

      Could you, please, help me to solve this problem?

      Thank you.
      Angelo

        • 1. Re: LinkageError when accessing to admin portal
          selia68 Newbie

          Hi Angelo,

          I have the same problem.
          I found a work-around:
          -Start Jboss without the custom ear application
          -login as admin in jboss portal
          -visit admin page
          -deploy ear application

          After it you can redeploy your application as many times you need.
          However if you have to re-start jboss you have to repeat the previous steps. Remember to delete the temp folder too.

          Please, let me know if you find a "better" solution.

          Kind Regards

          Selia68