An Ant BuildException has occured: The following error occurred while executing this line: java.io.F

0

 

while building the jserver 4.5.. i keep encountering the error in the stact trace. I have previously set up the ${js-path} in my settings.xml file located in the .m2/repository folder..
 
help.
 
i'm rebuilding as i am trying to deploy to an oracle db and a weblogic server.
 
thanks
Code:
 Executing Maven with the following:
[C:\\Oracle\\Middleware\\115\\jdk160_24\\bin\\javaw.exe, -classpath, C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0\\boot\\classworlds-1.1.jar;C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0\\lib\\maven-2.1.0-uber.jar;, -Dclassworlds.conf=C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0\\bin\\m2.conf, -Dmaven.home=C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0, org.codehaus.classworlds.Launcher, --settings, C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0\\conf\\settings.xml, --file, C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\pom.xml, install]
If you experience connection issues, please ensure your proxy settings are correctly defined in your Maven Settings files
C:\\jasperreports-server-cp-4.5.0-src\\jasperserver>
C:\\Oracle\\Middleware\\115\\jdk160_24\\bin\\javaw.exe -classpath C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0\\boot\\classworlds-1.1.jar;C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0\\lib\\maven-2.1.0-uber.jar; -Dclassworlds.conf=C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0\\bin\\m2.conf -Dmaven.home=C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0 org.codehaus.classworlds.Launcher --settings C:\\Oracle\\Middleware\\115\\jdeveloper\\apache-maven-2.1.0\\conf\\settings.xml --file C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\pom.xml install
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Jasper Server
[INFO]   Jasper Server API
[INFO]   Jasper Server API - Common
[INFO]   Jasper Server API - Metadata Interfaces
[INFO]   Jasper Server API - Engine
[INFO]   Jasper Server API Implementations - All
[INFO]   Jasper Server API Implementations - Common
[INFO]   Jasper Server API Implementations - Metadata
[INFO]   JasperServer Core Utilities
[INFO]   Jasper Server API Implementations - Engine
[INFO]   Jasper Server Hibernate Mappings
[INFO]   JasperServer Export Import Tool
[INFO]   Jasper Server Common WebServices
[INFO]   JasperServer Jar for Webapp
[INFO]   JasperServer server Jar for WebServices
[INFO]   Jasper Server API
[INFO]   JasperServer Search
[INFO]   JasperServer remote services
[INFO]   JasperServer server Jar for REST services
[INFO]   JasperServer WAR
[INFO]   iReport Plugin
[INFO]   JasperServer Export Import Tool
[INFO]   Jasper Server Unit Tests
[INFO]   Jasper Server Integration Tests
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasper Server
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\target\\pom-transformed.xml to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\server\\4.5.0\\server-4.5.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasper Server API
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\target\\pom-transformed.xml to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\jasperserver-api\\4.5.0\\jasperserver-api-4.5.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasper Server API - Common
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\common\\src\\main\\resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\common\\src\\test\\resources
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\common\\target\\jasperserver-api-common-4.5.0.jar to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\api\\common\\jasperserver-api-common\\4.5.0\\jasperserver-api-common-4.5.0.jar
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\common\\target\\jasperserver-api-common-4.5.0-sources.jar to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\api\\common\\jasperserver-api-common\\4.5.0\\jasperserver-api-common-4.5.0-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasper Server API - Metadata Interfaces
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\metadata\\src\\main\\resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\metadata\\src\\test\\resources
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\metadata\\target\\jasperserver-api-metadata-4.5.0.jar to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\api\\metadata\\jasperserver-api-metadata\\4.5.0\\jasperserver-api-metadata-4.5.0.jar
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\metadata\\target\\jasperserver-api-metadata-4.5.0-sources.jar to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\api\\metadata\\jasperserver-api-metadata\\4.5.0\\jasperserver-api-metadata-4.5.0-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasper Server API - Engine
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\engine\\src\\main\\resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\engine\\src\\test\\resources
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\engine\\target\\jasperserver-api-engine-4.5.0.jar to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\api\\engine\\jasperserver-api-engine\\4.5.0\\jasperserver-api-engine-4.5.0.jar
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api\\engine\\target\\jasperserver-api-engine-4.5.0-sources.jar to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\api\\engine\\jasperserver-api-engine\\4.5.0\\jasperserver-api-engine-4.5.0-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasper Server API Implementations - All
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api-impl\\target\\pom-transformed.xml to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\jasperserver-api-impl\\4.5.0\\jasperserver-api-impl-4.5.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasper Server API Implementations - Common
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api-impl\\common\\src\\main\\resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api-impl\\common\\src\\test\\resources
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api-impl\\common\\target\\jasperserver-api-common-impl-4.5.0.jar to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\api\\common\\impl\\jasperserver-api-common-impl\\4.5.0\\jasperserver-api-common-impl-4.5.0.jar
[INFO] Installing C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api-impl\\common\\target\\jasperserver-api-common-impl-4.5.0-sources.jar to C:\\Users\\sherrif\\.m2\\repository\\com\\jaspersoft\\jasperserver\\api\\common\\impl\\jasperserver-api-common-impl\\4.5.0\\jasperserver-api-common-impl-4.5.0-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Jasper Server API Implementations - Metadata
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [antrun:run {execution: Instrument domain classes}]
[INFO] Executing tasks
log4j:WARN No appenders could be found for logger (org.hibernate.bytecode.cglib.BytecodeProviderImpl).
log4j:WARN Please initialize the log4j system properly.
[instrument] starting instrumentation
[INFO] Executed tasks
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [antrun:run {execution: test}]
[INFO] Executing tasks
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while executing this line:
java.io.FileNotFoundException: C:\\jasperreports-server-cp-4.5.0-src\\jasperserver\\jasperserver-api-impl\\metadata\\${js-path}\\build-config.xml (The system cannot find the path specified)
 
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Fri Jul 20 20:40:31 BST 2012
[INFO] Final Memory: 31M/74M
[INFO] ------------------------------------------------------------------------
Process exited with exit code 1.</td></tr></tbody></table>
sheryf's picture
8
Joined: Jun 9 2012 - 12:21pm
Last seen: 2 years 4 months ago

2 Answers:

0

 the js-path should be set in the default_master.properties file in <js-install>/uildomatic and point to the directory where the jasperreports server sources are. this is used in the maven settings in conf_source/templates/maven_settings.xml. 

see also chapter 3.4.1 Configuring the default_master.properties File in the documentation (docs/JasperReports-Server-CP-Source-Build-Guide.pdf) 

 

mrcaffeine's picture
Joined: Nov 10 2008 - 3:38am
Last seen: 4 months 1 week ago
0

Hi and thanks, I have gone past this issue but kindly see this post and help if you can http://community.jaspersoft.com/questions/543438/build-test-error. Have you successfully setup an oracle db repository? And or weblogic server? Thanks in anticipation

sheryf's picture
8
Joined: Jun 9 2012 - 12:21pm
Last seen: 2 years 4 months ago
and how you solve that issue sheryf? coz i got the same problem but i build jasperserver-4.7.0 on Netbeans 7.2.1 Thanks before
hybridboy - 1 year 11 months ago
Feedback