[JBossWS] - WSException: Cannot find configFile:
by gryffin
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
17 years, 9 months
[JBossWS] - NPE deploying web services in service archive in CR1 release
by adinn
I am trying to deploy a sar in AS5.0.0.CR1 which includes several war files. These wars include JaxWS SEI classes anotated with WebService annotations. The AS is using the bundled version of JBossWS Native.
The war file deployment breaks because the WS KernelLocator bean has not been intiialized. This is supposed to happen via bean injection according to the bean definition in jbossws-container-beans.xml located in server//deploy. However, the war file is processed (by an instance of JaxWSDeployerHookPreJSE) before the value is injected. The deployer tries to look up the wsf runtime via the kernel and receives a null pointer exception (stack trace as follows):
. . .
Caused by: java.lang.NullPointerException
at org.jboss.wsf.common.KernelAwareSPIFactory.getKernelProvidedSPI(KernelAwareSPIFactory.java:40)
at org.jboss.wsf.framework.DefaultWSFRuntimeLocator.locateRuntime(DefaultWSFRuntimeLocator.java:36)
at org.jboss.wsf.container.jboss50.deployer.AbstractDeployerHook.getWsfRuntime(AbstractDeployerHook.java:59)
at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:86)
at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
... 18 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162099#4162099
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162099
17 years, 9 months
[JBoss Messaging] - Re: Message Consumer fails when using messageSelector
by mbreuer
I tried it again and reinstalled jboss 4.2.2.GA with messaging. After that it look a bit different. First of all, the consumers receive the messages. But they don't receive immediatelly, they wait up to nearly timeout seconds.
Message msg = MessageConsumer.receive(60000);
Sometimes the call returns immediatelly, but sometime it takes up to timeout seconds. I created a simle test-app, doing the same. This test-app does not hang.
The process flow is following:
thread-1: send to queue A
receive( queue B, by selector, timeout );
thread-2: Message Driven Bean
onMessage(...) {
// do somehing
send response to queue B
// do something more
}
The original code is based on ejb2.x Mdb and causes hangs. My sample App uses an Ejb3 Mdb.
After doSend() is see an entry in JBM_MSG table. So i think to jms operation is successfull commited, isn't?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162096#4162096
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162096
17 years, 9 months