Jump to content
Changes to the Jaspersoft community edition download ×

[SOLVED] jasperserver 4.0.0 source build fails on add-jbdc-driver target


jgh

Recommended Posts

 add-jdbc-driver:

     [echo] maven.home = /usr/local
 
BUILD FAILED
/home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver/buildomatic/bin/dev.xml:157: The following error occurred while executing this line:
/home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver/buildomatic/bin/dev.xml:91: /usr/local/boot does not exist.
 
Total time: 0 seconds
*** Error code 1
 
This is using the downloaded maven repository made available on this release cycle. I have the maven repository unzipped in my home directory as ~/.m2/repository/
 
below is my default_master.properties file.
 
Any help is appreciated!
Thanks
jgh
Code:


Post Edited by jgh at 02/18/2011 19:22
Link to comment
Share on other sites

  • Replies 30
  • Created
  • Last Reply

Top Posters In This Topic

It looks like there is an assumption about the folder structure of maven in the buildomatic/bin/dev.xml ant script.

                <classpath>
                  <fileset dir="${maven.home}/boot">
                    <include name="*.jar" />
                  </fileset>
                  <fileset dir="${maven.home}/lib">
                    <include name="*.jar" />
                  </fileset>
                </classpath>

This is where the plexus-classworlds-2.4.jar (maven 3.0.2) or classworlds-1.1.jar (maven 2.2.1) is found.

Are you able to get around this problem... ? I'm not sure what to think about this issue... do you know where your maven jars end up getting put in place?

 

Link to comment
Share on other sites

 I was trying to work around this issue in patching dev.xml, which I will probably need to do.

 

Here is the log for jasperserver 3.5.0 and where it installs things now. Have a look at that target, and any other applicable targets:

http://pointyhat.freebsd.org/errorlogs/amd64-7-full-logs/jasperserver-3.5.0.log

I will paste below, however please do look at the log, as well.

Code:
add-jdbc-driver:     [exec] [iNFO] Scanning for projects...     [exec] [iNFO] Searching repository for plugin with prefix: 'install'.     [exec] [iNFO] ------------------------------------------------------------------------     [exec] [iNFO] Building Maven Default Project     [exec] [iNFO]    task-segment: [install:install-file] (aggregator-style)     [exec] [iNFO] ------------------------------------------------------------------------     [exec] [iNFO] [install:install-file {execution: default-cli}]     [exec] [iNFO] Installing /work/a/ports/databases/jasperserver/work/jasperserver-3.5.0-src/jasperserver/buildomatic/conf_source/db/mysql/jdbc/mysql-connector-java-5.1.5.jar to /root/.m2/repository/mysql/mysql-connector-java/5.1.5/mysql-connector-java-5.1.5.jar     [exec] [iNFO] ------------------------------------------------------------------------     [exec] [iNFO] BUILD SUCCESSFUL     [exec] [iNFO] ------------------------------------------------------------------------     [exec] [iNFO] Total time: 8 seconds     [exec] [iNFO] Finished at: Tue Feb 01 01:27:57 GMT 2011     [exec] [iNFO] Final Memory: 7M/50M     [exec] [iNFO] ------------------------------------------------------------------------BUILD SUCCESSFULTotal time: 12 seconds
Link to comment
Share on other sites

 I have maven version 2.2.1, but I don't see the jar you are speaking of from the repository zip.

Code:
[jhelfman@eggman /root/.m2/repository]$ find . -name 'classworlds*'./classworlds./classworlds/classworlds./classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom.sha1./classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom./classworlds/classworlds/1.1/classworlds-1.1.pom.sha1./classworlds/classworlds/1.1/classworlds-1.1.pom
Link to comment
Share on other sites

Wait, I think I see what the issue is. I got the same error as you when I was building on ubuntu 10.10. I installed mvn using apt-get.

The mvn binary is found here: /usr/bin/mvn

But there is also this location which has the expected maven folder structure:

  /usr/share/maven2

      bin

      boot

      lib

So if in my default_master.properites I set:

  maven = /usr/share/maven2/bin/mvn

Then this worked for me.

 

 

