[jboss-jira] [JBoss JIRA] Commented: (JBAS-5151) Resource loading fails for WEB-INF/xyz.txt

Scott M Stark (JIRA) jira-events at lists.jboss.org
Mon Jan 21 14:34:31 EST 2008


    [ http://jira.jboss.com/jira/browse/JBAS-5151?page=comments#action_12396059 ] 
            
Scott M Stark commented on JBAS-5151:
-------------------------------------

The test error does not indicate the resource is the problem:
<testcase classname="org.jboss.test.webservice.jbws1124.JBWS1124TestCase" name="testEndpoint" time="1.241">
    <error message="java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage" type="javax.xml.ws.WebServiceException">javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
        at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:402)
        at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:312)
        at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:166)
        at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
        at $Proxy12.getResourceString(Unknown Source)
        at org.jboss.test.webservice.jbws1124.JBWS1124TestCase.testEndpoint(JBWS1124TestCase.java:61)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
        at junit.extensions.TestSetup.run(TestSetup.java:25)
Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
        at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424)
        at org.jboss.ws.core.soap.SOAPMessageImpl.&lt;init&gt;(SOAPMessageImpl.java:83)
        at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
        at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:59)
        at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:158)
        at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:292)
        at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:300)
        ... 25 more
</error>

I see the resource is located under WEB-INF:
[starksm at succubus testsuite]$ jar -tf output/lib/jaxws-jbws1124.war
META-INF/MANIFEST.MF
WEB-INF/classes/org/jboss/test/webservice/jbws1124/JBWS1124TestCase.class
WEB-INF/classes/org/jboss/test/webservice/jbws1124/TestEndpoint.class
WEB-INF/classes/org/jboss/test/webservice/jbws1124/TestEndpointImpl.class
WEB-INF/test-resource.txt
WEB-INF/web.xml

I'll create a non-ws specific test for this.


> Resource loading fails for WEB-INF/xyz.txt
> ------------------------------------------
>
>                 Key: JBAS-5151
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5151
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: ClassLoading
>            Reporter: Heiko Braun
>         Assigned To: Scott M Stark
>             Fix For: JBossAS-5.0.0.Beta4
>
>
> Heiko Braun wrote:
> > With recent versions it seems that loading resources from WEB-INF
> > seems to be broken for a lot of WS tests. Have there been any
> > classloader changes that may explain this?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list