[ 
https://issues.apache.org/jira/browse/CXF-2710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp resolved CXF-2710.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.3
         Assignee: Daniel Kulp

Marking as resolved as verification was asked for over a month ago and no 
response
                
> DynamicClientFactory compilation wrong classpath Jboss5
> -------------------------------------------------------
>
>                 Key: CXF-2710
>                 URL: https://issues.apache.org/jira/browse/CXF-2710
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>         Environment: Windows XP SP2, JBoss 5.1.0, JDK 1.6.0_07
>            Reporter: Prasad Deshpande
>            Assignee: Daniel Kulp
>             Fix For: 2.4.3
>
>
> Hi, I'm getting error when compiling dynamic client inside an .ear. when I 
> debug through, I found that in method "compileJavaSrc" of 
> DymanicClientFactory class, I get classPath as empty string because of which 
> compilation is failing. However if I set classPath value to "." then it all 
> works file.
> I thought of debugging the reason for why classPath is coming as null & found 
> that in "setupClasspath" method I get value of classLoader parameter as 
> "BaseClassLoader@828ebf{vfsfile:/C:/jboss-5.1.0.GA/server/eFp-40-Oracle/deploy/efp.ear/}"
>   which is not an instanceof URLClassLoader. also protocol now says that it's 
> "vfsfile:/" not "file:/". I think we need some default value of classpath 
> like ".", Otherwise "javac" command would fail like below.
> 12:56:07,937 INFO  [STDOUT]  javac: invalid flag: 
> C:/DOCUME~1/Prasad_D/LOCALS~1/Temp/org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory@3c65c3-1268398562703-classes
>  Usage: javac <options> <source files>
>  use -help for a list of possible options
> 12:56:07,937 SEVERE [DynamicClientFactory] Could not compile java files for 
> http://localhost:8080/webservice/services/WSFreeTextListAPI?wsdl.
> If you have any suggestion to me, please let me know. I'll correct my code.
> Here is my code snippet:
>         JaxWsDynamicClientFactory factory = 
> JaxWsDynamicClientFactory.newInstance();
>         client = factory.createClient(wsdlUrl);
>         ClientImpl clientImpl = (ClientImpl) client;
>         Endpoint endpoint = clientImpl.getEndpoint();
> I tried using ClassLoader version of the "createClient" method... still 
> doesn't help.

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

        

Reply via email to