What exactly is your problem? Does the deploy works or does it fail? If it
fails what is the error message and what’s in the log files?
The problem I had with Netbeans was that the deployment failed because DSpace
was unable to find its configuration. Without configuration DSpace did not have
the credentials to connect to the database... In Netbeans it is possible to set
properties, so that XMLUI will find the dspace installation directory and the
configuration in it.
Regards,
Pascal
From: Sara Amato [mailto:[email protected]]
Sent: Tuesday, January 22, 2013 5:56 PM
To: dspace-tech
Subject: Re: [Dspace-tech] running dspace 3.x xmlui in Eclipse
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]<https://outlook.manchester.ac.uk/owa/redir.aspx?C=b28b5bdd1a91425abf8e32748c93f487&URL=mailto%3abenjamin.ryan%40manchester.ac.uk>
------------------------------------------------------------------
From: Coelho Eliana [mailto:[email protected]]
Sent: 18 January 2013 17:11
To: [email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[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]>
[mailto:[email protected]] De la part de helix84
Envoyé : 18 janvier 2013 10:50
À : Coelho Eliana
Cc : [email protected]<mailto:[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<http://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]<mailto:[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