You may want to wait for a more authoritative answer on this, since deleting 
stuff is always troublesome -- but when this happened to us, we deleted the 
contents of the target directories (dspace/target/dspace-1.5.0-build.dir/ and 
dspace/modules/jspui/target/jspui-1.5.0) and ran mvn package again; the 
directories were rebuilt by maven.  You could backup and try this; or you could 
wait for somebody on the actual dspace development team (I'm not) to scream 
"No!  Don't do that!"

Cheers,

Bill
 
Bill Anderson
Software Developer
Digital Library Development
Georgia Tech Library

----- "George Kozak" <g...@cornell.edu> wrote:

| Thanks, Bill:
| 
| Yes, I have had problems with the jsps.  My new classes did not end up
| 
| in WEB-INF/classes nor did they end up in my dspace build.  I didn't
| see 
| any maven errors.  So, I guess I will have to do some digging. 
| Thanks!
| 
| bill.ander...@library.gatech.edu wrote:
| > Hi, George.  I assume you copied the entire package path as a
| directory structure under java/org/dspace, and restarted Tomcat.  Did
| the new files compile correctly when you ran mvn package?  If so, I
| can think of three things that have happened to us in the past:  
| >
| > 1) We've occassionally had to clean out the tomcat work directory to
| get new code to run.  The java classes aren't in there, of course; but
| the cached jsps seem to get stuck sometimes, and continue to call the
| code from the dspace libs.
| >
| > 2) Check to make sure your new classes are actually in the deployed
| app (jspui/WEB-INF/classes/).  If they aren't, then check to be sure
| they're being copied to the target directory in your dspace build.  
| >
| > 3) If you're running any of these classes from outside the jspui
| (from the command line, for instance), then the updated class files
| have to be copied to the appropriate jar in the dspace lib directory. 
| I assume you're not running the bitstream code from the command line,
| but include this for completeness.
| >
| > Let me know if any of this helps.
| >
| > Cheers,
| >
| > Bill
| >
| > Bill Anderson
| > Software Developer
| > Digital Library Development
| > Georgia Tech Library
| >
| > ----- "George Kozak" <g...@cornell.edu> wrote:
| >
| > | Hi...
| > | 
| > | I wanted to put in a "local" change to two java programs.  This is
| my
| > | 
| > | first time with DSpace .1.5.2 (I have been working with DSpace
| 1.4.2).
| > |  
| > | These local mods were our modified version of Terry Owen's (U of 
| > | Maryland) Embargo code.
| > | 
| > | I went to 
| > |
| [dspace-1.5.2-src-release]/dspace/modules/jspui/src/main/java/org/dspace/
| > | 
| > | I put in my own versions of 
| app/webui/serlvet/BitstreamServlet.java
| > | and content/Bitstream.java
| > | 
| > | I ran "mvn package" and then "ant -Dconfig=[dspace 
| > | main]/config/dspace.cfg update"
| > | and copied the new webapps over to Tomcat.
| > | 
| > | However, when I execute my code, I do not seem to be getting my
| unique
| > | 
| > | versions of BitstreamServlet.java and Bitstream.java.  It acts
| like it
| > | 
| > | would if it was using the vanilla versions of these modules.
| > | 
| > | Did I do this wrong?  Does the modified java code go elsewhere?
| > | 
| > | -- 
| > | ***************************
| > | George Kozak
| > | Digital Library Specialist
| > | Division of Library Information Technologies (DLIT), Digital
| Media
| > | Group
| > | 501 Olin Library
| > | Cornell University
| > | 607-255-8924
| > | ***************************
| > | g...@cornell.edu
| > | 
| > | 
| > |
| ------------------------------------------------------------------------------
| > | Enter the BlackBerry Developer Challenge  
| > | This is your chance to win up to $100,000 in prizes! For a
| limited
| > | time, 
| > | vendors submitting new applications to BlackBerry App World(TM)
| will
| > | have 
| > | the opportunity to enter the BlackBerry Developer Challenge. See
| full
| > | prize 
| > | details at: http://p.sf.net/sfu/blackberry
| > | _______________________________________________
| > | DSpace-tech mailing list
| > | DSpace-tech@lists.sourceforge.net
| > | https://lists.sourceforge.net/lists/listinfo/dspace-tech
| >   
| 
| -- 
| ***************************
| George Kozak
| Digital Library Specialist
| Division of Library Information Technologies (DLIT), Digital Media
| Group
| 501 Olin Library
| Cornell University
| 607-255-8924
| ***************************
| g...@cornell.edu

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to