0 Replies Latest reply on Jan 27, 2004 8:49 PM by 3004

    how to deploy the EJB which used Japanese word on Weblogic server

    3004

      Hi All,

      I am running a test on WIN 2K pro Japanese system. When I deploy an ejb bean with
      using Japanese character in the Java src code and also in ejb-jar.xml file, some
      exceptions were thrown.

      I am thinking that the weblogic cann’t pass ejb-jar.xml which is encoding as UTF-8
      but with Japanese character. Could you please let me know how to configure the
      Weblogic to solve the problem or to encode the ejb-jar.xml differently?

      Any suggestion will be welcome.

      Thanks,




      OUTPUT>>OUTPUT>>Invalid byte 3 of 3-byte UTF-8 sequence.
      OUTPUT>>OUTPUT>>java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8
      s
      equence.
      OUTPUT>>OUTPUT>> at weblogic.apache.xerces.impl.io.UTF8Reader.invalidByte
      (UTF8Reader.java:693)
      OUTPUT>>OUTPUT>> at weblogic.apache.xerces.impl.io.UTF8Reader.read(UTF8Re
      ader.java:445)

      ===


      weblogic.management.ApplicationException:
      Exception:weblogic.management.ApplicationException: prepare failed for ejb
      Module: ejb Error: Exception preparing module: EJBModule(ejb,status=NEW)
      EJB ejb.jar ‚ð ejb.jar ‚©‚çƒfƒvƒƒC‚Å‚«‚Ü‚¹‚ñB
      EJB ‚Ђ낱 ‚ł́A‚·‚×‚Ä‚Ì cmp/cmr ƒtƒB[ƒ‹ƒh‚ª¬•¶Žš‚ÅŠJŽn‚³‚ê‚é•K—v‚ª‚ ‚è‚Ü‚·BƒtƒB[ƒ‹ƒh
      '‚È‚Ü‚¦‚P' ‚Í‚±‚ê‚É“K‡‚µ‚Ü‚¹‚ñB
      at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:268)
      at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
      at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
      at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
      at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
      at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
      at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
      at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
      at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
      at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
      at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
      at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
      at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
      at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
      at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
      at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
      at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
      at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
      at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
      at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
      at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
      Making application available for use ... done.
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
      weblogic.ejb20.compliance.ComplianceException: EJB ‚Ђ낱 ‚ł́A‚·‚×‚Ä‚Ì cmp/cmr
      ƒtƒB[ƒ‹ƒh‚ª¬•¶Žš‚ÅŠJŽn‚³‚ê‚é•K—v‚ª‚ ‚è‚Ü‚·BƒtƒB[ƒ‹ƒh '‚È‚Ü‚¦‚P' ‚Í‚±‚ê‚É“K‡‚µ‚Ü‚¹‚ñB
              at weblogic.ejb20.compliance.EJB20EntityBeanClassChecker.checkCMPFields(EJB20EntityBeanClassChecker.java:178)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)
              at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
              at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
              at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
              at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
              at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
              at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
              at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
              at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
              at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
              at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
              at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
              at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
              at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
              at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2556)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
      --------------- nested within: ------------------
      weblogic.management.ManagementException:  - with nested exception:
      [weblogic.management.ApplicationException:
      Exception:weblogic.management.ApplicationException: prepare failed for ejb
              Module: ejb     Error: Exception preparing module: EJBModule(ejb,status=NEW)
      EJB ejb.jar ‚ð ejb.jar ‚©‚çƒfƒvƒƒC‚Å‚«‚Ü‚¹‚ñB
      EJB ‚Ђ낱 ‚ł́A‚·‚×‚Ä‚Ì cmp/cmr ƒtƒB[ƒ‹ƒh‚ª¬•¶Žš‚ÅŠJŽn‚³‚ê‚é•K—v‚ª‚ ‚è‚Ü‚·BƒtƒB[ƒ‹ƒh
      '‚È‚Ü‚¦‚P' ‚Í‚±‚ê‚É“K‡‚µ‚Ü‚¹‚ñB
              at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:268)
              at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
              at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
              at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
              at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
              at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
              at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
              at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
              at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
              at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
              at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
              at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
              at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
              at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
              at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
      weblogic.ejb20.compliance.ComplianceException: EJB ‚Ђ낱 ‚ł́A‚·‚×‚Ä‚Ì cmp/cmr
      ƒtƒB[ƒ‹ƒh‚ª¬•¶Žš‚ÅŠJŽn‚³‚ê‚é•K—v‚ª‚ ‚è‚Ü‚·BƒtƒB[ƒ‹ƒh '‚È‚Ü‚¦‚P' ‚Í‚±‚ê‚É“K‡‚µ‚Ü‚¹‚ñB
              at weblogic.ejb20.compliance.EJB20EntityBeanClassChecker.checkCMPFields(EJB20EntityBeanClassChecker.java:178)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:278)
              at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:232)
              at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:810)
              at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:766)
              at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:200)
              at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
              at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407)
              at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493)
              at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:763)
              at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:701)
              at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1277)
              at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
              at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
              at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
              at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
              at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
      ]
      at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2491)
      at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
      at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
      at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
      >