Re: [Dspace-tech] Execute Java Class Problem

2012-05-22 Thread Daniel Shin
Mark,

It's working now.


Thanks,

Daniel

2012/5/22 Mark Diggory mdigg...@atmire.com

 Daniel,

 Classes placed in the dspace-xmlui or other webapplication projects are
 not available from the commandline.  I would recommend you just move it to
 dspace-api/src/main/java/  so you can get to it from the commandline as
 well.

 Mark


 On Mon, May 21, 2012 at 8:37 AM, Daniel Shin danielshin...@gmail.comwrote:

 Hi Mark,

 My Test class  was created in the
 [dspace-src]/dspace/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser.

 The Java class is working now.
 The problem was with Maven build project.


 Thanks for reply.

 Daniel

 Message: 1
 Date: Mon, 7 May 2012 13:12:50 -0300
 From: Daniel Shin danielshin...@gmail.com
 Subject: [Dspace-tech] Execute Java Class Problem
 To: dspace-tech@lists.sourceforge.net
 Message-ID:
CA+8XBTSMZryCKvBuQ2nCn78BNFQgGAV6SRf2VT1c3B2JG=
 k...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Hi,

 I created a simple Java Class for test in
 [dspace-src]/dspace-api/src/main/java/org/dspace/test that print test.
 I typed the command in [dspace]/bin: ./dspace dsrun
 org.dspace.test.TestPrint

 Follow the message error:  Error in launcher.xml: Invalid class name:
 org.dspace.test.TestPrint.

 I executed the maven to compile the class before.

 Any suggestion?


 Thanks,

 Daniel
 -- next part --
 An HTML attachment was scrubbed...

 --

 Message: 2
 Date: Mon, 07 May 2012 18:32:05 +0200
 From: Claudia J?rgen  claudia.juer...@ub.tu-dortmund.de
 Subject: Re: [Dspace-tech] Execute Java Class Problem
 To: dspace-tech@lists.sourceforge.net
 Message-ID: 4fa7f905.4080...@ub.tu-dortmund.de
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Hello Daniel,

 since 1.6 the DSpace Command Launcher is used.

 You got to add the class to the configuration file
 [dspace]/config/launcher.xml


 Then you can execute it using
 [dspace]/bin/dspace [Name as configured in launcher.xml]

 For Details see the Documentation

 https://wiki.duraspace.org/display/DSDOC18/Application+Layer#ApplicationLayer-DSpaceCommandLauncher

 Hope this helps

 Claudia J?rgen


 Date: Mon, 7 May 2012 14:42:58 -0700
 From: Mark Diggory mdigg...@atmire.com
 Subject: Re: [Dspace-tech] Execute Java Class Problem
 To: claudia.juer...@ub.tu-dortmund.de
claudia.juer...@ub.tu-dortmund.de
 Cc: dspace-tech@lists.sourceforge.net
dspace-tech@lists.sourceforge.net
 Message-ID:
