Skip to Main Content

Error while compiling my ADF project: unexpected token

User_RJXYYDec 7 2017 — edited Dec 7 2017

hi

please help

my jdeveloper version is 12.2.1

I have ADF application that was working fine.

Now I am trying to compile my application , but I got this strange error

"unexpected token: package @ line 4, column 1." . The error in the  .jws file as seen in the screen shot

and this is the error details

<?xml version = '1.0' encoding = 'UTF-8'?>

<markers xmlns="http://xmlns.oracle.com/jdeveloper/110000ide-markers">

   <list n="markers">

      <hash>

         <value n="code" v="0"/>

         <value n="column" v="1"/>

         <value n="description" v="Error(4,1): unexpected token: package @ line 4, column 1."/>

         <list n="events">

            <hash>

               <value n="event-description" v="Rebuild OCSView.jpr"/>

               <value n="event-id" v="ace8cb12-15eb-44e7-b65d-7eb0e4ec18f9"/>

               <value n="event-timestamp" v="1512642150742"/>

            </hash>

         </list>

         <value n="id" v="864fab5d-217c-45fb-80d6-03ff61a94076"/>

         <value n="lastUpdated" v="1512642155198"/>

         <value n="line" v="4"/>

         <url n="markableURL" path="../../../JDeveloper/mywork/DhamanSystems2017/OperationCommittee/OperationCommittee.jws"/>

         <value n="severity" v="0"/>

         <value n="timestamp" v="1512642155096"/>

         <value n="type" v="oracle.jdeveloper.compiler.CompilerProblemMarker"/>

      </hash>

   </list>

</markers>

pastedImage_1.png

I

cannot attach the jws file, so that I paste its content

<?xml version = '1.0' encoding = 'UTF-8'?>

