[ 
https://issues.apache.org/jira/browse/TUSCANY-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591263#action_12591263
 ] 

wangfeng commented on TUSCANY-2253:
-----------------------------------

In version 1.1,tuscany will use the display name to generate the domain uri.So 
if you use 1.1 and the display name is not be set ,it will throw an null 
pointer exception.

But in version 1.2,the generating algorithm have been modified and the display 
name has not be used any more.

What version are you using? can you try the latest version that can be 
downloaded from [1].

[1] http://people.apache.org/~lresende/tuscany/sca-1.2-RC4/

> TuscanyServletFilter cannot be initialized when no display-name is specified 
> in web.xml
> ---------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2253
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2253
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Web App Integration
>    Affects Versions: Java-SCA-1.1
>            Reporter: Ilya Kanonirov
>
> When the display-name element is not specified in web.xml, 
> TuscanyServletFilter fails to initialize with the following exception:
> 16:27:52,393 ERROR [[/]] Exception starting filter tuscany
> java.lang.NullPointerException
>         at 
> org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(WebAppServletHost.java:209)
>         at 
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:51)
>         at 
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
>         at 
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
>         at 
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
>         at 
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3540)
>         at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4110)
>         at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>         at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         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:585)
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to