Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#187 closed defect (fixed)

SECORE deployment: missing libs.CopyLibs.classpath property

Reported by: Piero Campalani Owned by: mrusu
Priority: major Milestone:
Component: secore Version:
Keywords: Cc: Peter Baumann
Complexity: Medium

Description (last modified by Piero Campalani)

To install SECORE you need to run ./deploy from
~rasdaman/rasdaman/applications/secore.
When you run it, it says that you must set the property
libs.CopyLibs.classpath, which you can do (from secore-web/
directory) by running:

(1)$ ant -Dlibs.CopyLibs.classpath=/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar

But then compilation fails because the servlet API library for java
is not in the path.
In theory, to add libraries in the ANT compilation you can add the
jar in $ANT_HOME/lib/ or in ~/.ant/lib but in both cases ANT does not seem to care.
Adding the required jar explicitly in the classpath variable of
./secore-web/project.properties, that is
/usr/local/apache-ant-1.8.4/lib/servlet-2_5-api.jar, the command
(1) works and successfully builds.

This way *apparently* the property libs.CopyLibs.classpath was set, but then
running the ./deploy script again, still complaints about this
missing property.

Change History (11)

comment:1 by Piero Campalani, 12 years ago

Description: modified (diff)

comment:2 by Dimitar Misev, 12 years ago

I thought I've fixed this, do you still get this error? Somehow I don't get it..

comment:3 by Piero Campalani, 12 years ago

This problem is specific to my local configurations (user rights, etc): setting the classpath from Netbeans simply does the trick (thanks Alireza).

comment:4 by a.rezaeim@…, 12 years ago

It needs to be explicitly set in netbeans as follows:
in Tools→Options→Java→ant add the following as property:
libs.CopyLibs.classpath≤path to netbean instalaltion folder>/java/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar

comment:5 by Piero Campalani, 12 years ago

Resolution: invalid
Status: newclosed

in reply to:  4 comment:6 by Dimitar Misev, 11 years ago

Replying to a.rezaeim@…:

It needs to be explicitly set in netbeans as follows:
in Tools→Options→Java→ant add the following as property:
libs.CopyLibs.classpath≤path to netbean instalaltion folder>/java/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar

That doesn't seem to work, and we need a better fix anyway, that doesn't require action by whoever wants to build secore.

comment:7 by Dimitar Misev, 11 years ago

Resolution: invalid
Status: closedreopened

comment:8 by mrusu, 11 years ago

Status: reopenedaccepted

Submitted a patch which adds it to project.properties again. Hopefully it works. I also found this note regarding CopyLibs: "It seems like the error happens after upgrading the libraries, or running the ant build outside Netbeans in command shell, or continuus integration like hudson." (http://www.adam-bien.com/roller/abien/entry/how_to_fix_the_libs)

comment:9 by Dimitar Misev, 11 years ago

Cc: Peter Baumann added

I checked and it seems like it fixes it!

comment:10 by Dimitar Misev, 11 years ago

Resolution: fixed
Status: acceptedclosed

comment:11 by Dimitar Misev, 11 years ago

Note: See TracTickets for help on using tickets.