4 Replies Latest reply on Sep 17, 2008 6:18 PM by james_sutherland

    weblogic::java.lang.IllegalArgumentException: URI is not hierarchical

    623352
      Hello,

      when I deploy to OC4J there is no problem. (I am using Toplink Essentials JPA)

      But when I deploy the same package to Weblogic 10 it gives the error below during deployment.

      The jars in the classpath of the weblogic server are
      toplink-essentials.jar;
      toplink-essentials-agent.jar


      Could you plese help me


      <24-Jul-2008 10:41:13 o'clock EEST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'INSURANCEPRJ' due to error weblogic.application.ModuleException: .
      weblogic.application.ModuleException:
      at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:317)
      at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
      at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
      Truncated. see log file for complete stacktrace
      java.lang.IllegalArgumentException: URI is not hierarchical
      at java.io.File.<init>(File.java:335)
      at oracle.toplink.essentials.ejb.cmp3.persistence.ArchiveFactoryImpl.createArchive(ArchiveFactoryImpl.java:85)
      at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.readStandardMappingFiles(MetadataProcessor.java:358)
      at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcessor.readMappingFiles(MetadataProcessor.java:339)
      at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:344)
      Truncated. see log file for complete stacktrace
      >
      <24-Jul-2008 10:41:13 o'clock EEST> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to
      the domain log.>
        • 1. Re: weblogic::java.lang.IllegalArgumentException: URI is not hierarchical
          james_sutherland
          Not sure on the error, but you may wish to try EclipseLink instead. It has been tested on Oracle WebLogic.

          -- James : http://www.eclipselink.org
          • 2. Re: weblogic::java.lang.IllegalArgumentException: URI is not hierarchical
            623352
            Is there a solution with toplink.

            Otherwise iti will be necessary to replace the toplink with KODO or EclipseLink.

            I am waiting for a solution from Oracle...
            • 3. Re: weblogic::java.lang.IllegalArgumentException: URI is not hierarchical
              Dyim-Oracle
              We are having a similar issue with EclipseLink running in weblogic. The problem seems to be specific to Windows. Anyone has any idea on how to tackle this?

              *************************
              >
              <Sep 16, 2008 11:16:59 AM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task fo
              r application 'presenceapplicationear-11'.>
              <Sep 16, 2008 11:16:59 AM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
              weblogic.management.DeploymentException:
              at weblogic.application.internal.flow.JpaFlow.prepare(JpaFlow.java:59)
              at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
              at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
              at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
              Truncated. see log file for complete stacktrace
              java.lang.IllegalArgumentException: URI is not hierarchical
              at java.io.File.<init>(File.java:363)
              at org.eclipse.persistence.internal.jpa.deployment.ArchiveFactoryImpl.createArchive(ArchiveFactoryImpl.java:61)
              at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.loadStandardMappingFiles(MetadataProcessor.ja
              va:330)
              at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.loadMappingFiles(MetadataProcessor.java:271)
              at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitPro
              cessor.java:291)
              Truncated. see log file for complete stacktrace
              >
              <Sep 16, 2008 11:16:59 AM PDT> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.manageme
              nt.DeploymentException:
              at weblogic.application.internal.flow.JpaFlow.prepare(JpaFlow.java:59)
              at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
              at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
              at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
              at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
              at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
              at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
              at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperatio
              n.java:197)
              at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
              at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
              at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
              at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
              at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
              at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:15
              9)
              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(Deploymen
              tReceiverCallbackDeliverer.java:157)
              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiv
              erCallbackDeliverer.java:12)
              at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCal
              lbackDeliverer.java:45)
              at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
              at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
              at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
              Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
              at java.io.File.<init>(File.java:363)
              at org.eclipse.persistence.internal.jpa.deployment.ArchiveFactoryImpl.createArchive(ArchiveFactoryImpl.java:61)
              at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.loadStandardMappingFiles(MetadataProcessor.ja
              va:330)
              at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.loadMappingFiles(MetadataProcessor.java:271)
              at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitPro
              cessor.java:291)
              at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:830)
              at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:
              189)
              at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:330)
              at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123)
              at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331
              )
              at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptors(AbstractPersistenceUnitRegistr
              y.java:111)
              at weblogic.deployment.EarPersistenceUnitRegistry.<init>(EarPersistenceUnitRegistry.java:52)
              at weblogic.application.internal.flow.JpaFlow.prepare(JpaFlow.java:54)
              >
              • 4. Re: weblogic::java.lang.IllegalArgumentException: URI is not hierarchical
                james_sutherland
                I believe this was fixed in the 1.0.1 EclipseLink release.