[JBossWS] - Re: WS-Security with JAX-RPC
by FabrizioLXXIII
When I deploy my Web Service, I see the following log messages in server.log file:
2007-08-24 09:01:55,166 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/D:/JBoss/server/all/deploy/ws_producer.ear
| 2007-08-24 09:01:55,166 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/D:/JBoss/server/all/deploy/ws_producer.ear -> D:\JBoss\server\all\tmp\deploy\tmp63669ws_producer.ear
| 2007-08-24 09:01:55,259 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.EARDeployer@d8a1a0
| 2007-08-24 09:01:55,259 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/D:/JBoss/server/all/deploy/ws_producer.ear
| 2007-08-24 09:01:55,280 DEBUG [org.jboss.deployment.EARDeployer] Extracted non-deployable content: META-INF/MANIFEST.MF
| 2007-08-24 09:01:55,301 DEBUG [org.jboss.deployment.EARDeployer] Extracted deployable content: ws_producer.war
| 2007-08-24 09:01:55,301 DEBUG [org.jboss.deployment.EARDeployer] Extracted non-deployable content: META-INF/application.xml
| 2007-08-24 09:01:55,301 DEBUG [org.jboss.deployment.EARDeployer] Deployment Info: org.jboss.deployment.DeploymentInfo@7a0b49e2 { url=file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer.war }
| deployer: null
| status: null
| state: CONSTRUCTED
| watch: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer.war
| altDD: null
| lastDeployed: 0
| lastModified: 0
| mbeans:
| , isDirectory: false
| 2007-08-24 09:01:55,301 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
| 2007-08-24 09:01:55,301 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@4e79f1, cl=org.jboss.mx.loading.UnifiedClassLoader3@18b70fb{ url=file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear ,addedOrder=0}
| 2007-08-24 09:01:55,301 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@4e79f1, cl=org.jboss.mx.loading.UnifiedClassLoader3@18b70fb{ url=file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear ,addedOrder=0}
| 2007-08-24 09:01:55,301 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@18b70fb{ url=file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear ,addedOrder=0}
| 2007-08-24 09:01:55,301 DEBUG [org.jboss.mx.loading.ClassLoaderUtils] Multiple class loaders found for pkg:
| 2007-08-24 09:01:55,445 DEBUG [org.jboss.deployment.MainDeployer] found 1 subpackages of file:/D:/JBoss/server/all/deploy/ws_producer.ear
| 2007-08-24 09:01:55,445 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer.war
| 2007-08-24 09:01:55,445 DEBUG [org.jboss.deployment.MainDeployer] using deployer MBeanProxyExt[jboss.web:service=WebServer]
| 2007-08-24 09:01:55,445 DEBUG [org.jboss.web.tomcat.service.JBossWeb] Begin init
| 2007-08-24 09:01:55,445 DEBUG [org.jboss.web.tomcat.service.JBossWeb] Unpacking war to: D:\JBoss\server\all\tmp\deploy\tmp63669ws_producer.ear-contents\ws_producer-exp.war
| 2007-08-24 09:01:55,600 DEBUG [org.jboss.web.tomcat.service.JBossWeb] Replaced war with unpacked contents
| 2007-08-24 09:01:55,600 DEBUG [org.jboss.web.tomcat.service.JBossWeb] Was unable to delete war file
| 2007-08-24 09:01:55,600 DEBUG [org.jboss.web.tomcat.service.JBossWeb] webContext: /ws_producer
| 2007-08-24 09:01:55,600 DEBUG [org.jboss.web.tomcat.service.JBossWeb] warURL: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/
| 2007-08-24 09:01:55,632 DEBUG [org.jboss.web.tomcat.service.JBossWeb] End init
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Added url: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@18b70fb{ url=file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear ,addedOrder=52}
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer.war
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/D:/JBoss/server/all/deploy/ws_producer.ear
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/D:/JBoss/server/all/deploy/ws_producer.ear
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer.war
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.web.tomcat.service.JBossWeb] create, ws_producer.war
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.system.ServiceController] Creating service jboss.web.deployment:war=ws_producer.war,id=2047560162
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.web.WebModule] Creating jboss.web.deployment:war=ws_producer.war,id=2047560162
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.web.WebModule] Created jboss.web.deployment:war=ws_producer.war,id=2047560162
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.web.deployment:war=ws_producer.war,id=2047560162 dependents are: []
| 2007-08-24 09:01:55,642 DEBUG [org.jboss.ws.integration.jboss42.DeployerInterceptorJSE] create: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer.war
| 2007-08-24 09:01:55,663 DEBUG [org.jboss.ws.core.server.ServiceEndpointDeployer] create: ws_producer.ear/ws_producer.war
| 2007-08-24 09:01:55,673 DEBUG [org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder] START buildMetaData: [name=ws_producer.ear/ws_producer.war]
| 2007-08-24 09:01:55,756 DEBUG [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] parse: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/WEB-INF/wsdl/Service.wsdl
| 2007-08-24 09:01:56,696 DEBUG [org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder] createConfiguration from: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/WEB-INF/jboss-wsse-server.xml
| 2007-08-24 09:01:56,769 DEBUG [org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder] Add keystore: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/WEB-INF/wsse.keystore
| 2007-08-24 09:01:56,769 DEBUG [org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder] Add truststore: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/WEB-INF/wsse.truststore
| 2007-08-24 09:01:56,800 DEBUG [org.jboss.ws.core.server.ServiceEndpointManager] Using WebServicePort: 8080
| 2007-08-24 09:01:56,810 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Reconfiguration forced, new config is 'Standard WSSecurity Endpoint'
| 2007-08-24 09:01:56,810 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Create new config [name=Standard WSSecurity Endpoint,file=META-INF/standard-jaxrpc-endpoint-config.xml]
| 2007-08-24 09:01:56,810 DEBUG [org.jboss.ws.metadata.config.JBossWSConfigFactory] getConfig: [name=Standard WSSecurity Endpoint,url=META-INF/standard-jaxrpc-endpoint-config.xml]
| 2007-08-24 09:01:56,810 DEBUG [org.jboss.ws.metadata.config.JBossWSConfigFactory] parse: file:/D:/JBoss/server/all/deploy/jbossws.sar/META-INF/standard-jaxrpc-endpoint-config.xml
| 2007-08-24 09:01:58,206 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure EndpointMetaData
| 2007-08-24 09:01:58,206 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 1 PRE handlers
| 2007-08-24 09:01:58,206 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 0 ENDPOINT handlers
| 2007-08-24 09:01:58,206 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 0 POST handlers
| 2007-08-24 09:01:58,206 DEBUG [org.jboss.ws.metadata.builder.MetaDataBuilder] Replace service endpoint address 'REPLACE_WITH_ACTUAL_URL' with 'http://127.0.0.1:8080/ws_producer/service'
| 2007-08-24 09:01:58,402 DEBUG [org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder] END buildMetaData:
| UnifiedMetaData:
| implementation: jbossws-1.2.1.GA (build=200704151756)
| deploymentName: ws_producer.ear/ws_producer.war
| securityDomain: null
|
| ServiceMetaData:
| qname={http://service.wssecurity.jbossintegrationtest.auriga.it/}Service
| refName=null
| wsdName=Service
| wsdlFile=WEB-INF/wsdl/Service.wsdl
| wsdlLocation=null
| jaxrpcMapping=file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/WEB-INF/jaxrpc-mapping.xml
| publishLocation=null
| securityConfig=found
| properties=null
|
| TypesMetaData:
|
|
| ServerEndpointMetaData:
| type=JAXRPC
| qname={http://service.wssecurity.jbossintegrationtest.auriga.it/}ServicePort
| id=jboss.ws:context=ws_producer,endpoint=WsProducerServlet
| address=http://127.0.0.1:8080/ws_producer/service
| binding=http://schemas.xmlsoap.org/wsdl/soap/http
| linkName=WsProducerServlet
| implName=it.auriga.jbossintegrationtest.wssecurity.producer.ServiceImpl
| seiName=it.auriga.jbossintegrationtest.wssecurity.producer.Service
| serviceMode=null
| portComponentName=ServicePort
| contextRoot=/ws_producer
| urlPattern=/service
| configFile=META-INF/standard-jaxrpc-endpoint-config.xml
| configName=Standard WSSecurity Endpoint
| authMethod=null
| transportGuarantee=null
| secureWSDLAccess=false
| properties={}
|
| OperationMetaData:
| qname={http://service.wssecurity.jbossintegrationtest.auriga.it/}run
| javaName=run
| style=rpc/literal
| oneWay=false
| soapAction=
| ParameterMetaData:
| xmlName=String_1
| partName=String_1
| xmlType={http://www.w3.org/2001/XMLSchema}string
| javaType=java.lang.String
| mode=IN
| inHeader=false
| index=0
| ParameterMetaData:
| xmlName=int_2
| partName=int_2
| xmlType={http://www.w3.org/2001/XMLSchema}int
| javaType=int
| mode=IN
| inHeader=false
| index=1
| ReturnMetaData:
| xmlName=result
| partName=result
| xmlType={http://www.w3.org/2001/XMLSchema}string
| javaType=java.lang.String
| mode=OUT
| inHeader=false
| index=-1
|
| HandlerMetaDataJAXRPC:
| type=PRE
| name=WSSecurityHandlerInbound
| class=org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerInbound
| params=[]
| headers=[]
| roles=[]
| ports=[]
| 2007-08-24 09:01:58,650 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure SOAPBinding
| 2007-08-24 09:01:58,723 DEBUG [org.jboss.ws.core.server.ServiceEndpointManager] WebService created: jboss.ws:context=ws_producer,endpoint=WsProducerServlet
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying ws_producer.war
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EARDeployment,url='ws_producer.ear'
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.deployment.EARDeployment] Creating jboss.j2ee:service=EARDeployment,url='ws_producer.ear'
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.deployment.EARDeployment] Created jboss.j2ee:service=EARDeployment,url='ws_producer.ear'
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EARDeployment,url='ws_producer.ear' dependents are: []
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying ws_producer.ear
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/D:/JBoss/server/all/deploy/ws_producer.ear
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer.war
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.system.ServiceController] starting service jboss.web.deployment:war=ws_producer.war,id=2047560162
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.web.WebModule] Starting jboss.web.deployment:war=ws_producer.war,id=2047560162
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] webContext: /ws_producer
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] warURL: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] webAppParser: org.jboss.web.AbstractWebDeployer$DescriptorParser@1ce56f8
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
| 2007-08-24 09:01:58,816 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/ws_producer, warUrl=.../tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/
| 2007-08-24 09:01:58,816 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, Begin
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Creating ENC using ClassLoader: java.net.FactoryURLClassLoader@1afbbe3
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] ..org.jboss.mx.loading.UnifiedClassLoader3@18b70fb{ url=file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear ,addedOrder=52}
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] ..org.jboss.system.server.NoAnnotationURLClassLoader@5d173
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] ..sun.misc.Launcher$AppClassLoader@92e78c
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] ..sun.misc.Launcher$ExtClassLoader@9fbe93
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Bound java:comp/ORB
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linked java:comp/UserTransaction to JNDI name: UserTransaction
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] addEnvEntries
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkResourceEnvRefs
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkResourceRefs
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkMessageDestinationRefs
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkEjbRefs
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkEjbLocalRefs
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkServiceRefs
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkSecurityDomain
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] No security-domain given, using default: java:/jaas/other
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking security/securityMgr to JNDI name: java:/jaas/other
| 2007-08-24 09:01:58,899 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End
| 2007-08-24 09:01:58,981 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Using session cookies default setting
| 2007-08-24 09:01:59,333 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)/Tomcat-5.5'
| 2007-08-24 09:01:59,343 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Initialized: {WebApplication: /D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/, URL: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer-exp.war/, classLoader: java.net.FactoryURLClassLoader@1afbbe3:28294115} jboss.web:j2eeType=WebModule,name=//localhost/ws_producer,J2EEApplication=none,J2EEServer=none
| 2007-08-24 09:01:59,343 DEBUG [org.jboss.web.WebModule] Started jboss.web.deployment:war=ws_producer.war,id=2047560162
| 2007-08-24 09:01:59,343 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.web.deployment:war=ws_producer.war,id=2047560162 dependent components: []
| 2007-08-24 09:01:59,354 DEBUG [org.jboss.ws.integration.jboss42.DeployerInterceptorJSE] start: file:/D:/JBoss/server/all/tmp/deploy/tmp63669ws_producer.ear-contents/ws_producer.war
| 2007-08-24 09:01:59,354 DEBUG [org.jboss.ws.core.server.ServiceEndpointDeployer] start: ws_producer.ear/ws_producer.war
| 2007-08-24 09:01:59,354 DEBUG [org.jboss.ws.core.server.WSDLFilePublisher] Publish WSDL file: WEB-INF/wsdl/Service.wsdl
| 2007-08-24 09:01:59,374 INFO [org.jboss.ws.core.server.WSDLFilePublisher] WSDL published to: file:/D:/JBoss/server/all/data/wsdl/ws_producer.ear/ws_producer.war/Service.wsdl
| 2007-08-24 09:01:59,374 DEBUG [org.jboss.ws.metadata.umdm.UnifiedMetaData] Eagerly initialize the meta data model
| 2007-08-24 09:01:59,395 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.String it.auriga.jbossintegrationtest.wssecurity.producer.Service.run(java.lang.String,int) throws java.rmi.RemoteException
| 2007-08-24 09:02:00,015 INFO [org.jboss.ws.core.server.ServiceEndpointManager] WebService started: http://127.0.0.1:8080/ws_producer/service
| 2007-08-24 09:02:00,015 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: ws_producer.war
| 2007-08-24 09:02:00,026 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EARDeployment,url='ws_producer.ear'
| 2007-08-24 09:02:00,026 DEBUG [org.jboss.deployment.EARDeployment] Starting jboss.j2ee:service=EARDeployment,url='ws_producer.ear'
| 2007-08-24 09:02:00,026 DEBUG [org.jboss.deployment.EARDeployment] Started jboss.j2ee:service=EARDeployment,url='ws_producer.ear'
| 2007-08-24 09:02:00,026 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EARDeployment,url='ws_producer.ear' dependent components: []
| 2007-08-24 09:02:00,026 INFO [org.jboss.deployment.EARDeployer] Started J2EE application: file:/D:/JBoss/server/all/deploy/ws_producer.ear
| 2007-08-24 09:02:00,026 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: ws_producer.ear
| 2007-08-24 09:02:00,026 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/JBoss/server/all/deploy/ws_producer.ear
| 2007-08-24 09:02:00,026 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/D:/JBoss/server/all/deploy/ws_producer.ear -> file:/D:/JBoss/server/all/deploy/ws_producer.ear
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077634#4077634
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077634
17 years, 4 months
[JBossWS] - Re: Wsconsume generated Stubs failing with JBoss-4.2.0
by vashistvishal
The comilation error i get is this ... whne i run wsconsume....
| :resources$ /cygdrive/d/javadev/jboss-4.2.0.GA/bin/wsconsume.sh -k -t -p au.com.tusc getMemberInfo.wsdl
| warning: src-resolve: Cannot resolve the name 'edm:getMemberInfo' to a(n) 'e lement declaration' component.
| line ? of file:/C:/cygwin/home/vishal/download/source.new/common/resources /getMemberInfo.wsdl#types?schema2
| au\com\tusc\EmploymentHistory.java
| au\com\tusc\GetMemberInfoRequest.java
| au\com\tusc\GetMemberInfoRequestType.java
| au\com\tusc\GetMemberInfoResponse.java
| au\com\tusc\GetMemberInfoResponseType.java
| au\com\tusc\InsuranceServicesGetmemberinfo.java
| au\com\tusc\InsuranceServicesGetmemberinfoService.java
| au\com\tusc\MemberPackages.java
| au\com\tusc\ObjectFactory.java
| au\com\tusc\package-info.java
| au\com\tusc\EmploymentHistory.java
| au\com\tusc\GetMemberInfoRequest.java
| au\com\tusc\GetMemberInfoRequestType.java
| au\com\tusc\GetMemberInfoResponse.java
| au\com\tusc\GetMemberInfoResponseType.java
| au\com\tusc\InsuranceServicesGetmemberinfo.java
| au\com\tusc\InsuranceServicesGetmemberinfoService.java
| au\com\tusc\MemberPackages.java
| au\com\tusc\ObjectFactory.java
| au\com\tusc\package-info.java
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077616#4077616
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077616
17 years, 4 months
[JBossWS] - Wsconsume generated Stubs failing with JBoss-4.2.0
by vashistvishal
I have a problem with generating Stubs from WSDL using Wsconsume, part of WS tools used in JBoss-4.2
This is the wsdl which i'm using....
<?xml version="1.0" encoding="UTF-8"?>
| <wsdl:definitions name="insurance_pub" targetNamespace="http://www.myhome.com.au/insurance.doc.wsdl"
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
| xmlns:tns="http://www.myhome.com.au/insurance.doc.wsdl"
| xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
| <wsdl:types>
| <xsd:schema
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| targetNamespace="http://www.myhome.com.au/insurance.doc.wsdl"
| xmlns:edm="http://www.myhome.com.au/insurance.doc.wsdl"
| xmlns:tns="http://localhost/insurance/pub/getMemberInfo">
|
| <xsd:import
| namespace="http://localhost/insurance/pub/getMemberInfo"/>
|
| <xsd:element name="getMemberInfo" type="tns:GetMemberInfoRequest"/>
| <xsd:element name="getMemberInfoResponse" type="tns:GetMemberInfoResponse"/>
| </xsd:schema>
|
| <xsd:schema
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| targetNamespace="http://localhost/insurance/pub/getMemberInfo"
| xmlns:tns="http://localhost/insurance/pub/getMemberInfo"
| xmlns:edm="http://www.myhome.com.au/insurance.doc.wsdl">
|
| <xsd:import
| namespace="http://www.myhome.com.au/insurance.doc.wsdl"/>
|
| <xsd:complexType name="EmploymentHistory">
| <xsd:sequence>
| <xsd:element name="fundCode" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="employerNumber" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="tradingName" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="employerStatus" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="startDate" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="endDate" nillable="true" type="xsd:string" minOccurs="0"/>
| </xsd:sequence>
| </xsd:complexType>
| <xsd:complexType name="MemberPackages">
| <xsd:sequence>
| <xsd:element name="packageName" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="packageStartDate" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="packageEndDate" nillable="true" type="xsd:string" minOccurs="0"/>
| </xsd:sequence>
| </xsd:complexType>
|
| <xsd:complexType name="GetMemberInfoRequestType">
| <xsd:sequence>
| <xsd:element ref="edm:getMemberInfo"/>
| <xsd:any processContents="lax"/>
| </xsd:sequence>
| <xsd:anyAttribute processContents="lax"/>
| </xsd:complexType>
| <xsd:complexType name="GetMemberInfoRequest">
| <xsd:sequence>
| <xsd:element name="fundCode" nillable="true" type="xsd:string"/>
| <xsd:element name="memberNumber" nillable="true" type="xsd:string"/>
| </xsd:sequence>
| </xsd:complexType>
| <xsd:complexType name="GetMemberInfoResponseType">
| <xsd:sequence>
| <xsd:element ref="edm:getMemberInfoResponse"/>
| <xsd:any processContents="lax"/>
| </xsd:sequence>
| <xsd:anyAttribute processContents="lax"/>
| </xsd:complexType>
| <xsd:complexType name="GetMemberInfoResponse">
| <xsd:sequence>
| <xsd:element name="fundCode" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="clientArrangementId" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="memberNumber" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="membershipType" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="title" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="givenName" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="surname" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="gender" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="email" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="phoneNumber" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="dateOfBirth" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="deemedDate" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="activeDate" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="addressLine1" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="addressLine2" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="addressLine3" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="suburb" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="state" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="postcode" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="country" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="accountBalance" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="division" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="status" nillable="true" type="xsd:string" minOccurs="0"/>
| <xsd:element name="employmentHistory" type="tns:EmploymentHistory" nillable="true" maxOccurs="unbounded" minOccurs="0"/>
| <xsd:element name="mbrPackages" type="tns:MemberPackages" nillable="true" maxOccurs="unbounded" minOccurs="0"/>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:schema>
|
| </wsdl:types>
|
| <wsdl:message name="getMemberInfoIn">
| <wsdl:part name="getMemberInfo" element="tns:getMemberInfo"/>
| </wsdl:message>
|
| <wsdl:message name="getMemberInfoOutput">
| <wsdl:part name="getMemberInfoResponse" element="tns:getMemberInfoResponse"/>
| </wsdl:message>
|
| <wsdl:portType name="Insurance_services_getmemberinfo">
| <wsdl:operation name="getMemberInfo">
| <wsdl:input message="tns:getMemberInfoIn"/>
| <wsdl:output message="tns:getMemberInfoOutput"/>
| </wsdl:operation>
| </wsdl:portType>
| <wsdl:binding name="Insurance_services_getmemberinfoBinding" type="tns:Insurance_services_getmemberinfo">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
| <wsdl:operation name="getMemberInfo">
| <soap:operation soapAction=""/>
| <wsdl:input>
| <soap:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <!-- to test point web browser too
|
| <wsdl:service name="Insurance_services_getmemberinfoService">
| <wsdl:port name="Insurance_services_getmemberinfoPort0" binding="tns:Insurance_services_getmemberinfoBinding">
| <soap:address location="http://localhost:5565/soap/DocLiteral"/>
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
|
|
|
|
I have not been able to understand what the problem is. Even though the stubs are generated, I'm not sure whether these are right ones, because their was warning which is coming all the time when i run wsconsume.
Any pointers or hints will be a great help.
I went further assuming thet "let us not worry about the warning" and tried to rune the cleint using generated stubs and i got this error at invocation of this service
Exception in thread "main" java.lang.IllegalStateException: Cannot build JAXB context
| at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:879)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:281)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:274)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:200)
| at javax.xml.ws.Service.getPort(Service.java:116)
| at au.com.sydney.InsuranceServicesGetmemberinfoService.getInsuranceServicesGetmemberinfoPort0(InsuranceServicesGetmemberinfoService.java:56)
| at au.com.sydney.TestService.main(TestService.java:28)
| Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 32 counts of IllegalAnnotationExceptions
| There's no ObjectFactory with an @XmlElementDecl for the element {http://www.myhome.com.au/insurance.doc.wsdl}fundCode.
| this problem is related to the following location:
| at protected javax.xml.bind.JAXBElement au.com.sydney.GetMemberInfoResponse.fundCode
| at au.com.sydney.GetMemberInfoResponse
|
As i get this run time error... I'm not sure now whether its a stub generated by wsconsume are not right because their was a warning while running wsconsume or is it JAXB or something else.
Any pointers to work on will be a geart help and save me :) from stress over the weekend.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077615#4077615
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077615
17 years, 4 months
[JBossWS] - Re: NullPointerException with jbossws 2.0.1
by koganty
jbossws-framework.jar is deployed under jboss/server//lib.
This is how the ServerConfigFactory shows up in the log :
2007-08-23 13:34:29,019 DEBUG [main][DeploymentAspectManagerImpl]: WebAppGeneratorDeploymentAspect:Create
2007-08-23 13:34:29,191 DEBUG [main][DefaultSPIProvider]: provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
2007-08-23 13:34:29,206 DEBUG [main][DefaultSPIProvider]: class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl@93727d
2007-08-23 13:34:29,222 ERROR [main][MainDeployer]: Could not start deployment: file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/epicenter.ear/epicenter.jar
java.lang.NullPointerException
at org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect.generatWebDeployment(WebAppGeneratorDeploymentAspect.java:105)
at org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect.create(WebAppGeneratorDeploymentAspect.java:84)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
But the real problem is I think is the MANIFEST.MF in the jbossws.sar/META-INF directory.
I see quite a few DeploymentExceptions during startup regards to unreachable jar files 'cos the MANIFEST.MF points to the wrong location.
2007-08-23 13:33:17,948 DEBUG [main][ClassLoaderUtils]: Multiple class loaders found for pkg:
2007-08-23 13:33:17,948 DEBUG [main][MainDeployer]: resolveLibraries: jbossws-spi.jar jbossws-common.jar jbossws-framework.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar activation.jar commons-logging.jar concurrent.jar javassist.jar jaxb-api.jar jaxb-impl.jar mail.jar jboss-remoting.jar jboss-xml-binding.jar policy.jar stax-api.jar wsdl4j.jar
2007-08-23 13:33:17,948 DEBUG [main][MainDeployer]: new manifest entry for sdi at jbossws.sar entry is jbossws-spi.jar
2007-08-23 13:33:17,948 DEBUG [main][MainDeployer]: The manifest entry in file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws.sar/ references URL file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws-spi.jar which could not be opened, entry ignored
2007-08-23 13:33:17,948 DEBUG [main][NestedThrowable]: org.jboss.util.NestedThrowable.parentTraceEnabled=true
2007-08-23 13:33:17,948 DEBUG [main][NestedThrowable]: org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2007-08-23 13:33:17,948 DEBUG [main][NestedThrowable]: org.jboss.util.NestedThrowable.detectDuplicateNesting=true
org.jboss.deployment.DeploymentException: url file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws-spi.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:214)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1137)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:884)
2007-08-23 13:33:17,964 DEBUG [main][MainDeployer]: new manifest entry for sdi at jbossws.sar entry is jbossws-common.jar
2007-08-23 13:33:17,964 DEBUG [main][MainDeployer]: The manifest entry in file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws.sar/ references URL file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws-common.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws-common.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:214)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1137)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:884)
2007-08-23 13:33:17,964 DEBUG [main][MainDeployer]: new manifest entry for sdi at jbossws.sar entry is jbossws-framework.jar
2007-08-23 13:33:17,964 DEBUG [main][MainDeployer]: The manifest entry in file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws.sar/ references URL file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws-framework.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws-framework.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:214)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1137)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:884)
2007-08-23 13:33:17,964 DEBUG [main][MainDeployer]: new manifest entry for sdi at jbossws.sar entry is jboss-jaxrpc.jar
2007-08-23 13:33:17,964 DEBUG [main][MainDeployer]: The manifest entry in file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jbossws.sar/ references URL file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jboss-jaxrpc.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/C:/dev/sources/newport/jboss/server/epicenter/deploy/jboss-jaxrpc.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:214)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1137)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:884)
There is more but I think this is the problem...
Thank You.
-Raju
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077573#4077573
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077573
17 years, 4 months