CAMA9Da6p=
 1peprzmuy7trdqxcszlgpzceqo02gjnrc4w7fd...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8

 His command should still be reasonable.  Where are you placing the
 customized java class you are trying to add?

 Regards,
 Mark




 --
 [image: @mire Inc.]
 *Mark Diggory *(Schedule a Meeting https://tungle.me/markdiggory)
 *2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010*
 *Esperantolaan 4, Heverlee 3001, Belgium*
 http://www.atmire.com



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Execute Java Class Problem

2012-05-21 Thread Mark Diggory
Daniel,

Classes placed in the dspace-xmlui or other webapplication projects are not
available from the commandline.  I would recommend you just move it to
dspace-api/src/main/java/  so you can get to it from the commandline as
well.

Mark


On Mon, May 21, 2012 at 8:37 AM, Daniel Shin danielshin...@gmail.comwrote:

 Hi Mark,

 My Test class  was created in the
 [dspace-src]/dspace/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser.

 The Java class is working now.
 The problem was with Maven build project.


 Thanks for reply.

 Daniel

 Message: 1
 Date: Mon, 7 May 2012 13:12:50 -0300
 From: Daniel Shin danielshin...@gmail.com
 Subject: [Dspace-tech] Execute Java Class Problem
 To: dspace-tech@lists.sourceforge.net
 Message-ID:
CA+8XBTSMZryCKvBuQ2nCn78BNFQgGAV6SRf2VT1c3B2JG=k...@mail.gmail.com
 
 Content-Type: text/plain; charset=iso-8859-1

 Hi,

 I created a simple Java Class for test in
 [dspace-src]/dspace-api/src/main/java/org/dspace/test that print test.
 I typed the command in [dspace]/bin: ./dspace dsrun
 org.dspace.test.TestPrint

 Follow the message error:  Error in launcher.xml: Invalid class name:
 org.dspace.test.TestPrint.

 I executed the maven to compile the class before.

 Any suggestion?


 Thanks,

 Daniel
 -- next part --
 An HTML attachment was scrubbed...

 --

 Message: 2
 Date: Mon, 07 May 2012 18:32:05 +0200
 From: Claudia J?rgen  claudia.juer...@ub.tu-dortmund.de
 Subject: Re: [Dspace-tech] Execute Java Class Problem
 To: dspace-tech@lists.sourceforge.net
 Message-ID: 4fa7f905.4080...@ub.tu-dortmund.de
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Hello Daniel,

 since 1.6 the DSpace Command Launcher is used.

 You got to add the class to the configuration file
 [dspace]/config/launcher.xml


 Then you can execute it using
 [dspace]/bin/dspace [Name as configured in launcher.xml]

 For Details see the Documentation

 https://wiki.duraspace.org/display/DSDOC18/Application+Layer#ApplicationLayer-DSpaceCommandLauncher

 Hope this helps

 Claudia J?rgen


 Date: Mon, 7 May 2012 14:42:58 -0700
 From: Mark Diggory mdigg...@atmire.com
 Subject: Re: [Dspace-tech] Execute Java Class Problem
 To: claudia.juer...@ub.tu-dortmund.de
claudia.juer...@ub.tu-dortmund.de
 Cc: dspace-tech@lists.sourceforge.net
dspace-tech@lists.sourceforge.net
 Message-ID:
CAMA9Da6p=1peprzmuy7trdqxcszlgpzceqo02gjnrc4w7fd...@mail.gmail.com
 
 Content-Type: text/plain; charset=utf-8

 His command should still be reasonable.  Where are you placing the
 customized java class you are trying to add?

 Regards,
 Mark




-- 
[image: @mire Inc.]
*Mark Diggory *(Schedule a Meeting https://tungle.me/markdiggory)
*2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
http://www.atmire.com
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Execute Java Class Problem

2012-05-07 Thread Claudia Jürgen
Hello Daniel,

since 1.6 the DSpace Command Launcher is used.

You got to add the class to the configuration file
[dspace]/config/launcher.xml


Then you can execute it using
[dspace]/bin/dspace [Name as configured in launcher.xml]

For Details see the Documentation
https://wiki.duraspace.org/display/DSDOC18/Application+Layer#ApplicationLayer-DSpaceCommandLauncher

Hope this helps

Claudia Jürgen


Am 07.05.2012 18:12, schrieb Daniel Shin:
 Hi,

 I created a simple Java Class for test in
 [dspace-src]/dspace-api/src/main/java/org/dspace/test that print test.
 I typed the command in [dspace]/bin: ./dspace dsrun
 org.dspace.test.TestPrint

 Follow the message error:  Error in launcher.xml: Invalid class name:
 org.dspace.test.TestPrint.

 I executed the maven to compile the class before.

 Any suggestion?


 Thanks,

 Daniel




 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/



 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

-- 
Claudia Juergen
Universitaetsbibliothek Dortmund
Eldorado
0231/755-4043
https://eldorado.tu-dortmund.de/

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Execute Java Class Problem

2012-05-07 Thread Mark Diggory
His command should still be reasonable.  Where are you placing the
customized java class you are trying to add?

Regards,
Mark

On Monday, May 7, 2012, Claudia Jürgen wrote:

 Hello Daniel,

 since 1.6 the DSpace Command Launcher is used.

 You got to add the class to the configuration file
 [dspace]/config/launcher.xml


 Then you can execute it using
 [dspace]/bin/dspace [Name as configured in launcher.xml]

 For Details see the Documentation

 https://wiki.duraspace.org/display/DSDOC18/Application+Layer#ApplicationLayer-DSpaceCommandLauncher

 Hope this helps

 Claudia Jürgen


 Am 07.05.2012 18:12, schrieb Daniel Shin:
  Hi,
 
  I created a simple Java Class for test in
  [dspace-src]/dspace-api/src/main/java/org/dspace/test that print test.
  I typed the command in [dspace]/bin: ./dspace dsrun
  org.dspace.test.TestPrint
 
  Follow the message error:  Error in launcher.xml: Invalid class name:
  org.dspace.test.TestPrint.
 
  I executed the maven to compile the class before.
 
  Any suggestion?
 
 
  Thanks,
 
  Daniel
 
 
 
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 
 
 
  ___
  DSpace-tech mailing list
  DSpace-tech@lists.sourceforge.net javascript:;
  https://lists.sourceforge.net/lists/listinfo/dspace-tech

 --
 Claudia Juergen
 Universitaetsbibliothek Dortmund
 Eldorado
 0231/755-4043
 https://eldorado.tu-dortmund.de/


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net javascript:;
 https://lists.sourceforge.net/lists/listinfo/dspace-tech



-- 
[image: @mire Inc.]
*Mark Diggory *(Schedule a Meeting https://tungle.me/markdiggory)
*2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
http://www.atmire.com
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech