Forum Stats

  • 3,814,525 Users
  • 2,258,880 Discussions
  • 7,892,766 Comments

Discussions

Error while compiling my ADF project: unexpected token

User_RJXYY
User_RJXYY Member Posts: 37 Blue Ribbon
edited Dec 7, 2017 6:25AM in JDeveloper and ADF

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>
Tagged:

Best Answer

  • User_RJXYY
    User_RJXYY Member Posts: 37 Blue Ribbon
    edited Dec 7, 2017 6:25AM Answer ✓

    Problem is solved

    My application contains tree project: Model,ViewController, and CoreLib

    CoreLib is actually a project in another separate application called "CoreApplication"

    The CoreLib project was attached to the "OperationCommitte" workspace. And is added to both Model and View Projects in the dependencies .

    The solution is to remove this "CoreLib" project from the "OperationCommitte" workspace and to deploy it as jar file and attache to the application again as jar library

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,243 Red Diamond
    edited Dec 7, 2017 5:41AM

    There are a couple of things you can do:

    1) close jdev and start it again. Sometimes this is enough to get rid of the error

    2) close jdev, remove the .data folder from the workspace and all classes folders from the project folders. Then start again.

    Do you have a source control system?

    In this case you can check if there has been a change in the jws file and/or check out a previous version.

    Timo

  • User_RJXYY
    User_RJXYY Member Posts: 37 Blue Ribbon
    edited Dec 7, 2017 5:53AM

    Thank you for replying

    I restarted JDev many times and also windows

    Also I removed all .data folders from the application , but it is the same

    I have Subversion , and I am checking difference now. I hope it could be resolved

  • User_RJXYY
    User_RJXYY Member Posts: 37 Blue Ribbon
    edited Dec 7, 2017 6:05AM

    is there any other suggestions??

  • User_RJXYY
    User_RJXYY Member Posts: 37 Blue Ribbon
    edited Dec 7, 2017 6:25AM Answer ✓

    Problem is solved

    My application contains tree project: Model,ViewController, and CoreLib

    CoreLib is actually a project in another separate application called "CoreApplication"

    The CoreLib project was attached to the "OperationCommitte" workspace. And is added to both Model and View Projects in the dependencies .

    The solution is to remove this "CoreLib" project from the "OperationCommitte" workspace and to deploy it as jar file and attache to the application again as jar library

This discussion has been closed.