Link to comment
Share on other sites

 I updated it and now I have this error. Here is my properties file ( i added additional properties with same value based on errors coming back):

appServerType = tomcat5

appServerDir = /usr/local/tomcat5.5

dbType = mysql

dbUsername = root

dbPassword = password

dbHost = localhost

maven = /usr/local/share/java/maven2/bin/mvn

js-base-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver

js-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver

repo-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver-repo

js-repo-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver-repo

Code:
init-source-paths:     [echo]       [echo] Property values (in dev.xml: init-source-paths):      [echo]   js-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver     [echo]   js-pro-path = ${js-pro-base-path}     [echo]   repo-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver-repo     [echo]  add-jdbc-driver:     [echo] maven.home = /usr/local/share/java/maven2     [java] [iNFO] Scanning for projects...     [java] [iNFO] ------------------------------------------------------------------------     [java] [ERROR] FATAL ERROR     [java] [iNFO] ------------------------------------------------------------------------     [java] [iNFO] Error building POM (may not be this project's POM).     [java]      [java]      [java] Project ID: org.apache.maven:super-pom     [java]      [java] Reason: Resolving expression: '${js-pro-path}': Detected the following recursive expression cycle: [js-pro-path] for project org.apache.maven:super-pom     [java]      [java]      [java] [iNFO] ------------------------------------------------------------------------     [java] [iNFO] Trace     [java] org.apache.maven.reactor.MavenExecutionException: Resolving expression: '${js-pro-path}': Detected the following recursive expression cycle: [js-pro-path] for project org.apache.maven:super-pom     [java] 	at org.apache.maven.DefaultMaven.getSuperProject(DefaultMaven.java:378)     [java] 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:275)     [java] 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)     [java] 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)     [java] 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     [java] 	at java.lang.reflect.Method.invoke(Method.java:597)     [java] 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)     [java] 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)     [java] 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)     [java] 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)     [java] Caused by: org.apache.maven.project.ProjectBuildingException: Resolving expression: '${js-pro-path}': Detected the following recursive expression cycle: [js-pro-path] for project org.apache.maven:super-pom     [java] 	at org.apache.maven.project.DefaultMavenProjectBuilder.buildStandaloneSuperProject(DefaultMavenProjectBuilder.java:332)     [java] 	at org.apache.maven.project.DefaultMavenProjectBuilder.buildStandaloneSuperProject(DefaultMavenProjectBuilder.java:282)     [java] 	at org.apache.maven.DefaultMaven.getSuperProject(DefaultMaven.java:373)     [java] 	... 12 more     [java] Caused by: org.apache.maven.project.interpolation.ModelInterpolationException: Resolving expression: '${js-pro-path}': Detected the following recursive expression cycle: [js-pro-path]     [java] 	at org.apache.maven.project.interpolation.AbstractStringBasedModelInterpolator.interpolateInternal(AbstractStringBasedModelInterpolator.java:319)     [java] 	at org.apache.maven.project.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.traverseObjectWithParents(StringSearchModelInterpolator.java:263)     [java] 	at org.apache.maven.project.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.traverseObjectWithParents(StringSearchModelInterpolator.java:328)     [java] 	at org.apache.maven.project.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.run(StringSearchModelInterpolator.java:135)     [java] 	at org.apache.maven.project.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.run(StringSearchModelInterpolator.java:102)     [java] 	at java.security.AccessController.doPrivileged(Native Method)     [java] 	at org.apache.maven.project.interpolation.StringSearchModelInterpolator.interpolateObject(StringSearchModelInterpolator.java:80)     [java] 	at org.apache.maven.project.interpolation.StringSearchModelInterpolator.interpolate(StringSearchModelInterpolator.java:62)     [java] 	at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:990)     [java] 	at org.apache.maven.project.DefaultMavenProjectBuilder.buildStandaloneSuperProject(DefaultMavenProjectBuilder.java:324)     [java] 	... 14 more     [java] Caused by: org.codehaus.plexus.interpolation.InterpolationCycleException: Resolving expression: '${js-pro-path}': Detected the following recursive expression cycle: [js-pro-path]     [java] 	at org.codehaus.plexus.interpolation.StringSearchInterpolator.interpolate(StringSearchInterpolator.java:210)     [java] 	at org.codehaus.plexus.interpolation.StringSearchInterpolator.interpolate(StringSearchInterpolator.java:124)     [java] 	at org.apache.maven.project.interpolation.AbstractStringBasedModelInterpolator.interpolateInternal(AbstractStringBasedModelInterpolator.java:315)     [java] 	... 23 more     [java] [iNFO] ------------------------------------------------------------------------     [java] [iNFO] Total time: < 1 second     [java] [iNFO] Finished at: Sat Feb 05 00:42:50 GMT 2011     [java] [iNFO] Final Memory: 1M/136M     [java] [iNFO] ------------------------------------------------------------------------BUILD FAILED/home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver/buildomatic/bin/dev.xml:157: The following error occurred while executing this line:/home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver/buildomatic/bin/dev.xml:91: Java returned: 1Total time: 2 seconds*** Error code 1Stop in /home/jhelfman/ports/databases/jasperserver.*** Error code 1Stop in /home/jhelfman/ports/databases/jasperserver.
Link to comment
Share on other sites

Ug, it looks like the js-pro-path (which you don't need, of course, for the CE build) is causing a problem. It looks like js-pro-path is set to a property value and this is causing a recursion. So, if you could set js-pro-path = /home (ie any value will do. But it might need to be resolved to a real path on your system).

Also, I'm wondering about your default_master.properties file.

Did you start by using one of the sample_conf files?

  <js-src>/jasperserver/buildomatic/sample_conf/source/mysql_master.properties

This way, the template that you start with has most properties set with default values. Just curious.

Link to comment
Share on other sites

I got it to work!

 

 

appServerType = tomcat5

appServerDir = /usr/local/tomcat5.5

dbType = mysql

dbUsername = root

dbPassword = password

dbHost = localhost

maven = /usr/local/share/java/maven2/bin/mvn

js-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver

js-pro-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver

js-repo-path = /home/jhelfman/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver-repo

 

It needed js-pro-path, as well.

I'll get back to you with anymore issues.

Thanks tony!

Link to comment
Share on other sites

Ok, after install I noticed two things. One I was able to resolve, but by taking the default security file from 3.5.0

mysql -u root jasperserver < ~/jasperserver/work/jasperserver-3.5.0-src/jasperserver/./scripts/mysql/jasperserverCreateDefaultSecurity-mysql.sql

Is there a defaultsecurity file for mysql and postgresql for 4.0.0? Without this file, I couldn't get to the login screen for JasperServer.

The other issue I ran into is that the css for the webinterface doesn't appear to be working. Is there anything I can post that would help diagnose this issue other than what I have here:

Under my jasperserver directory I have a themes directory, but the page source is looking for _themes, so I renamed it. Under _themes it is looking for 5F5A58EA, so I renamed default to 5F5A58EA. 

Under this directory I have the following files:

[jhelfman@eggman /usr/local/tomcat5.5/webapps/jasperserver/_themes]$ find .

.

./pods_summer

./pods_summer/images

./pods_summer/images/button_action_jumbo_sprite.png

./pods_summer/images/button_action_primary_sprite.png

./pods_summer/images/logo.png

./pods_summer/images/button_capsule_sprite.png

./pods_summer/images/body_bkgnd.png

./pods_summer/images/search_sprite.png

./pods_summer/images/menu_primaryNav_sprite.png

./pods_summer/images/tabs_horizontal_sprite.png

./pods_summer/images/tabs_vertical_sprite.png

./pods_summer/images/frame_header_sprite.png

./pods_summer/images/disclosure_indicators_sprite.png

./pods_summer/overrides_custom.css

./reset.css

./5F5A58EA

./5F5A58EA/images

./5F5A58EA/images/frame_header_sprite.png

./5F5A58EA/images/panel_dialog_header_sprite.png

./5F5A58EA/images/button_options_sprite.png

./5F5A58EA/images/last-d.gif

./5F5A58EA/images/button_action_jumbo_primary_sprite.png

./5F5A58EA/images/last.gif

./5F5A58EA/images/menu_indicators_sprite.png

./5F5A58EA/images/panel_info_bkgd_edges_rl.png

./5F5A58EA/images/menu_context_bkgd_edges_tb.png

./5F5A58EA/images/next.gif

./5F5A58EA/images/logo.png

./5F5A58EA/images/panel_inlay_bkgd_edges_tb.png

./5F5A58EA/images/menu_dropDown_bkgd_edges_tb.png

./5F5A58EA/images/input_bkgd.png

./5F5A58EA/images/panel_inlay_bkgd.png

./5F5A58EA/images/panel_inlay_gradient_right.png

./5F5A58EA/images/button_action_jumbo_sprite.png

./5F5A58EA/images/login_welcome_ce_bkgd.jpg

./5F5A58EA/images/message_icons_sprite.png

./5F5A58EA/images/panel_info_system_bkgd_corners.png

./5F5A58EA/images/next-d.gif

./5F5A58EA/images/frame_background_sprite.png

./5F5A58EA/images/list_pressed_bkgd.png

./5F5A58EA/images/menu_context_bkgd_corners.png

./5F5A58EA/images/menu_primaryNav_sprite.png

./5F5A58EA/images/tabs_horizontal_sprite.png

./5F5A58EA/images/lists_sprite.png

./5F5A58EA/images/list_node_animation.gif

./5F5A58EA/images/panel_confirm_bkgd.png

./5F5A58EA/images/column_bkgd.png

./5F5A58EA/images/adhoc_toolbar_buttons_sprite.png

./5F5A58EA/images/panel_inset_bkgd_corners.png

./5F5A58EA/images/frame_bkgd_edges_tb.png

./5F5A58EA/images/panel_info_system_bkgd_edges_rl.png

./5F5A58EA/images/panel_info_bkgd_corners.png

./5F5A58EA/images/tabs_vertical_sprite.png

./5F5A58EA/images/menu_dropDown_bkgd_corners.png

./5F5A58EA/images/grid_20x20_bkgd.png

./5F5A58EA/images/body_bkgnd.png

./5F5A58EA/images/button_capsule_sprite.png

./5F5A58EA/images/grouper_sprite.png

./5F5A58EA/images/first.gif

./5F5A58EA/images/toolbar_bkgd.png

./5F5A58EA/images/panel_inset_bkgd_edges_tb.png

./5F5A58EA/images/panel_bkgd_edges_tb.png

./5F5A58EA/images/column_bkgd_edges_tb.png

./5F5A58EA/images/menu_context_bkgd_edges_rl.png

./5F5A58EA/images/prev-d.gif

./5F5A58EA/images/panel_inlay_bkgd_edges_rl.png

./5F5A58EA/images/menu_dropDown_bkgd_edges_rl.png

./5F5A58EA/images/frame_bkgd_corners.png

./5F5A58EA/images/menu_vertical_bkgd.png

./5F5A58EA/images/panel_sizer_sprite.png

./5F5A58EA/images/panel_inlay_gradient_left.png

./5F5A58EA/images/home_bkgd.png

./5F5A58EA/images/home_icons_sprite.png

./5F5A58EA/images/first-d.gif

./5F5A58EA/images/login_welcome_bkgd.jpg

./5F5A58EA/images/search_sprite.png

./5F5A58EA/images/panel_bkgd_corners.png

./5F5A58EA/images/frame_bkgd_edges_rl.png

./5F5A58EA/images/panel_info_bkgd_edges_tb.png

./5F5A58EA/images/tabs_horizontal_buttons_bkgd.png

./5F5A58EA/images/button_action_square_icons_sprite.png

./5F5A58EA/images/prev.gif

./5F5A58EA/images/header_primary_sprite.png

./5F5A58EA/images/button_action_primary_sprite.png

./5F5A58EA/images/button_action_sprite.png

./5F5A58EA/images/disclosure_indicators_sprite.png

./5F5A58EA/images/panel_inset_inset_bkgd.png

./5F5A58EA/images/panel_inlay_bkgd_corners.png

./5F5A58EA/images/cursor_copy.cur

./5F5A58EA/images/panel_widget_header_sprite.png

./5F5A58EA/images/cursor_copy.png

./5F5A58EA/images/wait_animation_large.gif

./5F5A58EA/images/gradient_frame.content.png

./5F5A58EA/images/panel_inset_bkgd_edges_rl.png

./5F5A58EA/images/sort_indicators_sprite.png

./5F5A58EA/images/panel_bkgd_edges_rl.png

./5F5A58EA/images/column_bkgd_edges_rl.png

./5F5A58EA/images/panel_info_system_bkgd_edges_tb.png

./5F5A58EA/images/column_bkgd_corners.png

./5F5A58EA/overrides_ie8.css

./5F5A58EA/pages.css

./5F5A58EA/controls.css

./5F5A58EA/overrides_custom.css

./5F5A58EA/dataDisplays.css

./5F5A58EA/samples.css

./5F5A58EA/lists.css

./5F5A58EA/theme.css

./5F5A58EA/dialogSpecific.css

./5F5A58EA/buttons.css

./5F5A58EA/containers.css

./5F5A58EA/overrides_ie7.css

./5F5A58EA/pageSpecific.css

./5F5A58EA/themeSpecific.css

 

The page source for the css is below.

Code:
<!-- General JasperServer Styles --> <link rel="stylesheet" href="/jasperserver/themes/reset.css" type="text/css" media="screen"> <!-- Theme -->  <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/theme.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/pages.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/containers.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/buttons.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/lists.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/controls.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/dataDisplays.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/pageSpecific.css" type="text/css" media="screen"/> <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/dialogSpecific.css" type="text/css" media="screen"/>  <!--[if IE 7.0]>    <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/overrides_ie7.css" type="text/css" media="screen"/><![endif]-->  <!--[if IE 8.0]>    <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/overrides_ie8.css" type="text/css" media="screen"/><![endif]-->  <link rel="stylesheet" href="/jasperserver/_themes/5F5A58EA/overrides_custom.css" type="text/css" media="screen"/> 
Link to comment
Share on other sites

 Two issues after the install: default security policy, css

I had to use the default security policy from mysql in 3.5.0 to be able to start jasperserver. Is there a default security policy sql for mysql and postgresql for 4.0.0?

Also the css was all messed up. It was looking for _themes/5F5A58EA however I had themes/default. I renamed the directories, and it looks a little better, but not close to I'm sure it needs to be.

See attachment for page source and list of files under themes.

I didn't look at the example file, or I don't recall, however I did use the installation document to create/verify it.

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

I've done ask explained here, but am still seeing this error:

 

assemble-export-files-pro:

BUILD FAILED
/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver/buildomatic/build.xml:149: src '/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver/export-tool/target/js-pro-export-import-tool.zip' doesn't exist.

 

default_master.properties is:

js-path=/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver
js-pro-path=/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver
js-repo-path=/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver-repo
maven = /usr/share/maven2/bin/mvn
maven.home=/usr/share/maven2

 

Any ideas?

 

 



Post Edited by kburns at 03/01/2011 17:43
Link to comment
Share on other sites

 Have you defined your:

appServerType

appServerDir

dbType

dbUsername

dbPassword

dbHost

 

?

Code:
This is my default_master.properties:appServerType = tomcat5appServerDir = /usr/local/tomcat5.5dbType = postgresqldbUsername = pgsqldbPassword = pgsqldbHost = localhostmaven = /usr/local/share/java/maven2/bin/mvnjs-path = /usr/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserverjs-pro-path = /usr/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserverjs-repo-path = /usr/ports/databases/jasperserver/work/jasperreports-server-cp-4.0.0-src/jasperserver-repo

Post Edited by jgh at 03/01/2011 17:54
Link to comment
Share on other sites

Opps, as a reply to Ernestoo, yes this is a professional 4.0 install.

If I don't have js-path or js-pro-path defined, I get this almost immediately on install-jdbc-dep

BUILD FAILED
/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver/buildomatic/bin/dev.xml:500: The following error occurred while executing this line:
/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver/buildomatic/bin/dev.xml:91: Java returned: 1


If I have both js-path and js-pro-path defined, I get the above error on assemble-export-files-pro after a minute and a half of running through the script.

BUILD FAILED
/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver/buildomatic/build.xml:149: src '/home/kburns/sandbox/jasperserver-4.0-src/js-builds/tags/jasperserver/export-tool/target/js-pro-export-import-tool.zip' doesn't exist.

 

Link to comment
Share on other sites

Ah yes, good catch. I've taken that out. As an update my default_master.properties has:

js-path=/home/kburns/jasperreports-server-4.0.0-src/jasperserver
js-pro-path=/home/kburns/jasperreports-server-4.0.0-src/jasperserver-pro
js-repo-path=/home/kburns/jasperreports-server-4.0.0-src/jasperserver-repo
maven=/usr/share/maven2/bin/mvn

And with the verbose flag I see this:

BUILD FAILED
/home/kburns/jasperreports-server-4.0.0-src/jasperserver/buildomatic/bin/dev.xml:417: The following error occurred while executing this line:
/home/kburns/jasperreports-server-4.0.0-src/jasperserver/buildomatic/bin/dev.xml:91: Java returned: 1
    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
    at org.apache.tools.ant.Main.runBuild(Main.java:801)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 9 seconds

 

Link to comment
Share on other sites

This is happening on build-pro after getting through all the setup/config/init stuff (ie install-jdbc-dep, set-pro-webapp-name, etc)

What do you mean by maven sources? My mvn looks like:

/usr/share/maven2/bin/mvn -v
Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_20
Java home: /usr/local/lib/jdk1.6.0_20/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-27-generic" arch: "amd64" Family: "unix"

Now I am getting "Failed to resolve artifact" which helps, but I'm still not sure what the instructions mean. Where can I find these jars on the "project website"? Why would they not come included with the source?

     [java] [iNFO] Failed to resolve artifact.
     [java]
     [java] Missing:
     [java] ----------
     [java] 1) jaspersoft.ji-pro:ji-license:jar:4.0.0
     [java]
     [java]   Try downloading the file manually from the project website.
     [java]
     [java]   Then, install it using the command:
     [java]       mvn install:install-file -DgroupId=jaspersoft.ji-pro -DartifactId=ji-license -Dversion=4.0.0 -Dpackaging=jar -Dfile=/path/to/file
     [java]
     [java]   Alternatively, if you host your own repository you can deploy the file there:
     [java]       mvn deploy:deploy-file -DgroupId=jaspersoft.ji-pro -DartifactId=ji-license -Dversion=4.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl= -DrepositoryId=[id]
     [java]
     [java]   Path to dependency:
     [java]       1) jaspersoft.ji-pro:ji-common:jar:4.0.0
     [java]       2) jaspersoft.ji-pro:ji-license:jar:4.0.0
     [java]
     [java] ----------
     [java] 1 required artifact is missing.
     [java]
     [java] for artifact:
     [java]   jaspersoft.ji-pro:ji-common:jar:4.0.0
     [java]
     [java] from the specified remote repositories:
     [java]   JasperForge Maven Repository (http://jasperforge.org/svn/repos/maven2),
     [java]   central (http://repo1.maven.org/maven2),
     [java]   Maven Snapshots (http://snapshots.maven.codehaus.org/maven2),
     [java]   JBoss (http://repository.jboss.org/maven2),
     [java]   js-repo-svn (file://${repo-path}),
     [java]   Repo1 Maven (http://repo1.maven.org/maven2/)
     [java]
     [java]
     [java]
     [java] [iNFO] ------------------------------------------------------------------------
     [java] [iNFO] For more information, run Maven with the -e switch
     [java] [iNFO] ------------------------------------------------------------------------
     [java] [iNFO] Total time: 4 seconds
     [java] [iNFO] Finished at: Wed Mar 02 12:57:13 EST 2011
     [java] [iNFO] Final Memory: 43M/238M
     [java] [iNFO] ------------------------------------------------------------------------

 

I am using the 4.0 professional source, but the strangest thing is that when I run js-ant build-ce, it compiles successfully.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...