#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 )
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 , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
comment:3 by , 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).
follow-up: 6 comment:4 by , 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 , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:6 by , 12 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 , 12 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:8 by , 12 years ago
Status: | reopened → 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:10 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Fixed by changeset:a69e3e7
I thought I've fixed this, do you still get this error? Somehow I don't get it..