3 Replies Latest reply on Jul 23, 2002 7:06 PM by Neale Swinnerton

    deployment fails with classcastexception

    Navjeet Newbie

      I am trying to deploying an application which works fine on IPlanet 6.0 and jdk 1.2 to Jboss 2.4.6 on Linux and I get the following error when I copy the ear file to deploy directory:

      DeploymentInfo failed:file:/home/navjeet/download/JBoss-2.4.6_Tomcat-4.0.3/jboss/deploy/pc.ear
      org.jboss.deployment.J2eeDeploymentException: Error while starting pc.ear: null, Cause: java.lang.ExceptionInInitializerError
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:524) at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
      Caused by: java.lang.ClassCastException: com.mypc.logging.Logger
      at com.mypc.logging.Logger.getLogger(Logger.java:122)
      at com.mypc.business.authorization.User.(User.java:33)
      ... 32 more

      and line 122 in Logger.java is:

      return (com.putnaminv.pc.logging.Logger)Category.getInstance(name, factory);