From do-not-reply at jboss.com Fri Feb 1 03:13:25 2008 From: do-not-reply at jboss.com (Vincent321) Date: Fri, 1 Feb 2008 03:13:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Performance problem with Jbossws client Message-ID: <30927547.1201853605894.JavaMail.jboss@colo-br-02.atl.jboss.com> Dear, I have a serious performance problem with a webservice client that I explained here : I took the wsdl http://developer.ebay.com/webservices/latest/ebaySvc.wsdl. This wsdl is about 3Mb but I was able to generate the stubs. Now that I want to invoke it with the following code : | URL url = Thread.currentThread().getContextClassLoader().getResource("eBaySvc.wsdl"); | EBayAPIInterfaceService service = new EBayAPIInterfaceService(url, new QName("urn:ebay:apis:eBLBaseComponents", "eBayAPIInterfaceService")); | System.out.println("Init... 1 "); | | EBayAPIInterface eBayAPIInterface = service.getEBayAPI(); | System.out.println("Init... 2"); | | It take about 1 minutes between the 2 system.out :-( My question is : how can I improve the performance here ? Do you thing is a good idea to put it static in order to gain performance when invoking the service ? Thanks for you support. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125397#4125397 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125397 From do-not-reply at jboss.com Fri Feb 1 04:19:25 2008 From: do-not-reply at jboss.com (ashields) Date: Fri, 1 Feb 2008 04:19:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - transfer encoding of attachments with saaj Message-ID: <3353018.1201857565228.JavaMail.jboss@colo-br-02.atl.jboss.com> jbossws sends attachments with a content transfer encoding of binary even if the client code has set a specific value. The same code checks for existing values for content type and content id. This all happens in org.jboss.ws.soap.attachment.MultipartRelatedEncoder.java Is there a reason not to allow the encoding to be specified? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125413#4125413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125413 From do-not-reply at jboss.com Fri Feb 1 05:06:53 2008 From: do-not-reply at jboss.com (Rajiii) Date: Fri, 1 Feb 2008 05:06:53 -0500 (EST) Subject: [jbossws-users] [JBossWS] - build failed Message-ID: <20507182.1201860413347.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have downloaded JBOSS WS and run ant,but build failed,here is the stack trace: samples\jaxr\scout\JaxrBaseTest.java:148: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected void getJAXREssentials() throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:155: cannot find symbol [javac] symbol : class InternationalString [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] public InternationalString getIString(String str) throws JAXRExce ption [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:155: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] public InternationalString getIString(String str) throws JAXRExce ption [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:163: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] public void searchBusiness(String bizname) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:211: cannot find symbol [javac] symbol : class RegistryService [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected RegistryService getRegistryService() throws JAXRExcepti on [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:211: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected RegistryService getRegistryService() throws JAXRExcepti on [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:217: cannot find symbol [javac] symbol : class BusinessQueryManager [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected BusinessQueryManager getBusinessQueryManager() throws J AXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:217: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected BusinessQueryManager getBusinessQueryManager() throws J AXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:225: cannot find symbol [javac] symbol : class BusinessLifeCycleManager [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected BusinessLifeCycleManager getBusinessLifeCycleManager() throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:225: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected BusinessLifeCycleManager getBusinessLifeCycleManager() throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:233: cannot find symbol [javac] symbol : class Organization [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private void checkServices(Organization org) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:233: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private void checkServices(Organization org) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:258: cannot find symbol [javac] symbol : class Organization [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private void checkUser(Organization org) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:258: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private void checkUser(Organization org) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:281: cannot find symbol [javac] symbol : class RegistryObject [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getName(RegistryObject ro) throws JAXRExcep tion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:281: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getName(RegistryObject ro) throws JAXRExcep tion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:290: cannot find symbol [javac] symbol : class RegistryObject [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getDescription(RegistryObject ro) throws JA XRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:290: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getDescription(RegistryObject ro) throws JA XRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:299: cannot find symbol [javac] symbol : class RegistryObject [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getKey(RegistryObject ro) throws JAXRExcept ion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:299: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getKey(RegistryObject ro) throws JAXRExcept ion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:311: cannot find symbol [javac] symbol : class Organization [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected Organization createOrganization(String orgname) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:311: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected Organization createOrganization(String orgname) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:365: cannot find symbol [javac] symbol : class Key [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected void deleteOrganization(Key orgkey) throws Exception [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:378: cannot find symbol [javac] symbol : class ClassificationScheme [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private ClassificationScheme getClassificationScheme(String str1, String str2) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:378: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private ClassificationScheme getClassificationScheme(String str1, String str2) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:28: package javax .xml.registry does not exist [javac] import javax.xml.registry.BulkResponse; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:29: package javax .xml.registry does not exist [javac] import javax.xml.registry.JAXRException; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:30: package javax .xml.registry does not exist [javac] import javax.xml.registry.JAXRResponse; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:31: package javax .xml.registry.infomodel does not exist [javac] import javax.xml.registry.infomodel.Key; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:32: package javax .xml.registry.infomodel does not exist [javac] import javax.xml.registry.infomodel.Organization; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:45: cannot find s ymbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.publish.J axrDeleteOrganizationTestCase [javac] public String saveOrg(String orgname) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:28: package javax.x ml.registry does not exist [javac] import javax.xml.registry.BulkResponse; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:29: package javax.x ml.registry does not exist [javac] import javax.xml.registry.JAXRException; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:30: package javax.x ml.registry does not exist [javac] import javax.xml.registry.JAXRResponse; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:31: package javax.x ml.registry.infomodel does not exist [javac] import javax.xml.registry.infomodel.Key; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:32: package javax.x ml.registry.infomodel does not exist [javac] import javax.xml.registry.infomodel.Organization; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:45: cannot find sym bol [javac] symbol : class Key [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.publish.J axrSaveOrganizationTestCase [javac] private Key orgKey = null; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:47: cannot find sym bol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.publish.J axrSaveOrganizationTestCase [javac] public void testSaveOrg() throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:88: cannot find sym bol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.publish.J axrSaveOrganizationTestCase [javac] private void checkBusinessExists(String bizname) throws JAXRExcep tion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\query\JaxrBusinessQueryTestCase.java:35: package javax.xml.re gistry does not exist [javac] import javax.xml.registry.BulkResponse; [javac] ^ [javac] Note: * uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 100 errors BUILD FAILED C:\JBOSS\jbossws-native-2.0.3.GA\build.xml:152: The following error occurred whi le executing this line: C:\JBOSS\jbossws-native-2.0.3.GA\tests\ant-import\build-testsuite.xml:375: Compi le failed; see the compiler error output for details. Total time: 12 seconds C:\JBOSS\jbossws-native-2.0.3.GA> What is the reason for this? Please reply as early as possible. Regards.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125435#4125435 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125435 From do-not-reply at jboss.com Fri Feb 1 05:54:47 2008 From: do-not-reply at jboss.com (Rajiii) Date: Fri, 1 Feb 2008 05:54:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - build failed (Repost) Message-ID: <26955039.1201863287818.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have downloaded JBOSS WS and run ant,but build failed,here is the stack trace: samples\jaxr\scout\JaxrBaseTest.java:148: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected void getJAXREssentials() throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:155: cannot find symbol [javac] symbol : class InternationalString [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] public InternationalString getIString(String str) throws JAXRExce ption [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:155: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] public InternationalString getIString(String str) throws JAXRExce ption [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:163: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] public void searchBusiness(String bizname) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:211: cannot find symbol [javac] symbol : class RegistryService [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected RegistryService getRegistryService() throws JAXRExcepti on [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:211: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected RegistryService getRegistryService() throws JAXRExcepti on [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:217: cannot find symbol [javac] symbol : class BusinessQueryManager [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected BusinessQueryManager getBusinessQueryManager() throws J AXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:217: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected BusinessQueryManager getBusinessQueryManager() throws J AXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:225: cannot find symbol [javac] symbol : class BusinessLifeCycleManager [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected BusinessLifeCycleManager getBusinessLifeCycleManager() throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:225: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected BusinessLifeCycleManager getBusinessLifeCycleManager() throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:233: cannot find symbol [javac] symbol : class Organization [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private void checkServices(Organization org) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:233: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private void checkServices(Organization org) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:258: cannot find symbol [javac] symbol : class Organization [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private void checkUser(Organization org) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:258: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private void checkUser(Organization org) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:281: cannot find symbol [javac] symbol : class RegistryObject [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getName(RegistryObject ro) throws JAXRExcep tion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:281: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getName(RegistryObject ro) throws JAXRExcep tion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:290: cannot find symbol [javac] symbol : class RegistryObject [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getDescription(RegistryObject ro) throws JA XRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:290: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getDescription(RegistryObject ro) throws JA XRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:299: cannot find symbol [javac] symbol : class RegistryObject [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getKey(RegistryObject ro) throws JAXRExcept ion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:299: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private static String getKey(RegistryObject ro) throws JAXRExcept ion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:311: cannot find symbol [javac] symbol : class Organization [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected Organization createOrganization(String orgname) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:311: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected Organization createOrganization(String orgname) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:365: cannot find symbol [javac] symbol : class Key [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] protected void deleteOrganization(Key orgkey) throws Exception [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:378: cannot find symbol [javac] symbol : class ClassificationScheme [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private ClassificationScheme getClassificationScheme(String str1, String str2) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\JaxrBaseTest.java:378: cannot find symbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.JaxrBaseT est [javac] private ClassificationScheme getClassificationScheme(String str1, String str2) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:28: package javax .xml.registry does not exist [javac] import javax.xml.registry.BulkResponse; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:29: package javax .xml.registry does not exist [javac] import javax.xml.registry.JAXRException; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:30: package javax .xml.registry does not exist [javac] import javax.xml.registry.JAXRResponse; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:31: package javax .xml.registry.infomodel does not exist [javac] import javax.xml.registry.infomodel.Key; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:32: package javax .xml.registry.infomodel does not exist [javac] import javax.xml.registry.infomodel.Organization; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrDeleteOrganizationTestCase.java:45: cannot find s ymbol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.publish.J axrDeleteOrganizationTestCase [javac] public String saveOrg(String orgname) throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:28: package javax.x ml.registry does not exist [javac] import javax.xml.registry.BulkResponse; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:29: package javax.x ml.registry does not exist [javac] import javax.xml.registry.JAXRException; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:30: package javax.x ml.registry does not exist [javac] import javax.xml.registry.JAXRResponse; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:31: package javax.x ml.registry.infomodel does not exist [javac] import javax.xml.registry.infomodel.Key; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:32: package javax.x ml.registry.infomodel does not exist [javac] import javax.xml.registry.infomodel.Organization; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:45: cannot find sym bol [javac] symbol : class Key [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.publish.J axrSaveOrganizationTestCase [javac] private Key orgKey = null; [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:47: cannot find sym bol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.publish.J axrSaveOrganizationTestCase [javac] public void testSaveOrg() throws JAXRException [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\publish\JaxrSaveOrganizationTestCase.java:88: cannot find sym bol [javac] symbol : class JAXRException [javac] location: class org.jboss.test.ws.jaxws.samples.jaxr.scout.publish.J axrSaveOrganizationTestCase [javac] private void checkBusinessExists(String bizname) throws JAXRExcep tion [javac] ^ [javac] C:\JBOSS\jbossws-native-2.0.3.GA\tests\java\org\jboss\test\ws\jaxws\ samples\jaxr\scout\query\JaxrBusinessQueryTestCase.java:35: package javax.xml.re gistry does not exist [javac] import javax.xml.registry.BulkResponse; [javac] ^ [javac] Note: * uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 100 errors BUILD FAILED C:\JBOSS\jbossws-native-2.0.3.GA\build.xml:152: The following error occurred whi le executing this line: C:\JBOSS\jbossws-native-2.0.3.GA\tests\ant-import\build-testsuite.xml:375: Compi le failed; see the compiler error output for details. Total time: 12 seconds C:\JBOSS\jbossws-native-2.0.3.GA> What is the reason for this? Please reply as early as possible. Regards.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125435#4125435 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125435 From do-not-reply at jboss.com Fri Feb 1 05:58:16 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 1 Feb 2008 05:58:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: build failed Message-ID: <29773494.1201863496631.JavaMail.jboss@colo-br-02.atl.jboss.com> You need to edit the ant.properties file specifying your application server path View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125462#4125462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125462 From do-not-reply at jboss.com Fri Feb 1 09:54:03 2008 From: do-not-reply at jboss.com (thof) Date: Fri, 1 Feb 2008 09:54:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - wstools wsdl-java => NullPointerException Message-ID: <12933561.1201877643831.JavaMail.jboss@colo-br-02.atl.jboss.com> Compiling a WSDL with wstools and following config I got a NullPointerException: [wstools] java.lang.NullPointerException [wstools] at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:423) [wstools] at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:516) [wstools] at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:538) [wstools] at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:187) [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:329) [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:138) [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:120) [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103) [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [wstools] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [wstools] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [wstools] at java.lang.reflect.Method.invoke(Method.java:585) [wstools] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) I'm using wstools of jbossws14-client.jar. I read the documentation, wiki and faqs, so I'm hoping someone can provide some help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125549#4125549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125549 From do-not-reply at jboss.com Fri Feb 1 13:21:29 2008 From: do-not-reply at jboss.com (gryffin) Date: Fri, 1 Feb 2008 13:21:29 -0500 (EST) Subject: [jbossws-users] [JBossWS] - reading a local properties file Message-ID: <16349694.1201890089956.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm writing a POJO/servlet based JAXWS web service on JBoss 4.0.5 w/ JBossWS 1.2.1. I'm trying to use a properties files located at /WEB-INF/properties.xml but I can't find the file. The only way I can seem to get the web service classes to find the properties file is to use an absolute URI from C: which is totally unworkable for production. Using this code: if ( !(new File(propertiesPath).exists()) ) | { | log.fatal("NOT FOUND: " + propertiesPath ); | } | This fails, I've tried variations, but can't seem to find the path: public static final String propertiesPath = "properties.xml"; This works, public static final String queriesPath = "C:/Documents and Settings/tx714c/workspace/NlsAssociationService341/WEB-INF/properties.xml"; and if I assume that '...\workspace' is my local dir, I can use a relative path. But I can't get a path local to the WAR file to work. Here's the listing of the war file: | C:\Documents and Settings\tx714c\My Documents\workspace\ShimWS3.4.1>jar -tf gen\NlsAssociationServic | e341.war | META-INF/ | META-INF/MANIFEST.MF | WEB-INF/ | WEB-INF/web.xml | WEB-INF/classes/ | WEB-INF/classes/com/ | ... | WEB-INF/classes/org/soapinterop/xsd/ValidationException.class | WEB-INF/lib/ | ... | WEB-INF/lib/wsdl4j-1.5.1.jar | WEB-INF/properties.xml | WEB-INF/queries.xml | How do I access and load a local properties file from within the war? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125631#4125631 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125631 From do-not-reply at jboss.com Fri Feb 1 13:35:32 2008 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 1 Feb 2008 13:35:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: reading a local properties file Message-ID: <26186647.1201890932503.JavaMail.jboss@colo-br-02.atl.jboss.com> You should really place the properties file at WEB-INF/classes, then it should be easy to locate using Class.getResource() or ClassLoader.getResource() [simply supply the file name]. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125634#4125634 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125634 From do-not-reply at jboss.com Fri Feb 1 14:18:01 2008 From: do-not-reply at jboss.com (gryffin) Date: Fri, 1 Feb 2008 14:18:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: reading a local properties file Message-ID: <10981044.1201893481429.JavaMail.jboss@colo-br-02.atl.jboss.com> Well, thank you Peter. Durn if that wasn't wasn't easy once it was explicitly laid out. I'd preferred to keep only classes in the classes directory, but I didn't see any working examples of this so I was stymied. Thanks again, Peter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125648#4125648 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125648 From do-not-reply at jboss.com Fri Feb 1 18:07:18 2008 From: do-not-reply at jboss.com (jkurtz_wa) Date: Fri, 1 Feb 2008 18:07:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Juddi broken on 4.2.1 + 4.2.2 Message-ID: <12690371.1201907238968.JavaMail.jboss@colo-br-02.atl.jboss.com> I got Juddi version 2.0 working on JBoss 4.2.2. I created a new server instance and am connecting with an Oracle Database. I am now striving to publish to the UDDI registry. Something has changed with the new version of jUDDI that requires the BusinessQueryManager to accept only SOAP messages instead of strings. This effectively breaks the example at http://wiki.jboss.org/wiki/Wiki.jsp?page=UDDIExample ============ This is how it breaks now When the following is called on a BusinessQueryManager object businessQueryManager.getRegistryObject("some String", LifeCycleManager.CLASSIFICATION_SCHEME); the following error occurs: Cannot unmarshall SOAPMessage javax.xml.soap.SOAPException: Unsupported content type: text/html; charset=utf-8 at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:248) at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:84) at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:502) at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:306) at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:136) at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122) at org.jboss.remoting.Client.invoke(Client.java:1634) at org.jboss.remoting.Client.invoke(Client.java:548) at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:183) at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77) at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:106) at org.jboss.ws.core.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:66) at org.jboss.jaxr.juddi.transport.SaajTransport.send(SaajTransport.java:81) at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368) at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:547) at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:532) at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:681) at com.boeing.pw.uddi.publisher.WSDLConverter.(WSDLConverter.java:59) at com.boeing.pw.uddi.publisher.RegConnectionFactory.createOrganization(RegConnectionFactory.java:106) at com.boeing.pw.uddi.publisher.WSDLPublisher.init(WSDLPublisher.java:108) at com.boeing.pw.uddi.test.TestMain.testPublisher(TestMain.java:63) at com.boeing.pw.uddi.test.TestMain.main(TestMain.java:21) - Exception:: javax.xml.soap.SOAPException: java.io.IOException: Could not transmit message at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:115) at org.jboss.ws.core.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:66) at org.jboss.jaxr.juddi.transport.SaajTransport.send(SaajTransport.java:81) at org.apache.juddi.proxy.RegistryProxy.execute(RegistryProxy.java:368) at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:547) at org.apache.juddi.AbstractRegistry.getTModelDetail(AbstractRegistry.java:532) at org.apache.ws.scout.registry.BusinessQueryManagerImpl.getRegistryObject(BusinessQueryManagerImpl.java:681) at com.boeing.pw.uddi.publisher.WSDLConverter.(WSDLConverter.java:59) at com.boeing.pw.uddi.publisher.RegConnectionFactory.createOrganization(RegConnectionFactory.java:106) at com.boeing.pw.uddi.publisher.WSDLPublisher.init(WSDLPublisher.java:108) at com.boeing.pw.uddi.test.TestMain.testPublisher(TestMain.java:63) at com.boeing.pw.uddi.test.TestMain.main(TestMain.java:21) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125696#4125696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125696 From do-not-reply at jboss.com Sun Feb 3 16:06:24 2008 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Sun, 3 Feb 2008 16:06:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: reading a local properties file Message-ID: <23088805.1202072784451.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello! This is the way to go. Never add a properties-file in the WEB-INF folder. A better place is on the classpath, i.e. in the WEB-INF/classes directory. Then you can access this file with the following command: | Thread.currentThread().getContextClassloader().getResourceAsStream("filename.extension"); | Cheers /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125895#4125895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125895 From do-not-reply at jboss.com Sun Feb 3 17:45:30 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 17:45:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException from JBossXSEntityResolver Message-ID: <18447669.1202078730283.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, did your workaround work? Please post some further details about your contract and/or service implementation (as far as I understand, you used a bottom up approach, didn't you?), this way we can better understand / reproduce your issue. Which version of JBossWS are you using? (the one that comes with 4.2.2.GA ?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125926#4125926 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125926 From do-not-reply at jboss.com Sun Feb 3 17:57:34 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 17:57:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem with ServiceEndpointInterceptor Message-ID: <30990675.1202079454221.JavaMail.jboss@colo-br-02.atl.jboss.com> You should simply try with the latest release of JBossWS first. If you still have the problem please post here again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125930#4125930 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125930 From do-not-reply at jboss.com Sun Feb 3 18:10:58 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 18:10:58 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Attachments with SOAP Message-ID: <2005304.1202080258959.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you give us some further details? Do you get any exception? Btw also consider upgrading at least to JBoss 4.0.5 in order to run the latest release of JBossWS, since the 1.2.1 is really old and your issue might have been already solved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125938#4125938 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125938 From do-not-reply at jboss.com Sun Feb 3 18:14:53 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 18:14:53 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice client over SSL Message-ID: <28116324.1202080493053.JavaMail.jboss@colo-br-02.atl.jboss.com> We'll take care of this, in the mean time let's keep the related post linked: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=127805 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125942#4125942 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125942 From do-not-reply at jboss.com Sun Feb 3 18:27:13 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 18:27:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Question about bottom-up web service Message-ID: <17788943.1202081233058.JavaMail.jboss@colo-br-02.atl.jboss.com> If you need to use your own xsd file, you should use a top-down approach. Then you might modify the generated classes to use the business logic you need (and that perhaps is already in the POJO you talked about). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125945#4125945 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125945 From do-not-reply at jboss.com Sun Feb 3 18:32:37 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 18:32:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.cache.lock.TimeoutException: failure acquiring Message-ID: <7369789.1202081557101.JavaMail.jboss@colo-br-02.atl.jboss.com> http://www.jboss.com/index.html?module=bb&op=viewforum&f=157 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125947#4125947 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125947 From do-not-reply at jboss.com Sun Feb 3 18:52:40 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 18:52:40 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain wsdl service - Help Message-ID: <10418817.1202082760976.JavaMail.jboss@colo-br-02.atl.jboss.com> Please double check the namespace/name of your Service in your wsdl contract. Also consider running wsconsume against your wsdl to automatically generate your client artifacts. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125951#4125951 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125951 From do-not-reply at jboss.com Sun Feb 3 19:12:11 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 19:12:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem importing multiple schema from the same namespac Message-ID: <20690740.1202083931681.JavaMail.jboss@colo-br-02.atl.jboss.com> WSDL 2.0 is not fully supported yet http://jbws.dyndns.org/mediawiki/index.php?title=JBossWSSpecStatus. However feel free to create a feature request issue in JIRA for your issue about imports so that we can evaluate it and perhaps fix it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125954#4125954 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125954 From do-not-reply at jboss.com Sun Feb 3 19:35:06 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 19:35:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Generated Classes does not have constructors... Message-ID: <7946372.1202085306071.JavaMail.jboss@colo-br-02.atl.jboss.com> What's the problem of using the default constructor? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125964#4125964 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125964 From do-not-reply at jboss.com Sun Feb 3 19:44:48 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 19:44:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Throws exception in WS (back to remote client) without g Message-ID: <27819829.1202085888664.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : But the SOAP stack trace on the server side shouldn't be printed since this is a simple application error. The stack currently logs every exception before converting it into a soap fault message. We could argue about this choice, however I don't think it's a major issues, just fine tune your log4j conf if you don't want errors emitted by SOAPFaultHelperJAXWS to go to your logs. anonymous wrote : Obviously I've got some problem with how I hand off my exception to SOAP. I must not be telling it something it needs to know. But what? This is not related to the above issue about the logs; what problem are you having? please give use further details so that we can help you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125967#4125967 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125967 From do-not-reply at jboss.com Sun Feb 3 20:29:23 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 20:29:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Accessing USERNAME_PROPERTY from Web Service class Message-ID: <19040864.1202088563775.JavaMail.jboss@colo-br-02.atl.jboss.com> Unfortunately I don't see a really good way of getting the password from the ws endpoint. An hint I can give you is that if you use BASIC auth your username+password are encoded (base64) and put in the authorization http header you can easily read from a JAX-WS handler. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125971#4125971 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125971 From do-not-reply at jboss.com Sun Feb 3 20:43:14 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 20:43:14 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Change the endpoint address in runtime using Dispatch Message-ID: <24897610.1202089394189.JavaMail.jboss@colo-br-02.atl.jboss.com> I've just created a JIRA issue for this: http://jira.jboss.com/jira/browse/JBWS-1979 You can attach a patch with your fix there if you want to contribute. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125972#4125972 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125972 From do-not-reply at jboss.com Sun Feb 3 20:51:47 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 20:51:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to change http to https in wsdlsoap:address on WSDL Message-ID: <16832081.1202089907723.JavaMail.jboss@colo-br-02.atl.jboss.com> "pwelti at roshka.com.py" wrote : | | | true | This should be: | true Please try again with this and let us know if it works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125974#4125974 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125974 From do-not-reply at jboss.com Sun Feb 3 21:10:56 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 3 Feb 2008 21:10:56 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossws client configuration Message-ID: <11337753.1202091056702.JavaMail.jboss@colo-br-02.atl.jboss.com> AFAIK the only other configurable features you can use there are: - http://org.jboss.ws/mtom to enable MTOM - http://org.jboss.ws/binding/wsdl/dotnet to use ".NET friendly" part names We could write this in the wiki, see org.jboss.ws.metadata.config.EndpointFeature and EndpointProperty. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125977#4125977 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125977 From do-not-reply at jboss.com Mon Feb 4 00:23:56 2008 From: do-not-reply at jboss.com (siddharth_god) Date: Mon, 4 Feb 2008 00:23:56 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Running SOAP Service over https in JBoss 4.0.4.GA Message-ID: <1958376.1202102636352.JavaMail.jboss@colo-br-02.atl.jboss.com> I wanted to run the SOAP service over https and appear it on WSDL in soap:address field. I tried to block http tag in server.xml and service can be found on https address but WSDL still shows http address for SOAP service. IN 4.0.4.GA i don't have jboss.beans in jbossws14.sar folder. So do i have to create it manually or provide the configuration somewhere else ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125990#4125990 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125990 From do-not-reply at jboss.com Mon Feb 4 03:40:39 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Mon, 4 Feb 2008 03:40:39 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Using child class as argument in webmethod Message-ID: <8891365.1202114439568.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you use the @XmlSeeAlso annotation? You might also take a look at the tests for JBWS-1702, which should be something very similar to your use case. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126038#4126038 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126038 From do-not-reply at jboss.com Mon Feb 4 03:47:35 2008 From: do-not-reply at jboss.com (HTroeng) Date: Mon, 4 Feb 2008 03:47:35 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Validation of input values? Message-ID: <13334577.1202114855502.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm writing webservices with jbossws, I use contract-last approach and let jboss auto-generate the wsdl:s on deployment. However, I would like to use some kind of auto validation and correct schema generation for values not nillable for example. So, the optimal way would be to use like hibernate annotations to annotate @NotNull, regexp, etc. on my pojos, and have it validated and also have the wsdl generated in the proper way. I don't want to manaully hack the wsdl:s afterwards, I want the clients to always be able to access the server and get the latest wsdl without having a process of editing it, publish it manually etc. Is there a way to do this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126040#4126040 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126040 From do-not-reply at jboss.com Mon Feb 4 04:06:09 2008 From: do-not-reply at jboss.com (Didi1976) Date: Mon, 4 Feb 2008 04:06:09 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem importing multiple schema from the same namespac Message-ID: <23049558.1202115969077.JavaMail.jboss@colo-br-02.atl.jboss.com> Created the JIRA Feature Request: http://jira.jboss.org/jira/browse/JBWS-1980 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126044#4126044 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126044 From do-not-reply at jboss.com Mon Feb 4 04:08:53 2008 From: do-not-reply at jboss.com (zwbrush) Date: Mon, 4 Feb 2008 04:08:53 -0500 (EST) Subject: [jbossws-users] [JBossWS] - @Xmljavatypeadapter used on class failed Message-ID: <7477742.1202116133395.JavaMail.jboss@colo-br-02.atl.jboss.com> I used @Xmljavatypeadapter on my class like below @XmlJavaTypeAdapter(XMLStringAdapter.class) public class XMLCollection { public Integer content ; public XMLCollection() { super(); } public class XMLStringAdapter extends XmlAdapter { @Override public String marshal(XMLCollection arg0) throws Exception { return "8888"; } @Override public XMLCollection unmarshal(String arg0) throws Exception { return new XMLCollection(); } I found it not take effect. but when I put @XmlJavaTypeAdapter on class field it work, Annotation on class has not been implement? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126045#4126045 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126045 From do-not-reply at jboss.com Mon Feb 4 04:18:56 2008 From: do-not-reply at jboss.com (zwbrush) Date: Mon, 4 Feb 2008 04:18:56 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: @Xmljavatypeadapter used on class failed Message-ID: <13486802.1202116736374.JavaMail.jboss@colo-br-02.atl.jboss.com> sorry , I use jboss4.2.2GA with jbossws2.0.3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126047#4126047 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126047 From do-not-reply at jboss.com Mon Feb 4 04:32:57 2008 From: do-not-reply at jboss.com (Ratoo) Date: Mon, 4 Feb 2008 04:32:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - http://org.jboss.ws/http#chunksize Message-ID: <13002463.1202117577511.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello! I'm trying to send a SOAP message through the JAAS. The problem is that the service is the CGI and doesn't accept "Transfer-Encoding" header. JBoss Remoting has a configuration for it (chunkedLength=0 ???), but how can I do it from JBossWS? Setting the property "http://org.jboss.ws/http#chunksize" in "standard-jaxws-client-config.xml" file to 0 does nothing. I desperately need it (it works with SUN JAAS implementation). Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126051#4126051 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126051 From do-not-reply at jboss.com Mon Feb 4 06:57:16 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 4 Feb 2008 06:57:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: http://org.jboss.ws/http#chunksize Message-ID: <26433330.1202126236725.JavaMail.jboss@colo-br-02.atl.jboss.com> What JBossWS version is it? I just noticed there is bug in that piece of code, but it only affects setting the chunksize value, not removing it: | // chunksize settings | String chunkSizeValue = epmdProps.getProperty(EndpointProperty.CHUNKED_ENCODING_SIZE); | int chunkSize = chunkSizeValue != null ? Integer.valueOf(chunkSizeValue) : -1; | if (chunkSize > 0) | { | clientConfig.put(EndpointProperty.CHUNKED_ENCODING_SIZE, chunkSizeValue); | } | else | { | clientConfig.remove("chunkedLength"); | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126117#4126117 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126117 From do-not-reply at jboss.com Mon Feb 4 06:59:59 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 4 Feb 2008 06:59:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: http://org.jboss.ws/http#chunksize Message-ID: <30303472.1202126399610.JavaMail.jboss@colo-br-02.atl.jboss.com> Which basically means remove the feature, disable the chunked encoding. But you know what? There is a default config for that: HTTP 1.0 Client Did you try that one? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126118#4126118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126118 From do-not-reply at jboss.com Mon Feb 4 07:56:24 2008 From: do-not-reply at jboss.com (kazcor) Date: Mon, 4 Feb 2008 07:56:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException from JBossXSEntityResolver Message-ID: <2780045.1202129784718.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, no, unfortunately the workaround does not solve the issue. Using wsconsume to produce a WSDL from sources, afterwards doing wsprovide to generate sources from that WSDL, creating a dummy implementation for the generated interfaces and deploying all those classes on JBoss produces the very same error. I'm using JBossWS that comes with 4.2.2GA. However, this webservice is only one part of a asynchronous pair of webservices for server<->server communications and the second webservice is using Axis on the remote side - so in the meantime I've already decided to stick to simple communications via strings, doing marshalling/unmarshalling with JAXB right before sending and after receiving. I don't have time to further look into this, but anyways, I've uploaded the old WS contract produced by wsconsume right here (http://page.mi.fu-berlin.de/schmidtm/jbossws-jaxb/), so you may reproduce the error. Thanks, Max View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126131#4126131 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126131 From do-not-reply at jboss.com Mon Feb 4 08:04:59 2008 From: do-not-reply at jboss.com (Ratoo) Date: Mon, 4 Feb 2008 08:04:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: http://org.jboss.ws/http#chunksize Message-ID: <25704755.1202130299426.JavaMail.jboss@colo-br-02.atl.jboss.com> You are right, the client is CGI, so http/1.0, but I just don't understand "heiko.braun at jboss.com" wrote : | HTTP 1.0 Client Did you try that one? | Where is it? How can I configure it? I use jboss 4.2.2 and jbossws-native-2.0.2.GA (build=200711261155) the call itself is a simple | SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance(); | SOAPConnection conn = scf.createConnection(); | SOAPMessage response = conn.call(msg, endpoint); | I looked into the remoting code (HTTPClientInvoker) where setChunkedStreamingMode is called only when chunkedValue is set, so I thought that if it's 0 there is no chunking. So basically I will be happy to configure JBossWS (JAAS) not to use chunking. Thank you very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126134#4126134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126134 From do-not-reply at jboss.com Mon Feb 4 09:21:37 2008 From: do-not-reply at jboss.com (florian79) Date: Mon, 4 Feb 2008 09:21:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Bug: injecting WebServiceContext at AroundInvoke Message-ID: <21967749.1202134897845.JavaMail.jboss@colo-br-02.atl.jboss.com> JBOSS 4.2.2.GA The injection of the WebServiceContext run into an Exception. The Interceptor Class: | public class XXXInterceptor | { | | @PersistenceContext(unitName="XXX") private EntityManager entityManager; | @Resource() private WebServiceContext wsContext; | @EJB private Logger logger; | | @AroundInvoke | public final Object intercept(final InvocationContext contectGot) throws Exception | { | Object obj = null; | obj = contectGot.proceed(); | return obj; | } | } | the Exception at server startup: | 15:15:05,547 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=xxx.jar | java.lang.ArrayStoreException: org.jboss.injection.WebServiceContextPropertyInjector | at java.util.AbstractCollection.toArray(AbstractCollection.java:176) | at org.jboss.ejb3.interceptor.InterceptorInjector.(InterceptorInjector.java:50) | at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:372) | at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:140) | at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:292) | at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:356) | at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy33.start(Unknown Source) | at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97) | at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238) | at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy34.start(Unknown Source) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy9.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy4.start(Unknown Source) | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy5.deploy(Unknown Source) | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | at org.jboss.Main.boot(Main.java:200) | at org.jboss.Main$1.run(Main.java:508) | at java.lang.Thread.run(Thread.java:595) | is it a bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126175#4126175 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126175 From do-not-reply at jboss.com Mon Feb 4 10:38:29 2008 From: do-not-reply at jboss.com (mjhammel) Date: Mon, 4 Feb 2008 10:38:29 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Accessing USERNAME_PROPERTY from Web Service class Message-ID: <30535704.1202139509965.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks alessio. I'll look into handlers and see if I can pull the data out that way. If you have any pointers to online docs on how to write and use handlers please forward them. I'd appreciate it. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126224#4126224 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126224 From do-not-reply at jboss.com Mon Feb 4 14:40:36 2008 From: do-not-reply at jboss.com (mt3ch) Date: Mon, 4 Feb 2008 14:40:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: I don't succeded installing jbossws2.0.1 please help me Message-ID: <23263837.1202154036107.JavaMail.jboss@colo-br-02.atl.jboss.com> You could also have written C:/jboss-4.2.1.GA (using a forward slash instead of backslashes). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126335#4126335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126335 From do-not-reply at jboss.com Mon Feb 4 16:12:36 2008 From: do-not-reply at jboss.com (CBax007) Date: Mon, 4 Feb 2008 16:12:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: avoid lazy-initialization exceptions Message-ID: <23469292.1202159556385.JavaMail.jboss@colo-br-02.atl.jboss.com> Has anyone come up with a better solution to this problem? Is there any way that in the XML marshaling code, the logic could check if the instance was a PersistentBag. If it was, and it had not yet been initialized, then serialize it as either null or an empty collection. Is there a way to make this happen? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126350#4126350 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126350 From do-not-reply at jboss.com Mon Feb 4 16:16:08 2008 From: do-not-reply at jboss.com (mendaye) Date: Mon, 4 Feb 2008 16:16:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JMX like web service Message-ID: <31150264.1202159768765.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I've the following requirement to implement. The consumer of the web services register for any change using web service. And the web service send a message to all register consumers when ever there is change. It is kind of JMS but need to be implemented using Web Services. How can I implement this using web service? Is there any document that has example. Regards, Surafel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126351#4126351 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126351 From do-not-reply at jboss.com Mon Feb 4 16:55:22 2008 From: do-not-reply at jboss.com (petrovs) Date: Mon, 4 Feb 2008 16:55:22 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Juddi broken on 4.2.1 + 4.2.2 Message-ID: <27268930.1202162123032.JavaMail.jboss@colo-br-02.atl.jboss.com> pleamon wrote on Dec 4, 2007: anonymous wrote : I've been using jboss AS 4.0.5 GA and 4.2.0 GA and have been successfully using the juddi service as my uddi registry. When I move to 4.2.1 GA or 4.2.2 GA I now get this: | ERROR [org.jboss.jaxr.juddi.JUDDIServlet] org.jboss.ws.core.soap.TextImpl | java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl | at org.jboss.jaxr.juddi.JUDDIServlet.doPost(JUDDIServlet.java:120) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | ... Yes, JBoss 4.2.2 ships with a broken jUDDI implementation. JBoss adds its own org.jboss.jaxr.juddi.JUDDIServlet (located under ${JUDDI_SAR}/juddi.war/WEB-INF/classes) on the top of Apache's juddi. This class contains a bug in doPost() method. The cause of the problem is mentioned in JBossWS JIRA (you have to scroll all the way down to Richard Oplaka's comment from Jan 8, 2008): http://jira.jboss.com/jira/browse/JBWS-1905 On JUDDI side this problem is documented here: https://issues.apache.org/jira/browse/JUDDI-114 Looks like JBoss developers changed JBossWS code to follow SOAP specification (see discussion here: http://www.jboss.org/?module=bb&op=viewtopic&t=100782) but forgot to fix multiple clients of their code (JUDDIServlet included). The problematic pattern is here: SOAPBody soapReqBody = soapReq.getSOAPBody(); | Element uddiReq = (Element)soapReqBody.getFirstChild(); If you can patch JUDDIServlet, replace the above fragment with something like this and it will work fine: SOAPBody soapReqBody = soapReq.getSOAPBody(); | Iterator elements = soapReqBody.getChildElements(); | Element uddiReq = null; | while ( elements.hasNext() ){ | Object element = elements.next(); | if ( element instanceof Element ){ | uddiReq = (Element) element; | break; | } | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126361#4126361 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126361 From do-not-reply at jboss.com Tue Feb 5 00:45:25 2008 From: do-not-reply at jboss.com (nlaney) Date: Tue, 5 Feb 2008 00:45:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - NoClassDefFoundError using Eclipse/JUnit Message-ID: <22328384.1202190325193.JavaMail.jboss@colo-br-02.atl.jboss.com> hello, I'm accessing a WS running on JBoss 4.2.2 using JBossWS 2.0.3 I've generated the service artifacts using wsconsume and I'm getting a NoClassDefFoundError running the client code as a JUnit or Java app. The same test runs OK from the command line using wsrunclient, or at least when copying the generated cmd line string into a cmd prompt, and it works when running the test during the Maven build lifecycle. I would like to be able to run the tests in the Eclipse WTP 2.0 workbench. Any help would be appreciated. The test is just a basic HelloWorld, and the stacktrace is: java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.(AttachmentUnmarshallerImpl.java:55) at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:500) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242) at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210) at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103) at $Proxy25.findAll(Unknown Source) at org.MyTest.test(MyTest.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.ClassNotFoundException: com.sun.xml.messaging.saaj.soap.AttachmentPartImpl at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 25 more Paste stack traces into this console and follow hyperlinks to source code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126438#4126438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126438 From do-not-reply at jboss.com Tue Feb 5 02:32:32 2008 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Tue, 5 Feb 2008 02:32:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Generated Classes does not have constructors... Message-ID: <29489185.1202196752594.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Ofcourse there is no problme in using the default constructor but then one have to set all the parameters after instantiating the object. What I pefer that transferable classes should also have the constructors as on server side. This is the exactly case with the auto generated classes with Axis apache tool. Regards, Zeeshan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126455#4126455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126455 From do-not-reply at jboss.com Tue Feb 5 04:13:51 2008 From: do-not-reply at jboss.com (AJanz) Date: Tue, 5 Feb 2008 04:13:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Web Serivce Response Missing the XML Declaration Message-ID: <13944685.1202202831778.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, does your interceptor work now? greetings sascha View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126484#4126484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126484 From do-not-reply at jboss.com Tue Feb 5 05:19:49 2008 From: do-not-reply at jboss.com (centecbertl) Date: Tue, 5 Feb 2008 05:19:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: http://org.jboss.ws/http#chunksize Message-ID: <4582327.1202206789591.JavaMail.jboss@colo-br-02.atl.jboss.com> "Ratoo" wrote : | "heiko.braun at jboss.com" wrote : | | HTTP 1.0 Client Did you try that one? | | | | Where is it? How can I configure it? | You can use the tomcat Connector configuration to achieve this. Example given for jboss 4.0.5 restricts .net 2.0 clients to use HTTP 1.0: | $ diff -U 5 server.xml~ server.xml | --- server.xml~ 2006-12-06 16:03:28.403259700 +0100 | +++ server.xml 2006-12-16 10:18:38.265625000 +0100 | @@ -11,16 +11,18 @@ | | | + connectionTimeout="20000" disableUploadTimeout="true" | + restrictedUserAgents="^.*MS Web Services Client Protocol.*$"/> | | | + | | | | @@ -29,11 +31,12 @@ | | + keystorePass="centec" sslProtocol = "TLS" | + restrictedUserAgents="^.*MS Web Services Client Protocol.*$"/> | | | | | ? ? ? ? ? 0 0 0 ? ? ? ? This request always gives a soap error: SOAP-ENV:Server prefix xsz is not bound to a namespace But if I remove the xsi:type="xsz:int" attribute from the xsda:phoneAreaCode tag I don't get the error. Any idea why? Here's the essential wsdl content of the service (I've removed irrelevant operations/types): I'm trying to debug a problem where the app I'm using is automatically applying xsi:type attributes to every parameter of the operation. There's no problem with parameters defined as xsd:string having xsi:type="xsz:string", just with values which are defined as xsd:int which have xsi:type="xsz:int" in the SOAP request. Regards Barny View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130142#4130142 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130142 From do-not-reply at jboss.com Tue Feb 19 05:31:34 2008 From: do-not-reply at jboss.com (jalaja) Date: Tue, 19 Feb 2008 05:31:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - how to change the context name in JSE Message-ID: <11839995.1203417094068.JavaMail.jboss@colo-br-02.atl.jboss.com> hi i want to change the context path to my application.i am using JSE END POINTS.in ejb @webcontext annotation will be used what is equalent in jse to change the context of the webapplication. plz if anybody faced the same problem plz let me know. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130339#4130339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130339 From do-not-reply at jboss.com Tue Feb 19 06:38:52 2008 From: do-not-reply at jboss.com (Ollie1979) Date: Tue, 19 Feb 2008 06:38:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - WSProvideTask throws NoClassDefFoundError while class in cla Message-ID: <29595348.1203421132425.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am new to JBoss and web services so bear with me. I'm trying to generate artifacts for my web service using the wsprovide tool/ant task and I keep getting exceptions. This is my web service: package helloworld; | | import javax.jws.WebService; | | import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.web.context.support.SpringBeanAutowiringSupport; | | @WebService | public class HelloWorld extends SpringBeanAutowiringSupport { | | @Autowired | private MessageProvider messageProvider ; | | public String sayHello(String name) { | return messageProvider.getMessage() + " " + name ; | } | } I'm deploying this on JBoss using the Eclipse WTP plugin and it works fine. My client can call this web service without a problem. However, I would like to generate the web service artifacts myself (instead of letting JBoss take care of it) and my Ant script keeps throwing exceptions. This is my Ant build script: | | | | Generates JAX-WS artifacts for our service endpoint implementation(s) | | | | | | | | | | | | | | | | | | | | | And this is it's output: | Buildfile: C:\Documents and Settings\Ollie\workspace\helloworld\build.xml | | generate-artifacts: | [WSProvideTask] Command invoked: org.jboss.wsf.spi.tools.cmd.WSProvide -w -t helloworld.HelloWorld | [WSProvideTask] Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/web/context/support/SpringBeanAutowiringSupport | [WSProvideTask] at java.lang.ClassLoader.defineClass1(Native Method) | [WSProvideTask] at java.lang.ClassLoader.defineClass(Unknown Source) | [WSProvideTask] at java.security.SecureClassLoader.defineClass(Unknown Source) | [WSProvideTask] at java.net.URLClassLoader.defineClass(Unknown Source) | [WSProvideTask] at java.net.URLClassLoader.access$000(Unknown Source) | [WSProvideTask] at java.net.URLClassLoader$1.run(Unknown Source) | [WSProvideTask] at java.security.AccessController.doPrivileged(Native Method) | [WSProvideTask] at java.net.URLClassLoader.findClass(Unknown Source) | [WSProvideTask] at java.lang.ClassLoader.loadClass(Unknown Source) | [WSProvideTask] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) | [WSProvideTask] at java.lang.ClassLoader.loadClass(Unknown Source) | [WSProvideTask] at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:162) | [WSProvideTask] at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:77) | [WSProvideTask] Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.support.SpringBeanAutowiringSupport | [WSProvideTask] at java.net.URLClassLoader$1.run(Unknown Source) | [WSProvideTask] at java.security.AccessController.doPrivileged(Native Method) | [WSProvideTask] at java.net.URLClassLoader.findClass(Unknown Source) | [WSProvideTask] at java.lang.ClassLoader.loadClass(Unknown Source) | [WSProvideTask] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) | [WSProvideTask] at java.lang.ClassLoader.loadClass(Unknown Source) | [WSProvideTask] at java.lang.ClassLoader.loadClassInternal(Unknown Source) | [WSProvideTask] ... 13 more | | BUILD FAILED | C:\Documents and Settings\Ollie\workspace\helloworld\build.xml:22: Could not invoke WSProvideTask | | Total time: 1 second WebContent/WEB-INF/lib (see classpath of WSProvideTask) contains spring.jar. What's going on? Why can't WSProvideTask find the sping class? Using the command line yields the same result (NoClassDefFoundError). It's probably something silly but I can't figure it out. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130368#4130368 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130368 From do-not-reply at jboss.com Tue Feb 19 08:35:45 2008 From: do-not-reply at jboss.com (chavali) Date: Tue, 19 Feb 2008 08:35:45 -0500 (EST) Subject: [jbossws-users] [JBossWS] - axisFault occured during service invocation:java.lang.Illega Message-ID: <5946270.1203428145513.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi We are working on webservices with axis2 on jboss. We are getting the following exception with the stub. The request is processed bsent to the legacy system through skeleton and then through JCA.The response is received in JCA. But the stub is receiving exception. Here is the exception. axisFault occured during service invocation:java.lang.IllegalStateException: attribute type accessed in illegal event! The Axis Fault Reason is:null The Axis Fault Node URI:null org.apache.axis2.AxisFault: java.lang.IllegalStateException: attribute type accessed in illegal event! at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) at xlink.MonitoringServicesServerStub.CSTAMonitorStart(MonitoringServicesServerStub.java:385) at xlink.MonitoringStartClient.main(MonitoringStartClient.java:84) Can somebody help in this regard. Chavali View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130396#4130396 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130396 From do-not-reply at jboss.com Tue Feb 19 09:09:01 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Tue, 19 Feb 2008 09:09:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WS-Security and jbossws-3.0-metro-1.0.0.GA Message-ID: <3658159.1203430141661.JavaMail.jboss@colo-br-02.atl.jboss.com> Not yet, but we'd be happy if you could provide one ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130409#4130409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130409 From do-not-reply at jboss.com Tue Feb 19 12:21:16 2008 From: do-not-reply at jboss.com (cavani) Date: Tue, 19 Feb 2008 12:21:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Change the endpoint address in runtime using Dispatch Message-ID: <18184244.1203441676941.JavaMail.jboss@colo-br-02.atl.jboss.com> I have this problem too, but don't consider like a bug. I work it around with (after read many jbossws code): | service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress); | where "endpointAddress" is your "url" and "portName" is the same "portQName". this must be before dispach creation. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130484#4130484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130484 From do-not-reply at jboss.com Tue Feb 19 17:29:02 2008 From: do-not-reply at jboss.com (xiaow) Date: Tue, 19 Feb 2008 17:29:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - How to setup wsse usernametoken for ejb3 based web services? Message-ID: <9044629.1203460142611.JavaMail.jboss@colo-br-02.atl.jboss.com> I have tried to solve this for several weeks for jboss on either 4.2.2 or 5 beta 4 and was very frustrated. And I have easily configured this feature in Glassfish v3 and Oracle AS 10g. Now I work on a very simple web service annotated from a session bean as following: @webservice @stateless public class Test{ @Resource SessionContext context; public test(){ String userName = context.getCallerPrincipal().getName(); System.out.println("The calling user is " + userName); } } I would like to see how step by step to configure only the usernametoken wsse feature for the web service against an LDAP source such as openldap or active directory in a jboss server (any version), so that the ejb test method is invoked and it prints the user name of the caller in the console (or log). Your assistance is greatly appreciated. Wu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130556#4130556 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130556 From do-not-reply at jboss.com Tue Feb 19 18:00:03 2008 From: do-not-reply at jboss.com (mjhammel) Date: Tue, 19 Feb 2008 18:00:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to setup wsse usernametoken for ejb3 based web servi Message-ID: <33525657.1203462003744.JavaMail.jboss@colo-br-02.atl.jboss.com> I had a similar problem and was able to resolve finding the username though have not been able to pull the password (haven't tried implementing a handler for that yet). See this thread: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=128375 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130565#4130565 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130565 From do-not-reply at jboss.com Tue Feb 19 19:54:07 2008 From: do-not-reply at jboss.com (IcemanAragorn) Date: Tue, 19 Feb 2008 19:54:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Webservice appears to deploy, but doesn't... Why not? Message-ID: <27172714.1203468847259.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a webservice that appears to deploy, with jboss saying the following: anonymous wrote : 16:20:00,006 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.2.1.GA/server/default/deploy/ProjectName_EAR-0.0.1.ear | 16:20:00,787 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer | 16:20:00,787 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=ProjectName_EAR-0.0.1.ear,jar=ProjectName-1.0-SNAPSHOT.jar,name=Import,service=EJB3 with dependencies: | 16:20:00,837 INFO [EJBContainer] STARTED EJB: com.owfg.ProjectName.webservice.Import ejbName: Import | 16:20:00,857 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24683ProjectName_EAR-0.0.1.ear-co | ntents/lib/ProjectName-1.0-SNAPSHOT.jar | 16:20:00,877 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.2.1.GA/server/default/deploy/ProjectName_EAR-0.0.1.ear However, comparing it to another webservice that was deployed, it's missing a few pieces (italicized): anonymous wrote : 16:19:45,657 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.2.1.GA/server/default/deploy/Project2_EAR-0.0.1.ear | 16:19:49,362 WARN [MainDeployer] Found non-jar deployer for SNMPRelay-1.0-SNAPSHOT.jar: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer] | 16:19:57,693 INFO [TomcatDeployer] deploy, ctxPath=/Project2Service, warUrl=.../tmp/deploy/Project2_EAR-0.0.1.ear-Project2-1.0-SNAPSHOT.jar-ws24682.w | ar/ | 16:19:58,204 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer | 16:19:58,224 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=Project2_EAR-0.0.1.ear,jar=Project2-1.0-SNAPSHOT.jar,name=Project2,service= | EJB3 with dependencies: | 16:19:58,574 INFO [EJBContainer] STARTED EJB: com.owfg.Project2.webservice.Project2ejbName: Project2 | 16:19:58,614 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24679Project2_EAR-0.0.1.ear-contents/lib/Project2-1.0 | -SNAPSHOT.jar | 16:19:58,915 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.2.1.GA/server/default/data/wsdl/Project2_EAR-0.0.1.ear/Project2-1.0-SNAPSHO | T.jar/Project2Service24680.wsdl | 16:19:59,556 INFO [ServiceEndpointManager] WebService started: http://localhost:8080/Project2Service/Project2 | 16:19:59,576 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.2.1.GA/server/default/deploy/Project2_EAR-0.0.1.ear Both webservices are annotated as @WebService and @Stateless, but the one that isn't deploying properly is implementing ImportRemote and ImportLocal classes, which are just simple interfaces with @Remote or @Local respectively. For some reason recently jboss started complaining that there were no remote or local interfaces, so I added them. It's strange that it wasn't complaining in the past, and still doesn't complain about Project2 not having any. Any ideas where I can find clues to figure out why it isn't deploying properly (or, if it is the base issue, why jboss suddenly starting asking for interfaces)? Thanks so much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130592#4130592 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130592 From do-not-reply at jboss.com Tue Feb 19 20:35:51 2008 From: do-not-reply at jboss.com (mrostan) Date: Tue, 19 Feb 2008 20:35:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Change the endpoint address in runtime using Dispatch Message-ID: <4241203.1203471351390.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi cavani, I think it's a bug. The JAX-WS 2.0 specification states (in sections 4.3.1 and 4.2.1.1) the support for this property is mandatory. Thanks, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130597#4130597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130597 From do-not-reply at jboss.com Wed Feb 20 04:39:28 2008 From: do-not-reply at jboss.com (mariuszs) Date: Wed, 20 Feb 2008 04:39:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - [JAXB] Problem with generating XML from Schema Message-ID: <18478078.1203500368252.JavaMail.jboss@colo-br-02.atl.jboss.com> I have sample schema: | | | | | | | | | | | Generated objects: // | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.5-b01-fcs | // See http://java.sun.com/xml/jaxb | // Any modifications to this file will be lost upon recompilation of the source schema. | // Generated on: 2008.02.20 at 10:25:59 AM CET | // | | | package pl.pentacomp.pentascape.da; | | import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlRootElement; | import javax.xml.bind.annotation.XmlType; | | | /** | *

