You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-user@portals.apache.org by Ashley Wright <a2...@qut.edu.au> on 2006/01/25 00:55:02 UTC

Help with Swing Consumer

Hi,

I am new to WSRP and I wanted to try out WSRP4J. I have downloaded the 
source code from the SVN server. I have followed the installation steps 
at http://portals.apache.org/wsrp4j/gettingstarted/installation.html. 
When I start up the Swing Consumer I get a lot of errors:

No title available! - 1_0.1
org.apache.wsrp4j.exception.WSRPException: Producer didn't provide a 
valid service description.

In the catalina.out file there are a lot of null pointer exceptions.

Just wondering what needs to be done to get the Swing Consumer working 
out of the box.

Thanks,
Ashley

-- 
Ashley Wright
3864 9264
a2.wright@qut.edu.au
HPC and Research Support Group
Queensland University of Technology (QUT)


Re: Help with Swing Consumer

Posted by Graham Klyne <gr...@oucs.ox.ac.uk>.
Ashley Wright wrote:
> Hi Graham,
> 
> That is fairly much what I have done so far. You have a link to
> http://mail-archives.apache.org/mod_mbox/ws-wsrp4j-user/200601.mbox/%3c41AB0A86E101A34FA839E3C199628AC92FA619@samantha.ceridwen.com%3e
> 
> This link does not work for me. Do you have a copy of this email?

Ashley, I don't know if you had any more progress on your wsrp4j problem, but we
found an omission in my instructions about:
[[
In directory wsrp/portlets/build, ensure that files calc.include.example and
wsrptest.include.example have been renamed or copied as calc.include and
wsrptest.include. (These are sentinel files that tell the build procedure to
install the corresponding portlets.)
]]

The wiki page instructions have been updated now, and with that change we've had
the setup described there working on two separate machines.

#g

-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services


Re: Help with Swing Consumer

Posted by Graham Klyne <gr...@oucs.ox.ac.uk>.
Hmmm... The message was on the wsrp4j-user mailing list on 2006-01-12.  The link
is indeed broken.  I can't tell if this was my problem or the mailing list
archive web site.

The mail archive link appears to have changed.  (Whatever happened to "cool URIs
don't change?" [1] - I'd have thought Apache Foundation would be sensitive to
that issue.)

I also find that I am denied access to the archive messages (i.e. the links from
[2]), so that looks like another problem.

[1] http://www.w3.org/Provider/Style/URI
[2] http://mail-archives.apache.org/mod_mbox/portals-wsrp4j-user/

So, anyway, the salient content of the message to which I was referring is this:
[[
The solution to this problem is depressingly simple compared to the time
I spent today painstakingly single stepping the source code to both
WSRP4J and Pluto to indentify the problem. There is just one file
(WEB-INF/data/xml/servletdefinitionmapping.xml) which is out of sync
with the version of pluto used in WSRP4J and replacing this with the
file from Pluto1.0.1 solves the null pointer exception encountered late
last year. This is used to map the XML structure of web.xml files into a
Java class defined in Pluto. The result of the mismatch was that castor
was throwing an error about a missing public property in the Java class.

The result of this is that during initialisation the pluto
PortletDefinitionRegistryService doesn't start due to this castor
exception. So when WSRP4J tries to get the Portlet description, Pluto
first tries to get the current running PortletDefinitionRegistryService
which returns a null pointer, and then tries to execute method on this
service, hence the null pointer exception.

So here are all the steps needed to get from a check out of the current
source (revision 368445 as of 12 Jan 2005) to a version that compiles
and works incorporating the things that Graham and myself have
discovered:

i) replace
wsrp/provider/pluto/war/WEB-INF/data/xml/servletdefinitionmapping.xml
with the one attached to this e-mail (fixes the castor error and hence
the null pointer error)
ii) replace wsrp/build/build.xml with the attached file (this fixes the
fact that the build file references an earlier version of castor no
longer present in the repository)
iii) edit wsrp/SwingConsumer/setcpath.bat replace set
CLASSPATH=%CLASSPATH%;.\lib\castor-0.9.4.1-xml.jar with set
CLASSPATH=%CLASSPATH%;.\lib\castor-0.9.5.3.jar (as above - I wo'n't
attach an edited version as some mail systems don't like batch files as
attachments)
iv) put the attached web.xml into wsrp/portlets/wsrptest/war/WEB-INF
(somehow this file appears to have gone missing but without it the test
portlets don't work!)
v) if running on JDK 1.5, copy the following files from
/wsrp/lib/consumer to /wsrp/lib : xercesImpl-2.5.0.jar,
xercesImpl-2.5.0.LICENSE, xml-apis-2.5.0.jar, xml-apis-2.5.0.LICENSE