<jws:workspace xmlns:jws="http://xmlns.oracle.com/ide/project">

   <hash n="adrs-workspace-properties">

      <value n="adrs-instance-binding" v="DefaultServer"/>

      <value n="deploy-timeout" v="0"/>

      <value n="runtime-application-name" v="OperationCommittee"/>

   </hash>

   <hash n="adrs-workspace-weblogic-properties">

      <value n="hot-class-reload" v="ide-default"/>

   </hash>

   <value n="application-package-prefix" v="org.dhaman.opr.ocs"/>

   <value n="appTemplateId" v="adfWebappApplicationTemplate"/>

   <hash n="component-versions">

      <value n="oracle.adf.share.dt.migration.jps.JaznCredStoreMigratorHelper" v="11.1.1.1.0"/>

      <value n="oracle.adf.share.dt.migration.wsm.PolicyAttachmentMigratorHelper" v="12.1.2.0.0"/>

      <value n="oracle.adfdt.controller.adfc.source.migration.SavePointDataSourceForWLSMigrator" v="11.1.1.1.0"/>

      <value n="oracle.adfdtinternal.model.ide.security.extension.AdfSecurityMigrator" v="11.1.1.1.0.13"/>

      <value n="oracle.ide.model.Project" v="11.1.1.1.0;12.2.1.1.0"/>

      <value n="oracle.jbo.dt.jdevx.deployment.JbdProjectMigrator" v="11.1.2.0.0"/>

      <value n="oracle.jdeveloper.maven.migrator.POMNodeMigrator" v="12.2.1.0.0"/>

      <value n="oracle.jdevimpl.appresources.ApplicationSrcDirMigrator" v="11.1.2.0.0"/>

      <value n="oracle.jdevimpl.deploy.migrators.JeeDeploymentMigrator" v="12.1.2.0.0"/>

      <value n="oracle.jdevimpl.xml.oc4j.jps.JpsConfigMigratorHelper" v="12.1.4.0.0"/>

      <value n="oracle.jdevimpl.xml.wl.WeblogicMigratorHelper" v="11.1.1.1.0"/>

      <value n="oracle.mds.internal.dt.deploy.base.MarMigratorHelper" v="11.1.1.1.0"/>

      <value n="oracle.mds.internal.dt.ide.migrator.MDSConfigMigratorHelper" v="11.1.1.0.5313"/>

   </hash>

   <list n="contentSets">

      <string v="oracle.mds.internal.dt.ide.appresources.MDSAppResourceCSProvider/MDSAppContentSet"/>

      <string v="oracle.jdeveloper.model.PathsConfiguration/ADFContentSet"/>

      <string v="oracle.jdeveloper.model.PathsConfiguration/ApplicationSrcContentSet"/>

      <string v="oracle.jdeveloper.model.PathsConfiguration/ApplicationBuildToolContentSet"/>

      <string v="oracle.jdeveloper.model.PathsConfiguration/ResourceBundlesContentSet"/>

   </list>

   <list n="listOfChildren">

      <hash><url n="URL" path="../CoreLib/CoreLib/CoreLib.jpr"/></hash>

      <hash><url n="URL" path="OCSModel/OCSModel.jpr"/></hash>

      <hash><url n="URL" path="OCSView/OCSView.jpr"/></hash>

   </list>

   <hash n="oracle.jdeveloper.deploy.dt.DeploymentProfiles">

      <hash n="profileDefinitions">

         <hash n="OperationCommittee_Project1_OperationCommittee">

            <hash n="archiveOptions">

               <value n="hasManifest" v="false"/>

            </hash>

            <hash n="dependencies">

               <list n="dependencyList">

                  <hash>

                     <value n="adapterClass" v="oracle.jdevimpl.deploy.common.ArchiveProfileDependable"/>

                     <url n="ownerURL" path="OCSView/OCSView.jpr"/>

                     <value n="profileName" v="OperationCommittee_OCSView_webapp"/>

                  </hash>

               </list>

            </hash>

            <url n="earURL" path="deploy/OperationCommittee_Project1_OperationCommittee.ear"/>

            <value n="enterpriseAppName" v="OperationCommittee_Project1_OperationCommittee"/>

            <hash n="fileGroups">

               <list n="groups">

                  <hash>

                     <list n="contributors">

                        <hash>

                           <value n="type" v="9"/>

                        </hash>

                     </list>

                     <value n="displayName" v="Application Descriptors"/>

                     <hash n="filters">

                        <list n="rules">

                           <hash>

                              <value n="pattern" v="**"/>

                              <value n="type" v="0"/>

                           </hash>

                        </list>

                     </hash>

                     <value n="internalName" v="ear-metainf"/>

                     <value n="type" v="1"/>

                  </hash>

                  <hash>

                     <value n="displayName" v="Application Libraries"/>

                     <hash n="filters">

                        <list n="rules">

                           <hash>

                              <value n="pattern" v="**"/>

                              <value n="type" v="0"/>

                           </hash>

                        </list>

                     </hash>

                     <value n="internalName" v="libraries"/>

                     <value n="targetWithinJar" v="lib"/>

                     <value n="type" v="3"/>

                  </hash>

               </list>

            </hash>

            <value n="profileClass" v="oracle.jdeveloper.deploy.ear.EarProfile"/>

            <value n="profileName" v="OperationCommittee_Project1_OperationCommittee"/>

         </hash>

      </hash>

      <list n="profileList">

         <string v="OperationCommittee_Project1_OperationCommittee"/>

      </list>

   </hash>

   <hash n="oracle.jdeveloper.deploy.SecurityDeploymentSettings">

      <value n="Security-Deployment-Migrate-Users-And-Groups-Key" v="false"/>

   </hash>

   <hash n="oracle.jdeveloper.model.PathsConfiguration">

      <hash n="ApplicationSrcContentSet">

         <list n="pattern-filters">

            <string v="+**"/>

         </list>

         <list n="url-path">

            <url path="src/"/>

         </list>

      </hash>

   </hash>

   <hash n="Weblogic JDBC">

      <value n="Weblogic-JDBC-Auto-Sync-Key" v="false"/>

   </hash>

</jws:workspace>

This post has been answered by User_RJXYY on Dec 7 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Jan 4 2018
Added on Dec 7 2017
4 comments
167 views