Java class for anonymous complex type. | * | *

The following schema fragment specifies the expected content contained within this class. | * | *

  |  * <complexType>
  |  *   <complexContent>
  |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  |  *       <sequence>
  |  *         <element name="Element" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
  |  *       </sequence>
  |  *     </restriction>
  |  *   </complexContent>
  |  * </complexType>
  |  * 
| * | * | */ | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "", propOrder = { | "element" | }) | @XmlRootElement(name = "DocSample", namespace = "http://www.test.com/app") | public class DocSample { | | @XmlElement(name = "Element", namespace = "http://www.test.com/app", required = true) | protected Object element; | | /** | * Gets the value of the element property. | * | * @return | * possible object is | * {@link Object } | * | */ | public Object getElement() { | return element; | } | | /** | * Sets the value of the element property. | * | * @param value | * allowed object is | * {@link Object } | * | */ | public void setElement(Object value) { | this.element = value; | } | | } | Java code: @Test | public void testSample() { | DocSample doc = new DocSample(); | doc.setElement(new String("sdsd")); | | StreamResult result = new StreamResult(new StringWriter()); | | JAXBContext jaxbContext; | try { | jaxbContext = JAXBContext.newInstance(DocSample.class); | Marshaller marshaller = jaxbContext.createMarshaller(); | marshaller.marshal(doc, result); | | } catch (JAXBException e) { | | e.printStackTrace(); | } | | String response = result.getWriter().toString(); | | System.out.println(response); | | } And result XML: | | | sdsd | | Is this XML correct? Why xmlns:xs, xmlns:xsi are assigned to Element, not DocSample. Please help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130664#4130664 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130664 From do-not-reply at jboss.com Wed Feb 20 04:50:24 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 20 Feb 2008 04:50:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: [JAXB] Problem with generating XML from Schema Message-ID: <27637768.1203501024591.JavaMail.jboss@colo-br-02.atl.jboss.com> It looks correct to me. However your questions/problems post here if they are JAXB related: http://forums.java.net/jive/forum.jspa?forumID=46 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130668#4130668 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130668 From do-not-reply at jboss.com Wed Feb 20 07:42:49 2008 From: do-not-reply at jboss.com (extasy) Date: Wed, 20 Feb 2008 07:42:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Reg : XmlAnyAttribute behavior Message-ID: <11082541.1203511370044.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Can anybody help on the behavior of @XmlAnyAttribute. Its not serving the purpose. By using @XmlAnyAttribute: when adding an optional attribute will the old stubs throw error. Wats the exact use of this then. Also help on minoccurs=0 | 1 and nillable. Am not able to deploy a service while using these. Babu N View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130724#4130724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130724 From do-not-reply at jboss.com Wed Feb 20 09:55:37 2008 From: do-not-reply at jboss.com (xiaow) Date: Wed, 20 Feb 2008 09:55:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to setup wsse usernametoken for ejb3 based web servi Message-ID: <33219743.1203519337982.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the reply. This is not same issue. My client side is no java. Basically I expect my client side to send soap message with standard wsse header in which the usernametaken is attached. And the server side should be able to authenticate the incoming user against a ldap source. Without changine the code, I have done this easily in Glassfish and Oracle AS. But in preferred Jboss, I truely need help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130769#4130769 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130769 From do-not-reply at jboss.com Wed Feb 20 10:27:44 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 20 Feb 2008 10:27:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to setup wsse usernametoken for ejb3 based web servi Message-ID: <5627248.1203521264964.JavaMail.jboss@colo-br-02.atl.jboss.com> My post here http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121401#4121401 might help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130788#4130788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130788 From do-not-reply at jboss.com Wed Feb 20 10:28:14 2008 From: do-not-reply at jboss.com (rukus) Date: Wed, 20 Feb 2008 10:28:14 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: out parameter Message-ID: <19365188.1203521294509.JavaMail.jboss@colo-br-02.atl.jboss.com> nobody knows? :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130789#4130789 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130789 From do-not-reply at jboss.com Wed Feb 20 11:55:11 2008 From: do-not-reply at jboss.com (Ratoo) Date: Wed, 20 Feb 2008 11:55:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - @XmlAnyElement and namespace Message-ID: <6641615.1203526512018.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello all, I have a problem with XmlAnyElement @XmlAnyElement(lax = true) JBoss remove the namespace from my object while marshalling. I just making an echo service with JDK6 client. So, client sends: | | | | | | | | | | | | | | | JBoss serialize it into the object and sends it back | @WebResult(name="MOBY", targetNamespace="http://www.biomoby.org/moby") | public MobyMessage runMyService(@WebParam(name="MOBY", targetNamespace="http://www.biomoby.org/moby", mode = WebParam.Mode.IN) MobyMessage msg) | { | return msg; | } | so the marshalled by JBoss message is ALMOST the same | | | | | | | | | | | | | | | | except that where I have | @XmlAnyElement(lax = true) | Object getObject() | it puts EMPTY namespace. is this a bug? Because SUN JAX-WS implementation marshals it OK. Thank You, Ratoo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130863#4130863 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130863 From do-not-reply at jboss.com Wed Feb 20 12:39:33 2008 From: do-not-reply at jboss.com (Ratoo) Date: Wed, 20 Feb 2008 12:39:33 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: @XmlAnyElement and namespace Message-ID: <26684762.1203529173809.JavaMail.jboss@colo-br-02.atl.jboss.com> Yeah! It works like a charm in jbossws-3.0-metro-1.0.0.GA. Thank you JBoss team, you release new versions quicker than I discover bugs :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130875#4130875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130875 From do-not-reply at jboss.com Wed Feb 20 14:28:18 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 20 Feb 2008 14:28:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: out parameter Message-ID: <1823413.1203535698700.JavaMail.jboss@colo-br-02.atl.jboss.com> I think nobody understands what you are asking for ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130902#4130902 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130902 From do-not-reply at jboss.com Thu Feb 21 05:32:18 2008 From: do-not-reply at jboss.com (rukus) Date: Thu, 21 Feb 2008 05:32:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: out parameter Message-ID: <13032260.1203589939124.JavaMail.jboss@colo-br-02.atl.jboss.com> "heiko.braun at jboss.com" wrote : I think nobody understands what you are asking for ;) hmm - ok, maybe this let others to understand what i want: For example we have: @WebMethod public void get_parameter(String outParam) { | outParam="Test"; | } | When we invoke this webmethod from client: String param="empty"; | myservice.get_parameter(param); | System.out.println(param); //output Test instead empty View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131021#4131021 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131021 From do-not-reply at jboss.com Thu Feb 21 09:28:12 2008 From: do-not-reply at jboss.com (rukus) Date: Thu, 21 Feb 2008 09:28:12 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: out parameter Message-ID: <31645184.1203604092871.JavaMail.jboss@colo-br-02.atl.jboss.com> *upd: instead of string may be user-defined object View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131085#4131085 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131085 From do-not-reply at jboss.com Thu Feb 21 10:31:41 2008 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 21 Feb 2008 10:31:41 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: out parameter Message-ID: <29927098.1203607901820.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! In such cases you have to return the new "state" to the client in form av a returned object. So you cannot have this method as a void method. Cheers /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131113#4131113 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131113 From do-not-reply at jboss.com Thu Feb 21 13:00:18 2008 From: do-not-reply at jboss.com (arvi) Date: Thu, 21 Feb 2008 13:00:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - SubClasses not included into WSDL Message-ID: <25219184.1203616818613.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, The WSDL file generated using java classes does not include the sub classes for an abstract class. This is the actual case. 1) The service class is abstract, which is extended many other classes. 2) The serviceProfile class has a Collection of service class. The WSDL includes only the service class and not the subclasses, Is there anyway to include them into the WSDL? With the earlier implmentation using JBoss-net we used web-service.xml for explicit 'typeMappings'. Is there a way for this explicit typeMappings with JBossWS? Thanks, Arvind View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131168#4131168 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131168 From do-not-reply at jboss.com Thu Feb 21 13:22:23 2008 From: do-not-reply at jboss.com (chavali) Date: Thu, 21 Feb 2008 13:22:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - How to maintain session management with web services Message-ID: <32149796.1203618143290.JavaMail.jboss@colo-br-02.atl.jboss.com> we have both webservices (synchronous request/responses and asynchronous events from legacy system). Synchronous requests are towards the legacy system and asynchronous events reported from the legacy system are reported to client invoked using asynchronous webservice request implemented in the clientside webserver. There is a need to maintain user session per client throughout the session. Can somebody suggest the solution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131180#4131180 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131180 From do-not-reply at jboss.com Thu Feb 21 13:27:48 2008 From: do-not-reply at jboss.com (chavali) Date: Thu, 21 Feb 2008 13:27:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - CSTA ECMA wsdl Message-ID: <31654541.1203618468534.JavaMail.jboss@colo-br-02.atl.jboss.com> Has anybody worked on CSTA ECMA wsdl? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131182#4131182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131182 From do-not-reply at jboss.com Thu Feb 21 18:39:51 2008 From: do-not-reply at jboss.com (heapifyman) Date: Thu, 21 Feb 2008 18:39:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Installing jbossws on Mac OS X fails due to missing tools.ja Message-ID: <1603533.1203637191999.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello. I tried running the ant script for installing jbossws 2.0.3 into a jboss 4.0.5 following the installation instructions but the installation failed because it couldn't locate the tools.jar in the jdk. Could someone give me a hint on how I can install jbossws under Mac OS X? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131251#4131251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131251 From do-not-reply at jboss.com Thu Feb 21 18:45:48 2008 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 21 Feb 2008 18:45:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Installing jbossws on Mac OS X fails due to missing tool Message-ID: <15248610.1203637548280.JavaMail.jboss@colo-br-02.atl.jboss.com> Do you have JAVA_HOME set to a JDK? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131252#4131252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131252 From do-not-reply at jboss.com Fri Feb 22 02:57:03 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 22 Feb 2008 02:57:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to maintain session management with web services Message-ID: <10737952.1203667023856.JavaMail.jboss@colo-br-02.atl.jboss.com> Service service = Service.create(wsdlURL, serviceName); YourServiceIface proxy = (YourServiceIface)service.getPort(YourServiceIface.class); ((BindingProvider)proxy).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131295#4131295 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131295 From do-not-reply at jboss.com Fri Feb 22 03:28:44 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 22 Feb 2008 03:28:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Installing jbossws on Mac OS X fails due to missing tool Message-ID: <7391619.1203668924186.JavaMail.jboss@colo-br-02.atl.jboss.com> Mac OS X has a weird JDK layout. They basically rename everything, especially tools.jar is named classes.jar and doesn't reside under JAVA_HOME/lib. If I remember correctly it's in JAVA_HOME/LIbraries. So all you need to do is to symlink JAVA_HOME/Libraries/classes.jar to JAVA_HOME/lib/tools.jar. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131300#4131300 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131300 From do-not-reply at jboss.com Fri Feb 22 06:29:49 2008 From: do-not-reply at jboss.com (JoPe) Date: Fri, 22 Feb 2008 06:29:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Type mapping trouble with JAX-WS and EJB3 Message-ID: <25711582.1203679789805.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm trying to write my first own webservice using EJBs (V3) in a JBoss 4.2.2. Building and deploying the webservice bean works fine, but when I try to access a web method with no parameters and no return type like this: package test.de.laliluna.library; | import java.net.URL; | import javax.xml.namespace.QName; | import javax.xml.rpc.Service; | import javax.xml.rpc.ServiceFactory; | import de.laliluna.library.BookTestBean; | | public class WebServiceTestClient | { | public static void main(String[] args) throws Exception | { | URL url = new URL("http://localhost:8080/FirstEjb3Tutorial/BookTestBean?wsdl"); | QName qname = new QName("http://library.laliluna.de/", "BookTestBeanService"); | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, qname); | | BookTestBean serviceEndpoint = (BookTestBean)service.getPort(BookTestBean.class); | serviceEndpoint.test(); | } | } it throws this exception: Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://library.laliluna.de/}test | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processDocElement(JAXRPCMetaDataBuilder.java:627) | ... | at test.de.laliluna.library.WebServiceTestClient.main(WebServiceTestClient.java:18) where the last line refers to "Service service = factory.createService(url, qname);" My questions are: 1. I thought using JAX-WS and Annotations would take care of all the webservice-configuration-XML-SOAP stuff for me. Do I still need to manually specify a type mapping? How? Where? 2. The web method I try to access has neither parameters nor a return value. How can there be any types to map?? If you could make me friends with webservices again, they and I would really appreciate it. >From here: Server code. package de.laliluna.library; | import java.rmi.Remote; | import java.util.Iterator; | import java.util.List; | import javax.ejb.Stateless; | import javax.jws.Oneway; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | @Stateless | @WebService | public class BookTestBean implements BookTestBeanLocal, BookTestBeanRemote, Remote | { | @PersistenceContext | EntityManager em; | public static final String RemoteJNDIName = BookTestBean.class.getSimpleName() + "/remote"; | public static final String LocalJNDIName = BookTestBean.class.getSimpleName() + "/local"; | | @WebMethod | @Oneway | public void test() | { | Book book = new Book(null, "My first bean book", "Sebastian"); | em.persist(book); | Book book2 = new Book(null, "another book", "Paul"); | em.persist(book2); | Book book3 = new Book(null, "EJB 3 developer guide, comes soon", "Sebastian"); | em.persist(book3); | System.out.println("list some books"); | List someBooks = em.createQuery("from Book b where b.author=:name").setParameter("name", "Sebastian") | .getResultList(); | for(Iterator iter = someBooks.iterator(); iter.hasNext() ;) | { | Book element = (Book)iter.next(); | System.out.println(element); | } | System.out.println("List all books"); | List allBooks = em.createQuery("from Book").getResultList(); | for(Iterator iter = allBooks.iterator(); iter.hasNext() ;) | { | Book element = (Book)iter.next(); | System.out.println(element); | } | System.out.println("delete a book"); | em.remove(book2); | System.out.println("List all books"); | allBooks = em.createQuery("from Book").getResultList(); | for(Iterator iter = allBooks.iterator(); iter.hasNext() ;) | { | Book element = (Book)iter.next(); | System.out.println(element); | } | } | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131354#4131354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131354 From do-not-reply at jboss.com Fri Feb 22 07:00:54 2008 From: do-not-reply at jboss.com (rukus) Date: Fri, 22 Feb 2008 07:00:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: out parameter Message-ID: <6075449.1203681654311.JavaMail.jboss@colo-br-02.atl.jboss.com> "oskar.carlstedt" wrote : Hi! | | In such cases you have to return the new "state" to the client in form av a returned object. So you cannot have this method as a void method. | | Cheers | /Oskar | | i know that i can return new state of object by using "return" statement but this isn't what i need View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131365#4131365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131365 From do-not-reply at jboss.com Fri Feb 22 07:23:28 2008 From: do-not-reply at jboss.com (cdc08x) Date: Fri, 22 Feb 2008 07:23:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <7163070.1203683008123.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok, I tried and used the SwAref technique many times, and everything worked perfectly. Sadly, a new problem: when I wanted to send back to the client a List of complex objects, each with a DataHandler field, to treat as an attachment, a problem came. In detail, here's the webservice interface method signature (btw, I'm sorry if I did not translate names from Italian): | ... | @WebMethod(operationName="getDocumentiRichiestaAvvioPratica") | @WebResult(name="documentiData") | List getDocumentiRichiestaAvvioPratica( | @WebParam(name="numeroIstanza") int numeroIstanza, | @WebParam(name="settore") String settore, | @WebParam(name="natura") String natura) | throws IllegalArgumentException; | ... | And here is the definition of DocumentoData | @XmlRootElement(name="DocumentoData") | public class DocumentoData { | /** | * Autore del documento. | */ | @XmlAttribute(required=true) | public String autore; | /* | many other fields here... | */ | /** | * Contenuto binario del documento (mappato come SwAref, allegato SOAP) | */ | @XmlElement | @XmlAttachmentRef | public DataHandler data; | | protected DocumentoData() {} | | /** | * Costruttore di istanze DocumentoData | * @param autore Autore del documento | * @param dataCreazione Data di creazione del documento | * @param numeroDocumento Numero del documento | * @param protocollo Protocollo del documento (pu???? essere null) | * @param nomeFile Nome del file | * @param titolo Titolo del file | * @param descrizione Descrizione del contenuto (pu???? essere una stringa vuota) | * @param data Handler dei dati fisici del file | */ | public DocumentoData(String autore, Calendar dataCreazione, | int numeroDocumento, Protocollo protocollo, | String nomeFile, String titolo, String descrizione, DataHandler data) { | this.autore = autore; | this.dataCreazione = dataCreazione; | this.numeroDocumento = numeroDocumento; | this.protocollo = protocollo; | this.nomeFile = nomeFile; | this.titolo = titolo; | this.descrizione = descrizione; | this.data = data; | } | } | This is the outgoing SOAP message, when the method's invocated | HTTP/1.1 200 OK | Server: Apache-Coyote/1.1 | X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5 | Content-Type: text/xml;charset=UTF-8 | Date: Fri, 22 Feb 2008 12:17:52 GMT | Connection: close | | | | | | | | 14 | RichiestaAvvio.13.A2.1244.pdf | Richiesta avvio procedimento - Settore Vincolo Idrogeologico - Allargamento pista camionabile | Richiesta avvio procedimento | cid:0-1203682672701-305379 at ws.jboss.org | | | 14 | RichiestaAvvio.13.A2.1244.pdf | Richiesta avvio procedimento - Settore Vincolo Idrogeologico - Allargamento pista camionabile | Richiesta avvio procedimento | cid:1-1203682672702-32409330 at ws.jboss.org | | | | | That is: there's no attachment, just cids into the SOAP message. Instead, if I send back just ONE DocumentoData object, everything works. Could someone suggest me why? Thank you very much, in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131376#4131376 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131376 From do-not-reply at jboss.com Fri Feb 22 12:18:13 2008 From: do-not-reply at jboss.com (devfree) Date: Fri, 22 Feb 2008 12:18:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Error create consumer Message-ID: <25284617.1203700693331.JavaMail.jboss@colo-br-02.atl.jboss.com> When I intent create to consumer I get an error: Couldn't create Consumer 'bea' Cause: could not insert: [org.jboss.portal.wsrp.consumer.ProducerInfo] , but in the first intent I get an error: setProperty must be overridden by all subclasses of SOAPMessage then I intent again and I get an error of consumer. please help me thanksss !!! JBOSS AS: jboss-4.2.2.GA JBOSS Portal: jboss-portal-2.6.3.GA JDK: 1.6.0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131504#4131504 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131504 From do-not-reply at jboss.com Fri Feb 22 12:48:24 2008 From: do-not-reply at jboss.com (xiaow) Date: Fri, 22 Feb 2008 12:48:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to setup wsse usernametoken for ejb3 based web servi Message-ID: <13719003.1203702504709.JavaMail.jboss@colo-br-02.atl.jboss.com> Can you put more details on how to configure EndpointConfig, SecurityDomain and WebContext? I believe they are jboss only annotations. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131518#4131518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131518 From do-not-reply at jboss.com Fri Feb 22 13:11:24 2008 From: do-not-reply at jboss.com (rainwood) Date: Fri, 22 Feb 2008 13:11:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - org.xml.sax.SAXParseException: Premature end of file ERROR Message-ID: <4683380.1203703884199.JavaMail.jboss@colo-br-02.atl.jboss.com> I use an EJB application deployed in Jboss 4.0.1 to call a web service, it got the following errors. But it workes when I use a stand alone program to call web service separately (not in EJB application and not deployed in jboss server). Does anybody here can help me to solve this problem? Any hint is helpful. Million appreciates, Yi xisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: Premature end of file. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.guidewire.bc.webservices.api.IDataObjectAPISoapBindingStub.findIds(IDataObjectAPISoapBindingStub.java:4315) at com.ravello.compquick.integration.billing.CQNMGWBillingAdapter.getBillingPlan(CQNMGWBillingAdapter.java:305) at com.ravello.compquick.integration.billing.CQNMGWBillingAdapter.doNewBusiness(CQNMGWBillingAdapter.java:234) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.ravello.compquick.framework.service.ObjectUtil.invokeMethod(ObjectUtil.java:110) at com.ravello.compquick.integration.billing.BillingIntegrator.invokeExternal(BillingIntegrator.java:44) at com.ravello.compquick.ejb.integration.IntegrationInvocationManagerBean.process(IntegrationInvocationManagerBean.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.invocation.Invocation.performCall(Invocation.java:345) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113) at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:123) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) at org.jboss.ejb.Container.invoke(Container.java:870) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104) at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:115) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:101) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91) at $Proxy543.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.ravello.compquick.framework.service.ObjectUtil.invokeMethod(ObjectUtil.java:110) at com.ravello.compquick.integration.CompquickMessageBean.invokeService(CompquickMessageBean.java:56) at com.ravello.compquick.integration.CompquickMessageBean.onMessage(CompquickMessageBean.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.invocation.Invocation.performCall(Invocation.java:345) at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:87) at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389) at org.jboss.ejb.Container.invoke(Container.java:870) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1248) at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256) at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904) at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159) at org.jboss.mq.SpySession.run(SpySession.java:351) at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) at java.lang.Thread.run(Thread.java:534) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131526#4131526 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131526 From do-not-reply at jboss.com Fri Feb 22 15:22:43 2008 From: do-not-reply at jboss.com (mrostan) Date: Fri, 22 Feb 2008 15:22:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: MTOM + WS Security = problem Message-ID: <2407749.1203711763695.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, we are also trying to use WS-Security + MTOM in JBossWS 2.0.1 and 2.0.3, we are sending big files so we need binary attachments instead of inline encoded data. Here is the result of our tests: - In JBossWS 2.0.1 you must change the configuration of the endpoint by adding ##SOAP11_HTTP_MTOM to the bindings protocol: | ##SOAP11_HTTP ##SOAP11_HTTP_MTOM | If ##SOAP11_HTTP_MTOM is not present, the handler is ignored, and the signature is not verified. - In JBossWS 2.0.3 you don't need to add ##SOAP11_HTTP_MTOM, it seems to consider the handler anyway. - In both versions we had problems sending the binary as an attachment (using SoapUI), we always receive: Signature is invalid - Using a JBossWS client, we didn't find a way to send the binary data as an attachment, it is sent always encoded inline. - If the binary data is sent inline the signature is verified (from the JBossWS client and also from SoapUI) - So, we could not make MTOM + Attachments + WS-Security work together Instead, we have moved to swaRef (simply annotating with @XmlAttachmentRef a DataHandler field) and everything works fine, you can remove the BindingType for MTOM. - So, we have now swaRef + WS-Security working fine There is some important difference between MTOM and swaRef? swaRef comes from ws-i, so I expect no interoperability problems. Somebody has MTOM and WS-Security working? Thanks, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131550#4131550 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131550 From do-not-reply at jboss.com Fri Feb 22 15:36:28 2008 From: do-not-reply at jboss.com (mrostan) Date: Fri, 22 Feb 2008 15:36:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <28499031.1203712588869.JavaMail.jboss@colo-br-02.atl.jboss.com> I believe it's a problem in ReflectiveAttachmentRefScanner, the recursion for collections (arrays or lists) is not working, the annotations are searched in the array or list type and not in the contained type. The workaround we have found is to add a wrapper object with a string and the collection, and annotate the string with @XmlMimeType This works because the purpose of this class is to return an AttachmentScanResult object, indicating if there are attachments or not. I don know why it works even returning XOP as the attachment type instead of SWA_REF. I believe it will also work if you change the string object with a DataHandler field annotated with @XmlAttachmentRef Regards, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131553#4131553 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131553 From do-not-reply at jboss.com Fri Feb 22 15:48:49 2008 From: do-not-reply at jboss.com (mrostan) Date: Fri, 22 Feb 2008 15:48:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Signature is invalid error when the message contains \r Message-ID: <13629826.1203713330044.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi. Well, I know it seems hard to believe. The signature verification fails if a string argument contains a \r character. To verify it simply modify the JAX-WS SimpleSignTestCase and change Kermit to Ke\r\nmit (I have tested it with \r\n, but if you remove \r it works) | in0.setMsg("Ke\r\nmit"); | I was debugging the JBossWS 2.0.1 and 2.0.3 sources, but I didn't find the problem. Someboy knows if this problem is something related to canonicalization, or something like that? Maybe \r is a restricted character, but I think it should be escaped automatically Thanks, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131555#4131555 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131555 From do-not-reply at jboss.com Fri Feb 22 16:00:11 2008 From: do-not-reply at jboss.com (mrostan) Date: Fri, 22 Feb 2008 16:00:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Using the jboss-ws-security with signature breaks when t Message-ID: <22165667.1203714012080.JavaMail.jboss@colo-br-02.atl.jboss.com> Look at this topic, it seems to be similar, but not related to the log level: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131555 Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131557#4131557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131557 From do-not-reply at jboss.com Fri Feb 22 16:56:51 2008 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 22 Feb 2008 16:56:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - wsrunclient.sh not working in jbossas 5.0 beta4 Message-ID: <11953496.1203717411411.JavaMail.jboss@colo-br-02.atl.jboss.com> There were some changes made to the wsrunclient.sh script between jbossas 5.0 beta3 and beta4, and the new script is incorrect. For example: $ ./wsrunclient.sh -classpath some/class/path my.java.Class agr1 arg2 arg3 Exception in thread "main" java.lang.NoClassDefFoundError: arg3 Apparently, the changes made in the script were tested only with the class name being the last argument passed to the script. If I replace the script with the one in beta3, then all is well again. (By the way, the wsrunclient.bat script works correctly in beta4.) Should I file a JIRA? OS: Fedora 6 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131565#4131565 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131565 From do-not-reply at jboss.com Sat Feb 23 02:10:54 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Sat, 23 Feb 2008 02:10:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: wsrunclient.sh not working in jbossas 5.0 beta4 Message-ID: <23677285.1203750654103.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi PeterJ, try up2date version of JBossWS. I think it was already fixed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131603#4131603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131603 From do-not-reply at jboss.com Sat Feb 23 02:17:00 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Sat, 23 Feb 2008 02:17:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Signature is invalid error when the message contains \r Message-ID: <31471162.1203751021002.JavaMail.jboss@colo-br-02.atl.jboss.com> Associated JIRA issue: http://jira.jboss.org/jira/browse/JBWS-2011 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131605#4131605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131605 From do-not-reply at jboss.com Sat Feb 23 22:53:04 2008 From: do-not-reply at jboss.com (matias.blasi) Date: Sat, 23 Feb 2008 22:53:04 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Web Services Transactions Message-ID: <5148229.1203825184908.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I am researching about the web services transactions behaiviour... I have read the WS-C, WS-AT & WS-BA specifications, and several internet papers, i have the concepts. Now I am looking for a working sample, to have something runing something to begin from... I know that Arjuna had an implementation, and it was included in jboss project so far. I understand it is now the jbossts component. I was trying to run the xts-demo application into the jboss-4.2.2 & jbossts-4.2.2 with no success... Now I am with jboss-5.0.0-beta4, where is the web services transcation support here? I see only a jbossws component, as a .sar application, but no samples, and nothing seems to provide the web services transaction support... Can anyone help me? I've put a lot of days in that, and I need a sample to see this feature really working... Thank you a lot! Matias Blasi. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131661#4131661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131661 From do-not-reply at jboss.com Sun Feb 24 13:37:19 2008 From: do-not-reply at jboss.com (cdc08x) Date: Sun, 24 Feb 2008 13:37:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <18647762.1203878239205.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you very much, Martin, for your help! Sadly, the solutions you suggested me aren't suitable for my case, because the other fields into the DocumentoData class are tightly connected to the DataHandler - that is, it's a design issue: they're all meta-information about the pdf file the DataHandler holds, so the wrapper should wrap a Collection of DocumentoData objects, and not a Collection of DataHandlers "alone"! I tried to wrap a Collection of DocumentoData instances, but it doesn't work anyway. On the other hand, the client is not MTOM/XOP enabled, because it's a PHP PEAR::SOAP client. I think I will have to abandon the idea of putting as attachment the files, then, and use the base64-encoding. Thank you, anyway! Best regards, Claudio View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131696#4131696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131696 From do-not-reply at jboss.com Sun Feb 24 18:21:32 2008 From: do-not-reply at jboss.com (rjaros) Date: Sun, 24 Feb 2008 18:21:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Client timeout Message-ID: <33252345.1203895292917.JavaMail.jboss@colo-br-02.atl.jboss.com> I've read many different comments about this subject on this forum and tried all of them but without luck. I'm trying to set timeout on web service call. My code looks like this: Service service = Service.create(wsdlLocation, serviceName); | BWSRemoteInterface port = (BWSRemoteInterface) service.getPort(new QName(url, "http://url"),BWSRemoteInterface.class); | I've tried this, hoping it will work: ((BindingProvider)port).getRequestContext().put(StubExt.PROPERTY_CLIENT_TIMEOUT, new Integer(500)); but it doesn't. I'm using JBoss 4.2.1 and JBossWS 2.0.1. My WS timeouts always after about 3 minutes. I would be very grateful for any help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131717#4131717 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131717 From do-not-reply at jboss.com Sun Feb 24 19:36:52 2008 From: do-not-reply at jboss.com (mrostan) Date: Sun, 24 Feb 2008 19:36:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <30722063.1203899812539.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Claudio. Maybe I was not clear enough, I'm not sure you have tried my solution, so here is an example: Create a wrapper class, let's say Documentos: | public class Documentos { | @XmlMimeType("application/octet-stream") | private String dummy; | | private List documentos; | } | It should work, the trick is the annotation in the dummy string, simply put the field, you don't need to use it Btw, I will upload a patch later, and I will test a case similar to yours, so I expect this problem to be fixed on jbossws 2.0.4 . Regards, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131721#4131721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131721 From do-not-reply at jboss.com Mon Feb 25 04:04:14 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 25 Feb 2008 04:04:14 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <29539161.1203930254033.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the thorough report Martin. I've created an isseu for it: http://jira.jboss.org/jira/browse/JBWS-2012 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131755#4131755 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131755 From do-not-reply at jboss.com Mon Feb 25 04:24:05 2008 From: do-not-reply at jboss.com (cdc08x) Date: Mon, 25 Feb 2008 04:24:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <20420323.1203931445684.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you Martin for your kind reply. I did appreciate it very much but... Here is the new wrapper class: | @XmlRootElement(name="Documenti") | public class DocumentiDataList { | @XmlMimeType("application/octet-stream") | protected String dummy; | | @XmlElement(name="documenti") | public List documenti; | | protected DocumentiDataList() {} | | public DocumentiDataList(List list) { | this.dummy = ""; | this.documenti = list; | } | } | where DocumentoData is: | @XmlRootElement(name="DocumentoData") | public class DocumentoData { | /** | * Autore del documento. | */ | @XmlAttribute(required=true) | public String autore; | | /** | * Data della creazione del documento. | */ | @XmlAttribute(required=true) | public Calendar dataCreazione; | | /** | * Numero identificativo (chiave) del documento | *
Deve essere univoco per ogni documento generato, e positivo. | */ | @XmlElement(required=true) | public int numeroDocumento; | | /** | * Numero di protocollo del documento (attributo opzionale). | *
Qualora presente, questo attributo deve essere univoco per tutti gli oggetti di questa classe. | */ | @XmlElement(required=false) | public Protocollo protocollo; | | /** | * Nome del file. | */ | @XmlElement(required=true) | public String nomeFile; | | /** | * Titolo del documento. | */ | @XmlElement(required=true) | public String titolo; | | /** | * Descrizione del documento (attributo opzionale). | */ | @XmlElement(required=false) | public String descrizione; | | /** | * Contenuto binario del documento (mappato come SwAref, allegato SOAP) | */ | @XmlAttachmentRef | public DataHandler file; | | // Costruttore richiesto da JAXB: impostandone l'accesso a "protected", si evita la trasposizione in XML-Schema | protected DocumentoData() {} | | /** | * Costruttore di istanze DocumentoData | * @param autore Autore del documento | * @param dataCreazione Data di creazione del documento | * @param numeroDocumento Numero del documento | * @param protocollo Protocollo del documento (pu???????? essere null) | * @param nomeFile Nome del file | * @param titolo Titolo del file | * @param descrizione Descrizione del contenuto (pu???????? essere una stringa vuota) | * @param data Handler dei dati fisici del file | */ | public DocumentoData(String autore, Calendar dataCreazione, | int numeroDocumento, Protocollo protocollo, | String nomeFile, String titolo, String descrizione, DataHandler data) { | this.autore = autore; | this.dataCreazione = dataCreazione; | this.numeroDocumento = numeroDocumento; | this.protocollo = protocollo; | this.nomeFile = nomeFile; | this.titolo = titolo; | this.descrizione = descrizione; | this.file = data; | } | } | and this is the SessionBean's WebService method the client calls: | public DocumentiDataList getDocumentiRichiestaAvvioPratica(int numeroIstanza, | String settore, String natura) | throws IllegalArgumentException { | DocumentoData newDocumentoData = new DocumentoData( | "Claudio Di Ciccio", | new GregorianCalendar(), | 14, | null, | "RichiestaAvvio.13.A2.1244.pdf", | "Richiesta avvio procedimento - Settore Vincolo Idrogeologico - Allargamento pista camionabile", | "Richiesta avvio procedimento", | new DataHandler(new FileDataSource("/var/SemplificAZIONE/RichiestaAvvio.13.A2.1244.pdf"))); | List returnList = new ArrayList(2); | returnList.add(newDocumentoData); | returnList.add(newDocumentoData); | return new DocumentiDataList(returnList); | } | but the response is still: | HTTP/1.1 200 OK | Server: Apache-Coyote/1.1 | X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5 | Content-Type: text/xml;charset=UTF-8 | Date: Mon, 25 Feb 2008 09:11:13 GMT | Connection: close | | | | | | | | | | | 14 | RichiestaAvvio.13.A2.1244.pdf | Richiesta avvio procedimento - Settore Vincolo Idrogeologico - Allargamento pista camionabile | Richiesta avvio procedimento | cid:0-1203930673914-19807859 at ws.jboss.org | | | 14 | RichiestaAvvio.13.A2.1244.pdf | Richiesta avvio procedimento - Settore Vincolo Idrogeologico - Allargamento pista camionabile | Richiesta avvio procedimento | cid:1-1203930673914-32990827 at ws.jboss.org | | | | | | I tried it, believe me, but it doesn't work. Maybe it's because of the version? The running Application Server is: JBoss AS 4.2.2.GA with JBossWS / jbossws-native-2.0.1.SP2 bundled, over Ubuntu Linux 7.10, with Sun Java JDK 1.5.0_13 as the default JDK/JVM Thank you very much, once again!! Best regards, Claudio View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131759#4131759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131759 From do-not-reply at jboss.com Mon Feb 25 06:14:28 2008 From: do-not-reply at jboss.com (mrostan) Date: Mon, 25 Feb 2008 06:14:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <20538349.1203938068968.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Claudio. Well, I've tested a case very similar to yours, in the same versions (JBoss 4.2.2 with the default JBossWS: 2.0.1 SP2) I've changed one thing from my previous suggestion, annotate the dummy field with @XmlAttachmentRef: | public class DocumentsSet { | @XmlAttachmentRef | String dummy; | | @XmlElement(name="Documents") | List documents; | } | The Document class is very similar: | public class Document { | public Document() { | } | | public Document(String name, String fileUrl) { | this.name = name; | try { | this.data = new DataHandler(new URL(fileUrl)); | } catch (MalformedURLException exc) { | exc.printStackTrace(); | } | } | | String name; | | @XmlAttachmentRef | DataHandler data; | } | And it works here, I see a multipart message as the response, I'm using soapUI to invoke it and I can see the attachments in the result also. So, I believe it should work for you. Regards, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131787#4131787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131787 From do-not-reply at jboss.com Mon Feb 25 08:06:36 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 25 Feb 2008 08:06:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <13915478.1203944796577.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the patch Martin. That was the quickest issue turnaround ever ;) It will be included in 2.0.4 (end of march) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131819#4131819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131819 From do-not-reply at jboss.com Mon Feb 25 09:37:03 2008 From: do-not-reply at jboss.com (odin69) Date: Mon, 25 Feb 2008 09:37:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - jaxrpc Array problem Message-ID: <27591271.1203950223778.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I have created a web service which returns a non-standard value type to the invoking app. I used the wsconsume tool to create the client side files from the wsdl. My Problem right now is that my value type named customerData contains an int_array which causes problems on the client side. In the class CustomerData the in_array is defined as follows: private int[] products; + setters and getters on the client-side the wsconsume tool generates the follwoing: public List getProducts() { | if (products == null) { | products = new ArrayList(); | } | return this.products; | } the web service is invoked with: CustomerData cdCell = ND_CELLPHONE_STUB.getCustomerData(phoneNumber); when I use the generated customerData file I get an error, but when I am using the orig. CustomerData file from the service everything is ok. I am a little bit stuck right now. Am I doing something wrong generating the client-side classes? thx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131859#4131859 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131859 From do-not-reply at jboss.com Mon Feb 25 09:50:45 2008 From: do-not-reply at jboss.com (kcp) Date: Mon, 25 Feb 2008 09:50:45 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Error create consumer Message-ID: <7773617.1203951045934.JavaMail.jboss@colo-br-02.atl.jboss.com> There is some problem between the xml libaries in JbossWS and the libs of teh JDK. The easiest solution is to use JDK 1.5 instead of 1.6. (Jira: http://jira.jboss.org/jira/browse/JBWS-1439) Regards Charly View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131867#4131867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131867 From do-not-reply at jboss.com Mon Feb 25 12:27:10 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Mon, 25 Feb 2008 12:27:10 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSSE UsernameToken without HTTP basic auth? Message-ID: <16989991.1203960430295.JavaMail.jboss@colo-br-02.atl.jboss.com> "alessio.soldano at jboss.com" wrote : "mikaeljl" wrote : Are there any plans for supporting WSSE UsernameToken based authentication for POJO endpoints (without the requirement of any additional http level authentication? | | | I don't have a reliable answer for this, sorry. http://jira.jboss.org/jira/browse/JBWS-1999 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131952#4131952 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131952 From do-not-reply at jboss.com Mon Feb 25 12:42:39 2008 From: do-not-reply at jboss.com (mrostan) Date: Mon, 25 Feb 2008 12:42:39 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Retrieving alias for WS Secure client Message-ID: <25954718.1203961359042.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all We have modified JBossWS 2.0.1 to leave an array of the certificates used in the signature/encryption process available in the message context: | Certificate[] certificates = msgContext.get("MESSAGE_CERTIFICATES"); | There's not an automatic validation against JAAS implemented (as described in JBWS-652) we simply make the participating certificates available. If somebody is still interested we can try to apply the patch to the current trunk and upload it. Regards, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131957#4131957 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131957 From do-not-reply at jboss.com Mon Feb 25 14:38:59 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Mon, 25 Feb 2008 14:38:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <24578330.1203968339617.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.org/jira/browse/JBWS-1863 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131971#4131971 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131971 From do-not-reply at jboss.com Mon Feb 25 16:13:43 2008 From: do-not-reply at jboss.com (cdc08x) Date: Mon, 25 Feb 2008 16:13:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <23663440.1203974023789.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you very very VERY much Martin, for your patience, your kindness, and your competence. I'm very glad to confirm that it works that way! Uhh... did I forget to thank you? THANKS! :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131988#4131988 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131988 From do-not-reply at jboss.com Mon Feb 25 19:22:33 2008 From: do-not-reply at jboss.com (mrostan) Date: Mon, 25 Feb 2008 19:22:33 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: My WS doesn't send any attachment... why? Message-ID: <32164217.1203985353586.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Claudio. I'm very glad to hear good news. Just remember this is a workaround, and with version 2.0.4 your original web service (return List) should work. Regards, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132015#4132015 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132015 From do-not-reply at jboss.com Mon Feb 25 23:49:57 2008 From: do-not-reply at jboss.com (tami) Date: Mon, 25 Feb 2008 23:49:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JbossWs for Jboss 4.0.5 and JDK1.4 Message-ID: <9771817.1204001397227.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi , I am using Jboss 4.0.5,and JDK 1.4 environment in my project to develop a Jboss Web Service Client. The Client code involves Jboss Ws Eventing and Ws Addressing fundas.Following Jars JBOSSWS14-Core.jar,JBOSS-JAXWS14.jar,JBOSSWS14-Client.jar,JAXAPI-jar were included in the path. The code gets compiled successfuly but at run time its giving an Exception java.noclassdeffound Error for "javax.xml.bind.annotation.XmlAccessType". The above package is newly added in JAXB-API.jar of JAXB2.0/JWSDP2.0 which uses JDK1.5. JAXB-API.jar of JAXB1.0 is compiled with JDK1.4 but it does not have the above package.But My project uses Jdk1.4 and I have downloaded all JBossws14 jars from Jbossws1.2.0Sp1.zip which uses JDK1.4. I wonder then how the jar refers to a package "javax.xml.bind.annotation.XmlAccessType" which is present in JAXB-API.jar compiled with Jdk1.5. Is there any way to Use JBossws with Jdk1.4??Please help with an answer. Thanks in Advance, tami View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132029#4132029 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132029 From do-not-reply at jboss.com Tue Feb 26 03:27:52 2008 From: do-not-reply at jboss.com (odin69) Date: Tue, 26 Feb 2008 03:27:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jaxrpc Array problem Message-ID: <5177832.1204014472570.JavaMail.jboss@colo-br-02.atl.jboss.com> So here is my next question. I have the following Value type on the client-side created from a wsdl using wsconsume. | package com.seitenbau.test.Client; | | import java.util.ArrayList; | import java.util.List; | import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlType; | | | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "CustomerData", propOrder = { | "city", | "givenname", | "password", | "phonenumber", | "products", | "street", | "surname", | "zipCode" | }) | public class CustomerData implements java.io.Serializable { | | @XmlElement(required = true, nillable = true) | protected String city; | @XmlElement(required = true, nillable = true) | protected String givenname; | @XmlElement(required = true, nillable = true) | protected String password; | protected int phonenumber; | @XmlElement(type = Integer.class) | protected List products; | @XmlElement(required = true, nillable = true) | protected String street; | @XmlElement(required = true, nillable = true) | protected String surname; | @XmlElement(required = true, nillable = true) | protected String zipCode; | | public String getCity() { | return city; | } | public void setCity(String value) { | this.city = value; | } | public String getGivenname() { | return givenname; | } | public void setGivenname(String value) { | this.givenname = value; | } | public String getPassword() { | return password; | } | public void setPassword(String value) { | this.password = value; | } | public int getPhonenumber() { | return phonenumber; | } | public void setPhonenumber(int value) { | this.phonenumber = value; | } | public List getProducts() { | if (products == null) { | products = new ArrayList(); | } | return this.products; | } | public String getStreet() { | return street; | } | public void setStreet(String value) { | this.street = value; | } | public String getSurname() { | return surname; | } | public void setSurname(String value) { | this.surname = value; | } | public String getZipCode() { | return zipCode; | } | public void setZipCode(String value) { | this.zipCode = value; | } | | } | Now I have the problem that by invoking the web service the customerData information is given back fine but on client side I get an UndeclaredThrowableException. Right now I don't know why this happens and i am really stuck I hope someone might be able to help me. in the following there is the wsdl. The error occurs by invoking the getCustomerData operation. Well thanks in advance i hope someone comes up with s.th. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132053#4132053 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132053 From do-not-reply at jboss.com Tue Feb 26 03:33:23 2008 From: do-not-reply at jboss.com (gbc@gmx.de) Date: Tue, 26 Feb 2008 03:33:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Changing of soap:address location Message-ID: <23891715.1204014803048.JavaMail.jboss@colo-br-02.atl.jboss.com> I have same issue with jboaa ws 2.03... Does anyone have infos how to solve it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132061#4132061 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132061 From do-not-reply at jboss.com Tue Feb 26 06:41:01 2008 From: do-not-reply at jboss.com (mikaeljl) Date: Tue, 26 Feb 2008 06:41:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSSE UsernameToken without HTTP basic auth? Message-ID: <1311831.1204026061681.JavaMail.jboss@colo-br-02.atl.jboss.com> Ah, that looks useful. Thanks for the update! /Mikael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132133#4132133 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132133 From do-not-reply at jboss.com Tue Feb 26 06:43:22 2008 From: do-not-reply at jboss.com (mikaeljl) Date: Tue, 26 Feb 2008 06:43:22 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSSE UsernameToken without HTTP basic auth? Message-ID: <1624419.1204026202761.JavaMail.jboss@colo-br-02.atl.jboss.com> Ah, that looks useful. Thanks for the update! /Mikael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132135#4132135 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132135 From do-not-reply at jboss.com Tue Feb 26 06:56:43 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Tue, 26 Feb 2008 06:56:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSSE UsernameToken without HTTP basic auth? Message-ID: <300849.1204027003814.JavaMail.jboss@colo-br-02.atl.jboss.com> "alessio.soldano at jboss.com" wrote : I did a bit of tests and investigation.. | | "mageshbk at jboss.com" wrote : The Username token sent in the SOAP Message is the one used by the endpoint server/stack to authenticate the user who is performing this request. This is called MessageLevel Security as defined by UsernameToken profile. If you see, Servlet endpoints can be configured with only basic or digest as per the specs of their deployment model. So setting AUTH_TYPE_WSSE is not and will not be applicable to the servlet deployment model unless you write your own customized implementation for it. | | mikaeljl, in other words this means you can easily and successfully use the wsse username token profile without basic authentication through EJB3 endpoints. | I did this way: | | | @WebService( | | wsdlLocation = "META-INF/wsdl/WsSecurity10.wsdl", | | serviceName = "PingService10", | | name = "IPingService", | | targetNamespace = "http://InteropBaseAddress/interop", | | endpointInterface = "org.jboss.test.ws.interop.nov2007.wsse.IPingService", | | portName = "UserNameOverTransport_IPingService") | | @EndpointConfig(configName = "Standard WSSecurity Endpoint") | | @Stateless | | @SecurityDomain("JBossWS") | | @WebContext(contextRoot="/nov2007/wsseUsernameTokenHTTPS", urlPattern="/endpoint") | | public class UsernameTokenHTTPSTestService extends TestService implements IPingService { | | ... | | } | | | please note, no authMethod and transportGuarantee in the @WebContext. | | On the client side: | | | ((BindingProvider)port).getRequestContext().put(StubExt.PROPERTY_AUTH_TYPE, StubExt.PROPERTY_AUTH_TYPE_WSSE); | | ((BindingProvider)port).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit"); | | ((BindingProvider)port).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog"); | | | This prevents the stack from using the basic auth and set the user/pwd in the context so that they can be put in the Username token. The principal is set and can be retrieved. Using the wrong user/pwd couple causes an authentication failure due to a javax.ejb.EJBAccessException. | Of course you need to set client wsse config the right way: | | | | | | | | | | | | | | | Btw I've just added a use case test for the JBWS-1991 issue; it basically use the above described solution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132141#4132141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132141 From do-not-reply at jboss.com Tue Feb 26 07:24:43 2008 From: do-not-reply at jboss.com (nickarls) Date: Tue, 26 Feb 2008 07:24:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - POJO as WebService? Message-ID: <20002102.1204028683585.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I made a simple stateless EJB, annotated the class with @WebService and the web with @WebMethod, it deployed fine and showed up in /jbossws/services. So I removed the EJB:ness from it and retried, but this time the WS doesn't get deployed. I got the impression from the JBoss WS wiki that POJOs would also be supported, am I missing something fundamental? I'm on AS 4.2.2.GA Thanks in advance, -Nik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132147#4132147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132147 From do-not-reply at jboss.com Tue Feb 26 07:29:52 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Tue, 26 Feb 2008 07:29:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: POJO as WebService? Message-ID: <10822813.1204028992697.JavaMail.jboss@colo-br-02.atl.jboss.com> It requires different packaging. It needs to go into a .war and have a proper web.xml with it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132150#4132150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132150 From do-not-reply at jboss.com Tue Feb 26 08:05:07 2008 From: do-not-reply at jboss.com (nickarls) Date: Tue, 26 Feb 2008 08:05:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: POJO as WebService? Message-ID: <32356055.1204031107118.JavaMail.jboss@colo-br-02.atl.jboss.com> Excellent! So it should work just like a EJB with the different packaging/conf? BTW. I looked quickly at the web.xml and it looks sort of like a servlet mapping, should it still be visible under jbossws/services or is it just standalone? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132156#4132156 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132156 From do-not-reply at jboss.com Tue Feb 26 12:14:24 2008 From: do-not-reply at jboss.com (mrostan) Date: Tue, 26 Feb 2008 12:14:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: MTOM + WS Security = problem Message-ID: <12977485.1204046064076.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all. We've continued testing MTOM+WS-Security Signature, we need interoperation with Microsoft clients, so swaRef is not an option and we need MTOM and signatures working well. We have found the following problems: 1) On the server side: 1.a) The WS-Security handlers are not invoked, to solve this change the protocol-bindings in the endpoint-config: | | MTOM WSSecurity Endpoint | | | ##SOAP11_HTTP ##SOAP11_HTTP_MTOM | | WSSecurity Handler | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer | | | | | and change the endpoint config on the service implementation: | @BindingType(value = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING) | @EndpointConfig(configName = "MTOM WSSecurity Endpoint") | 1.b) We always receive "Signature is invalid" error, we've found that the replacement of the xop:Include elements to the base64 representation was not made in deep. We've modifed SOAPFactoryImpl.createElement to invoke XOPContext.inlineXOPData when an xop:Include element is found. 1.c) When the replacement of xop:Include with the base64 representation occurs (see XOPContext.replaceXOPInclude) a content-type attribute is added to the parent element. This addition breaks the signature, that attribute was not present on the client side, so the signature is still invalid. We have modified the usage of an attribute with the usage of userData in the node. The problem here is that NodeImpl does not support the user data, so he have added that support. Right now, after 1.a 1.b and 1.c we have the signature verification working (testing with a message generated and signed manually, with some help of soapUI). The next problem: 2) On the client side 2.a) First of all, on the client side the endpoint config must be modified also (to get the ws-security handlers running): | | MTOM WSSecurity Client | | | ##SOAP11_HTTP ##SOAP11_HTTP_MTOM | | WSSecurityHandlerOutbound | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient | | | | and referenced from the client code: | ((StubExt)port).setConfigName("MTOM WSSecurity Client"); | 2.b) The message is sent with the binary data inline, and not as an attachment, we need attachments and not base64 encoding. We have a solution to this problem, but I believe it should be reviewed carefully. The solution is to invoke | XOPContext.visitAndRestoreXOPData(); | after the handlers execution (this is done on the JAXRPC client but not in JAXWS). I have modified CommonClient and DispatchImpl to make this invocation. Finally, we have a patch with the modifications on 1.b, 1.c and 2.b to the current trunk. I will upload it to a JIRA issue if the JBossWS team accepts this solution. Regards, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132257#4132257 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132257 From do-not-reply at jboss.com Tue Feb 26 12:25:30 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Tue, 26 Feb 2008 12:25:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: MTOM + WS Security = problem Message-ID: <31799902.1204046730567.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Martin, for sure what you say is interesting, please attach the patch to a jira issue and link it here. Thank you! We'll take a look at it and merge it to the trunk; point 2.b might be solved by http://jira.jboss.org/jira/browse/JBWS-1973. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132261#4132261 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132261 From do-not-reply at jboss.com Tue Feb 26 12:42:33 2008 From: do-not-reply at jboss.com (mrostan) Date: Tue, 26 Feb 2008 12:42:33 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: MTOM + WS Security = problem Message-ID: <11147861.1204047754114.JavaMail.jboss@colo-br-02.atl.jboss.com> Associated JIRA issue: http://jira.jboss.org/jira/browse/JBWS-2014 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132268#4132268 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132268 From do-not-reply at jboss.com Tue Feb 26 12:54:54 2008 From: do-not-reply at jboss.com (ripper64) Date: Tue, 26 Feb 2008 12:54:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Schema Validation in JBOSS-WS Message-ID: <849591.1204048494042.JavaMail.jboss@colo-br-02.atl.jboss.com> I need to do this as well. I would like to see your example. Thanks Jeff View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132272#4132272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132272 From do-not-reply at jboss.com Tue Feb 26 17:36:02 2008 From: do-not-reply at jboss.com (SunFire) Date: Tue, 26 Feb 2008 17:36:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Changeing minOccurs possible? Message-ID: <20038866.1204065362276.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a method like this: @WebMethod(operationName="GetBillingAccountRequest") | @WebResult(name="GetBillingAccountResponse") | public GetBillingAccountResponse getBillingAccount ( | @WebParam(name="GetBillingAccountRequest") GetBillingAccountRequest getBillingAccountRequest | ); When i deploy the SFSB the resulting WSDL for the GetBillingAccountRequest type looks like this: | | | | | | Is there any way to annotate that the GetBillingAccountRequest is supposed to be mandatory when the WSDL is auto generated (e.g. minOccurs="1")? Thanks, Thorsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132336#4132336 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132336 From do-not-reply at jboss.com Tue Feb 26 23:29:42 2008 From: do-not-reply at jboss.com (tami) Date: Tue, 26 Feb 2008 23:29:42 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Getting Message-ID: <29743933.1204086582086.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, My client code uses Jboss4.0.5 and Jdk1.4.During run time its giving java.lang.NoClassDefFoundError javax/xml/bind/annotation/XmlAccessType.This package is indirectly reference from .class files.I am using Jbossws binaries of JDK1.4.Then how annotations can be referenced by these jars? Thanks, tami View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132365#4132365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132365 From do-not-reply at jboss.com Wed Feb 27 02:45:01 2008 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Wed, 27 Feb 2008 02:45:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: out parameter Message-ID: <27405457.1204098301983.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi again! Now I look at all these parts on a communication level. There might be a feature in JAXB to do all this state synchronization without your/my knowledge. I don't know. But the concept of web services does not support this kind of void feature where you change a value in your method "argument" - because there is no method or argument just an operation that accepts a message. This is something you already know, but we take it from the beginning if there are other persons whoe are unsure about the concept of web services. Web services, in this case SOAP, provide a stateless way to communicate with other components. You never know if these components are written in Java, .NET, Perl, C++ or whatever else. This is the whole point by using web services - You send a request message to a component and you get a response message in return. Web services also use http as communication protocol. Http is a so called dead protocol, i.e. one request and then one response before the communication dies (we have something call keep alive to speed up things but that is just a way to keep the socket connection open). To summarize, we have two stateless parts communicating with each other - or more correct one part (the client) asking the server for something by providing a message. The response is another message. The two parts don't know anything about each other more than what is exposed by the service contract (the WSDL file). The question is, how can we provide the client with a new state on the server. Can it be exposed to the client in another way than by using a return statement? I don't think so. Maybe JAXB can solve a void method by automatically map the contents of your request Java-object instance to the same instance as the response Java-object. Cheers /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132389#4132389 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132389 From do-not-reply at jboss.com Wed Feb 27 04:02:51 2008 From: do-not-reply at jboss.com (SunFire) Date: Wed, 27 Feb 2008 04:02:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Changeing minOccurs possible? Message-ID: <32264554.1204102971942.JavaMail.jboss@colo-br-02.atl.jboss.com> Ups, I meant SLSB not a SFSB. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132405#4132405 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132405 From do-not-reply at jboss.com Wed Feb 27 04:07:06 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 27 Feb 2008 04:07:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Changeing minOccurs possible? Message-ID: <10191680.1204103226433.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, according to http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#Customizing_WSDL_Schema_Generation the only possibility you have is to use javax.xml.bind.annotation.* annotations. Your object GetBillingAccountRequest must be JAXB de/serializable. However aforementioned annotations don't contain MinOccurs annotation, see: http://java.sun.com/javaee/5/docs/api/javax/xml/bind/annotation/package-tree.html Try to ask JAXB forum how to solve your problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132407#4132407 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132407 From do-not-reply at jboss.com Wed Feb 27 05:22:32 2008 From: do-not-reply at jboss.com (Bouchwichman) Date: Wed, 27 Feb 2008 05:22:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - the client can't invoke the service Message-ID: <7451233.1204107752310.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi everybody! I'm following the JBossWS quick start (http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start), and i'm facing some weird errors. Here is what i have done : Server side My implementation class : package org.domain.proj_essai.ws; | | import javax.ejb.Stateless; | import javax.jws.WebParam; | import javax.jws.WebService; | import javax.jws.WebMethod; | import javax.jws.soap.SOAPBinding; | | @Stateless | @WebService( | name="SommeWS", | targetNamespace = "http://ws.proj_essai.domain.org", | serviceName = "SommeWSService") | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) public class SommeWS { | | @WebMethod | public int additionner( int a, int b){ | return a + b; | } | | @WebMethod | public int soustraire( int a, int b){ | return a - b; | } | | @WebMethod | public String afficherBonjour() { | return "Bonjour"; | } | | } | my WSDL location (generated automatically when deploying): http://127.0.0.1:8080/SommeWSService/SommeWS?wsdl Client side: First, I generated all client classes with wsconsume : wsconsume -k -p bsa.ws http://127.0.0.1:8080/SommeWSService/SommeWS?wsdl | it gave me the following files: bsa\ws\Additionner.java | bsa\ws\AdditionnerResponse.java | bsa\ws\AfficherBonjour.java | bsa\ws\AfficherBonjourResponse.java | bsa\ws\ObjectFactory.java | bsa\ws\SommeWS.java | bsa\ws\SommeWSService.java | bsa\ws\Soustraire.java | bsa\ws\SoustraireResponse.java | bsa\ws\package-info.java | bsa\ws\Additionner.java | bsa\ws\AdditionnerResponse.java | bsa\ws\AfficherBonjour.java | bsa\ws\AfficherBonjourResponse.java | bsa\ws\ObjectFactory.java | bsa\ws\SommeWS.java | bsa\ws\SommeWSService.java | bsa\ws\Soustraire.java | bsa\ws\SoustraireResponse.java | bsa\ws\package-info.java | | Then i try to invoke the service from a method (that works without the web service invoking part) : | URL url = null; | | try { | | url = new URL("http://127.0.0.1:8080/SommeWSService/SommeWS?wsdl"); | | } catch (MalformedURLException e) { | | e.printStackTrace(); | | } | | | | Logger.getRootLogger().info("---------------- FLAG1 ----------------"); | | Service service = Service.create( url,new QName("SommeWSService") ); | | //Service service = Service.create(url,new QName( "http://ws.proj_essai.domain.org", "SommeWSService") ); | | | | Logger.getRootLogger().info("---------------- FLAG2 ----------------"); | | SommeWS s = service.getPort( SommeWS.class); | | | | | | Logger.getRootLogger().info("------------------------- "+ s.afficherBonjour() +" -----------------------"); | | | | PROBLEM: | i have the following exception: | ... | | Caused by: javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: Cannot obtain wsdl service: SommeWSService | | ... | | Caused by: java.lang.IllegalArgumentException: Cannot obtain wsdl service: SommeWSService | | ... | | | | Then, i modified the instruction in the FLAG1 zone by the commented one ( Service service = Service.create(url,new QName( "http://ws.proj_essai.domain.org", "SommeWSService") ); ) . It succeeds, but the FLAG2 instruction ( SommeWS s = service.getPort( SommeWS.class); ) brings me un error : | ... | | Caused by: java.lang.LinkageError: Class javax/xml/rpc/ParameterMode violates loader constraints | | ... | | | | Could you help me please? If you need more informations ask me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132434#4132434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132434 From do-not-reply at jboss.com Wed Feb 27 05:45:01 2008 From: do-not-reply at jboss.com (Bouchwichman) Date: Wed, 27 Feb 2008 05:45:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: the client can't invoke the service Message-ID: <25596511.1204109102066.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the same problem even if i use directly the SommeWSService class : //FLAG1 | SommeWSService service = new SommeWSService(); | | //FLAG2 | SommeWS s = service.getSommeWSPort(); the same exception at the FLAG2 instruction. ... | Caused by: java.lang.LinkageError: Class javax/xml/rpc/ParameterMode violates loader constraints | ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132441#4132441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132441 From do-not-reply at jboss.com Wed Feb 27 06:39:41 2008 From: do-not-reply at jboss.com (Bouchwichman) Date: Wed, 27 Feb 2008 06:39:41 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: the client can't invoke the service Message-ID: <2782268.1204112381436.JavaMail.jboss@colo-br-02.atl.jboss.com> I have some good news!! I made it work (somehow...) My server application (which provides the web service) is a SEAM application that runs on JBoss 4.2 server. My client that can't invoke the web service is an application of another type (non SEAM) running on JBoss 4.0 server. Now i've juste made a new Seam project (on 4.2). I could finally invoke the web service with it. I user the same instructions as before and it's perfectly working. Now the problem is to make the "old" client (on JBoss 4.0) invoke the service. What could be the origin of the problem? It's the JBoss server 4.0 or something else. If you have some answers could you help me please? I'm still searching. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132461#4132461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132461 From do-not-reply at jboss.com Wed Feb 27 08:31:57 2008 From: do-not-reply at jboss.com (nickarls) Date: Wed, 27 Feb 2008 08:31:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - referencing jboss-wsse-client.xml in WAR Message-ID: <12917176.1204119118026.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Noob question: I have a WAR that serves both as a provider and consumer of a secure web service. In the client section I try to do a ((StubExt)port).setSecurityConfig(new File("WEB-INF/jboss-wsse-client.xml").toURL().toExternalForm()); but end up with a FileNotFound for | \bin\META-INF\jboss-wsse-client.xml | What is the correct way of referencing an internal file? I think I have had the same scenario in EAR archives and there the reference was OK. Thanks in advance, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132501#4132501 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132501 From do-not-reply at jboss.com Thu Feb 28 04:43:57 2008 From: do-not-reply at jboss.com (jyc5131) Date: Thu, 28 Feb 2008 04:43:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jdk 1.6, jbossws 2.0.1 and jboss as 4.2.2.ga Message-ID: <14914157.1204191837501.JavaMail.jboss@colo-br-02.atl.jboss.com> me too, who know the exact reason, how can i do? Jboss, Help me~~~, I just updated the JDK 1.6 update3, then the service is broken View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132757#4132757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132757 From do-not-reply at jboss.com Thu Feb 28 08:09:22 2008 From: do-not-reply at jboss.com (rashmi_yes) Date: Thu, 28 Feb 2008 08:09:22 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Remote server access problem using webservice Message-ID: <4796428.1204204162497.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have installed jboss 4.2 in Enterprise Linux server & with my web service application jars. After starting the server, I could see the WSDL file from my Windows system. url looks like as But When I make a call to my remote web service from my client, I am not getting any response. After API call I got the below error HTTP transport error: java.net.UnknownHostException: localhost.localdomain My /etc/hosts entry looks like 127.0.0.1 localhost.localdomain localhost localhost.localdomain Do I need to add an entry in hosts file or do I need to do any other changes. I appreciate any help. Thanks, rashmi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132838#4132838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132838 From do-not-reply at jboss.com Thu Feb 28 09:01:00 2008 From: do-not-reply at jboss.com (rashmi_yes) Date: Thu, 28 Feb 2008 09:01:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Remote server access problem using webservice Message-ID: <1759191.1204207260597.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, Finally i solved this proble by adding 1 more entry with IPAddress in host file & restarted the system. It works fine now View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132856#4132856 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132856 From do-not-reply at jboss.com Thu Feb 28 10:05:02 2008 From: do-not-reply at jboss.com (jyc5131) Date: Thu, 28 Feb 2008 10:05:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jdk 1.6, jbossws 2.0.1 and jboss as 4.2.2.ga Message-ID: <27253414.1204211102112.JavaMail.jboss@colo-br-02.atl.jboss.com> WS client and Jboss am running on the same machine and its JVM is JDK6u3 , Please Please Jboss team guy give us one solution to save it, the web service is only a sample but it doesn't work for above error View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132888#4132888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132888 From do-not-reply at jboss.com Thu Feb 28 10:05:48 2008 From: do-not-reply at jboss.com (Bouchwichman) Date: Thu, 28 Feb 2008 10:05:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: the client can't invoke the service Message-ID: <5530555.1204211148458.JavaMail.jboss@colo-br-02.atl.jboss.com> Fresh news!!! I made the thing work with an application running on JBoss 4.0 . It's another client application. So the problem isn't from the JBoss server itself, it's from my client application. Now i have to find WHY my client application can't invoke the service. (still the same exception). My help request is still open :p View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132890#4132890 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132890 From do-not-reply at jboss.com Thu Feb 28 10:23:27 2008 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 28 Feb 2008 10:23:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jdk 1.6, jbossws 2.0.1 and jboss as 4.2.2.ga Message-ID: <22643138.1204212208032.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All! Downgrade your JVM and your problem shall be gone. It has to do with the SOAP-implementation (SAAJ). I think you can switch SAAJ-implementation by adding a newer saajImpl.jar file to the $JBOSS_HOME/lib/endorsed directory. I'm not sure about the last part about SAAJ but it is a known problem using JBoss 4.2.x with Java 6. Dheers /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132901#4132901 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132901 From do-not-reply at jboss.com Thu Feb 28 11:17:23 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 28 Feb 2008 11:17:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Signature is invalid error when the message contains \r Message-ID: <28468586.1204215443081.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for your report of the issue Martin. The fix will be available in next JBossWS release ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132922#4132922 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132922 From do-not-reply at jboss.com Thu Feb 28 13:21:08 2008 From: do-not-reply at jboss.com (jnaus) Date: Thu, 28 Feb 2008 13:21:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Problem running/creating webservice client .NET Message-ID: <26769929.1204222868250.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to integrate with a .NET web service and I am able to create the client side stubs using the AXIS wsdl2java ant task. However when I try and run the JBoss wsconsume function I get the following error: [WARNING] src-resolve.4.2: Error resolving component 's:schema' and [ERROR] undefined element declaration 's:schema' When I add the following line to my WSDL file I get the following error: [ERROR] Element "{http://www.w3.org/2001/XMLSchema}annotation" shows up in more than one properties. line 248 of file:/C:/work/JBOSS-~1.GA/bin/XMLSchema.xsd [ERROR] The following location is relevant to the above error line 242 of file:/C:/work/JBOSS-~1.GA/bin/XMLSchema.xsd I am about to start trying to get AXIS to work as a client tool within the JBoss container, but would have liked to use the wsconsume tool. I have looked for a solution on this for 2 days. I have found plenty of posts online discussing the topic but have not found a solution to this problem. Any help on this issue would be appreciated. Thanks, Jeroen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132962#4132962 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132962 From do-not-reply at jboss.com Thu Feb 28 14:41:24 2008 From: do-not-reply at jboss.com (mrostan) Date: Thu, 28 Feb 2008 14:41:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Signature is invalid error when the message contains \r Message-ID: <26259112.1204227684358.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you Richard, good news ! Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132975#4132975 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132975 From do-not-reply at jboss.com Thu Feb 28 16:02:48 2008 From: do-not-reply at jboss.com (nickarls) Date: Thu, 28 Feb 2008 16:02:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Bug in wiki WS-Security document or? Message-ID: <2000712.1204232568339.JavaMail.jboss@colo-br-02.atl.jboss.com> I had a WS that used the "Standard WSSecurity Endpoint" and everything worked fine. Then I needed to add a handler so I grabbed the code to the said endpoint from http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_Endpoint_Configuration and added my own handler there. But I couldn't get it to understand the encryption/security anymore. Then I took a look at standard-jaxws-endpoint-config.xml in the .sar-file and there the endpoint config had the security handler in a post-handler-chain (as opposed to in a pre-handler-chain in the wiki). What should it be? The post-handler-version is the one that works for me at least. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132991#4132991 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132991 From do-not-reply at jboss.com Thu Feb 28 22:46:05 2008 From: do-not-reply at jboss.com (jyc5131) Date: Thu, 28 Feb 2008 22:46:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jdk 1.6, jbossws 2.0.1 and jboss as 4.2.2.ga Message-ID: <24486497.1204256765650.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for you solution, but downgrade jre is not good for me and i tried switch saaj-impl.jar to the lastest one, it doesn't work. When or which version can the Jboss support Java 6, is something wrong with jboss team or redhat? the progress is very slow on Jboss AS project View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133049#4133049 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133049 From do-not-reply at jboss.com Thu Feb 28 23:12:36 2008 From: do-not-reply at jboss.com (jlauman) Date: Thu, 28 Feb 2008 23:12:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - jbossws-3.0.1-native-2.0.4.GA Message-ID: <11199190.1204258356067.JavaMail.jboss@colo-br-02.atl.jboss.com> I built jbossws-metro from svn. When I run wsconsume.sh I get an error that org.jboss.wsf.spi.tools.cmd.WSConsume wasn't found. In looking through the source I found that it didn't exist anymore. Has it changed? Thanks, Jack View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133053#4133053 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133053 From do-not-reply at jboss.com Fri Feb 29 06:09:44 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 29 Feb 2008 06:09:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-3.0.1-native-2.0.4.GA Message-ID: <19426547.1204283384259.JavaMail.jboss@colo-br-02.atl.jboss.com> It's already fixed in trunk. Try an update View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133162#4133162 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133162 From do-not-reply at jboss.com Fri Feb 29 08:44:07 2008 From: do-not-reply at jboss.com (jalaja) Date: Fri, 29 Feb 2008 08:44:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to change the context path Message-ID: <17378986.1204292647741.JavaMail.jboss@colo-br-02.atl.jboss.com> plz send me any solution to this problem ........I am using jse endpoints in jse end points how to do this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133222#4133222 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133222 From do-not-reply at jboss.com Fri Feb 29 09:21:06 2008 From: do-not-reply at jboss.com (jbossdil89) Date: Fri, 29 Feb 2008 09:21:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - How to invoke Java beans classes generated by Message-ID: <7757189.1204294866727.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello I have generated codesuing seam gen and it has generated all the JSF files and Java persistence classes. e.g. package com.test.seam.sessionbeans; import com.test.seam.entitybeans.*; import java.util.ArrayList; import java.util.List; import org.jboss.seam.annotations.Name; import org.jboss.seam.framework.EntityHome; @Name("couponHome") public class CouponHome extends EntityHome { public void setCouponCouponId(Integer id) { setId(id); } public Integer getCouponCouponId() { return (Integer) getId(); } @Override protected Coupon createInstance() { Coupon coupon = new Coupon(); return coupon; } public void wire() { } public boolean isWired() { return true; } public Coupon getDefinedInstance() { return isIdDefined() ? getInstance() : null; } public List getListItemsCouponses() { return getInstance() == null ? null : new ArrayList( getInstance().getListItemsCouponses()); } } Now the JSF files generated can invoke the beans, how can i invoke these beans from standalone applications. Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133234#4133234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133234 From do-not-reply at jboss.com Fri Feb 29 11:10:38 2008 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 29 Feb 2008 11:10:38 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Schema Validation in JBOSS-WS Message-ID: <341606.1204301438361.JavaMail.jboss@colo-br-02.atl.jboss.com> It looks like Mr. Diesler has put some good information in the bug http://jira.jboss.org/jira/browse/JBWS-1172 on how to do this, probably better than the implementation I built. It also looks like he is starting to develop it, so you might just wait to see his implementation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133275#4133275 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133275 From do-not-reply at jboss.com Fri Feb 29 13:01:27 2008 From: do-not-reply at jboss.com (lucdew) Date: Fri, 29 Feb 2008 13:01:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - xsd:include or xsd:import in WSDL Message-ID: <12873504.1204308087640.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, i have issues with the wsconsume tool (with JBossWS native 2.0.3) I need to import in my WSDL an external schema file that is included in a jar file. In my WSDL, i declared the types using the following statements: Is wsconsume able to load the schema file from the classpath ? Also the jar already contains the generated classes with jaxb compiler. Is it possible to use wsconsume without generating the schema files but only the webservice endpoint ? Thanks in advance, Luc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133320#4133320 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133320 From do-not-reply at jboss.com Fri Feb 29 13:49:48 2008 From: do-not-reply at jboss.com (khkachn) Date: Fri, 29 Feb 2008 13:49:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Throwing Exception from a web service method Message-ID: <33021040.1204310988499.JavaMail.jboss@colo-br-02.atl.jboss.com> Should I be able to throw an exception from a web service back to the client? I am trying to do this and I get a bunch of stacktraces in the server.log, which is not what I want at all. Thanks, Ken View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133333#4133333 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133333 From do-not-reply at jboss.com Fri Feb 29 14:22:17 2008 From: do-not-reply at jboss.com (pilania) Date: Fri, 29 Feb 2008 14:22:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: org.xml.sax.SAXParseException: Premature end of file ERR Message-ID: <8361613.1204312937204.JavaMail.jboss@colo-br-02.atl.jboss.com> We have WS deployed on jboss-4.2.2 using JBOss ws2.01 and client is running in .NET and during out testing we started getting same exception. On further analysis we found out that issue was on .NET code and not our WS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133345#4133345 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133345 From do-not-reply at jboss.com Fri Feb 29 18:16:51 2008 From: do-not-reply at jboss.com (cardel) Date: Fri, 29 Feb 2008 18:16:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Seam 2.0.1 & JBossWS & WAR deployment Message-ID: <19187090.1204327011675.JavaMail.jboss@colo-br-02.atl.jboss.com> The Seam reference explains how to configure and package a Seam EAR to support JBossWS web services. That worked great. However, I have not been able to get JBossWS to work with a Seam WAR deployment. I have Seam 2.0.1, JBoss AS 4.2.2 GA and JBossWS 2.0.3 GA I created this service interface: | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.Style; | | @WebService(name = "TestEndpoint", serviceName = "HcpService") | @SOAPBinding(style = Style.RPC) | public interface TestEndpoint | { | @WebMethod | @WebResult(name = "result") | public String echo(@WebParam(name = "message") String msg); | } | and service implementation: | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.Style; | | import org.jboss.seam.Component; | import org.jboss.seam.security.Identity; | | @WebService(name = "TestEndpoint", serviceName = "HcpService") | @SOAPBinding(style = Style.RPC) | public class TestEndpointBean | { | | @WebMethod | @WebResult(name = "result") | public String echo(@WebParam(name = "message") String msg) | { | return "Echo " + msg; | } | } | I don????t know if my procedure was fine, but to make the webservice working I had to add servlet to web.xml | TestEndpoint | hcp.TestEndpointBean | | | | TestEndpoint | /test | | Only with this servlet is after deployment service endpoint registered and visible in browser (http://localhost:8080/jbossws/services) At first I had setProperty must be overridden by all subclasses of SOAPMessage exception, so I switched to java 1.5 to get rid of it. After this, my webservice is active and I can successfully send requests and receive responses. But now I have another problem when I want to use some seam component. I have read, that I have to use Component.getInstance method. So i tried it: | public class TestEndpointBean | { | @WebMethod | @WebResult(name = "result") | public String echo(@WebParam(name = "message") String msg) | { | Identity id = (Identity) Component.getInstance("org.jboss.seam.security.identity"); | id.setUsername(msg); | id.setPassword(msg); | id.login(); | if (id.isLoggedIn()) { | return "Logged in"; | } else { | return "Not logged in"; | } | } | } | But after invoke the request I have this exception :-( | 23:42:04,890 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | java.lang.IllegalStateException: No application context active | at org.jboss.seam.Component.forName(Component.java:1807) | at org.jboss.seam.Component.getInstance(Component.java:1857) | at org.jboss.seam.Component.getInstance(Component.java:1840) | at org.jboss.seam.Component.getInstance(Component.java:1834) | at hcp.TestEndpointBean.echo(TestEndpointBean.java:47) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.wsf.container.jboss42.DefaultInvocationHandler.invoke(DefaultInvocationHandler.java:102) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:418) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:274) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:191) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:124) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | 23:42:04,890 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | java.lang.IllegalStateException: No application context active | at org.jboss.seam.Component.forName(Component.java:1807) | at org.jboss.seam.Component.getInstance(Component.java:1857) | at org.jboss.seam.Component.getInstance(Component.java:1840) | at org.jboss.seam.Component.getInstance(Component.java:1834) | at hcp.TestEndpointBean.echo(TestEndpointBean.java:47) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.wsf.container.jboss42.DefaultInvocationHandler.invoke(DefaultInvocationHandler.java:102) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:418) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:274) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:191) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:124) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) Any suggestions? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133392#4133392 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133392