I just put in the patch and it worked.  

Thank you!
-Jose

-----Original Message-----
From: Tim Donohue [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2008 1:17 PM
To: Blanco, Jose
Cc: [email protected]
Subject: Re: [Dspace-tech] Removing the 1st step from submission.

Jose & All,

I've verified that there is a *bug* in the *1.5.0 JSPUI* and *1.5.1beta
JSPUI* which means that custom, non-interactive steps (like the
InitializationStep I sent out earlier) do not work properly (i.e. they
will always throw an error when encountered).

I've just fixed this bug in the latest DSpace 1.5.x branch, which means
it will be fixed in the eventual 1.5.1 final release.

This bug doesn't affect the XMLUI, so everything works fine with that
interface in both 1.5.0 and 1.5.1-beta.

If you wanted a fix *before* the 1.5.1 final release, I also uploaded a
patch to SourceForge:

https://sourceforge.net/tracker/index.php?func=detail&aid=2095402&group_
id=19984&atid=119984

The only file affected is the org.dspace.app.webui.submit.JSPStepManager
from the 'dspace-jspui-api' module.

- Tim


Tim Donohue wrote:
> Jose,
> 
> It looks like there *may* be a bug in the 1.5.0 JSPUI regarding these 
> non-interactive steps...though I haven't been able to look at it close

> enough to be 100% sure.  The InitializationStep I sent you works fine 
> with the XMLUI (which is what I'm working with).  I'll look into the 
> problems with the JSPUI, though I may not get to it till tomorrow.
> 
> I'll let you know what I find out.
> 
> - Tim
> 
> Blanco, Jose wrote:
>> Tim:
>>
>> I'm getting a different error now:
>>
>> 2008-09-03 13:27:50,426 ERROR
>> org.dspace.app.webui.servlet.SubmissionController @ Error loading 
>> step
>> class'org.dspace.submit.step.InitializationStep':
>> java.lang.NullPointerException
>>         at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:269)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>> der
>> .java:1278)
>>         at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>> der
>> .java:1209)
>>         at
>>
org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java:
>> 145)
>>         at org.dspace.app.webui.servlet.SubmissionC
>>
>> -----Original Message-----
>> From: Tim Donohue [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, September 03, 2008 12:29 PM
>> To: Blanco, Jose
>> Cc: [email protected]
>> Subject: Re: [Dspace-tech] Removing the 1st step from submission.
>>
>> Jose,
>>
>> It looks like you didn't rebuild everything properly. The error is 
>> saying that it cannot find that new Java class.  Generally, you 
>> should be doing the following:
>>
>> (1) Place that file in 
>> "dspace-api/src/main/java/org/dspace/submit/step/".   Alternatively,
if 
>> you didn't have the 'dspace-api' source checked out, you could place 
>> it in 
>> "[dspace-src]/dspace/modules/xmlui/src/main/java/org/dspace/submit/st
>> ep/
>> " 
>> (the latter path just adds the java code to the "overlay" for your 
>> XMLUI
>> ONLY!)
>>
>> (2) Re-package via Maven:
>> mvn package
>>
>> (3) Re-Install updated JAR/WAR to your installation location:
>> cd /dspace/target/dspace-1.5.0-build.dir/
>> ant update
>>
>> (4) Copy over the updated item-submission.xml to your installation 
>> directory (i.e. [dspace]/config/item-submission.xml)
>>
>> (5) Restart Tomcat  (Don't forget to copy new WAR over to Tomcat 
>> /webapps, before you restart.)
>>
>> I hope that helps...
>>
>> - Tim
>>
>>
>> Blanco, Jose wrote:
>>> Tim:
>>>
>>> I put the file in
>>> dspace-api/src/main/java/org/dspace/submit/step/
>>>
>>> I configured the file like this:
>>>
>>>       <step>
>>>     
>>> <processing-class>org.dspace.submit.step.InitializationStep</process
>>> in
>>> g-
>>> class>
>>>     <workflow-editable>false</workflow-editable>
>>>       </step>
>>>
>>> But I'm getting this error:
>>>
>>> 2008-09-03 12:14:57,076 ERROR
>>> org.dspace.app.webui.servlet.SubmissionController @ Error loading 
>>> step
>>> class'org.dspace.submit.step.InitializationStep':
>>> java.lang.ClassNotFoundException:
>>> org.dspace.submit.step.InitializationStep
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
>>> ad
>>> er
>>> .java:1363)
>>>         at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
>>> ad
>>> er
>>> .java:1209)
>>>         at
>>>
>>
org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java:
>>> 124)
>>>         at
>>> org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionC
>>> on
>>> tr
>>> oller.jav
>>>
>>> -----Original Message-----
>>> From: Tim Donohue [mailto:[EMAIL PROTECTED]
>>> Sent: Wednesday, September 03, 2008 10:50 AM
>>> To: Blanco, Jose
>>> Cc: [email protected]
>>> Subject: Re: [Dspace-tech] Removing the 1st step from submission.
>>>
>>> Jose,
>>>
>>> We created a custom "invisible" step in our DSpace 1.5 Submission 
>>> process, in order to set some defaults and remove that 1st "Initial 
>>> Questions" step.  I've attached our InitializationStep.java to this 
>>> email, for your usage/modification (and for anyone else interested).
>>> Once you have the source code in place, you should be able to enable

>>> it in your item-submission.xml with the following:
>>>
>>> <step>
>>> <processing-class>edu.uiuc.dspace.submit.step.InitializationStep</pr
>>> oc
>>> es
>>> sing-class>
>>> <workflow-editable>false</workflow-editable>
>>> </step>
>>>
>>> (Obviously, don't forget to remove or comment out the configuration 
>>> for the "InitialQuestionsStep" in your item-submission.xml)
>>>
>>> Yes, I need to writeup a simple little "How-To" on the DSpace Wiki 
>>> for this one.  But, until then, I thought I'd just send this out via

>>> the list :)
>>>
>>> - Tim
>>>
>>>
>>> Blanco, Jose wrote:
>>>> I would like to remove the 1st step from the submission.  I have 
>>>> already taken care of the title and publisher questions that appear

>>>> in the 1st step, and I would like now to have it assume that there 
>>>> are multiple files for the submission.  I think that the easiest 
>>>> way to do this is to call the WorkspaceItem.setMultiplefiles method

>>>> with true, but I'm not sure from where, since it's normally called 
>>>> when the initial questions page is processed.  Any ideas?
>>>>
>>>> Thanks!
>>>> Jose
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> -
>>>> --- This SF.Net email is sponsored by the Moblin Your Move 
>>>> Developer's challenge Build the coolest Linux based applications 
>>>> with Moblin SDK & win great prizes Grand prize is a trip for two to

>>>> an Open Source event anywhere in the world 
>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>> _______________________________________________
>>>> DSpace-tech mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>>
>>> --
>>> Tim Donohue
>>> Research Programmer, Illinois Digital Environment for Access to 
>>> Learning and Scholarship (IDEALS) University of Illinois at 
>>> Urbana-Champaign [EMAIL PROTECTED] | (217) 333-4648
>>>
>> --
>> Tim Donohue
>> Research Programmer, Illinois Digital Environment for Access to 
>> Learning and Scholarship (IDEALS) University of Illinois at 
>> Urbana-Champaign [EMAIL PROTECTED] | (217) 333-4648
>>
> 

--
Tim Donohue
Research Programmer, Illinois Digital Environment for Access to Learning
and Scholarship (IDEALS) University of Illinois at Urbana-Champaign
[EMAIL PROTECTED] | (217) 333-4648


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to