Bug 780478 (SOA-2906) - QS helloworld_ejb3_ws_wss produces warning during compilation
Summary: QS helloworld_ejb3_ws_wss produces warning during compilation
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-2906
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: Examples
Version: 5.1.0.CR1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 5.2.0 GA
Assignee: Douglas Palmer
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-14 16:10 UTC by mvanek
Modified: 2013-03-13 04:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-12 12:09:55 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-2906 0 None None None Never

Description mvanek 2011-02-14 16:10:19 UTC
project_key: SOA

Executing ant runtest produces following warning:
...
test-compile:
     [copy] Copying 1 file to /home/mvanek/work/build/cr1/jboss-as/samples/quickstarts/helloworld_ejb3_ws_wss/test/classes
    [javac] Compiling 1 source file to /home/mvanek/work/build/cr1/jboss-as/samples/quickstarts/helloworld_ejb3_ws_wss/test/classes
    [javac] /home/mvanek/work/build/cr1/jboss-as/samples/quickstarts/helloworld_ejb3_ws_wss/test/src/org/jboss/soa/esb/samples/quickstart/helloworld/WSTestClientWSS.java:27: warning: [deprecation] toURL() in java.io.File has been deprecated
    [javac]             URL securityURL = new File("test/classes/META-INF/jboss-wsse-client.xml").toURL();
    [javac]                                                                                      ^
    [javac] 1 warning

runtest:
     [java] log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder).
     [java] log4j:WARN Please initialize the log4j system properly.

Comment 1 tcunning 2011-07-29 13:19:56 UTC
I think that all that needs to be done here is to change toURL() to toURI().toURL().

Comment 2 David Le Sage 2011-09-02 05:06:59 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Writer: Added: dlesage
Release Notes Text: Added: https://issues.jboss.org/browse/SOA-2906

If the user ran ant runtest, a warning message would appear. This was due to a small coding error which has now been fixed.  As a result, users will no longer see this error message.



Note You need to log in before you can comment on or make changes to this bug.