Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#187 closed defect (fixed)

SECORE deployment: missing libs.CopyLibs.classpath property

Reported by: pcampalani Owned by: mrusu
Priority: major Milestone:
Component: secore Version:
Keywords: Cc: pbaumann
Complexity:

Description (last modified by pcampalani)

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 Changed 5 years ago by pcampalani

  • Description modified (diff)

comment:2 Changed 5 years ago by dmisev

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

comment:3 Changed 5 years ago by pcampalani

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

comment:4 follow-up: Changed 5 years ago by 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

comment:5 Changed 5 years ago by pcampalani

  • Resolution set to invalid
  • Status changed from new to closed

comment:6 in reply to: ↑ 4 Changed 5 years ago by dmisev

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 Changed 5 years ago by dmisev

  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:8 Changed 5 years ago by mrusu

  • Status changed from reopened to accepted

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 Changed 5 years ago by dmisev

  • Cc pbaumann added

I checked and it seems like it fixes it!

comment:10 Changed 5 years ago by dmisev

  • Resolution set to fixed
  • Status changed from accepted to closed

comment:11 Changed 5 years ago by dmisev

Note: See TracTickets for help on using tickets.