The Netbeans thread prompts me to ask how to do this in Eclipse. I can do the
Maven and ANT builds and get all the correct files, but am having trouble with
the tomcat run configuration (at least I think that is where my problem is, I'm
rather new at this…but can run other servlets) Any advice on how to run the
xmlui in Eclipse would be greatly appreciated.
The directions I've found on the web for Eclipse and DSpace are rather sparse,
though if I get this working I'd be willing to update them, given the caveat
that they might be from a naive perspective.
On Jan 18, 2013, at 10:50 PM, Benjamin Ryan wrote:
> Coelho,
> Change the line in startup.bat (around line 57) to call
> "%EXECUTABLE%" jpda start %CMD_LINE_ARGS% this will start Tomcat in debug
> mode.
> Then when Tomcat is running from the Debug menu “Attach
> Debugger...” and fill in the values.
> Use Java Debugger (JPDA), transport dt_socket and port 8000.
> You should then be able to set breakpoints and step through
> the code.
>
> Regards,
> Ben
>
> ------------------------------------------------------------------
> Dr Ben Ryan
> Jorum Technical Manager
>
> 5.12 Roscoe Building
> The University of Manchester
> Oxford Road
> Manchester
> M13 9PL
> Tel: 0160 275 6039
> E-mail: [email protected]
> ------------------------------------------------------------------
>
> From: Coelho Eliana [mailto:[email protected]]
> Sent: 18 January 2013 17:11
> To: [email protected]
> Cc: [email protected]
> Subject: Re: [Dspace-tech] running dspace xmlui in netbeans
>
> Hello,
>
> No, after building the application there is nothing inside the
> [dspace]/webapps/xmlui/WEB-INF/classes/ as you can see in the below screen
> capture:
>
> <image001.png>
>
>
> Attached the xmlui.xconf file.
>
> What is surpring is the fact that when I run the application NOT in
> netbeans, everything works, as you can see in the following image:
>
> <image002.jpg>
>
>
> However, when I run the application inside netbeans (I would like to see the
> code and follow the execution with the debugger), there is the problem of
> discovery aspect “not found”. I follow this instructions in order to run the
> xmlui web application in netbeans:
>
> · Select the project for the Web Application you wish to run through
> Tomcat (e.g. "DSpace XML-UI (Manakin) :: Web Application Resources" for the
> XMLUI). This project must be a "war" based project, as Tomcat only runs WAR
> files.
> · Right click on your selected project and click "Properties"
> · From the Properties window, select the "Run" category.
> · From these Run settings, you'll want to specify the Server which
> this application should run on. Select your newly configured Tomcat server.
> · Also, specify a "Context Path". This should be the ending path on
> the URL. For example, specifying "/xmlui" will mean your web application will
> be available from "http://localhost:8080/xmlui"
> · Now, click over to the "Actions" category on the left.
> · You'll see a list of Actions on the right. Click on the "Run
> Project" action (as this is the one used to run your web application).
> · In that Action's "Set Properties" section, add a property to point
> it to your DSpace installation. The following is an example on Windows,
> assuming that you've installed DSpace to "C:/dspace/":
>
> · For DSpace 1.8.x or lower, set the property:
> dspace.config=C:/dspace/config/dspace.cfg (make sure to include this entire
> line – also, do NOT include quotes around the file path)
> · Finally, click "OK" at the bottom to save all your new project
> settings.
>
>
> I understand that when netbeans runs this application it generates a war file
> in the xmlui application webapps directory. This war is executed by tomcat
> inside netbeans and it is the application that produces the error:
>
>
> <image003.png>
>
>
> Thank you for trying to help me !
>
> Eliana
>
>
>
> -----Message d'origine-----
> De : [email protected] [mailto:[email protected]] De la part de helix84
> Envoyé : 18 janvier 2013 10:50
> À : Coelho Eliana
> Cc : [email protected]
> Objet : Re: [Dspace-tech] running dspace xmlui in netbeans
>
> Is the [dspace]/webapps/xmlui/WEB-INF/classes/aspects/Discovery/sitemap.xmap
> file present? Did you try to customize it in any way?
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912_______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette