Hi Claudia,

Thanks for reply.

Well, I had add the class in the launcher.xml file and tried to test, but
it doesn't work.
The same error message appears.

Let me know what i done exactly.

First, i created a directory in
[dspace-src]/dspace-api/src/main/java/org/dspace/
named "test" and created a TestPrint.java .

In my launcher.xml:

<command>
        <name>test</name>
        <description>JAVA Test</description>
        <step passuserargs="false">
            <class>org.dspace.test.TestPrint</class>
        </step>
    </command>

So, i restart the Tomcat Server and tried to execute the command:

[dspace]/bin$ ./dspace test

Have I mistake something?

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


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

Reply via email to