[jboss-user] [JBossWS] - WSException: Cannot find configFile:

gryffin do-not-reply at jboss.com
Wed Jul 2 11:23:59 EDT 2008


I am passing on x509 for now, going for basic auth over SSL instead. 
The web service is up, run, and accessible over HTTPS, that's looking good.

I modify the client app, test it, and get this error:

run-ts-client:
  |      [echo] Running timeservice client: C:\Documents and Settings\tx714c\My Documents\workspace\EJB3
  | fun\gen\TimeServiceClient.jar
  |      [java] Instantiating service...
  |      [java] Getting service port...
  |      [java] Exception in thread "main" org.jboss.ws.WSException: Cannot find configFile:
  |      [java]     at org.jboss.ws.metadata.config.JBossWSConfigFactory.filenameToURL(JBossWSConfigFactory.java:179)
  |      [java]     at org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(JBossWSConfigFactory.java:133)
  |      [java]     at org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfig(EndpointMetaData.java:815)
  |      [java]     at org.jboss.ws.metadata.umdm.EndpointMetaData.setConfigNameInternal(EndpointMetaData.java:805)
  |      [java]     at org.jboss.ws.metadata.umdm.EndpointMetaData.setConfigName(EndpointMetaData.java:789)
  |      [java]     at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.processEndpointConfig(JAXWSClientMetaDataBuilder.java:335)
  |      [java]     at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:293)
  |      [java]     at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:271)
  |      [java]     at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:202)
  |      [java]     at javax.xml.ws.Service.getPort(Service.java:143)
  |      [java]     at com.boeing.nmt.client.timeservice.TimeService.getTimeAgentPortBindingNamePort(TimeService.java:54)
  |      [java]     at com.boeing.nmt.client.timeservice.TimeServiceClient.main(TimeServiceClient.java:30)
  |      [java] Java Result: 1
  | 
  | But the error doesn't tell me /what/ config file is missing. 
  | 
  | Here's the structure of the jar file:
  | C:\Documents and Settings\tx714c\My Documents\workspace\EJB3fun\files>jar -tvf ..\gen\TimeServiceCli
  | ent.jar
  |      0 Mon Jun 30 15:09:50 PDT 2008 META-INF/
  |    106 Mon Jun 30 15:09:48 PDT 2008 META-INF/MANIFEST.MF
  |      0 Tue May 20 09:55:46 PDT 2008 com/
  |      0 Tue May 20 09:55:46 PDT 2008 com/boeing/
  |      0 Tue May 20 09:55:46 PDT 2008 com/boeing/nmt/
  |      0 Tue May 20 09:55:46 PDT 2008 com/boeing/nmt/client/
  |      0 Tue May 20 09:55:46 PDT 2008 com/boeing/nmt/client/timeservice/
  |    463 Mon Jun 30 14:42:14 PDT 2008 META-INF/jboss-wsse-client.xml
  |    835 Mon Jun 30 15:05:06 PDT 2008 META-INF/standard-jaxws-client-config.xml
  |    695 Thu May 29 11:53:02 PDT 2008 com/boeing/nmt/client/timeservice/TimeAgentPortBindingName.class
  | 
  |   1640 Wed Jun 04 12:54:22 PDT 2008 com/boeing/nmt/client/timeservice/TimeService.class
  |   2192 Mon Jun 30 14:49:20 PDT 2008 com/boeing/nmt/client/timeservice/TimeServiceClient.class
  | 
  | I didn't need a config file prior to implementing security, so what am I missing?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162100#4162100

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162100



More information about the jboss-user mailing list