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 Diego Louzán Martínez <di...@metalicana.org> on 2004/10/13 12:37:41 UTC

Can't deploy proxyportlet

    I'm trying to use wsrp4j without using SwingConsumer, with Pluto as
a consumer, so I deployed Pluto portal (tested, it works fine). Next
step is to deploy wsrp4j proxyportlet. I followed the instructions given
in portlets/proxyportlet/README.txt and copied
portlets/build/proxyportlet.include.example to
portlets/build/proxyportlet.include. The problem arises when deploying,
this is what I get from command line:


$ ./install-provider-pluto.sh
... (some ant stuff)
DeployPortlet.intern:
deploying 'proxyportlet' ...
finished!
prepare web archive 'proxyportlet' ...
org.exolab.castor.mapping.MappingException: Could not find the class
org.apache.pluto.portalImpl.om.servlet.impl.ResourceRef
        at
org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(Unknown
Source)
        at
org.exolab.castor.xml.XMLMappingLoader.createDescriptor(Unknown Source)
        at
org.exolab.castor.mapping.loader.MappingLoader.loadMapping(Unknown
Source)
        at org.exolab.castor.mapping.Mapping.getResolver(Unknown Source)
        at org.exolab.castor.mapping.Mapping.getResolver(Unknown Source)
        at org.exolab.castor.xml.Unmarshaller.setMapping(Unknown Source)
        at org.exolab.castor.xml.Unmarshaller.<init>(Unknown Source)
        at
org.apache.pluto.portalImpl.Deploy.prepareWebArchive(Deploy.java:190)        at org.apache.pluto.portalImpl.Deploy.main(Deploy.java:487)
java.lang.Exception
        at
org.apache.pluto.portalImpl.Deploy.prepareWebArchive(Deploy.java:408)        at org.apache.pluto.portalImpl.Deploy.main(Deploy.java:487)


    It seems it won't find the class ResourceRef related to Castor. I
checked the ant script and I don't know what this means. This doesn't
happen when deploying wsrptest portlet. Any ideas? 

Thanks in advance.

-- 

Diego Louzán.


Re: Can't deploy proxyportlet

Posted by Diego Louzán <di...@metalicana.org>.
Thanks for the information. However, does anybody know of those
MappingExceptions I keep getting? Are they normal? If I replace the
pluto portal jar included in wsrp4j cvs for the latest in pluto svn the
exceptions disappear...

Diego.

Matthew Carey wrote:
> Diego Louzán wrote:
> 
>>     Sorry, I realized the first time I was executing tomcat without 
>> running the tunnel.sh viewer, and since the urls for wsrp point to 
>> localhost:8081, that was the reason it didn't work. I ran the ant 
>> scripts with the original pluto-portal-1.0.1.jar and except for the 
>> ant script not finding the ResourceRef class and giving an exception, 
>> the deployment to tomcat is correct and wsrp portlets work fine.
>>     Then, my last question is... ¿aren't those MappingExceptions for 
>> not finding ResourceRef class harmful?
>>
>> Diego.
> 
> 
> If you don't want to use the tunnel.sh edit the xml file in
> 
> $CATALINA_HOME/webapps/proxyportlet/WEB-INF/persistence/producers
> 
> And change the references to :8081 to :8080
> 

Re: Can't deploy proxyportlet

Posted by Matthew Carey <ma...@ssl.co.uk>.
Diego Louzán wrote:
>     Sorry, I realized the first time I was executing tomcat without 
> running the tunnel.sh viewer, and since the urls for wsrp point to 
> localhost:8081, that was the reason it didn't work. I ran the ant 
> scripts with the original pluto-portal-1.0.1.jar and except for the ant 
> script not finding the ResourceRef class and giving an exception, the 
> deployment to tomcat is correct and wsrp portlets work fine.
>     Then, my last question is... ¿aren't those MappingExceptions for not 
> finding ResourceRef class harmful?
> 
> Diego.

If you don't want to use the tunnel.sh edit the xml file in

$CATALINA_HOME/webapps/proxyportlet/WEB-INF/persistence/producers

And change the references to :8081 to :8080

Re: Can't deploy proxyportlet

Posted by Diego Louzán <di...@metalicana.org>.
     Sorry, I realized the first time I was executing tomcat without 
running the tunnel.sh viewer, and since the urls for wsrp point to 
localhost:8081, that was the reason it didn't work. I ran the ant 
scripts with the original pluto-portal-1.0.1.jar and except for the ant 
script not finding the ResourceRef class and giving an exception, the 
deployment to tomcat is correct and wsrp portlets work fine.
     Then, my last question is... ¿aren't those MappingExceptions for 
not finding ResourceRef class harmful?

Diego.

Re: Can't deploy proxyportlet

Posted by Diego Louzán <di...@metalicana.org>.
     I finally got working proxyportlet. The problem doesn't seem 
related to castor, but to pluto instead. The file 
provider/pluto/war/lib/pluto-portal-1.0.1.jar doesn't contain the 
compiled class for 
org.apache.pluto.portalImpl.om.servlet.impl.ResourceRef, so the class 
org.apache.pluto.portalImpl.Deploy called by the ant script can't find it.
     So I replaced the pluto portal jar with the latest from the pluto 
cvs. Since then, the ant script doesn't complain and everything works 
fine, I can use some portlets via wsrp through the pluto container.
     Is this an error of mine? Should the pluto-portal-1.0.1.jar be 
replaced in the cvs? Suggestions welcome. Maybe I should redirect this 
to the dev list or to JIRA...

Diego.

Diego Louzán Martínez wrote:
>     I'm trying to use wsrp4j without using SwingConsumer, with Pluto as
> a consumer, so I deployed Pluto portal (tested, it works fine). Next
> step is to deploy wsrp4j proxyportlet. I followed the instructions given
> in portlets/proxyportlet/README.txt and copied
> portlets/build/proxyportlet.include.example to
> portlets/build/proxyportlet.include. The problem arises when deploying,
> this is what I get from command line:
> 
> 
> $ ./install-provider-pluto.sh
> ... (some ant stuff)
> DeployPortlet.intern:
> deploying 'proxyportlet' ...
> finished!
> prepare web archive 'proxyportlet' ...
> org.exolab.castor.mapping.MappingException: Could not find the class
> org.apache.pluto.portalImpl.om.servlet.impl.ResourceRef
>         at
> org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(Unknown
> Source)
>         at
> org.exolab.castor.xml.XMLMappingLoader.createDescriptor(Unknown Source)
>         at
> org.exolab.castor.mapping.loader.MappingLoader.loadMapping(Unknown
> Source)
>         at org.exolab.castor.mapping.Mapping.getResolver(Unknown Source)
>         at org.exolab.castor.mapping.Mapping.getResolver(Unknown Source)
>         at org.exolab.castor.xml.Unmarshaller.setMapping(Unknown Source)
>         at org.exolab.castor.xml.Unmarshaller.<init>(Unknown Source)
>         at
> org.apache.pluto.portalImpl.Deploy.prepareWebArchive(Deploy.java:190)        at org.apache.pluto.portalImpl.Deploy.main(Deploy.java:487)
> java.lang.Exception
>         at
> org.apache.pluto.portalImpl.Deploy.prepareWebArchive(Deploy.java:408)        at org.apache.pluto.portalImpl.Deploy.main(Deploy.java:487)
> 
> 
>     It seems it won't find the class ResourceRef related to Castor. I
> checked the ant script and I don't know what this means. This doesn't
> happen when deploying wsrptest portlet. Any ideas? 
> 
> Thanks in advance.
>