[arquillian-issues] [JBoss JIRA] (ARQ-628) Tomcat managed throws NullPointerException when application under test brings weld-servlet dependency

Juraj Huska (Commented) (JIRA) jira-events at lists.jboss.org
Tue Oct 18 11:54:45 EDT 2011


    [ https://issues.jboss.org/browse/ARQ-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635514#comment-12635514 ] 

Juraj Huska commented on ARQ-628:
---------------------------------

I have found that the problem is probably when the application under test has multiple SL4J bindings. 
I have solved this problem with adding to starting script of tomcat following attributes:

{code}
cmd.add("-Djava.util.logging.config.file=" + CATALINA_HOME + "/conf/logging.properties");
cmd.add("-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager");
{code}

I just defined the logging properties as it is done when the Tomcat is started via standard scripts from CATALINA_HOME/bin/.

I am going to make a pull request for this.
                
> Tomcat managed throws NullPointerException when application under test brings weld-servlet dependency
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ARQ-628
>                 URL: https://issues.jboss.org/browse/ARQ-628
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Tomcat Containers
>    Affects Versions: tomcat_1.0.0.CR2
>         Environment: tomcat-managed-7
> application - richfaces-showcase-4.1.0-20111011-M3-tomcat6.war
>            Reporter: Juraj Huska
>            Assignee: Juraj Huska
>
> I have encountered this issue when I was testing richfaces-showcase application. It seems that tomcat-managed-7 has problem with applications which bring own weld-servlet dependency.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list