Is this also an issue on the 1.1 branch? In the descriptors subproject, I found only one castor config file which is for servlet 2.3 dtd. So if someone is using 2.4 web.xml, will castor fail to load the servlet DD?
On 10/4/05, David Botterill <[EMAIL PROTECTED]
> wrote:
Thanks for the replies! I found the answer in the archives thanks to
David DeWolf's pointer to the archives. The start of the thread is at
http://mail-archives.apache.org/mod_mbox/portals-pluto-user/200406.mbox/[EMAIL PROTECTED]
The solution was to only put the version="2.4" attribute on the
<web-app> tag and not the namespace information. Now I'll have to make
sure everything else works without the namespace attributes.
Elliot Metsger wrote:
> I experienced a problem with version 2.4... let me see if I can dig up
> what I did to work around that...
>
> David H. DeWolf wrote:
>
>> I don't think I've ever tried it. What is the error you're receiving?
>
java.lang.NullPointerException
at
org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:109)
at
org.apache.pluto.invoker.impl.PortletInvokerImpl.load(PortletInvokerImpl.java :80)
But the real problem came from loading the web.xml. Here are the
verbose outputs:
startElement: servlet
unable to find FieldDescriptor for 'servlet' in ClassDescriptor of
web-app - ignoring extra element.
startElement: servlet-name
endElement: servlet-name
startElement: servlet-class
endElement: servlet-class
endElement: servlet
startElement: servlet
unable to find FieldDescriptor for 'servlet' in ClassDescriptor of
web-app - ignoring extra element.
startElement: description
...
Thanks again!
-David
>>
>> David
>>
>> David Botterill wrote:
>>
>>> We've recently moved to a 2.4 version of the web.xml XSD and Pluto
>>> is no longer reading the web.xml correctly. Can someone tell me if
>>> 2.4 is supported?
>>
>>
>> . . .
>>
>>> Thanks!
>>> -David
>>>
--
ZHENG Zhong
1 Avenue Alphand
75116 Paris, France
+33 6 76 80 45 90
http://heavyz.sourceforge.net
http://heavyz.blogspot.com
http://spaces.msn.com/members/zhengzhong
