Re: PLuto portlet deployment problem

Ludovic DAUCHY <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <[email protected]>
Hi,

Thanks Elliot for your help.

I receive the error when I start Tomcat.
You can find the full stack trace this below :
"
2 mai 2006 10:00:39 org.apache.commons.digester.Digester endElement
GRAVE: End event threw exception
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
        at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
        at org.apache.commons.digester.Rule.end(Rule.java:276)
        at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1548)
        at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3587)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.IllegalArgumentException: addChild:  Child name
'simpleDateTimePortlet' is not unique
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:815)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at
org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1346)
        ... 48 more
2 mai 2006 10:00:39 org.apache.commons.digester.Digester error
GRAVE: Parse Error at line 6 column 39: The content of element type
"distributable" must match "EMPTY".
org.xml.sax.SAXParseException: The content of element type "distributable" must
match "EMPTY".
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1548)
        at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3587)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
"





I tried to apply your patch but there was an error when I built pluto with maven
:
"

...
+----------------------------------------
| Executing multiproject:install-callback Pluto Descriptor Libraries
| Memory: 6M/6M
+----------------------------------------

jar:jar:

jar:install:


build:end:

build:start:

multiproject:install-callback:
    [echo] Running jar:install for Pluto Descriptor Libraries
java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\Program Files\Apache
Group\pluto-src-current\descriptors/target/classes
    [javac] Compiling 4 source files to C:\Program Files\Apache
Group\pluto-src-current\descriptors\target\classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
    [javac] Compiling 1 source file to C:\Program Files\Apache
Group\pluto-src-current\descriptors\target\test-classes

test:test:
    [junit] Running org.apache.pluto.descriptors.portlet.CastorMappingTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,422 sec
    [junit] Running org.apache.pluto.descriptors.portlet.PortletAppDDTest
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,015 sec
    [junit] Running
org.apache.pluto.descriptors.services.impl.AbstractPortletAppDescriptorServiceTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,329 sec
    [junit] Running org.apache.pluto.descriptors.servlet.CastorMappingTest
    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 2,019 sec
    [junit] [ERROR] TEST org.apache.pluto.descriptors.servlet.CastorMappingTest
FAILED
    [junit] Running org.apache.pluto.descriptors.servlet.WebAppDDTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,015 sec

BUILD FAILED
File...... D:\Documents and
Settings\TMPW30194\.maven\cache\maven-multiproject-plugin-1.3.1\plugin.jelly
Element... maven:reactor
Line...... 217
Column.... 9
Unable to obtain goal [multiproject:install-callback] -- D:\Documents and
Settings\TMPW30194\.maven\cache\maven-test-plugin-1.6.2\
plugin.jelly:181:54: <fail> There were test failures.
Total time: 9 seconds
Finished at: Tue May 02 09:37:14 CEST 2006
"

To finish, I changed the crossContext properties of Tomcat but nothing changed.
The portlet always returns the same message.

Thanks !

Best Regards,
Ludovic


Selon Elliot Metsger <[email protected]>:

> Hi Ludovic,
>
> A couple questions/comments inline:
>
> Ludovic DAUCHY wrote:
> > -->First issue
>
> <snip>
>
> > the error message says :
> > "28 avr. 2006 16:35:05 org.apache.commons.digester.Digester error
> > GRAVE: Parse Error at line 6 column 39: The content of element type
> > "distributable" must match "EMPTY".
> > org.xml.sax.SAXParseException: The content of element type "distributable"
> must
> > match "EMPTY".
> >         at
> > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> > Source)
> >         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> >         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> > ..."
>
> <snip>
>
> When do you receive this error?
>
> How are you deploying your portlet (e.g. are you using the Maven deploy
> goal, the admin portlet, or something else?)
>
> Also, can you provide the full stack trace?
>
> > Has someone already encountered this problem ?
>
> Probably this is the same issue:
> http://issues.apache.org/jira/browse/PLUTO-219
>
> I think the patch that is attached to PLUTO-219 is only a partial fix -
> I'm working on getting it up to snuff for a Pluto 1.0.2 release but I
> have little time right now (spending all my weekends away from a 'puter).
>
> If you could try this patch in your environment and provide feedback on
> the issue that would be helpful.
>
> > --> Second issue
> > I created my Portlet, put it in a new context called "portletsDemo" and
> change
> > the XML files to refer it. But it doesn't run in the portal.
> > However, if I put the same portlet in the pluto context, it run well.
> > I don't understand why.
>
> <snip snip>
>
> I didn't read all of your configs, but based on the error my guess is
> that you need to enable cross context dispatch for the pluto webapp.
> See:
> http://localhost:8080/tomcat-docs/config/context.html#Attributes
>
> HTH,
> Elliot
>
>


--------------------------------------------------
This mail sent through Polytech'Lille WebMail (IMP)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.