After that you can then go through the normal build procedure of copying
and editing the various .EXAMPLE build files and running the build
scripts in wsrp/build.
]]

I've also added a copy of these comments to the wiki page (for now)

#g
--

Ashley Wright wrote:
> Hi Graham,
> 
> That is fairly much what I have done so far. You have a link to
> http://mail-archives.apache.org/mod_mbox/ws-wsrp4j-user/200601.mbox/%3c41AB0A86E101A34FA839E3C199628AC92FA619@samantha.ceridwen.com%3e
> 
> This link does not work for me. Do you have a copy of this email?
> 
> Thanks,
> Ashley
> 
> Ashley Wright
> 3864 9264
> a2.wright@qut.edu.au
> HPC and Research Support Group
> Queensland University of Technology (QUT)
> 
> 
> 
> Graham Klyne wrote:
> 
>> Ashley,
>>
>> We are noting some similar problems.  You might find some helpful
>> hints here:
>>  http://wiki.oss-watch.ac.uk/Wsrp4jNotes
>> (and in the referenced message -- that may explain your null pointer
>> errors)
>>
>> #g
>> -- 
>>
>> Ashley Wright wrote:
>>  
>>
>>> Hi,
>>>
>>> I am new to WSRP and I wanted to try out WSRP4J. I have downloaded the
>>> source code from the SVN server. I have followed the installation steps
>>> at http://portals.apache.org/wsrp4j/gettingstarted/installation.html.
>>> When I start up the Swing Consumer I get a lot of errors:
>>>
>>> No title available! - 1_0.1
>>> org.apache.wsrp4j.exception.WSRPException: Producer didn't provide a
>>> valid service description.
>>>
>>> In the catalina.out file there are a lot of null pointer exceptions.
>>>
>>> Just wondering what needs to be done to get the Swing Consumer working
>>> out of the box.
>>>
>>> Thanks,
>>> Ashley
>>>
>>>   
>>
>>
>>  
>>
> 

-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services


Re: Help with Swing Consumer

Posted by Ashley Wright <a2...@qut.edu.au>.
Hi Graham,

That is fairly much what I have done so far. You have a link to 
http://mail-archives.apache.org/mod_mbox/ws-wsrp4j-user/200601.mbox/%3c41AB0A86E101A34FA839E3C199628AC92FA619@samantha.ceridwen.com%3e
This link does not work for me. Do you have a copy of this email?

Thanks,
Ashley

Ashley Wright
3864 9264
a2.wright@qut.edu.au
HPC and Research Support Group
Queensland University of Technology (QUT)



Graham Klyne wrote:

>Ashley,
>
>We are noting some similar problems.  You might find some helpful hints here:
>  http://wiki.oss-watch.ac.uk/Wsrp4jNotes
>(and in the referenced message -- that may explain your null pointer errors)
>
>#g
>--
>
>Ashley Wright wrote:
>  
>
>>Hi,
>>
>>I am new to WSRP and I wanted to try out WSRP4J. I have downloaded the
>>source code from the SVN server. I have followed the installation steps
>>at http://portals.apache.org/wsrp4j/gettingstarted/installation.html.
>>When I start up the Swing Consumer I get a lot of errors:
>>
>>No title available! - 1_0.1
>>org.apache.wsrp4j.exception.WSRPException: Producer didn't provide a
>>valid service description.
>>
>>In the catalina.out file there are a lot of null pointer exceptions.
>>
>>Just wondering what needs to be done to get the Swing Consumer working
>>out of the box.
>>
>>Thanks,
>>Ashley
>>
>>    
>>
>
>  
>

Re: Help with Swing Consumer

Posted by Graham Klyne <gr...@oucs.ox.ac.uk>.
Ashley,

We are noting some similar problems.  You might find some helpful hints here:
  http://wiki.oss-watch.ac.uk/Wsrp4jNotes
(and in the referenced message -- that may explain your null pointer errors)

#g
--

Ashley Wright wrote:
> Hi,
> 
> I am new to WSRP and I wanted to try out WSRP4J. I have downloaded the
> source code from the SVN server. I have followed the installation steps
> at http://portals.apache.org/wsrp4j/gettingstarted/installation.html.
> When I start up the Swing Consumer I get a lot of errors:
> 
> No title available! - 1_0.1
> org.apache.wsrp4j.exception.WSRPException: Producer didn't provide a
> valid service description.
> 
> In the catalina.out file there are a lot of null pointer exceptions.
> 
> Just wondering what needs to be done to get the Swing Consumer working
> out of the box.
> 
> Thanks,
> Ashley
> 

-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services