From do-not-reply at jboss.com Mon Oct 1 00:14:46 2007 From: do-not-reply at jboss.com (mrokka123) Date: Mon, 1 Oct 2007 00:14:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem with inheritance and JBossWS Message-ID: <14328226.1191212086841.JavaMail.jboss@colo-br-02.atl.jboss.com> After some search I found that @XmlSeeAlso works with DPIM [dynamic proxy invocation mechanism] client. For Schema2Java approach I?ve managed to verify that this is a known JBossWS issue that is marked to be fixed in JBossWS 2.0.2. http://jira.jboss.com/jira/browse/JBWS-1795;jsessionid=EA365E1210EF3FB1F472335E50BE69B0?page=all View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090080#4090080 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090080 From do-not-reply at jboss.com Mon Oct 1 03:01:03 2007 From: do-not-reply at jboss.com (aroppone) Date: Mon, 1 Oct 2007 03:01:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Securing WS Message-ID: <1203849.1191222063158.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I'm a bit newbie so this may sound idiotic. I want to secure (SSL and XML-Signature) few of my web services that run on JBoss 4.0, but don't know how to do that? I know I could use eg. WSS4J and simple put SSL on, but don't know if that is the best way. I'd also like to know waht's the common way to build web services that has xml-signature. Do I have to first create the wsdl manually and create the actual service? Is there some tutorial on this matter? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090100#4090100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090100 From do-not-reply at jboss.com Mon Oct 1 03:41:30 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 1 Oct 2007 03:41:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: deploying a web service on jboss 4.0.5 Message-ID: <11161513.1191224490037.JavaMail.jboss@colo-br-02.atl.jboss.com> Well this is a known bug http://jira.jboss.org/jira/browse/JBWS-1762 :-( The problem is in your web.xml file which looks like: ... | | Hello | org.jboss.wsf.stack.jbws.EndpointServlet | | jboss.ws.endpoint | org.jboss.test.ws.jaxrpc.jbws124.HelloJavaBean | | | ... | Change it in the following way and try to redeploy. ... | | Hello | org.jboss.test.ws.jaxrpc.jbws124.HelloJavaBean | | ... If you can use packaged version of wars and ears then use them otherwise you'll face this problem very frequently. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090105#4090105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090105 From do-not-reply at jboss.com Mon Oct 1 04:18:33 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 1 Oct 2007 04:18:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Securing WS Message-ID: <17319216.1191226713876.JavaMail.jboss@colo-br-02.atl.jboss.com> Follow this link: http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS and take a look mainly to Build and Deploy -> User Guide section. Also tests from JBossWS distribution might help you a lot ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090111#4090111 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090111 From do-not-reply at jboss.com Mon Oct 1 04:32:58 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 1 Oct 2007 04:32:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SOAPMessage error: setProperty must be overridden by all Message-ID: <4549020.1191227578776.JavaMail.jboss@colo-br-02.atl.jboss.com> "viniciuscarvalho" wrote : | Should I downgrade my JVM? | Hi, JBossWS 2.0.1 isn't officially supported on JDK 1.6 yet. So to answer your question: If you are working on production environment then you should downgrade your JDK. If not and you love to live on the leading edge, then answer to your question is you need not to downgrade the JVM. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090112#4090112 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090112 From do-not-reply at jboss.com Mon Oct 1 04:39:07 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 1 Oct 2007 04:39:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Provider com.sun.xml.ws.spi.ProviderImpl not found Message-ID: <19461875.1191227947243.JavaMail.jboss@colo-br-02.atl.jboss.com> Are you using Sun's JVM? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090115#4090115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090115 From do-not-reply at jboss.com Mon Oct 1 06:41:15 2007 From: do-not-reply at jboss.com (Fantagir) Date: Mon, 1 Oct 2007 06:41:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Provider com.sun.xml.ws.spi.ProviderImpl not found Message-ID: <20543891.1191235275217.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes! I'm using JDK 1.5.0_12 of Sun, JBoss 4.0.5-GA and JWSDP 2.0. Is there any problem? "richard_opalka" wrote : Are you using Sun's JVM? | | Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090149#4090149 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090149 From do-not-reply at jboss.com Mon Oct 1 07:02:59 2007 From: do-not-reply at jboss.com (Fantagir) Date: Mon, 1 Oct 2007 07:02:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: difference rpc webservice and ws webservice Message-ID: <7989567.1191236579547.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you!! It's a good page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090158#4090158 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090158 From do-not-reply at jboss.com Mon Oct 1 07:31:22 2007 From: do-not-reply at jboss.com (Fantagir) Date: Mon, 1 Oct 2007 07:31:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unable to load Provider: Failed to load javax.xml.ws.spi Message-ID: <5214260.1191238282542.JavaMail.jboss@colo-br-02.atl.jboss.com> HI! I have the same problem of sselvia. But I work with eclipse and the plugging of JbossWS. I put the jboss-common.client.jar in the classpath but it doesn't work. What can I do? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090173#4090173 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090173 From do-not-reply at jboss.com Mon Oct 1 08:43:38 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 1 Oct 2007 08:43:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Provider com.sun.xml.ws.spi.ProviderImpl not found Message-ID: <8775579.1191242618246.JavaMail.jboss@colo-br-02.atl.jboss.com> No, it's not the problem. It seams to me that you're messing jaxws-rt.jar in your classpath definition. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090207#4090207 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090207 From do-not-reply at jboss.com Mon Oct 1 08:44:58 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 1 Oct 2007 08:44:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Provider com.sun.xml.ws.spi.ProviderImpl not found Message-ID: <21480436.1191242698376.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry for typo :-( messing = missing Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090211#4090211 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090211 From do-not-reply at jboss.com Mon Oct 1 09:29:56 2007 From: do-not-reply at jboss.com (Fantagir) Date: Mon, 1 Oct 2007 09:29:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Provider com.sun.xml.ws.spi.ProviderImpl not found Message-ID: <27618599.1191245396336.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks!!!! The problem is this .jar! I'm new devoloping WebService. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090232#4090232 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090232 From do-not-reply at jboss.com Mon Oct 1 09:39:34 2007 From: do-not-reply at jboss.com (viniciuscarvalho) Date: Mon, 1 Oct 2007 09:39:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SOAPMessage error: setProperty must be overridden by all Message-ID: <12379176.1191245974220.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Richard, Oskar. What is really tricking me is the fact that both my endorsed dirs (default from VM and JBoss) have the jboss-saaj.jar. And still, it complains about the error described. Does this qualifies as a Bug? Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090247#4090247 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090247 From do-not-reply at jboss.com Mon Oct 1 09:50:12 2007 From: do-not-reply at jboss.com (contactnag) Date: Mon, 1 Oct 2007 09:50:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error getting WebServiceContext/MessageContext informati Message-ID: <4999435.1191246612903.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am also facing the same issue. Can you please provide me the working code on this. Thanks, Nagesh. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090259#4090259 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090259 From do-not-reply at jboss.com Mon Oct 1 09:50:57 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 1 Oct 2007 09:50:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Wsconsume generated Stubs failing with JBoss-4.2.0 Message-ID: <20063780.1191246657608.JavaMail.jboss@colo-br-02.atl.jboss.com> What you see is WARNING from JAXP. However the classes are correctly generated. I'll close the issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090261#4090261 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090261 From do-not-reply at jboss.com Mon Oct 1 10:03:29 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 1 Oct 2007 10:03:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error getting WebServiceContext/MessageContext informati Message-ID: <28890553.1191247409107.JavaMail.jboss@colo-br-02.atl.jboss.com> If you have the same problem, then solution to your problem is still the same ;-) You're missing jboss-j2ee.jar archive in your classpath definition. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090270#4090270 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090270 From do-not-reply at jboss.com Mon Oct 1 10:04:48 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 1 Oct 2007 10:04:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Any windows user volunteering for JBWS-1793 ? Message-ID: <25606087.1191247488707.JavaMail.jboss@colo-br-02.atl.jboss.com> I could need a hand to complete that test case in windows environments. http://jira.jboss.com/jira/browse/JBWS-1793 Anybody? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090271#4090271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090271 From do-not-reply at jboss.com Mon Oct 1 10:10:13 2007 From: do-not-reply at jboss.com (trippstowe) Date: Mon, 1 Oct 2007 10:10:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - the problem was my web.xml file was not getting copied over Message-ID: <3687158.1191247813056.JavaMail.jboss@colo-br-02.atl.jboss.com> it seems that just deploying the class files does not hot deploy the web service. you have to copy over a new web.xml for the web service to get hot deployed. is there any plans to change this since the web.xml is not required anymore? thanks tripp View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090273#4090273 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090273 From do-not-reply at jboss.com Mon Oct 1 12:00:09 2007 From: do-not-reply at jboss.com (manny88) Date: Mon, 1 Oct 2007 12:00:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - ws samples not working on jboss-eap-4.2 Message-ID: <33312348.1191254409630.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm running the samples that come with the jboss-eap-doc.zip for server-config-guide. This is the basic Hello World sample run from ws directory etc. I installed a fresh copy of jboss-eap-4.2. I build, deploy and run the sample as follows and get the following error msg. Looks like xerces is missing or something. Question is, should this sample work out of the box or do I need to install the jbossWS package on top of jboss-eap-4.2 before I can get WS working? C:\cygwind\home\Manny\jboss-eap-4.2\doc\examples\server-config-guide>ant -Dchap= ws -Dex=1 run-example Buildfile: build.xml .... .... .... run-example1: [copy] Copying 1 file to C:\cygwind\home\Manny\jboss-eap-4.2\jboss-as\serve r\default\deploy [echo] Waiting for 15 seconds for deploy... [java] Contacting webservice at http://localhost:8080/hello-servlet/Hello?w sdl [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apach e/xerces/xs/XSModel [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil der.buildMetaData(JAXRPCClientMetaDataBuilder.java:110) [java] at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuil der.buildMetaData(JAXRPCClientMetaDataBuilder.java:85) [java] at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImp l.java:111) [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ ice(ServiceFactoryImpl.java:157) [java] at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createServ ice(ServiceFactoryImpl.java:128) [java] at org.jboss.ws.client.HelloClient.main(HelloClient.java:28) BUILD FAILED C:\cygwind\home\Manny\jboss-eap-4.2\doc\examples\server-config-guide\build.xml:1 08: The following error occurred while executing this line: C:\cygwind\home\Manny\jboss-eap-4.2\doc\examples\server-config-guide\build-ws.xm l:121: Java returned: 1 Total time: 23 seconds C:\cygwind\home\Manny\jboss-eap-4.2\doc\examples\server-config-guide> Thanks Manny View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090322#4090322 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090322 From do-not-reply at jboss.com Mon Oct 1 13:37:15 2007 From: do-not-reply at jboss.com (manny88) Date: Mon, 1 Oct 2007 13:37:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Sample application Message-ID: <9191845.1191260235016.JavaMail.jboss@colo-br-02.atl.jboss.com> Thomas, The "ant tests" is failing here as below. I'm on jboss-eap-4.2. I think it needs some package for junit.framework.Testcase. Where would this be? C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA>ant tests Buildfile: build.xml prepare: tests-prepare: [echo] ----------------------------------------------- [echo] jboss.home = /cygwind/home/manny/jboss-eap-4.2/jboss-as [echo] excludesfile = C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2. 0.1.GA/tests/resources/test-excludes-jboss42.txt [echo] java.home = C:\Java\jdk1.5.0_11\jre [echo] jboss.bind = localhost [echo] ----------------------------------------------- tests-classpath-jboss50: tests-classpath-jboss42: tests-classpath-jboss40: tests-classpath: tests-init: tests-compile: [javac] Compiling 2 source files to C:\cygwind\home\Manny\jboss-eap-4.2\jbos sws-native-2.0.1.GA\output\classes [javac] C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA\tests\ja va\org\jboss\test\ws\jaxws\smoke\tools\WSConsumerTestCase.java:45: cannot find s ymbol [javac] symbol : constructor TestCase() [javac] location: class junit.framework.TestCase [javac] public class WSConsumerTestCase extends TestCase [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error BUILD FAILED C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA\build.xml:117: The f ollowing error occurred while executing this line: C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA\tests\ant-import\bui ld-testsuite.xml:274: Compile failed; see the compiler error output for details. Total time: 3 seconds C:\cygwind\home\Manny\jboss-eap-4.2\jbossws-native-2.0.1.GA> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090359#4090359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090359 From do-not-reply at jboss.com Mon Oct 1 13:38:38 2007 From: do-not-reply at jboss.com (manny88) Date: Mon, 1 Oct 2007 13:38:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Sample application Message-ID: <31714728.1191260318939.JavaMail.jboss@colo-br-02.atl.jboss.com> Note, I have already added junit.jar to 3rdParty (/lib) here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090360#4090360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090360 From do-not-reply at jboss.com Mon Oct 1 13:42:25 2007 From: do-not-reply at jboss.com (viniciuscarvalho) Date: Mon, 1 Oct 2007 13:42:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Raw Style webservices Message-ID: <12635402.1191260545424.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello there! As I've been reporting here [and getting good support]. I'm developing a rawstyle ws using @WSProvide annotation. After getting things working (jboss WS 2.0.1, downgrading to jdk 5 because SAAJ version). Now things are starting to work, but I'm getting an exception: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces. Searching around I found out that some users have this issue due problems with Xalan version. All I'm trying to do is add a Document to the body of the SOAPMessage. I've been using almost the same example as the one on JEE tutorials. I'm wondering what's going wrong: | @ServiceMode(value=Service.Mode.MESSAGE) | public class CommandProcessor implements Provider { | Source returnMessage; | public SOAPMessage invoke(SOAPMessage messge) { | SOAPMessage returnMessage = null; | try{ | MessageFactory mf = MessageFactory.newInstance(); | returnMessage = mf.createMessage(); | returnMessage.getSOAPBody().addDocument(createResponseContent()); | returnMessage.saveChanges(); | }catch (Exception e) { | e.printStackTrace(); | } | | return returnMessage; | } | | private Document createResponseContent() throws Exception{ | DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); | dbf.setNamespaceAware(true); | DocumentBuilder db = dbf.newDocumentBuilder(); | Document doc = db.newDocument(); | Element responseCommand = doc.createElementNS("http://www.abc.com/sys/schemas", "sys:responseCommand"); | | Element id = doc.createElement("id"); | id.appendChild(doc.createTextNode("1")); | Element message = doc.createElement("message"); | message.appendChild(doc.createTextNode("comando recebido")); | responseCommand.appendChild(id); | responseCommand.appendChild(message); | doc.appendChild(responseCommand); | return doc; | } | I was thinking that the problem should be related to my schema declaration, but Sun's example uses an document that does not even declare an schema its a simple xml with no schema. Any ideas? Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090361#4090361 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090361 From do-not-reply at jboss.com Mon Oct 1 13:50:26 2007 From: do-not-reply at jboss.com (sunnym_a) Date: Mon, 1 Oct 2007 13:50:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Passing constraints from POJO to XML Schema Message-ID: <2764119.1191261026144.JavaMail.jboss@colo-br-02.atl.jboss.com> Environment: JBoss-4.2.1.GA Jbossws-native-2.0.1.GA JDK 1.5 Description: When I deploy JAX-WS web service, JBoss generates appropriate xml schema along with WSDL, which is great. I am trying to find out how should the field level constraints be specified in POJO so they get propogated to the generated xml schema (for example: minLength, maxLength etc.). Any suggestions? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090363#4090363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090363 From do-not-reply at jboss.com Mon Oct 1 14:01:52 2007 From: do-not-reply at jboss.com (manny88) Date: Mon, 1 Oct 2007 14:01:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Sample application Message-ID: <18076159.1191261712179.JavaMail.jboss@colo-br-02.atl.jboss.com> I added junit.jar to the entry in build.xml. The compile is OK now but the test results are another matter!! (all failing) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090367#4090367 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090367 From do-not-reply at jboss.com Tue Oct 2 03:48:16 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Tue, 2 Oct 2007 03:48:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Sample application Message-ID: <20642984.1191311296244.JavaMail.jboss@colo-br-02.atl.jboss.com> Copy junit jar file to $ANT_HOME/lib directory. This will solve your problem ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090515#4090515 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090515 From do-not-reply at jboss.com Tue Oct 2 03:53:31 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Tue, 2 Oct 2007 03:53:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <15851783.1191311611588.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, try tu upgrade your xalan and xerces versions by applying the Java endorsed mechanism. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090516#4090516 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090516 From do-not-reply at jboss.com Tue Oct 2 04:40:18 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Tue, 2 Oct 2007 04:40:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: 2.0.1SP1: When? Message-ID: <4441008.1191314418114.JavaMail.jboss@colo-br-02.atl.jboss.com> I see. We can't hide. ;) 2.0.1SP1 won't be published at jboss.org. The next official release will be 2.0.2 at the end of oktober. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090533#4090533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090533 From do-not-reply at jboss.com Tue Oct 2 07:04:19 2007 From: do-not-reply at jboss.com (Fantagir) Date: Tue, 2 Oct 2007 07:04:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How generate a WebService using Eclipse with JBossIDE Message-ID: <6900385.1191323059276.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi!! I'm development my first Web Service and I have a lot of problems and doubts as you can see in my topics. My enviroment is: Eclipse with a JbossIDE version 2.0.2 Jboss 4.0.5 GA JDK 1.5 Windows NT In this enviroment, How can I implement a WebService?? I do it as explain in this page: http://www.soapui.org/jbossws/bottomup_example.html Is a good way? And, how can I generate in this enviroment a client with the WSDL of the WebService? I do it, more or less, as explain in this page: http://www.informit.com/guides/content.aspx?g=java&seqNum=164&rl=1 If I do it like say in this pages I can pass a object as parameter of a service. Searching in Internet I have find that the problem is that I use JAX-RPC and I should use JAX-WS. Can anyone explain me how I have to generate the WebService and the client using the library JAX-WS? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090578#4090578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090578 From do-not-reply at jboss.com Tue Oct 2 07:32:20 2007 From: do-not-reply at jboss.com (palin) Date: Tue, 2 Oct 2007 07:32:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How generate a WebService using Eclipse with JBossIDE Message-ID: <22410915.1191324740609.JavaMail.jboss@colo-br-02.atl.jboss.com> I suggest you take a look at http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide You'll find how to implement both the server and client sides. Alessio Soldano View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090587#4090587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090587 From do-not-reply at jboss.com Tue Oct 2 07:49:15 2007 From: do-not-reply at jboss.com (Fantagir) Date: Tue, 2 Oct 2007 07:49:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How generate a WebService using Eclipse with JBossIDE Message-ID: <27527529.1191325755223.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank's I have seen this page. But it doesn't explain how can I generate the client and the WebService using eclipse. Thank's for your replay. I'll try to do it as this page explain. But If any other knows how can I do it, explain me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090591#4090591 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090591 From do-not-reply at jboss.com Tue Oct 2 08:00:00 2007 From: do-not-reply at jboss.com (subramaniam.venkat) Date: Tue, 2 Oct 2007 08:00:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Transaction Not Allowed Message-ID: <23695978.1191326400425.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello All, Please provide some comments. I am badly in need of help. Awaiting replies, Thanks & Warm Regards, Subramaniam V View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090597#4090597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090597 From do-not-reply at jboss.com Tue Oct 2 15:33:34 2007 From: do-not-reply at jboss.com (ggary) Date: Tue, 2 Oct 2007 15:33:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Installation fails on JBOSS 4.0.4. Message-ID: <28530494.1191353614889.JavaMail.jboss@colo-br-02.atl.jboss.com> I have successfully installed jbossws-native-2.0.1.GA on JBOSS 4.2.1 but when I tried to install it on JBOSS 4.0.4 ant task fails. Error message tells me that it cannot find $JBOSS_HOME/server/default/deploy/jbossws.sar/META-INF/jboss-service-no-ejb3.xml I looked up file in the SAR archive from each it is installed and file is not there. Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090794#4090794 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090794 From do-not-reply at jboss.com Tue Oct 2 16:32:48 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Tue, 2 Oct 2007 16:32:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Installation fails on JBOSS 4.0.4. Message-ID: <32938743.1191357168261.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossWS 1.2.1.GA and above are made for JBoss 4.0.5.GA and above. anonymous wrote : Currently, we have integration layers for the JBossAS-5.0, JBossAS-4.2, JBossAS-4.0.5 and above. See http://jbws.dyndns.org/mediawiki/index.php?title=Install_JBossWS for more information about this. Regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090810#4090810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090810 From do-not-reply at jboss.com Tue Oct 2 18:13:51 2007 From: do-not-reply at jboss.com (rocken7) Date: Tue, 2 Oct 2007 18:13:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsdl based web-service (like a paypal simulator)? Message-ID: <29759796.1191363231937.JavaMail.jboss@colo-br-02.atl.jboss.com> Kind of confused, so I'll explain. I'm trying to simulate the paypal soap stack by using the paypal wsdl file. I generate the source from the wsdl and can use the @WebServiceClient against the paypal sandbox web service and works great. I can't seem to roll my own @WebService of that for a number of reasons. Here are my service annotations: | @Stateless | @WebService(endpointInterface="ebay.api.paypalapi.PayPalAPIAAInterface", name = "PayPalAPIAA", targetNamespace = "urn:ebay:api:PayPalAPI", wsdlLocation="http://localhost:8080/txs/wsdl/PayPalSvc.wsdl") | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) | public class PaypalSoapSimulator implements PayPalAPIAAInterface { ... } | Here is a working (against the true paypal sandbox) paypal client service class (annotations): | @WebServiceClient(name = "PayPalAPIInterfaceService", targetNamespace = "urn:ebay:api:PayPalAPI", wsdlLocation = "http://localhost:8080/txs/wsdl/PayPalSvc.wsdl") | public class PayPalAPIInterfaceService extends Service { ... } | Now I deploy an .ear with an embedded and working .war that does have the wsdl + xsd files in the web root (/txs). I have a .jar with ejb3 entity pkgs and my PaypalSoapSimulator class (this might be an issue). Note: a copy of the wsdl and xsd files is in the webroot under the /wsdl folder. I have hard-coded the xsd import(s) to use an absolute url but I've also tried using the default local filename. When jboss-4.0.5.GA (with jbossws 2.0.1.GA) starts up it hangs: 2007-10-02 21:52:19,590 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] processSOAPBinding on: ebay.api.paypalapi.PayPalAPIAAInterface | 2007-10-02 21:52:19,590 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] setParameterStyle: BARE | 2007-10-02 21:52:19,606 DEBUG [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] parse: http://localhost:8080/txs/wsdl/PayPalSvc.wsdl | 2007-10-02 21:58:59,903 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000 | 2007-10-02 22:06:29,903 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000 | It hangs forever and ever and nothing deploys .... can't see the wsdl file in the browser either (404). Can someone point me to a valid example of creating wsdl-based @WebService, and how to implement the service interface, and the proper annotations (esp. for specific wsdlLocation, even a file based location would be super cool as that seems like black magic b/c noone shows how its done). Also a layout of the deploy bundle for this: does my ejb3 .jar require specifics to roll the @WebService or are the annotations enough? Should my @WebService be in the .war with something special in the web.xml file for mapping? Is this a bug in the sense that jboss hangs forever? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090846#4090846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090846 From do-not-reply at jboss.com Tue Oct 2 21:10:52 2007 From: do-not-reply at jboss.com (ggary) Date: Tue, 2 Oct 2007 21:10:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error getting WebServiceContext/MessageContext informati Message-ID: <31852252.1191373852303.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard_opalka" wrote : If you have the same problem, then solution to your problem is still the same ;-) | | You're missing jboss-j2ee.jar archive in your classpath definition. | | Richard I am having the same problem (NPE) and I do have jboss-j2ee.jar in the server/default/lib directory of my JBOSS 4.2.1 installation. I have a suspicion that something is missing in one of the xml files. I couldn't find anywhere how this resource should be configured. Isn't some entry should be placed in web.xml or somewhere else? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090870#4090870 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090870 From do-not-reply at jboss.com Wed Oct 3 00:58:04 2007 From: do-not-reply at jboss.com (mageshbk@jboss.com) Date: Wed, 3 Oct 2007 00:58:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Passing constraints from POJO to XML Schema Message-ID: <9020357.1191387484047.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossWS uses JAXB for marshalling and unmarshalling WS requests. As of now there is no provision to generate these validations through annotations in JAXB. However JAXB has a validator process which is currently not yet implemented in any implementations of JAXB. More info on JAXB validation process only when unmarshalling is here http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBWorks2.html "When a schema is compiled into a JAXB2 object, the relevant information is added as annotations. This is much faster than processing the schema file, and still offers decent validation. If you want extra strict validation, then JAXB2 does offer the ability to hook into a JAXP validator, but this has a significant performance cost. For this reason the JAX-WS reference implementation does not make use of that feature. The JAXB2 spec specifies an optional fail-fast validation that is more efficient, although there are currently no implementations that use this." We also have an outstanding feature request here for validating schemas for incoming request. Please feel free to vote and watch for it here http://jira.jboss.org/jira/browse/JBWS-1172 But on the whole these annotations and validations are JAXB specifics and you will need to request any implementors like the SUN RI here https://jaxb.dev.java.net/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090882#4090882 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090882 From do-not-reply at jboss.com Wed Oct 3 01:58:28 2007 From: do-not-reply at jboss.com (mrokka123) Date: Wed, 3 Oct 2007 01:58:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unable to load Provider: Failed to load javax.xml.ws.spi Message-ID: <32346523.1191391108989.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have also the same issue but managed to solved it by setting environment variable WSRUNCLIENT_CLASSPATH=D:\jboss-4.2.0.GA\client\jboss-common-client.jar; Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090886#4090886 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090886 From do-not-reply at jboss.com Wed Oct 3 02:13:15 2007 From: do-not-reply at jboss.com (govindaattal) Date: Wed, 3 Oct 2007 02:13:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS-2.0.1.GA SOAP 1.2 Web service Problem/issue Message-ID: <13470126.1191391995345.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I was creating Web service with SOAP 1.2 binding bottom-up approach.... | @WebService(name="DLSOAP12Service", targetNamespace="ws.soap12.dlservice" ) | @SOAPBinding(style=SOAPBinding.Style.DOCUMENT) | @BindingType(value="http://www.w3.org/2003/05/soap/bindings/HTTP/") | public class DLSOAP12Service | { | public String echoString(String input) | { | return input; | } | } | In JBOSS when I looked at the corresponding WSDL in the list of registered service endpoints, I found that the binding with which web service was exposed was of SOAP 1.1 'http://schemas.xmlsoap.org/wsdl/soap/' I later found from messages on conosle that though according to WSDL web service was exposed with SOAP 1.1 Binding it actually expected SOAP 1.2 envelopes in the messages. | | 11:14:58,791 WARN [SOAP12BindingJAXWS] Expected SOAP-1.2 envelope, but got: http://schemas.xmlsoap.org/soap/envelope/ | | When client invoked web service with messages in SOAP 1.2 envelopes JBOSS server cmd console didn't gave any warning messages... Please correct if my observations can be disregarded. When I created web service in a top-down approach using wsconsume task, it gave me following message | | C:\jboss-4.0.5.GA\bin>wsconsume.bat -k e:\SOAP12\DLServiceSOAP12.wsdl | parsing WSDL... | | | [WARNING] Ignoring SOAP port "DLServiceSOAP12": it uses non-standard SOAP 1.2 binding. | You must specify the "-extension" option to use this binding. | line 613 of file:/e:/SOAP12/DLServiceSOAP12.wsdl | | [WARNING] Service "DLServiceSOAP12" does not contain any usable ports. try running wsimport with -extension switch. | line 611 of file:/e:/SOAP12/DLServiceSOAP12.wsdl | | generating code... | .... | .... | .... | It didnot generate Webservice endpoint interface and client class at all! I was unable to figure out how should I put use of the 'WARNING' that wsconsume tool gave me! Thanks & Regards, Govinda Attal. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090889#4090889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090889 From do-not-reply at jboss.com Wed Oct 3 03:12:13 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Wed, 3 Oct 2007 03:12:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <15760238.1191395533514.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello! Take a look at the samples in the JBossWS distribution. I'm using contract first based web services with jboss that are working fine. Are your xml schemas valid? Do they point to a url that is inaccessible? Such things can cause JBoss to hang until it gets a timeout. Best /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090901#4090901 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090901 From do-not-reply at jboss.com Wed Oct 3 03:21:59 2007 From: do-not-reply at jboss.com (mageshbk@jboss.com) Date: Wed, 3 Oct 2007 03:21:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebService response problem Message-ID: <27885724.1191396119745.JavaMail.jboss@colo-br-02.atl.jboss.com> Xerces is missing in your classpath. Any client application you write needs to use the endorsed property to load the most current xerces. You should set the vm options as follows: -Djava.endorsed.dirs=/[jboss_install_path]/jboss/jboss-4.0.5.GA/lib/endorsed View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090903#4090903 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090903 From do-not-reply at jboss.com Wed Oct 3 04:07:58 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 3 Oct 2007 04:07:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error getting WebServiceContext/MessageContext informati Message-ID: <19722824.1191398878134.JavaMail.jboss@colo-br-02.atl.jboss.com> What is the exception stacktrace? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090916#4090916 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090916 From do-not-reply at jboss.com Wed Oct 3 06:46:57 2007 From: do-not-reply at jboss.com (Fantagir) Date: Wed, 3 Oct 2007 06:46:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - error RuntimeModelerException: runtime modeler error: Wrappe Message-ID: <18402732.1191408417053.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I've develop a Web Service and its client. I run the WebService and when I run the client appears the next error: com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class webservice.jaxws.DarCuenta is not found. Have you run APT to generate them? It's necessary to run APT? When I have to run it? There isn't any way of implements and run the WebService and the client without use the APT? The code of my WebService: package service; | | import java.rmi.Remote; | import java.rmi.RemoteException; | | import javax.jws.WebMethod; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.WebParam; | | import util.DatePalabra; | | @WebService( | name="IContar", // wsdl:portType | targetNamespace="urn:service" //wsdl:targetNamespace | ) | public interface IContar extends Remote { | | @WebMethod | @WebResult(name="IContar_darCuentaResponse") | public DatePalabra darCuenta(@WebParam(name = "name") String name) throws RemoteException; | } | package service; | | import java.rmi.RemoteException; | | import javax.jws.WebMethod; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | import util.DatePalabra; | | @WebService( | serviceName="Contar", // wsdl:service | portName= "IContarPort", //wsdl:port name=... binding=... | endpointInterface = "service.IContar", //nombre de la interficie del WebService | targetNamespace="urn:service", //wsdl:targetNamespace | wsdlLocation = "WEB-INF/wsdl/Contar.wsdl" //nombre y ubicaci?n en el proyecto del fichero .wsdl | ) | @SOAPBinding( | style=SOAPBinding.Style.RPC, | use=SOAPBinding.Use.LITERAL | ) | public class Contar implements IContar{ | | public DatePalabra darCuenta(String name) throws RemoteException { | DatePalabra dp = new DatePalabra(); | dp.setLongitud(Integer.toString(name.length())); | dp.setPalabra(name); | return dp; | } | | } | Thanks for all. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090953#4090953 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090953 From do-not-reply at jboss.com Wed Oct 3 07:01:57 2007 From: do-not-reply at jboss.com (palin) Date: Wed, 3 Oct 2007 07:01:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: error RuntimeModelerException: runtime modeler error: Wr Message-ID: <2788405.1191409317991.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, how did you develop the client and what is the jbossws version you're using? I would take a look at least the quick start documentation http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start Anyway, you shoudn't need APT if you use the native jbossws stack. Bye Alessio Soldano View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090959#4090959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090959 From do-not-reply at jboss.com Wed Oct 3 07:20:47 2007 From: do-not-reply at jboss.com (Fantagir) Date: Wed, 3 Oct 2007 07:20:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: error RuntimeModelerException: runtime modeler error: Wr Message-ID: <15202168.1191410447689.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for replay so quickly. My environment is: Eclipse and JbossIDE for Eclipse Jboss 4.0.5 GA JDK 1.5 JWSDP 2.0 And the code of my client is this: package webservice; | | import java.net.URL; | | import javax.xml.namespace.QName; | import javax.xml.ws.Service; | | import util.DatePalabra; | | import com.lasalle.util.resources.CollectionProperties; | | | public class MainDevPalabra { | | public static void main( String[] args ) throws Exception { | if( args.length < 1 ) | { | System.out.println( "Usage: Palabra name" ); | System.exit( 0 ); | } | | String argument = args[ 0 ]; | | DatePalabra dp = new DatePalabra(); | | //CollectionProperties propietats = new CollectionProperties(); | String urlstr = CollectionProperties.getPropiedad("serviceD.url"); | String nameServiceStr = CollectionProperties.getPropiedad("serviceD.name"); | String namespaceServiceStr = CollectionProperties.getPropiedad("serviceD.namespace"); | | System.out.println( "Contacting webservice at " + urlstr ); | | URL url = new URL(urlstr); | | //se indican el namespace en el que se encuentra el servicio y su nombre | //(esto se puede ver en el WSDL) | QName qname = new QName(namespaceServiceStr, | nameServiceStr); | | Service service = Service.create(url, qname); | | | IContar age = ( IContar) service.getPort( IContar.class ); | | System.out.println( "age.age(" + argument + ")" ); | dp = (DatePalabra) age.darCuenta(argument); | System.out.println( "output longitud:" + dp.getLongitud() ); | System.out.println( "output palabra:" + dp.getPalabra() ); | } | | | } Well, I use the interface that I write in the before. I'll take a look at the page you tell me. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090968#4090968 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090968 From do-not-reply at jboss.com Wed Oct 3 07:27:11 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Wed, 3 Oct 2007 07:27:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - org.jboss.ws.WSException: Cannot obtain java type mapping fo Message-ID: <26195137.1191410831856.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am migrating web services application from Weblogic 8.1.4 to JBoss 4.0.5. I have generated webservices.xml,jaxrpc-mapping.xml and WSDL by using wstools which is there in JbossWS 1.0.4.When i tried to deploy the web service it got deployed successfully. But i have requirement saying that i should use the WSDL that is generated from Weblogic when i replaced the Jboss WSDL with Weblogic WSDL and tried to deploy it is generating the following exception 15:48:13,100 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.0.5.GA/server/default/deploy/macafeeAdapter.war org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://smo.xsd.covad.com/vendororder}ProcessVendorOrder at org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataD oc(JSR109MetaDataBuilder.java:451) at org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL (JSR109MetaDataBuilder.java:200) at org.jboss.ws.deployment.JSR109ServerMetaDataBuilder.buildMetaData(JSR 109ServerMetaDataBuilder.java:223) at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpoin tDeployer.java:78) at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInt erceptor.java:80) at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(Deployer InterceptorJSE.java:74) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. create(SubDeployerInterceptorSupport.java:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce ptor.java:91) 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 $Proxy39.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) Below are the files : contents of webservices.xml : VendorOrderService WEB-INF/wsdl/VendorOrderService.wsdl WEB-INF/jaxrpc-mapping.xml VendorOrderPort impl:VendorOrderPort com.covad.mcafee.adapter.webservice.macafee MacafeeAdapter contents of jaxrpc-mapping.xml: com.covad.xsd.smo.vendororder http://vendororder.smo.xsd.covad.com/jaws com.covad.mcafee.adapter.webservice http://smo.xsd.covad.com/vendororder com.covad.xsd.smo.vendororder.PhoneNumber typeNS:PhoneNumber complexType areaCode areaCode extension extension prefix prefix setAreaCode setAreaCode setExtension setExtension setPrefix setPrefix setSuffix setSuffix suffix suffix com.covad.xsd.smo.vendororder.Client typeNS:Client complexType city city clientID clientID companyName companyName countryCode countryCode email email fax fax firstName firstName lastName lastName password password phone phone salutation salutation setCity setCity setCompanyName setCompanyName setCountryCode setCountryCode setEmail setEmail setFax setFax setFirstName setFirstName setLastName setLastName setPassword setPassword setPhone setPhone setSalutation setSalutation setState setState setStreetAddress1 setStreetAddress1 setStreetAddress2 setStreetAddress2 setUnit setUnit setZip setZip setZip4 setZip4 state state streetAddress1 streetAddress1 streetAddress2 streetAddress2 unit unit zip zip zip4 zip4 com.covad.xsd.smo.vendororder.VendorOrder typeNS:VendorOrder complexType client client contractAcceptedDate contractAcceptedDate contractAcceptedFlag contractAcceptedFlag orderID orderID orderReceivedDate orderReceivedDate productLanguageCode productLanguageCode setClient setClient setContractAcceptedDate setContractAcceptedDate setContractAcceptedFlag setContractAcceptedFlag setVendorOrderID setVendorOrderID vendorID vendorID vendorOrderID vendorOrderID com.covad.mcafee.adapter.webservice.VendorOrderService serviceNS:VendorOrderService VendorOrderPort VendorOrderPort com.covad.mcafee.adapter.webservice.macafee portTypeNS:VendorOrder bindingNS:VendorOrderBinding processVendorOrder processVendorOrder 0 com.covad.xsd.smo.vendororder.VendorOrder wsdlMsgNS:VendorOrder_processVendorOrder VendorOrder_1 IN com.covad.xsd.smo.vendororder.VendorOrder wsdlMsgNS:VendorOrder_processVendorOrderResponse result contents of VendorOrderService.wsdl : I am not getting where am i going wrong. Please help me. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090972#4090972 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090972 From do-not-reply at jboss.com Wed Oct 3 07:45:27 2007 From: do-not-reply at jboss.com (palin) Date: Wed, 3 Oct 2007 07:45:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain java type mappin Message-ID: <27314746.1191411927729.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I would suggest you to upgrade to jbossws 2.0.1 GA. This way you might switch from JAX-RPC to JAX-WS. Then I would use a top-down development strategy http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Top-Down_.28Using_wsconsume.29 that allows you to generate the java interfaces given your existing wsdl contract. Bye Alessio Soldano View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090990#4090990 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090990 From do-not-reply at jboss.com Wed Oct 3 07:57:28 2007 From: do-not-reply at jboss.com (DeanoUK) Date: Wed, 3 Oct 2007 07:57:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: BASIC Authentication with jbossws-2.0.0.GA Message-ID: <18215103.1191412648238.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you find a resolution to this issue? I'm experiencing similar problems. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091003#4091003 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091003 From do-not-reply at jboss.com Wed Oct 3 08:55:53 2007 From: do-not-reply at jboss.com (nickarls) Date: Wed, 3 Oct 2007 08:55:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Encoding problem Message-ID: <10432985.1191416153306.JavaMail.jboss@colo-br-02.atl.jboss.com> Yup, the dreaded "Invalid byte 2 of 4-byte UTF-8 sequence". I have @WebService annotated methods that handle entities with iso-8859-1 encoding. Is there any way of telling JBoss to do UTF-8 encoding when generating the WSDL-document? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091034#4091034 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091034 From do-not-reply at jboss.com Wed Oct 3 09:29:56 2007 From: do-not-reply at jboss.com (sunnym_a) Date: Wed, 3 Oct 2007 09:29:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Passing constraints from POJO to XML Schema Message-ID: <31392940.1191418196408.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the response. I will look into other options that you mentioned. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091052#4091052 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091052 From do-not-reply at jboss.com Wed Oct 3 09:46:25 2007 From: do-not-reply at jboss.com (Vincent321) Date: Wed, 3 Oct 2007 09:46:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to set a parameter mandatory for a given operation Message-ID: <13950743.1191419185824.JavaMail.jboss@colo-br-02.atl.jboss.com> Dear, Could you please tell me how can I set a parameter mandatory in my WS. Below is the code of my WS | @WebService | @SOAPBinding(style=SOAPBinding.Style.DOCUMENT) | public class GenericWS { | public boolean postMessage(@WebParam(name = "message")Message inMessage){ | | | System.out.println(inMessage); | | | return true; | | } | } | Here is the code of my Message Bean : public class Message implements Serializable{ | /** | * | */ | private static final long serialVersionUID = 1L; | | private String theField; | | | @XmlElement(required=true) | public String getTheField() { | return theField; | } | | | public void getTheField(String value) { | this.theField = value; | } | | } Here is a part of the generated WSDL | | | | | | | My question is : Is it possible to remove the minOccurs="0" ? Many thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091062#4091062 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091062 From do-not-reply at jboss.com Wed Oct 3 09:47:57 2007 From: do-not-reply at jboss.com (Fantagir) Date: Wed, 3 Oct 2007 09:47:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: error RuntimeModelerException: runtime modeler error: Wr Message-ID: <9004509.1191419277858.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I'll try to do what explain in this page http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start but don't work. The error is still the same. What can I do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091063#4091063 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091063 From do-not-reply at jboss.com Wed Oct 3 10:34:37 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 3 Oct 2007 10:34:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Type Substitution doesn't work with Schema2Java Client a Message-ID: <10942813.1191422077155.JavaMail.jboss@colo-br-02.atl.jboss.com> "M_schumpa" wrote : Do you think there is a quick fix for this problem? | I'm asking because I'm writing a diploma thesis about Web Services and the deadline is the end of september. | I hope it's still not too late what about your diploma deadline. I've resolved your issue: http://jira.jboss.org/jira/browse/JBWS-1795 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091084#4091084 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091084 From do-not-reply at jboss.com Wed Oct 3 10:38:09 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 3 Oct 2007 10:38:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Type Substitution doesn't work with Schema2Java Client a Message-ID: <17887098.1191422289231.JavaMail.jboss@colo-br-02.atl.jboss.com> "mrokka123" wrote : I'm also having the same problem. I'm using jboss4.2.0+jbossWS2.0.1+jdk1.5 | everything is fine,WSDL is ok & client is also calling the service but instead of returning the subclass reference | it always returns base class object. | I also have tried using @XmlSeeAlso but same problem. | Any Suggestion to solve my problem. You have to provide package-info.class file(s) to your application. Take a look to: http://jira.jboss.org/jira/browse/JBWS-1795 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091088#4091088 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091088 From do-not-reply at jboss.com Wed Oct 3 11:45:30 2007 From: do-not-reply at jboss.com (DeanoUK) Date: Wed, 3 Oct 2007 11:45:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS-2.0.1 ignoring @SecurityDomain Message-ID: <10560129.1191426330524.JavaMail.jboss@colo-br-02.atl.jboss.com> Was using JBossWS out of the box with JBoss 4.2.1GA, but run into some issues - it was recommended to try the new JBossWS-2.0.1. The @SecruityDomain was previously mapping to the correct SecruityDomain but is now defaulting to some other value. | import org.jboss.wsf.spi.annotation.WebContext; | import org.jboss.annotation.security.SecurityDomain; | | Stateless(name = "NewRegistrationsSession") | @WebService(endpointInterface = "com.msp.ejb.csi.webservices.newregistrations.NewRegistrationsSession") | @Remote(NewRegistrationsSession.class) | @SecurityDomain("sys-server-login") | @RolesAllowed({"Webservice"}) | @WebContext(contextRoot = "/webservices", urlPattern = "/*", authMethod = "BASIC", | transportGuarantee = "NONE", secureWSDLAccess = false) | public class NewRegistrationsSessionBean | { | //etc | } | The SecurityDomain is set to 'sys-server-login' but it is actually using 'server-login' which is another SecurityDomain. It was previously working ok. Any ideas why? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091123#4091123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091123 From do-not-reply at jboss.com Wed Oct 3 12:39:12 2007 From: do-not-reply at jboss.com (DeanoUK) Date: Wed, 3 Oct 2007 12:39:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - ver1_1.Message1_1Impl cannot be cast to MessageImpl AND Cann Message-ID: <22565608.1191429552800.JavaMail.jboss@colo-br-02.atl.jboss.com> On trying to run a SOAP client I get: | Exception in thread "main" java.lang.ClassCastException: com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl | at com.sun.xml.rpc.client.dii.CallInvokerImpl._postSendingHook(CallInvokerImpl.java:305) | at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324) | at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103) | at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486) | at com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:121) | at com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:85) | at $Proxy0.uploadNewRegistrations(Unknown Source) | On JBoss I receive: | [03 Oct 2007 17:30:25] ERROR org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS - SOA | P request exception | org.jboss.ws.WSException: Cannot find child element: arg0 | at org.jboss.ws.core.CommonSOAPBinding.getParameterFromMessage(CommonSOA | PBinding.java:891) | at org.jboss.ws.core.CommonSOAPBinding.unbindRequestMessage(CommonSOAPBi | nding.java:343) | I'm using JBoss4.2.1GA with JBossWS-2.0.1 The first exception seems related to the fact I'm using JDK 6...but jboss-saaj.jar is indeed in libs/endorsed which I believe should resolve that problem. Any ideas on how to fix this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091149#4091149 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091149 From do-not-reply at jboss.com Wed Oct 3 14:06:02 2007 From: do-not-reply at jboss.com (rocken7) Date: Wed, 3 Oct 2007 14:06:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <7157089.1191434762838.JavaMail.jboss@colo-br-02.atl.jboss.com> what distro, which example? I can't find it ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091180#4091180 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091180 From do-not-reply at jboss.com Wed Oct 3 14:44:07 2007 From: do-not-reply at jboss.com (sumitsu) Date: Wed, 3 Oct 2007 14:44:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Unmarshalling Exception with Web Service Array Input Message-ID: <7017736.1191437047800.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am currently attempting to deploy a web service to JBoss 4.2.1 (using Java 6.0 and JBossWS 2.0.1) where the single input is a custom object which contains (among other fields) an array of other custom objects. Deployment seems to work correctly, but I get this error when I try to invoke the service: | 14:16:44,997 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception | org.jboss.ws.WSException: org.jboss.ws.core.binding.BindingException: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: | Failed to parse source: | Failed to resolve class name for customFields: | No ClassLoaders found for: com.liaison.InboundWebService.messageProcessing.Array | at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:250) | at org.jboss.ws.core.soap.XMLContent.transitionTo(XMLContent.java:97) | at org.jboss.ws.core.soap.DOMContent.transitionTo(DOMContent.java:77) | at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140) | at org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:171) | at org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:263) | at org.jboss.ws.core.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:115) | at org.jboss.ws.core.EndpointInvocation.getRequestPayload(EndpointInvocation.java:135) | at org.jboss.ws.core.server.DelegatingInvocation.getArgs(DelegatingInvocation.java:82) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB21.getMBeanInvocation(InvocationHandlerEJB21.java:169) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB21.invoke(InvocationHandlerEJB21.java:144) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | 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.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.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | 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:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:619) | Caused by: | org.jboss.ws.core.binding.BindingException: | org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: | Failed to parse source: | Failed to resolve class name for customFields: | No ClassLoaders found for: com.liaison.InboundWebService.messageProcessing.Array | at org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializer.deserialize(JBossXBDeserializer.java:111) | at org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializer.deserialize(JBossXBDeserializer.java:62) | at org.jboss.ws.core.binding.DeserializerSupport.deserialize(DeserializerSupport.java:60) | at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:180) | ... 35 more | Caused by: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: | Failed to parse source: | Failed to resolve class name for customFields: | No ClassLoaders found for: com.liaison.InboundWebService.messageProcessing.Array | at org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:65) | at org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializer.deserialize(JBossXBDeserializer.java:103) | ... 38 more | Caused by: | org.jboss.xb.binding.JBossXBException: | Failed to parse source: | Failed to resolve class name for customFields: | No ClassLoaders found for: com.liaison.InboundWebService.messageProcessing.Array | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:178) | at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126) | at org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:61) | ... 39 more | Caused by: | org.jboss.xb.binding.JBossXBRuntimeException: | Failed to resolve class name for customFields: | No ClassLoaders found for: com.liaison.InboundWebService.messageProcessing.Array | at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtElementHandler.loadClassForTerm(RtElementHandler.java:1038) | at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtElementHandler.classForNonArrayItem(RtElementHandler.java:1367) | at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtElementHandler.startElement(RtElementHandler.java:693) | at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtElementHandler.startParticle(RtElementHandler.java:89) | at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:504) | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:323) | at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) | at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source) | at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:174) | ... 41 more | I've tried this with JVMs 1.4.2, 5.0, 6.0, as well as with JBoss version 4.0.2 and 4.2.1 and with both WS4EE and JBossWS 1.2.1 and 2.0.1, and I get the same error every time. (The error from JBoss 4.0.2 + WS4EE is a bit different, but the gist of it is the same, that it can't deserialize the input for the array.) My WSDL, generated by wscompile, is as follows. I've removed a few sections which do not seem relevant to the issue: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Has anyone else experienced this problem? I have not been able to find many references to the Exception I'm getting. Please let me know if so; thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091198#4091198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091198 From do-not-reply at jboss.com Wed Oct 3 14:47:21 2007 From: do-not-reply at jboss.com (ggary) Date: Wed, 3 Oct 2007 14:47:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WebServiceContext injection. Was it fixed or not? Message-ID: <21746981.1191437241842.JavaMail.jboss@colo-br-02.atl.jboss.com> I have this piece of code in my web service: @Resource | private WebServiceContext context; However it is not being injected. The value is always null. I found a bug on JIRA and it is in the resolved state with the intended release JBossWS 2.0. Now I am on JBoss 4.2.1 with JBossWS 2.0.1 and still have this problem. Can someone answer on the state of this problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091199#4091199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091199 From do-not-reply at jboss.com Wed Oct 3 15:24:23 2007 From: do-not-reply at jboss.com (rocken7) Date: Wed, 3 Oct 2007 15:24:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <9193966.1191439463192.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok still confused, the docs just don't help. Again from the top with some changes. The ejb3 stateless bean as a webservice: @WebService(name = "PayPalAPIAAInterface", portName = "PayPalAPIAA", serviceName = "PayPalAPIInterfaceService", targetNamespace = "urn:ebay:api:PayPalAPI", wsdlLocation="META-INF/wsdl/PayPalSvc.wsdl") | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) | @WebContext(contextRoot = "/report") | @Remote | @Stateless | public class PaypalSoapSimulator implements PayPalAPIAAInterface { .. } | Here is the PayPalAPIAAInterface: @WebService(name = "PayPalAPIAAInterface", targetNamespace = "urn:ebay:api:PayPalAPI") | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) | public interface PayPalAPIAAInterface { ... } | And here is a snippet from the wsdl: | | | | | | | | Now the PayPalSvc.wsdl imports valid official *.xsd files which are in the same folder and are straight from paypal (validated). Jboss-4.0.5.GA no longer hangs, it just blows with a java.lang.OutOfMemoryError. I have the heap space turned way up ( -Xmx1024m ) and it still blows? Here is the server log, and there are tons of the xmlschema import lines before the crash. 2007-10-03 19:06:18,335 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/CoreComponentTypes.xsd | 2007-10-03 19:06:18,350 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/eBLBaseComponents.xsd | 2007-10-03 19:06:21,444 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/CoreComponentTypes.xsd | 2007-10-03 19:06:21,460 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/eBLBaseComponents.xsd | 2007-10-03 19:06:21,506 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/CoreComponentTypes.xsd | 2007-10-03 19:06:21,538 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/eBLBaseComponents.xsd | 2007-10-03 19:06:21,585 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/CoreComponentTypes.xsd | 20 07-10-03 19:06:21,600 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] XMLSchema import published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/txs.ear/txs.jar/eBLBaseComponents.xsd | 2007-10-03 19:07:17,102 ERROR [STDERR] Exception in thread "main-FastReceiver" | 2007-10-03 19:07:17,102 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space | Any ideas what is going on? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091213#4091213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091213 From do-not-reply at jboss.com Wed Oct 3 16:12:59 2007 From: do-not-reply at jboss.com (viniciuscarvalho) Date: Wed, 3 Oct 2007 16:12:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <23701010.1191442379775.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks, I gave up on the Message style to go to Payload. this problem was solved :) Have new ones :( Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091220#4091220 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091220 From do-not-reply at jboss.com Wed Oct 3 16:28:20 2007 From: do-not-reply at jboss.com (viniciuscarvalho) Date: Wed, 3 Oct 2007 16:28:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Raw Style webservices [Design question] Message-ID: <17220592.1191443300016.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello there! I'm developing a Topdown webservice, and defining my own WSDL, and using @WebserviceProvider annotations. The service is running, I can access it using webservice explorer or SOAPUI. When I generate the client using JBoss WS, I'm getting some errors on the response. I know it's something related to my WSDL, and SOAP response. So I was hopping someone could assist me: WSDL | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Command.xsd | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My Provider | | @Local | @Stateless | @WebServiceProvider(wsdlLocation="META-INF/wsdl/CommandProcessor.wsdl", | targetNamespace="http://www.acme.com/sys/definitions", | serviceName="CommandProcessorService", | portName="CommandProcessorPort") | @ServiceMode(value=Service.Mode.PAYLOAD) | public class CommandProcessor implements Provider { | Source returnMessage; | public Source invoke(Source messge) { | | DOMSource domSource = null; | | try { | Transformer transformer = TransformerFactory.newInstance().newTransformer(); | transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); | transformer.setOutputProperty(OutputKeys.METHOD, "xml"); | OutputStream out = new ByteArrayOutputStream(); | StreamResult streamResult = new StreamResult(); | streamResult.setOutputStream(out); | transformer.transform(messge, streamResult); | String xmlReq = streamResult.getOutputStream().toString(); | System.out.println(xmlReq); | domSource = new DOMSource(createResponseContent()); | transformer.transform(domSource, streamResult); | xmlReq = streamResult.getOutputStream().toString(); | System.out.println(xmlReq); | } catch (Exception e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | return domSource; | } | | private Document createResponseContent() throws Exception{ | DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); | dbf.setNamespaceAware(true); | DocumentBuilder db = dbf.newDocumentBuilder(); | Document doc = db.newDocument(); | Element responseCommand = doc.createElementNS("http://www.acme.com/sys/definitions", "sys:CommandResponse"); | Element ret = doc.createElement("return"); | Element id = doc.createElement("id"); | id.appendChild(doc.createTextNode("1")); | Element message = doc.createElement("message"); | message.appendChild(doc.createTextNode("comando recebido")); | ret.appendChild(id); | ret.appendChild(message); | responseCommand.appendChild(ret); | doc.appendChild(responseCommand); | return doc; | } | | } | Well, first, when I run ws-provide it throws a lot of warnings on the console, but it seems that all artifacts are created (Port,Service,Bindings,ObjectFactory). Ok, running using soap ui: | Request: | | | | | | | true | | | | | | Response: | | | | | | | 1 | comando recebido | | | | | Now, the odd thing, is that the xmlns:sys is null, when I print it on the serverside it displays that the xmlns:sys is pointing to the namespace. So I run this test with the generated client proxy, and I get an error: Caused by: org.jboss.ws.WSException: Cannot find child element: {http://www.acme.com/schemas/sys}CommandResponse I really don't know if this is caused because the xmlns is being returned null, and if so, why? Or did I messed the whole doc/literal wrapped/bare style? I was thinking that I was using bare style :) Any help would be great :) Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091226#4091226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091226 From do-not-reply at jboss.com Wed Oct 3 16:51:04 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Wed, 3 Oct 2007 16:51:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Encoding problem Message-ID: <23018364.1191444664796.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello! You can start JBoss with the file.encoding parameter | -Dfile.encoding=UTF-8 | Be careful when doing this because you will treat all files as UTF-8-encoded if nothing else is given. OK, I haven't had any problems doing this on all our servers, but it is worth an extra note. Regards, Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091235#4091235 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091235 From do-not-reply at jboss.com Wed Oct 3 17:05:02 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Wed, 3 Oct 2007 17:05:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <21731484.1191445502318.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I'm not sure if you are doing this, but I have had som troubles with JBossWS and nested schema imports. I tried to have relative urls between schemas using .. syntax for traversal of parent directory. JBossWS failed when doing this and told me to use something like getParent() instead of .. So now I put all my xsd files in the same folder under META-INF and now everything is working fine. Here is an example using the provider interface. This is almost the same as your implementation but you are using the @WebService annotation. @Local | @Stateless | @WebServiceProvider( | serviceName = "ServiceTest", | portName = "ServiceTestSoap11Port", | targetNamespace = "http://service.mydomain.com/service-test", | wsdlLocation = "META-INF/wsdl/service-test.wsdl") | @ServiceMode(value = Service.Mode.MESSAGE) | public class ServiceRegistrySEPBean implements Provider { | public SOAPMessage invoke(SOAPMessage requestSoapMessage) { | ... | } | } | /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091239#4091239 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091239 From do-not-reply at jboss.com Wed Oct 3 17:14:21 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Wed, 3 Oct 2007 17:14:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <31511052.1191446061547.JavaMail.jboss@colo-br-02.atl.jboss.com> Hmmm.... I think I had this problem a long time ago. As I can remember it is the Document type that gives you the problem. Try adding an element instead of a document. I think the xml parser will complain about adding a document node to an existing document which is not allowed. Try adding element instead and your code shall work. Cheers, Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091241#4091241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091241 From do-not-reply at jboss.com Wed Oct 3 18:00:22 2007 From: do-not-reply at jboss.com (subramaniam.venkat) Date: Wed, 3 Oct 2007 18:00:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Transaction Not Allowed Message-ID: <5750800.1191448822509.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello All, Is there not one expert in the forum how can atleast tell me whether the issue is posted on the right forum. Please give some comments. Thanks & Warm Regards, Subramaniam.V View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091255#4091255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091255 From do-not-reply at jboss.com Thu Oct 4 01:47:59 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 4 Oct 2007 01:47:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Transaction Not Allowed Message-ID: <19722558.1191476879246.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello! Do I understand You right if I say that Spring is starting its own transactions. If so, then you must use BMT (Bean Managed Transaction) and not CMT (Container Managed Transactions). CMT is used per default if you don't give any transaction attribute at all. Check out the Java EE tutorial chapter on transactions to learn more http://java.sun.com/javaee/5/docs/tutorial/doc/[/url]. Also check the JavaEE JavaDoc for more info [url]http://java.sun.com/javaee/5/docs/api/javax/ejb/TransactionManagement.html . Kind regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091341#4091341 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091341 From do-not-reply at jboss.com Thu Oct 4 01:50:45 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 4 Oct 2007 01:50:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Transaction Not Allowed Message-ID: <31956502.1191477045583.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, the links got messed up. Here they are again: Java EE Tutorial: http://java.sun.com/javaee/5/docs/tutorial/doc/ Java EE JavaDoc: http://java.sun.com/javaee/5/docs/api/javax/ejb/TransactionManagement.html //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091342#4091342 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091342 From do-not-reply at jboss.com Thu Oct 4 03:18:35 2007 From: do-not-reply at jboss.com (DeanoUK) Date: Thu, 4 Oct 2007 03:18:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS-2.0.1 ignoring @SecurityDomain Message-ID: <32942298.1191482315547.JavaMail.jboss@colo-br-02.atl.jboss.com> Is this not a known issue, or can anyone help? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091362#4091362 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091362 From do-not-reply at jboss.com Thu Oct 4 03:19:21 2007 From: do-not-reply at jboss.com (nickarls) Date: Thu, 4 Oct 2007 03:19:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WS config Message-ID: <29958686.1191482361508.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm trying to secure my existing web service, I added | @EndpointConfig(configName = "Standard WSSecurity Endpoint") | and it is picked up (garbling => error) and put an | | | META-INF/wsse.keystore | jbossws | META-INF/wsse.truststore | jbossws | | | | | | | | | | and it is picked up (garbling => error) since it is an EAR with the WS class in an JAR, I put all the ws-related files in the META-INF directory of the jar (following the wiki). But still my wsdl shows no sign of encryption tags. Suggestions? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091363#4091363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091363 From do-not-reply at jboss.com Thu Oct 4 04:26:14 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Thu, 4 Oct 2007 04:26:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ver1_1.Message1_1Impl cannot be cast to MessageImpl AND Message-ID: <29728664.1191486374630.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you follow the instructions here: http://jbws.dyndns.org/mediawiki/index.php?title=Installation for using JBossWS with JDK 6? It should work. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091392#4091392 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091392 From do-not-reply at jboss.com Thu Oct 4 04:34:24 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Thu, 4 Oct 2007 04:34:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebServiceContext injection. Was it fixed or not? Message-ID: <11465109.1191486864175.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you share your service code with us? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091396#4091396 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091396 From do-not-reply at jboss.com Thu Oct 4 05:05:10 2007 From: do-not-reply at jboss.com (subramaniam.venkat) Date: Thu, 4 Oct 2007 05:05:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Transaction Not Allowed Message-ID: <11032672.1191488710789.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello oskar, First thanks for replying. I am using Required transaction attribute when i am creating a transaction with Spring. This behaves the same way as the Required transaction attribute in CMT. And the transaction attribute in the EJB is also "Required". So in theory there must not be a new transaction which should be created by Spring and the same transaction which has been created by the EJB must be used. My application runs fine for a long time and then suddenly this error pops up and then all the following request fail with the same error. If Jboss is restart then it is working fine again. Please let me know your comments. Thanks & Regards, Subramaniam V View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091412#4091412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091412 From do-not-reply at jboss.com Thu Oct 4 05:06:26 2007 From: do-not-reply at jboss.com (DeanoUK) Date: Thu, 4 Oct 2007 05:06:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ver1_1.Message1_1Impl cannot be cast to MessageImpl AND Message-ID: <7214134.1191488786874.JavaMail.jboss@colo-br-02.atl.jboss.com> Yep all of those libs it specifies are in the endorsed directory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091413#4091413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091413 From do-not-reply at jboss.com Thu Oct 4 05:33:09 2007 From: do-not-reply at jboss.com (mrokka123) Date: Thu, 4 Oct 2007 05:33:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Type Substitution doesn't work with Schema2Java Client a Message-ID: <2024386.1191490389174.JavaMail.jboss@colo-br-02.atl.jboss.com> WOW! It really works. Thanks a lot Richard. It even works on JBossWs 1.2.1 [I think Which was default JBossWs for JBoss4.2.0]. Here?s the working version: POJO Class A.java package com.d2.client; public abstract class A implements java.io.Serializable{ private String name; public void setName(String name){ this.name=name; } public String getName(){ return name; } } B.java package com.d2.client; public class B extends A implements java.io.Serializable{ } package-info.java //this class does the magic @javax.xml.bind.annotation.XmlSchema(namespace = "http://client.d2.com/") package com.d2.client; ------------------------------------------------------------------------------------- WebService package com.d2.webservice; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.soap.SOAPBinding; import com.d2.client.*; @WebService(name = "MyWebServicePortType", serviceName = "MyWebService", portName = "MyWebServicePort",targetNamespace = "http://client.d2.com") @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) public class MyWebService{ @WebMethod public String getClassName(A obj){ System.out.println("class name:"+obj.getClass().getName()); System.out.println("Parent name:"+obj.getName()); return obj.getClass().getName(); } @WebMethod public void dummyMethod(B obj)//if we use @XmlSeeAlso then this method not needed { } } Regards, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091427#4091427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091427 From do-not-reply at jboss.com Thu Oct 4 06:26:21 2007 From: do-not-reply at jboss.com (mrokka123) Date: Thu, 4 Oct 2007 06:26:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 2.0.1 Inheritance problem Message-ID: <25594455.1191493581103.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have found the solution, Please follow the following links http://jira.jboss.org/jira/browse/JBWS-1795 Regards, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091439#4091439 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091439 From do-not-reply at jboss.com Thu Oct 4 07:16:55 2007 From: do-not-reply at jboss.com (DeanoUK) Date: Thu, 4 Oct 2007 07:16:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Completely stuck with RPC client- please help! Message-ID: <2039101.1191496615343.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok I've already posted something similar, but am now able to detail my steps quite clearly. I have JBoss 4.2.1GA running JBossWS 2.0.1 on JDK 6. The JARs below are then included in jboss-4.2.1.GA\lib\endorsed: jaxb-api.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar Here's my code: | ServiceFactory factory = ServiceFactory.newInstance(); | Service remote = factory.createService(url, qname); | | NewRegistrationsSession proxy = (NewRegistrationsSession) remote.getPort(NewRegistrationsSession.class); | | System.out.println("Receiving: " + proxy.uploadNewRegistrations("hello")); | At the last line I get: | Exception in thread "main" java.lang.ClassCastException: com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl | I'm running the example through and IDE (IntelliJ) which has the JWSDP-2.0 JARs in it's class path: jaxrpc-impl.jar FastInfoset.jar AND Saaj1.3: saaj-impl.jar The reason I include JWSDP files is because the execution states: | Exception in thread "main" javax.xml.rpc.ServiceException: Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found | Thus I need to include it. But I presume this isn't the corrct ServiceFactoryImpl and this causes the final problem... Is there a JBoss WS implementation, or am I barking up the wrong tree? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091456#4091456 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091456 From do-not-reply at jboss.com Thu Oct 4 08:08:22 2007 From: do-not-reply at jboss.com (viniciuscarvalho) Date: Thu, 4 Oct 2007 08:08:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <11939186.1191499702592.JavaMail.jboss@colo-br-02.atl.jboss.com> Well, that did not work as well. It also throws an exception when I try: | MessageFactory mf = MessageFactory.newInstance(); | returnMessage = mf.createMessage(); | SOAPFactory f = SOAPFactory.newInstance(); | SOAPBody body = returnMessage.getSOAPBody(); | body.addChildElement(f.createElement(createResponseContent())); | I'm really starting to think that might have a bug on the jbossws :( Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091481#4091481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091481 From do-not-reply at jboss.com Thu Oct 4 08:13:52 2007 From: do-not-reply at jboss.com (viniciuscarvalho) Date: Thu, 4 Oct 2007 08:13:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <10343529.1191500032876.JavaMail.jboss@colo-br-02.atl.jboss.com> Yeah, believe that there's a bug, the following work with no problem at all: | SOAPElement test = f.createElement("CommandResponse","sys","http://www.acme.com/sys/schemas"); | returnMessage.addChildElement(test); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091482#4091482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091482 From do-not-reply at jboss.com Thu Oct 4 08:53:33 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Thu, 4 Oct 2007 08:53:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <10832309.1191502413906.JavaMail.jboss@colo-br-02.atl.jboss.com> "viniciuscarvalho" wrote : It also throws an exception when I try: Could you post the stacktrace? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091491#4091491 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091491 From do-not-reply at jboss.com Thu Oct 4 09:46:17 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Thu, 4 Oct 2007 09:46:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain java type mappin Message-ID: <1374591.1191505577131.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have tried with jbossws 2.0.1 GA it is generating java interfaces when we give existing wsdl contract. But i have those interfaces generated by Weblogic so i have to use the classes generated by weblogic. This is my requirement. Any suggestions on the following error Cannot obtain java type mapping for I searched in google but i didnt get any information Please help me. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091519#4091519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091519 From do-not-reply at jboss.com Thu Oct 4 09:48:27 2007 From: do-not-reply at jboss.com (viniciuscarvalho) Date: Thu, 4 Oct 2007 09:48:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - " Message-ID: <14745062.1191505707725.JavaMail.jboss@colo-br-02.atl.jboss.com> Sure :) Here's the code: | public SOAPMessage invoke(SOAPMessage message) { | SOAPMessage returnMessage = null; | try { | MessageFactory mf = MessageFactory.newInstance(); | returnMessage = mf.createMessage(); | SOAPFactory f = SOAPFactory.newInstance(); | SOAPElement test = f.createElement("processResponse","ns1", "http://www.acme.com/sys/schemas"); | test.addNamespaceDeclaration("ns2","http://www.acme.com/sys/definitions"); | test.appendChild(createResponseContent()); | SOAPBody body = returnMessage.getSOAPBody(); | | body.addChildElement(test); | } catch (SOAPException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } catch (Exception e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | | return returnMessage; | } | | private Element createResponseContent() throws Exception{ | DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); | dbf.setNamespaceAware(true); | DocumentBuilder db = dbf.newDocumentBuilder(); | Document doc = db.newDocument(); | Element ret = doc.createElement("return"); | Element id = doc.createElement("id"); | id.appendChild(doc.createTextNode("1")); | Element message = doc.createElement("message"); | message.appendChild(doc.createTextNode("comando recebido")); | ret.appendChild(id); | ret.appendChild(message); | return ret; | } | What I'd like to return is : Here's the stack trace: | 10:45:12,569 ERROR [STDERR] org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces. | 10:45:12,570 ERROR [STDERR] at org.apache.xerces.dom.ElementNSImpl.setName(Unknown Source) | 10:45:12,570 ERROR [STDERR] at org.apache.xerces.dom.ElementNSImpl.(Unknown Source) | 10:45:12,570 ERROR [STDERR] at org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown Source) | 10:45:12,570 ERROR [STDERR] at org.jboss.wsf.common.DOMUtils.createElement(DOMUtils.java:202) | 10:45:12,571 ERROR [STDERR] at org.jboss.ws.core.soap.SOAPElementImpl.(SOAPElementImpl.java:84) | 10:45:12,571 ERROR [STDERR] at org.jboss.ws.core.soap.SOAPFactoryImpl.createElement(SOAPFactoryImpl.java:95) | 10:45:12,571 ERROR [STDERR] at org.jboss.ws.core.soap.SOAPFactoryImpl.createElement(SOAPFactoryImpl.java:122) | 10:45:12,571 ERROR [STDERR] at org.jboss.ws.core.soap.SOAPFactoryImpl.createElement(SOAPFactoryImpl.java:101) | 10:45:12,571 ERROR [STDERR] at org.jboss.ws.core.soap.NodeImpl.convertDOMNode(NodeImpl.java:563) | 10:45:12,571 ERROR [STDERR] at org.jboss.ws.core.soap.NodeImpl.appendChild(NodeImpl.java:459) | 10:45:12,571 ERROR [STDERR] at com.acme.sys.services.provider.CommandProcessorMessage.invoke(CommandProcessorMessage.java:38) | 10:45:12,571 ERROR [STDERR] at com.acme.sys.services.provider.CommandProcessorMessage.invoke(CommandProcessorMessage.java:1) | 10:45:12,571 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 10:45:12,571 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 10:45:12,571 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 10:45:12,571 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 10:45:12,571 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | 10:45:12,571 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | 10:45:12,571 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | 10:45:12,571 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,571 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | 10:45:12,571 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,571 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | 10:45:12,571 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,571 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | 10:45:12,571 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) | 10:45:12,571 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,571 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | 10:45:12,572 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,572 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | 10:45:12,572 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,572 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | 10:45:12,572 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) | 10:45:12,572 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,572 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | 10:45:12,572 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,572 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | 10:45:12,572 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | 10:45:12,572 ERROR [STDERR] at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) | 10:45:12,572 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) | 10:45:12,572 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | 10:45:12,572 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | 10:45:12,572 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | 10:45:12,572 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | 10:45:12,572 ERROR [STDERR] at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | 10:45:12,572 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | 10:45:12,572 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | 10:45:12,572 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | 10:45:12,572 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | 10:45:12,572 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | 10:45:12,572 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | 10:45:12,573 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | 10:45:12,573 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | 10:45:12,573 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | 10:45:12,573 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | 10:45:12,573 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | 10:45:12,573 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | 10:45:12,573 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | 10:45:12,573 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | 10:45:12,573 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | 10:45:12,573 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | 10:45:12,574 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | 10:45:12,574 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | 10:45:12,574 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595) | | Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091521#4091521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091521 From do-not-reply at jboss.com Thu Oct 4 10:03:21 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Thu, 4 Oct 2007 10:03:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <33423003.1191506601967.JavaMail.jboss@colo-br-02.atl.jboss.com> Well, this is caused by "Xerces outstanding feature" where xerces makes it impossible to merge node trees created in different document builders :-( Your workaround to your problem is to use: org.jboss.wsf.common.DOMUtils.getDocumentBuilder() method instead of the following block of code: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); | dbf.setNamespaceAware(true); | DocumentBuilder db = dbf.newDocumentBuilder(); This is the only way for you to use the same document builder by which your SOAP message was created. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091533#4091533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091533 From do-not-reply at jboss.com Thu Oct 4 11:07:49 2007 From: do-not-reply at jboss.com (fredash) Date: Thu, 4 Oct 2007 11:07:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <29020454.1191510469298.JavaMail.jboss@colo-br-02.atl.jboss.com> I have exactly the same problem as "apovodyrev" (installing jbossws 2.0.1 on JbossAS 4.0.5.) : after resolving the jboss-service-no-ejb3.xml not found issue, there is another issue with a jboss-beans-no-ejb3.xml not found ... Where can we found this file ? Thanks for any help, fred. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091572#4091572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091572 From do-not-reply at jboss.com Thu Oct 4 11:15:59 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Thu, 4 Oct 2007 11:15:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <5500108.1191510959926.JavaMail.jboss@colo-br-02.atl.jboss.com> Well, this issue is fixed in JBossWS 2.0.2 and release should be available at the end of this month. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091577#4091577 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091577 From do-not-reply at jboss.com Thu Oct 4 11:45:31 2007 From: do-not-reply at jboss.com (ansantharam) Date: Thu, 4 Oct 2007 11:45:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS Sample Test cases are failing Message-ID: <12278070.1191512731719.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm running the samples provided by JbossWS under 4.0.5 version. All the tests are failing though there is some activity on the server. ant -Dtest=org.jboss.test.ws.jaxrpc.samples.jsr109pojo.RpcJSETestCase one-test one-test: [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109pojo.RpcJSETestCase [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 2.156 sec [junit] Test org.jboss.test.ws.jaxrpc.samples.jsr109pojo.RpcJSETestCase FAILED On JBOSS server the following is displayed: 11:39:27,921 INFO [TomcatDeployer] deploy, ctxPath=/jaxrpc-samples-jsr109pojo-rpc, warUrl=.../tmp/deploy/tmp60494jaxrpc-samples-j sr109pojo-rpc-exp.war/ 11:39:28,078 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jbossws-1.2.1.GA/jbossws-samples-1.2.0.GA/output/wsdl-publish/j sr109pojo/TestService.wsdl 11:39:28,187 INFO [ServiceEndpointManager] WebService started: http://mlb-ed-2f-sol-l:8080/jaxrpc-samples-jsr109pojo-rpc 11:39:28,265 INFO [ClientDeployer] Client ENC bound under: jbossws-client 11:39:28,390 INFO [ClientDeployer] Removing client ENC from: jbossws-client 11:39:28,406 INFO [ServiceEndpointManager] WebService stopped: http://mlb-ed-2f-sol-l:8080/jaxrpc-samples-jsr109pojo-rpc 11:39:28,406 INFO [TomcatDeployer] undeploy, ctxPath=/jaxrpc-samples-jsr109pojo-rpc, warUrl=.../tmp/deploy/tmp60494jaxrpc-samples -jsr109pojo-rpc-exp.war/ Any help is appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091601#4091601 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091601 From do-not-reply at jboss.com Thu Oct 4 12:11:55 2007 From: do-not-reply at jboss.com (ansantharam) Date: Thu, 4 Oct 2007 12:11:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS Sample Test cases are failing Message-ID: <18472317.1191514315166.JavaMail.jboss@colo-br-02.atl.jboss.com> Below is the log created for the testcase. Testsuite: org.jboss.test.ws.jaxrpc.samples.rpcstyle.TrivialServiceRpcTestCase Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.75 sec Testcase: testTrivialAccess took 0.047 sec Caused an ERROR Could not dereference object javax.naming.NamingException: Could not dereference object [Root exception is java.lang.ClassNotFoundException: org.jboss.ws.metadata.j2ee.serviceref.UnifiedServiceRefMetaData] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705) at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135) at $Proxy1.lookup(Unknown Source) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.jboss.test.ws.jaxrpc.samples.rpcstyle.TrivialServiceRpcTestCase.setUp(TrivialServiceRpcTestCase.java:62) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) at junit.extensions.TestSetup$1.protect(TestSetup.java:19) at junit.extensions.TestSetup.run(TestSetup.java:23) Caused by: java.lang.ClassNotFoundException: org.jboss.ws.metadata.j2ee.serviceref.UnifiedServiceRefMetaData at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348) at org.jboss.ws.core.jaxrpc.client.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:111) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125) at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091619#4091619 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091619 From do-not-reply at jboss.com Thu Oct 4 12:40:34 2007 From: do-not-reply at jboss.com (viniciuscarvalho) Date: Thu, 4 Oct 2007 12:40:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <22237244.1191516034090.JavaMail.jboss@colo-br-02.atl.jboss.com> Richard, that did not work either :( The same error was thrown. I tried: | DocumentBuilder db = DOMUtils.getDocumentBuilder(); | Document doc = db.newDocument(); | and also | Document doc = DOMUtils.getOwnerDocument(); | Both throws the same error. Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091644#4091644 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091644 From do-not-reply at jboss.com Thu Oct 4 12:59:25 2007 From: do-not-reply at jboss.com (ggary) Date: Thu, 4 Oct 2007 12:59:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebServiceContext injection. Was it fixed or not? Message-ID: <4295302.1191517165744.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard_opalka" wrote : Could you share your service code with us? | | Richard Sure, here it is: package com.rsys.rsystools.ws; | | import javax.annotation.Resource; | 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 javax.servlet.ServletContext; | import javax.xml.ws.ResponseWrapper; | import javax.xml.ws.WebServiceContext; | import javax.xml.ws.handler.MessageContext; | import org.springframework.web.context.support.WebApplicationContextUtils; | | | @WebService(targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0") | @SOAPBinding(style = Style.DOCUMENT) | public class SpamComplaintWS implements SpamComplaint | { | @Resource | private WebServiceContext context; | | ServletContext servletCtx; | /** Creates a new instance of SpamComplaintWS */ | public SpamComplaintWS() | { | } | | /** | * Web service operation | */ | @WebMethod(operationName="processSpamComplaints") | @WebResult(name="SpamResult", targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0") | @ResponseWrapper(className="com.rsys.rsystools.ws.SpamResult", | targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0") | public SpamResult processSpamComplaints( | @WebParam(name = "email") String email, | @WebParam(name = "fromAddress") String fromAddress, | @WebParam(name = "mailDate") String mailDate, | @WebParam(name = "complaintDate") String complaintDate, | @WebParam(name = "mailbox") String mailbox, | @WebParam(name = "complainer") String complainer, | @WebParam(name = "xRext") String xRext, | @WebParam(name = "accountName") String accountName) | { | ServletContext servletCtx = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT); | Object appContext = WebApplicationContextUtils.getRequiredWebApplicationContext(servletCtx); | responsys.prodtools.SpammerTables st = new responsys.prodtools.SpammerTables(); | java.lang.String[] res = st.processSpamRecord(email, fromAddress, mailDate, complaintDate, mailbox, complainer, xRext, accountName); | return (new SpamResult(res[0],res[1],res[2],res[3],res[4],res[5],res[6],res[7],res[8],res[9],res[10],res[11],res[12],res[13])); | } | | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091652#4091652 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091652 From do-not-reply at jboss.com Thu Oct 4 16:06:14 2007 From: do-not-reply at jboss.com (Vincent321) Date: Thu, 4 Oct 2007 16:06:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - how to access anyType content Message-ID: <24302454.1191528374246.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, using wsconsume, I generated a webservice with all corresponding classes. In the WSDL there is one field xs:anyType that should be mapped to Object. In the webservice, if I do a System.out.println of the corresponding object, I go null while there is data in the soaprequest. How can I access the data coming in the xs:anyType ? I would like to get the xml representation of this block of data ? Many thanks in advance Vincent View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091720#4091720 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091720 From do-not-reply at jboss.com Fri Oct 5 03:23:33 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Fri, 5 Oct 2007 03:23:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebServiceContext injection. Was it fixed or not? Message-ID: <8895718.1191569013534.JavaMail.jboss@colo-br-02.atl.jboss.com> Your service looks OK, could you create minimalistic version of your problem and report a JIRA issue with the sources reproducing the problem? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091844#4091844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091844 From do-not-reply at jboss.com Fri Oct 5 05:20:54 2007 From: do-not-reply at jboss.com (mrokka123) Date: Fri, 5 Oct 2007 05:20:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Completely stuck with RPC client- please help! Message-ID: <13235877.1191576054648.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I also have faced the same problem but now i can able to run rpc client using wsrunclient which was found under jboss_installation_dir/bin. EG, wsrunclient myclientprogram Regards, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091889#4091889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091889 From do-not-reply at jboss.com Fri Oct 5 05:24:40 2007 From: do-not-reply at jboss.com (Fantagir) Date: Fri, 5 Oct 2007 05:24:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - error runtime modeler error: Wrapper class ... is not found Message-ID: <5935446.1191576280112.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I'm developing a Client of a WebService and when a I run it I've the next error: com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class service.jaxws.DarCuenta is not found. Have you run APT to generate them? My environment is: Eclipse and JbossIDE for Eclipse Jboss 4.0.5 GA JDK 1.5 JWSDP 2.0 My WSDL: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My code of client: Main: package main; | | import java.net.URL; | | import javax.xml.namespace.QName; | import javax.xml.ws.Service; | | import service.DatePalabra; | import service.IContar; | | import com.lasalle.util.resources.CollectionProperties; | | | public class MainDevPalabra { | | public static void main( String[] args ) throws Exception { | if( args.length < 1 ) | { | System.out.println( "Usage: Palabra name" ); | System.exit( 0 ); | } | | String argument = args[ 0 ]; | | DatePalabra dp = new DatePalabra(); | | //CollectionProperties propietats = new CollectionProperties(); | String urlstr = CollectionProperties.getPropiedad("serviceD.url"); | String nameServiceStr = CollectionProperties.getPropiedad("serviceD.name"); | String namespaceServiceStr = CollectionProperties.getPropiedad("serviceD.namespace"); | | System.out.println( "Contacting webservice at " + urlstr ); | | URL url = new URL(urlstr); | | //se indican el namespace en el que se encuentra el servicio y su nombre | //(esto se puede ver en el WSDL) | QName qname = new QName(namespaceServiceStr, | nameServiceStr); | | | Service service = Service.create(url, qname); | | System.out.println( "After create service" ); | | IContar age = ( IContar) service.getPort( IContar.class ); | | System.out.println( "After getPort" ); | | System.out.println( "age.age(" + argument + ")" ); | dp = (DatePalabra) age.darCuenta(argument); | System.out.println( "output longitud:" + dp.getLongitud() ); | System.out.println( "output palabra:" + dp.getPalabra() ); | } | | | } | Interface of the service: package service; | | import java.rmi.RemoteException; | | import javax.jws.WebMethod; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.WebParam; | | @WebService( | name="IContar", // wsdl:portType | targetNamespace="urn:service" //wsdl:targetNamespace | ) | | public interface IContar extends java.rmi.Remote | { | | //@WebMethod(operationName="darCuenta") | @WebMethod | //@WebResult(name="IContar_darCuentaResponse", partName="result") | //public DatePalabra darCuenta(@WebParam(name = "String_1") String name) throws RemoteException; | public DatePalabra darCuenta(String name) throws RemoteException; | } | Can you help me?? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091893#4091893 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091893 From do-not-reply at jboss.com Fri Oct 5 05:49:32 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 5 Oct 2007 05:49:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain java type mappin Message-ID: <33367136.1191577772514.JavaMail.jboss@colo-br-02.atl.jboss.com> "tpawankumar" wrote : Cannot obtain java type mapping for This means that the wsdl contract, the xml artifacts and the java interfaces/classes somehow don't match. Generally speaking, you should double check namespaces, types, etc. "tpawankumar" wrote : I have tried with jbossws 2.0.1 GA it is generating java interfaces when we give existing wsdl contract. | | But i have those interfaces generated by Weblogic so i have to use the classes generated by weblogic. This is my requirement. | I would use the right classes wsconsume created from your given wsdl contract (that is what you can't change, isn't it?). It's not so trivial mapping your interfaces and your wsdl contract manually fixing the xml descriptors created with wstools from jbossws 1.0.4. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091913#4091913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091913 From do-not-reply at jboss.com Fri Oct 5 06:07:02 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 5 Oct 2007 06:07:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: error RuntimeModelerException: runtime modeler error: Wr Message-ID: <15385168.1191578822298.JavaMail.jboss@colo-br-02.atl.jboss.com> "Fantagir" wrote : Hi! | | I'll try to do what explain in this page | http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start | | but don't work. The error is still the same. | | What can I do? Do you really used the jbossws wsconsume to generate the *client*? I guess you're using jwsdp and that's the reason why you're asked for the APT run... You're missing the some client artifacts (in other words, your custom data types). This http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start#Consuming_web_services is the solution of your problems. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091916#4091916 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091916 From do-not-reply at jboss.com Fri Oct 5 06:09:59 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 5 Oct 2007 06:09:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: error runtime modeler error: Wrapper class ... is not fo Message-ID: <15720745.1191578999092.JavaMail.jboss@colo-br-02.atl.jboss.com> http://www.jboss.org/index.html?module=bb&op=viewtopic&t=120258 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091917#4091917 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091917 From do-not-reply at jboss.com Fri Oct 5 07:16:52 2007 From: do-not-reply at jboss.com (Fantagir) Date: Fri, 5 Oct 2007 07:16:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: error RuntimeModelerException: runtime modeler error: Wr Message-ID: <5698168.1191583012808.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I use the options of eclipse to generated client artifacts and this don't generate all the classes that say in the page. I'll use wsconsume in the command line, I put the classes in the correct place of my project in eclipse and.... it WORKS!! THANKS THANKS THANKS But, if any of us know how can I do this in eclipse, tell me please! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091935#4091935 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091935 From do-not-reply at jboss.com Fri Oct 5 07:21:09 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 5 Oct 2007 07:21:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unmarshalling Exception with Web Service Array Input Message-ID: <7205618.1191583269955.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you try with JAX-WS, using jbossws wsprovide instead of wscompile? Can you post your SEI / impl here? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091938#4091938 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091938 From do-not-reply at jboss.com Fri Oct 5 08:48:27 2007 From: do-not-reply at jboss.com (nickarls) Date: Fri, 5 Oct 2007 08:48:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS config Message-ID: <21011418.1191588507631.JavaMail.jboss@colo-br-02.atl.jboss.com> Any help would be...helpful. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091973#4091973 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091973 From do-not-reply at jboss.com Fri Oct 5 10:02:30 2007 From: do-not-reply at jboss.com (mleite) Date: Fri, 5 Oct 2007 10:02:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - XMLSchema, WSDL and wsconsume tool Message-ID: <19835647.1191592950190.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, i have created a WSDL file that is based on a XMLSchema file. In that XMLSchema file i have defined some rules related to simpleTypes, like that: | | | | | | With this simpleType i have created a complexType, like that: | | | | | | | Thus, i use wsconsume tool to generate the classes based on that WSDL. It works fine, i package and deploy my app and it is successfully published on Jboss. After deploy and publish my app, i need to use the wsconsume tool again to create the WS client. But, when i access the URL http://myhost:myport/appName/something?wsdl to see the WSDL on-line generated, the simpleType defined previously with restrictions doesn't appear correctly, i mean it doesn't appear with the restrictions defined on XMLSchema. In that WSDL i can see the complexType customer type defined, but the element "gender" is only a xs:string type without restrictions. Is it like that or am i forgetting something? ________________________ Best regards, Marcelo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092009#4092009 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092009 From do-not-reply at jboss.com Fri Oct 5 10:47:09 2007 From: do-not-reply at jboss.com (sumitsu) Date: Fri, 5 Oct 2007 10:47:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unmarshalling Exception with Web Service Array Input Message-ID: <27068151.1191595629522.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the response. My endpoint interface looks like this: | package com.business.WebService.messageProcessing; | | public interface MessageEndPoint extends Remote | { | public ServiceStatus processMessage(ServiceRequest sReq) throws RemoteException; | } | and the implementation class (the part relevant to the web service) looks like: | package com.business.WebService.messageProcessing; | | public class MessageBean implements SessionBean { | | private static final String RESPONSECODE_OK = "OK"; | | private SessionContext sessionCtxt; | | private ServiceStatus buildResponseOK(String str1, String str2, String str3) { | ServiceStatus ss = new ServiceStatus(); | | ss.setCode(RESPONSECODE_OK); | ss.setSubject(str3); | | return ss; | } | | public ServiceStatus processMessage(ServiceRequest sReq) throws RemoteException { | CustomField[] custFields; | | custFields = sReq.getCustomFields(); | | ... business logic ... | | return buildResponseOK("abc", "def", "ghi"); | } | | public void ejbCreate() throws EJBException, RemoteException { } | public void ejbRemove() throws EJBException, RemoteException { } | public void ejbActivate() throws EJBException, RemoteException { } | public void ejbPassivate() throws EJBException, RemoteException { } | public void setSessionContext(SessionContext sessionCtxt) throws EJBException, RemoteException { | this.sessionCtxt = sessionCtxt; | } | | public MessageBean() { | } | } | I'm using a 2.0-spec EJB as my endpoint, and when I try to run wsprovide, it complains about an annotation @WebService not being present: | org.jboss.ws.WSException: Cannot obtain @WebService annotation from: com.liaison.InboundWebService.messageProcessing.MessageEndPoint | Does JAX-WS require an EJB 3.0 endpoind, or iss there a way to make it work with 2.0 EJBs? Thanks again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092043#4092043 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092043 From do-not-reply at jboss.com Fri Oct 5 11:30:13 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 5 Oct 2007 11:30:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unmarshalling Exception with Web Service Array Input Message-ID: <9732411.1191598213301.JavaMail.jboss@colo-br-02.atl.jboss.com> JAX-WS requires a POJO or an EJB3 SLSB to be annotated with @WebService. If you need to stick with EJB 2.1 you're only choice is JAX-RPC http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#EJB3_Stateless_Session_Bean_.28SLSB.29 Anyway you could have an EJB3 session bean ws layer exposing your ejb2 methods... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092072#4092072 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092072 From do-not-reply at jboss.com Fri Oct 5 12:40:23 2007 From: do-not-reply at jboss.com (sumitsu) Date: Fri, 5 Oct 2007 12:40:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unmarshalling Exception with Web Service Array Input Message-ID: <24396909.1191602423487.JavaMail.jboss@colo-br-02.atl.jboss.com> I'd prefer to retain the 2.1 SLSB if I can... is there a reason that Array-type inputs should not work under JAX-RPC with the server/JBossWS config I described? Please let me know if you see anything obviously wrong with my WSDL/code/artifacts... I could not find many other references to this Exception in the forum. If it helps, here is an extract from my mapping.xml file, also (currently) generated by wscompile: | | | | com.business.WebService.messageProcessing | InboundWebService | | | com.business.WebService.messageProcessing | InboundWebService | | | com.business.WebService.dto.ServiceStatus | typeNS:ServiceStatus | complexType | | code | code | | | subject | subject | | | | com.business.WebService.dto.CustomField | typeNS:CustomField | complexType | | name | name | | | value | value | | | | com.business.WebService.dto.ServiceRequest | typeNS:ServiceRequest | complexType | | customFields | customFields | | | | com.business.WebService.messageProcessing.LiaisonB2BWebServiceInterface | serviceNS:LiaisonB2BWebServiceInterface | | MessageEndPointPort | MessageEndPointPort | | | | com.business.WebService.messageProcessing.MessageEndPoint | portTypeNS:MessageEndPoint | bindingNS:MessageEndPointBinding | | processMessage | processMessage | | 0 | com.business.WebService.dto.ServiceRequest | | wsdlMsgNS:MessageEndPoint_processMessage | ServiceRequest | IN | | | | com.business.WebService.dto.ServiceStatus | wsdlMsgNS:MessageEndPoint_processMessageResponse | result | | | | | Thanks again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092096#4092096 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092096 From do-not-reply at jboss.com Fri Oct 5 13:12:25 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 5 Oct 2007 13:12:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unmarshalling Exception with Web Service Array Input Message-ID: <3700565.1191604345348.JavaMail.jboss@colo-br-02.atl.jboss.com> OK, you might evaluate using a little workaround, i.e. having a jaxws ejb3 endpoint in front of your ejb2 and delegating to it. Btw I don't see anything obviously wrong with your wsdl/mapping/file; you might try using jbossws wstool to generate jax-rpc artifacts and compare them with the ones you get from wscompile. In case you still have problems and upgrading to jaxws (even using the suggested workaround) is not an option, you could create a jira issue attaching a small application affected by this problem. Anyway please consider that actually jbossws team main focus is on the jax-ws issues. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092103#4092103 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092103 From do-not-reply at jboss.com Fri Oct 5 19:52:13 2007 From: do-not-reply at jboss.com (ggary) Date: Fri, 5 Oct 2007 19:52:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebServiceContext injection. Was it fixed or not? Message-ID: <15112341.1191628333034.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard_opalka" wrote : Your service looks OK, | | could you create minimalistic version of your problem and report a JIRA issue with the sources reproducing the problem? | | Richard It is already quite minimalistic. I am sorry, I am in the time crunch at the moment. I have to find a solution for my problems before the end of the week. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092225#4092225 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092225 From do-not-reply at jboss.com Sun Oct 7 15:48:10 2007 From: do-not-reply at jboss.com (panagiotis.kammas) Date: Sun, 7 Oct 2007 15:48:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Upgrade to JBossWS 2 - Failed to find META-INF/jboss-service Message-ID: <14828662.1191786490743.JavaMail.jboss@colo-br-02.atl.jboss.com> Pls help... I have downloaded JBoss 4.2 GA which starts ok. Then i tried to upgrade the iJBossWS to 2.0GA, which seemed ok <<<---Log upgrading JBossWS------ C:\genesis\dev\jbossws-native-2.0.0.GA>ant deploy-jboss50 Buildfile: build.xml prepare: undeploy-jboss50: [delete] Deleting 8 files from C:\genesis\dev\jboss-4.2.0.GA\bin [delete] Deleting 9 files from C:\genesis\dev\jboss-4.2.0.GA\client [delete] Deleting 3 files from C:\genesis\dev\jboss-4.2.0.GA\server\default\l ib [delete] Deleting directory C:\genesis\dev\jboss-4.2.0.GA\server\default\depl oy\jbossws.sar deploy-jboss50-endorsed: deploy-jboss50: [unzip] Expanding: C:\genesis\dev\jbossws-native-2.0.0.GA\lib\jbossws-core-s cripts.zip into C:\genesis\dev\jboss-4.2.0.GA\bin [copy] Copying 14 files to C:\genesis\dev\jboss-4.2.0.GA\client [copy] Copying 2 files to C:\genesis\dev\jboss-4.2.0.GA\lib [copy] Copying 4 files to C:\genesis\dev\jboss-4.2.0.GA\server\default\lib [mkdir] Created dir: C:\genesis\dev\jboss-4.2.0.GA\server\default\deployers\ jbossws.deployer [unzip] Expanding: C:\genesis\dev\jbossws-native-2.0.0.GA\lib\jbossws-native 50-deployer.zip into C:\genesis\dev\jboss-4.2.0.GA\server\default\deployers\jbos sws.deployer [mkdir] Created dir: C:\genesis\dev\jboss-4.2.0.GA\server\default\deploy\jbo ssws.sar [unjar] Expanding: C:\genesis\dev\jbossws-native-2.0.0.GA\lib\jbossws-native 50.sar into C:\genesis\dev\jboss-4.2.0.GA\server\default\deploy\jbossws.sar [mkdir] Created dir: C:\genesis\dev\jboss-4.2.0.GA\server\default\deploy\jud di-service.sar [unzip] Expanding: C:\genesis\dev\jbossws-native-2.0.0.GA\lib\juddi-service. sar into C:\genesis\dev\jboss-4.2.0.GA\server\default\deploy\juddi-service.sar [unzip] Expanding: C:\genesis\dev\jbossws-native-2.0.0.GA\lib\jbossws-spi-sc ripts.zip into C:\genesis\dev\jboss-4.2.0.GA\bin [copy] Copying 1 file to C:\genesis\dev\jboss-4.2.0.GA\client [copy] Copying 1 file to C:\genesis\dev\jboss-4.2.0.GA\server\default\lib BUILD SUCCESSFUL Total time: 2 seconds ---Log upgrading JBossWS------>>> The above has been tried with jdk 1.6.0 and jdk 1.5.0 with the same results Then when i try to start JBoss (again with both JDKs) i get the following exception on startup (Failed to find META-INF/jboss-service.xml for archive jbossws.sar). Can you please help? There is no such file in this path. How can i overcome this problem? <<<----Exception during startup--- =============================================================================== JBoss Bootstrap Environment JBOSS_HOME: C:\genesis\dev\jboss-4.2.0.GA JAVA: C:\genesis\dev\jdk1.5.0-b64\bin\java JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 CLASSPATH: C:\genesis\dev\jdk1.5.0-b64\lib\tools.jar;C:\genesis\dev\jboss-4.2. 0.GA\bin\run.jar =============================================================================== 22:29:42,781 INFO [Server] Starting JBoss (MX MicroKernel)... 22:29:42,781 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag= JBoss_4_2_0_GA date=200705111440) 22:29:42,781 INFO [Server] Home Dir: C:\genesis\dev\jboss-4.2.0.GA 22:29:42,781 INFO [Server] Home URL: file:/C:/genesis/dev/jboss-4.2.0.GA/ 22:29:42,781 INFO [Server] Patch URL: null 22:29:42,781 INFO [Server] Server Name: default 22:29:42,781 INFO [Server] Server Home Dir: C:\genesis\dev\jboss-4.2.0.GA\serve r\default 22:29:42,781 INFO [Server] Server Home URL: file:/C:/genesis/dev/jboss-4.2.0.GA /server/default/ 22:29:42,781 INFO [Server] Server Log Dir: C:\genesis\dev\jboss-4.2.0.GA\server \default\log 22:29:42,781 INFO [Server] Server Temp Dir: C:\genesis\dev\jboss-4.2.0.GA\serve r\default\tmp 22:29:42,781 INFO [Server] Root Deployment Filename: jboss-service.xml 22:29:43,171 INFO [ServerInfo] Java version: 1.5.0,Sun Microsystems Inc. 22:29:43,171 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0-b64,Su n Microsystems Inc. 22:29:43,171 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 22:29:44,171 INFO [Server] Core system initialized 22:29:48,484 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083 / 22:29:48,484 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour ce:jboss-log4j.xml 22:29:49,640 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc. 22:29:49,640 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer 22:29:50,015 INFO [TransactionManagerService] Starting recovery manager 22:29:50,359 INFO [TransactionManagerService] Recovery manager started 22:29:50,359 INFO [TransactionManagerService] Binding TransactionManager JNDI R eference 22:29:57,593 INFO [EJB3Deployer] Starting java:comp multiplexer 22:29:59,031 ERROR [MainDeployer] Could not initialise deployment: file:/C:/gene sis/dev/jboss-4.2.0.GA/server/default/deploy/jbossws.sar/ org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service. xml for archive jbossws.sar at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616) at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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(URLDeploymen tScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:634) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A bstractDeploymentScanner.java:336) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS upport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB eanSupport.java:245) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.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(ServiceControl ler.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(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.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(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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) 22:30:03,031 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java .library.path: C:\genesis\dev\jdk1.5.0-b64\bin;.;D:\WINDOWS\System32;D:\WINDOWS; %ANT_HOME%\bin;C:\genesis\dev\jdk1.6.0\bin;D:\WINDOWS\system32;D:\WINDOWS;D:\WIN DOWS\System32\Wbem;D:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\Progra m Files\QuickTime\QTSystem\;C:\genesis\dev\jdk1.5.0-b64\bin;C:\dev\appfuse\Tools \apache-ant-1.6.5\bin; 22:30:04,671 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0 .1-8080 22:30:04,671 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-80 09 22:30:04,671 INFO [Catalina] Initialization processed in 2133 ms 22:30:04,671 INFO [StandardService] Starting service jboss.web 22:30:04,671 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.GA 22:30:04,828 INFO [Catalina] Server startup in 154 ms 22:30:04,968 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-w eb.deployer/ROOT.war/ 22:30:06,765 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/ http-invoker.sar/invoker.war/ 22:30:07,343 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../ deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ 22:30:07,562 INFO [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=.../deploy/ju ddi-service.sar/juddi.war/ 22:30:08,000 INFO [RegistryServlet] Loading jUDDI configuration. 22:30:08,000 INFO [RegistryServlet] Resources loaded from: /WEB-INF/juddi.prope rties 22:30:08,000 INFO [RegistryServlet] Initializing jUDDI components. 22:30:09,734 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep loy/management/console-mgr.sar/web-console.war/ 22:30:10,937 INFO [MailService] Mail Service bound to java:/Mail 22:30:11,437 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jboss-ha-local-jdbc.rar 22:30:11,484 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jboss-ha-xa-jdbc.rar 22:30:11,656 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jboss-local-jdbc.rar 22:30:12,015 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jboss-xa-jdbc.rar 22:30:12,125 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/jms/jms-ra.rar 22:30:12,187 INFO [RARDeployment] Required license terms exist, view META-INF/r a.xml in .../deploy/quartz-ra.rar 22:30:12,218 INFO [QuartzResourceAdapter] start quartz!!! 22:30:12,296 INFO [SimpleThreadPool] Job execution threads will use class loade r of thread: main 22:30:12,328 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 22:30:12,328 INFO [RAMJobStore] RAMJobStore initialized. 22:30:12,328 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule r' initialized from default resource file in Quartz package: 'quartz.properties' 22:30:12,328 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 22:30:12,328 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS TERED started. 22:30:13,140 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 22:30:13,453 INFO [A] Bound to JNDI name: queue/A 22:30:13,453 INFO [B] Bound to JNDI name: queue/B 22:30:13,500 INFO [C] Bound to JNDI name: queue/C 22:30:13,515 INFO [D] Bound to JNDI name: queue/D 22:30:13,515 INFO [ex] Bound to JNDI name: queue/ex 22:30:13,531 INFO [testTopic] Bound to JNDI name: topic/testTopic 22:30:13,531 INFO [securedTopic] Bound to JNDI name: topic/securedTopic 22:30:13,546 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic 22:30:13,546 INFO [testQueue] Bound to JNDI name: queue/testQueue 22:30:13,593 INFO [UILServerILService] JBossMQ UIL service available at : /127. 0.0.1:8093 22:30:13,640 INFO [DLQ] Bound to JNDI name: queue/DLQ 22:30:14,375 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 22:30:14,484 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep loy/jmx-console.war/ 22:30:14,968 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo at 658782f0 { url=file:/C:/genesis/dev/jboss-4. 2.0.GA/server/default/deploy/jbossws.sar/ } deployer: org.jboss.deployment.SARDeployer at 164dbd5 status: null state: FAILED watch: file:/C:/genesis/dev/jboss-4.2.0.GA/server/default/deploy/jbossws.sar/M ETA-INF/jboss-service.xml altDD: null lastDeployed: 1191785399031 lastModified: 1191785272140 mbeans: 22:30:15,281 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8 080 22:30:15,312 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 22:30:15,343 INFO [Server] JBoss (MX MicroKernel) [4.2.0.GA (build: SVNTag=JBos s_4_2_0_GA date=200705111440)] Started in 32s:562ms ----Exception during startup--->>> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092349#4092349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092349 From do-not-reply at jboss.com Sun Oct 7 17:20:44 2007 From: do-not-reply at jboss.com (PeterJ) Date: Sun, 7 Oct 2007 17:20:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Upgrade to JBossWS 2 - Failed to find META-INF/jboss-ser Message-ID: <19973479.1191792044676.JavaMail.jboss@colo-br-02.atl.jboss.com> You installed JBossWS incorrectly. You should have run: ant deploy-jboss42 The option you used was for installing JBossWS into JBoss AS 5.0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092358#4092358 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092358 From do-not-reply at jboss.com Mon Oct 8 03:14:44 2007 From: do-not-reply at jboss.com (jtestori) Date: Mon, 8 Oct 2007 03:14:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - soap message not correct? Message-ID: <14501629.1191827684445.JavaMail.jboss@colo-br-02.atl.jboss.com> i have an existing oracle-bpel-process that i want to call with JBossWS. so i used wsconsume to create java classes for the WSDL. but when i use the classes to call the webservice, the generated soap-message seems to be incorrect: | | | | 1684 | approve | | | | the namespace for activity and action are missing. in my opinion it should look like this: | | | | 1684 | approve | | | | here's the wsdl of my bpel-process: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and the xsd for the input: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when i use xfire/aegis to create the client classes, everything works as expected. but i would like to use JBossWS because i use JBoss AS anyway. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092412#4092412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092412 From do-not-reply at jboss.com Mon Oct 8 03:16:35 2007 From: do-not-reply at jboss.com (jtestori) Date: Mon, 8 Oct 2007 03:16:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: soap message not correct? Message-ID: <4901763.1191827795621.JavaMail.jboss@colo-br-02.atl.jboss.com> tested with JBoss 4.2.1.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092413#4092413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092413 From do-not-reply at jboss.com Mon Oct 8 07:38:15 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 8 Oct 2007 07:38:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: XMLSchema, WSDL and wsconsume tool Message-ID: <27249960.1191843495179.JavaMail.jboss@colo-br-02.atl.jboss.com> You have to bundle your wsdl to the packaged archive you're deploying. Round trip you described doesn't work. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092501#4092501 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092501 From do-not-reply at jboss.com Mon Oct 8 07:46:38 2007 From: do-not-reply at jboss.com (pkammas) Date: Mon, 8 Oct 2007 07:46:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Upgrade to JBossWS 2 - Failed to find META-INF/jboss-ser Message-ID: <16842439.1191843998756.JavaMail.jboss@colo-br-02.atl.jboss.com> I feel so dump... Thank you very much my friend. I interpreted 5 as jdk 5... I will test it at home and get back if i still have problems but it seems like a very good reason why this didn't work in all installations i tried... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092504#4092504 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092504 From do-not-reply at jboss.com Mon Oct 8 08:57:22 2007 From: do-not-reply at jboss.com (m0hmad) Date: Mon, 8 Oct 2007 08:57:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Client side memory leak? Message-ID: <18325087.1191848242142.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I've got EJBs that operates in proxy mode. They just pass thru requests parameters to JBossWS Client implementation and redirect responses back. All WS artifacts, service and endpoints have been generated with wsconsume tool. Soap endpoints are exposed like: public class SoapServicesFactory { | | static private Content contentSoap; // the SOAP client | | static public synchronized ContentSoap getContentSoap() { | if (null == contentSoap) | contentSoap = new Content(); | return contentSoap.getContentSoap(); | } | } The endpoint released right after first remote method invoked, no storing or caching etc being performed. The problem is, ALL artifacts retrieved from WSs as responses will never released by Garbage Collector and sooner or later there Java heap Space criticall error will be. Utilizing profiler I can see that artifacts retained by instances of several classes: - org.jboss.ws.core.soap.ObjectContent - org.jboss.ws.coreEndpointInvocation - java.lang.Object Changing endpoint exposing to: return (new MobileContent()).getMobileContentSoap(); removes the memory leakage but the service works too slowly cos instantiation of Soap Service is too expensive procedure. Can anybody help me with this issue? Looking forward for any response. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092530#4092530 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092530 From do-not-reply at jboss.com Mon Oct 8 09:00:13 2007 From: do-not-reply at jboss.com (mleite) Date: Mon, 8 Oct 2007 09:00:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: XMLSchema, WSDL and wsconsume tool Message-ID: <27753827.1191848413669.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Richard! Thanks for your help. I've decided to put my complex/simple types within the WSDL file only for experience. Then i've put my WSDL file in a folder called wsdl and put this folder in the WEB-INF dir, but it doesn't work. JBoss still create the WSDL dinamically without my complex/simple types restrictions. Any ideas? Thanks in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092535#4092535 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092535 From do-not-reply at jboss.com Mon Oct 8 10:35:29 2007 From: do-not-reply at jboss.com (kadlecp) Date: Mon, 8 Oct 2007 10:35:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Basic question: EJB based WS vs. Servlet based WS Message-ID: <3597870.1191854129817.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I know that I can implement web service as a stateless session bean or a servlet. I know how to implement them, but I don't know when to use servlet based and when to use EJB based web service implementation. What is the difference between those two approaches? Are there some differences for client? Are there differences between performace? Are there differencies between capabilities? Does exist clear choice of the implementation if I can use both? Thank you for response Pavel Kadlec View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092593#4092593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092593 From do-not-reply at jboss.com Mon Oct 8 11:00:59 2007 From: do-not-reply at jboss.com (ppollard) Date: Mon, 8 Oct 2007 11:00:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Web service parameters are always null Message-ID: <9333855.1191855659382.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a web service running on JBoss 4.2.1.GA. I have two different clients consuming the service. The 1st client is Remedy, a 3rd party service management application. Using tcpmon, I captured the SOAP document coming across. Here it is: POST /remedyAbstractService/remedyAbstractService_1_0 HTTP/1.0 | Content-Type: text/xml; charset=utf-8 | Accept: application/soap+xml, application/dime, multipart/related, text/* | User-Agent: Axis/1.1 | Host: phpoll0905:8666 | Cache-Control: no-cache | Pragma: no-cache | SOAPAction: "" | Content-Length: 1065 | | | | | MY_USER | MY_PASS | 60 | 00000002600 | ATS01994267 | Initech | ats11111 | 2/19/2007 4:58:28 PM | 2/19/2007 4:50:33 PM asdfasdfasdfasdf 2/17/2006 3:15:24 PM iswebsvc tech notes | | my closed code | guy who fixed it | my solution | | With this request, all of the parameters of the web service are null. The client calls the web service successfully, but the parms are always null, even though values are being specified for each field, as you can see in the document above. I've also created a standard .NET client to consume the same service. When running it, the values from the client do reach the web service. The request SOAP document looks like this: | POST /remedyAbstractService/remedyAbstractService_1_0 HTTP/1.1 | User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.2407) | Content-Type: text/xml; charset=utf-8 | SOAPAction: "" | Content-Length: 1014 | Expect: 100-continue | Connection: Keep-Alive | Host: phpoll0905:8666 | | MY_USERMY_PASS6000000002600ATS01994267Initechats111112/19/2007 4:58:28 PM 2/19/2007 4:50:33 PM asdfasdfasdfasdf 2/17/2006 3:15:24 PM iswebsvc tech notesmy closed codeguy who fixed itmy solution Why does the 2nd document work, yet the 1st one does not? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092615#4092615 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092615 From do-not-reply at jboss.com Mon Oct 8 11:35:06 2007 From: do-not-reply at jboss.com (nirre) Date: Mon, 8 Oct 2007 11:35:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java Message-ID: <29367843.1191857706616.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all. I have upgraded my application server to jboss 4.2 and with that the jbossws was uppgraded aswell. Now my ant scripts/config files wont work... The folllowing works in jboss 4.0.5GA: | | | | And when I run this i get this error when using wstools.bat: Exception in thread "main" java.io.IOException: Cannot parse config: Failed to parse source: cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element 'wsdl-java'. @ *unknown*[3,69] | at org.jboss.ws.tools.config.ToolsSchemaConfigReader.readConfig(ToolsSchemaConfigReader.java:141) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:67) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:119) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element | 'wsdl-java'. @ *unknown*[3,69] | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:178) | at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:169) | at org.jboss.ws.tools.config.ToolsSchemaConfigReader.readConfig(ToolsSchemaConfigReader.java:137) | ... 3 more | Caused by: org.xml.sax.SAXException: cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element 'wsdl-java'. @ *unknown*[3,69] | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:348) | at org.apache.xerces.util.ErrorHandlerWrapper.error(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.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) | at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source) | at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:174) | ... 5 more when searching the internet I?ve come across lots of people using the file attribute (+it tworks with jboss 4.0.5). Would be great if someone could shed some light on the matter for me. Any help is appreciated, links, other resources etc (Ihave looked at JbossWs page in manuals but no luck...). thanks in advance nirre View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092639#4092639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092639 From do-not-reply at jboss.com Mon Oct 8 12:59:11 2007 From: do-not-reply at jboss.com (sprabhakaran0990) Date: Mon, 8 Oct 2007 12:59:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to modify wstools in Jboss4.0.4GA to make it working Message-ID: <23558887.1191862751834.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am learning to use wstools, so it would be really great if anyone of you all could help me to figure out my problem. I ran wstools straight from within JbossHome/bin/ as follows E:\Jboss4.0.4GA\bin>wstools -classpath lpms.jar -config config.xml -dest lpms\ws by having the following contents in lpms.jar -> lpms/ws/HelloEndPoint.class in config.xml -> It ended up without generating any of the artifacts, but it generated 2 warnings saying log4j is not properly initialized. Thanking you all. With regards, Prabhakaran View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092671#4092671 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092671 From do-not-reply at jboss.com Mon Oct 8 13:00:39 2007 From: do-not-reply at jboss.com (sprabhakaran0990) Date: Mon, 8 Oct 2007 13:00:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to modify wstools in Jboss4.0.4GA to make it working Message-ID: <22892670.1191862839572.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am learning to use wstools, so it would be really great if anyone of you all could help me to figure out my problem. I ran wstools straight from within JbossHome/bin/ as follows E:\Jboss4.0.4GA\bin>wstools -classpath lpms.jar -config config.xml -dest lpms\ws by having the following contents in lpms.jar -> lpms/ws/HelloEndPoint.class in config.xml -> It ended up without generating any of the artifacts, but it generated 2 warnings saying log4j is not properly initialized. Thanking you all. With regards, Prabhakaran View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092672#4092672 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092672 From do-not-reply at jboss.com Mon Oct 8 13:02:01 2007 From: do-not-reply at jboss.com (sprabhakaran0990) Date: Mon, 8 Oct 2007 13:02:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to modify wstools in Jboss4.0.4GA to make it working Message-ID: <3706840.1191862921276.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, For some reason config.xml content has been omitted from the original message. Here it is With regards, Prabhakaran View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092673#4092673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092673 From do-not-reply at jboss.com Mon Oct 8 13:10:22 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 8 Oct 2007 13:10:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to modify wstools in Jboss4.0.4GA to make it working Message-ID: <28183291.1191863422952.JavaMail.jboss@colo-br-02.atl.jboss.com> To get your XML text to show up, select it and then click the "Code" button above the edit box. That will bracket the XML text with [ code ]...[ /code ] (without the spaces) and permit the XML to show up. Also, make sure to Preview your comments before Posting them. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092681#4092681 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092681 From do-not-reply at jboss.com Mon Oct 8 15:20:17 2007 From: do-not-reply at jboss.com (rocken7) Date: Mon, 8 Oct 2007 15:20:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <549448.1191871217679.JavaMail.jboss@colo-br-02.atl.jboss.com> Yep same result, with -Xmx1024m I get a java.lang.OutOfMemory error: Java heap space . Here is what I did (just to confirm): @Local | @Stateless | @WebServiceProvider( | serviceName = "PayPalAPIInterfaceService", | portName = "PayPalAPIAA", | targetNamespace = "urn:ebay:api:PayPalAPI", | wsdlLocation="META-INF/wsdl/PayPalSvc.wsdl") | @ServiceMode(value=Service.Mode.MESSAGE) | @WebContext(contextRoot = "/report") | public class PaypalSoapSimulator implements Provider | { | public SOAPMessage invoke(SOAPMessage requestSoapMessage) | { | ... | } | | } | Is this a possible memory leak in JbossWS ? Any other ideas? or is 1024m not enuf ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092723#4092723 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092723 From do-not-reply at jboss.com Mon Oct 8 16:03:29 2007 From: do-not-reply at jboss.com (sprabhakaran0990) Date: Mon, 8 Oct 2007 16:03:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to modify wstools in Jboss4.0.4GA to make it working Message-ID: <23488688.1191873810008.JavaMail.jboss@colo-br-02.atl.jboss.com> "sprabhakaran0990" wrote : Hi, | | For some reason config.xml content has been omitted from the original message. Here it is | | | | | | | | | | | | | | | With regards, | Prabhakaran | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092736#4092736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092736 From do-not-reply at jboss.com Mon Oct 8 16:54:54 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 8 Oct 2007 16:54:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WSSecurity failure on Linux Message-ID: <14718125.1191876894153.JavaMail.jboss@colo-br-02.atl.jboss.com> I have just spent the better part of a day trying to figure out why my Web service, which uses WSSecurity to either encrypt or sign my messages, works on Windows but not on Linux. What really bugged my is that no matter whether I built the Web service and client on Windows or on Linux, the resulting JARs would work on Windows but not Linux. In other words, I could build on Linux, and those JARs failed on Linux but worked on Windows. And vice-versa. The error? Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: org.jboss.ws.core.CommonSOAPFaultException: This service requires , which is missing. | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109) | at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) Then inspiration struck. While attempting to debug the situation, I noticed that log4j correctly picked up its configuration file on Windows, but not on Linux. Apparently on Windows, the client's JAR files are placed first in the classpath, but on Linux they are placed last. Which caused a stray log4j configuration file to be used on Linux. (And yes, I did remove the "-Dlog4j.configuration=wstools-log4j.xml" option from the command line in wsrunclient. Not sure who thought it was a good idea to prevent users from defining their own log4j configuration files.) Anyway, I changes the order in which the classpath was built, moving the following code in wsrunclient.sh: while [ $# -ge 1 ]; do | case $1 in | "-classpath") WSRUNCLIENT_CLASSPATH="$WSRUNCLIENT_CLASSPATH:$2"; shift;; | *) args="$args \"$1\"";; | esac | shift | done before these lines: # Setup the client classpath | WSRUNCLIENT_CLASSPATH="$WSRUNCLIENT_CLASSPATH:$JBOSS_HOME/client/log4j.jar" | WSRUNCLIENT_CLASSPATH="$WSRUNCLIENT_CLASSPATH:$JBOSS_HOME/client/jbossws-client.jar" The Web service now works correctly on Linux. Any possibility that the wsrunclient.sh could be permanently fixed? What I was running: JBoss 5.0.0 beta3 pulled on Sept 27, which appears to contain jbossws-native-2.0.1.SP1 I checked JBossWS 2.0.0.GA and 2.0.1.GA, and both of their wsrunclient.sh files have the same problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092751#4092751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092751 From do-not-reply at jboss.com Mon Oct 8 17:03:59 2007 From: do-not-reply at jboss.com (sumitsu) Date: Mon, 8 Oct 2007 17:03:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unmarshalling Exception with Web Service Array Input Message-ID: <30770327.1191877439260.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried using wstools to generate the WSDL, and although there were some differences, notably in that wstools split the schema in two and imported one schema into the other, the stack trace upon invocation did not change at all. I did notice that wstools, unlike wscompile, did not create LiteralSerializers and request/response struct classes, but it may just be that I don't have the settings on wstools to keep source artifacts enabled; I'm not sure. What I would really like to know is where it is coming up with the com.liaison.InboundWebService.messageProcessing.Array class reference for which the "No ClassLoaders found" exception is being thrown -- I don't recall ever seeing a wscompile/wstools artifact by that name, nor can I find any such references in any of the generated files. Do you know where that comes from, or why it expects that class to exist? I would think that if I could find that out, it might help find the root cause of the problem. Thanks again for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092758#4092758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092758 From do-not-reply at jboss.com Mon Oct 8 17:35:10 2007 From: do-not-reply at jboss.com (rocken7) Date: Mon, 8 Oct 2007 17:35:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <14359559.1191879310825.JavaMail.jboss@colo-br-02.atl.jboss.com> It fails exactly like the example before, with hundreds of the repeating XMLSchema import lines in the log, followed by a heap space error. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092766#4092766 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092766 From do-not-reply at jboss.com Mon Oct 8 18:31:09 2007 From: do-not-reply at jboss.com (rocken7) Date: Mon, 8 Oct 2007 18:31:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <27483029.1191882669479.JavaMail.jboss@colo-br-02.atl.jboss.com> If anyone cares to check out the wsdl, here it is: https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092781#4092781 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092781 From do-not-reply at jboss.com Mon Oct 8 18:48:32 2007 From: do-not-reply at jboss.com (jizzoe) Date: Mon, 8 Oct 2007 18:48:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Stop Empty SOAP elements Message-ID: <1443499.1191883712111.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I'm using JBoss WebServices with JAX-WS to connect to a Web Service. I use wsconsume to generate Java Classes. Here's my dliema. In some of my generated classes that I'm using as request objects, I instantiate the object, populate some fields and send it along. Problem is all of those fields are getting generated in the SOAP message, even if I left it as null. On the Web Service side, it's been interpreted as empty string instead of NULL, which causes problems. Any idea why null values still get generated in SOAP? And any idea hot to stop this from happening? These fields are defined as nillable in the WSDL. Any help is greatly appreciated. Thanks, Joe View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092784#4092784 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092784 From do-not-reply at jboss.com Mon Oct 8 21:34:16 2007 From: do-not-reply at jboss.com (dode) Date: Mon, 8 Oct 2007 21:34:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Webservice as WAR vs. EJB3 Message-ID: <4692667.1191893656750.JavaMail.jboss@colo-br-02.atl.jboss.com> Can someone please help me out, I am a bit confused. I am using JBossAS 4.0.5. When I deploy my webservice as WAR it uses JAX-WS (and works just fine), but when I deploy it as EJB3 in a JAR it uses JAX-RPC (and does not work since I use Collections). I assume this is intended, but why? The reason why I tried this is, that I plan to deploy a webservice in a clustered JBossAS setup while all nodes should be able to access the same shared data, and I was wondering if that could be accomplished by deploying the webservice as a clustered, stateful EJB3. Probably great nonsense... any suggestion? Torsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092818#4092818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092818 From do-not-reply at jboss.com Tue Oct 9 02:36:18 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Tue, 9 Oct 2007 02:36:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <24742050.1191911778430.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! The WSDL file imports two XML-schemas that create a circular reference. A good point would be to ask them to change their design. The wsdl file at https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl imports two xml-schemas: | | | The CoreComponentTypes.xsd contains an import of eBLBaseComponents.xsd | | and the eBLBaseComponents.xsd contains an import of CoreComponentTypes.xsd | | And all this makes a circular reference between the two schema imports. Maybe one can file this as an extra feature/bug in JBoss. It shall not hang and it could be a good if JBoss was controlling if a schema already has been imported during the scan for schema imports. Hope this helps! Kind regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092851#4092851 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092851 From do-not-reply at jboss.com Tue Oct 9 03:32:33 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Tue, 9 Oct 2007 03:32:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web service parameters are always null Message-ID: <23860466.1191915153378.JavaMail.jboss@colo-br-02.atl.jboss.com> It's xmlns="" declaration within all subelements of sendTicketRequestToPartner element. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092866#4092866 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092866 From do-not-reply at jboss.com Tue Oct 9 03:46:43 2007 From: do-not-reply at jboss.com (nickarls) Date: Tue, 9 Oct 2007 03:46:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS config Message-ID: <11844316.1191916003378.JavaMail.jboss@colo-br-02.atl.jboss.com> A starting point? A working sample to reverse-engineer? A bone? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092876#4092876 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092876 From do-not-reply at jboss.com Tue Oct 9 04:05:31 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Tue, 9 Oct 2007 04:05:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <24242469.1191917131438.JavaMail.jboss@colo-br-02.atl.jboss.com> "rocken7" wrote : If anyone cares to check out the wsdl, here it is: | | https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl Hi, I used JBossWS 2.0.1 and everything works fine for me. Here's my commandline: | ./wsconsume.sh -k -o classes -s sources https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl Which JBossWS version are you using? You can see it e.g. when JBoss boots, there's a line like: 10:04:36,786 INFO [NativeServerConfig] JBoss Web Services - Native | 10:04:36,786 INFO [NativeServerConfig] jbossws-native-2.1.0.DEV (build=200710090749) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092889#4092889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092889 From do-not-reply at jboss.com Tue Oct 9 04:26:29 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Tue, 9 Oct 2007 04:26:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSSecurity failure on Linux Message-ID: <19294364.1191918389230.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi PeterJ, thank you for your investigation. I reviewed your post and our batch files and you are right, the classpath elements order is different for windows and different for linux. So I applied your suggestion to our distribution. This fix should be available in the next release (JBossWS 2.0.2) at the end of October. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092896#4092896 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092896 From do-not-reply at jboss.com Tue Oct 9 07:28:00 2007 From: do-not-reply at jboss.com (dode) Date: Tue, 9 Oct 2007 07:28:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Webservice as WAR vs. EJB3 Message-ID: <32948677.1191929280560.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, I just figured that all I have to do is to update my JBossAS 4.0.5 to jbossws 2.0.1... now my EJB3 is also using JAX-WS. Very nice! Now I just need to figure out if it makes sense at all to deploy a webservice as stateful clustered bean. Have to learn about EJB3 but if someone could point me in the right direction I'd be grateful. Torsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092963#4092963 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092963 From do-not-reply at jboss.com Tue Oct 9 07:31:03 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Tue, 9 Oct 2007 07:31:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: 2 ejb3s exposed as web services. Can't have same methods Message-ID: <21009032.1191929463766.JavaMail.jboss@colo-br-02.atl.jboss.com> Issue was fixed. See: http://jira.jboss.org/jira/browse/JBWS-1799 for possible workarounds untill next release will be available for download. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092965#4092965 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092965 From do-not-reply at jboss.com Tue Oct 9 07:37:27 2007 From: do-not-reply at jboss.com (Bishop) Date: Tue, 9 Oct 2007 07:37:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to implement a webservice workflow? Message-ID: <11515090.1191929847651.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am new about web-services and thousand of questions come to me. I need to implement a web service workflow in such a way that an incoming event may request n web-services in a certain order. I think that BPEL is the right technology for that but... Which product of JBoss do I need for running my BPEL definition? Do I need also an application server? I tried the Netbeans BPEL editor together with GlassFish, but after a test with a easy hello world, it took more than 1 second!! Performance is my biggest concern, flow execution must be as fast as possible. Thanks a lot for your reply View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092967#4092967 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092967 From do-not-reply at jboss.com Tue Oct 9 07:39:36 2007 From: do-not-reply at jboss.com (Fantagir) Date: Tue, 9 Oct 2007 07:39:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - error using wsprovide Message-ID: <5621215.1191929976983.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I'm trying to generate the wsdl and the artifacts of a class that I develop to create a WebService . But I did something wrong because don't work. I do it with this: $c:\jboss\wsprovide -w -c . IContar.class Contar.class -o .\artf And the error is: Error: Could not load class [Icontar.class]. Did you specify a valid ?classpath? I'm using Jboss 4.2.0GA. I've the endpoint IContar and the class Contar that implements the core of the WebService. I have this classes in the directory where I execute the wsprovide command. Can you tell me what I'm doing wrong? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092968#4092968 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092968 From do-not-reply at jboss.com Tue Oct 9 07:41:30 2007 From: do-not-reply at jboss.com (jtestori) Date: Tue, 9 Oct 2007 07:41:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to implement a webservice workflow? Message-ID: <8145593.1191930090712.JavaMail.jboss@colo-br-02.atl.jboss.com> take a look at http://docs.jboss.com/jbpm/bpel/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092969#4092969 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092969 From do-not-reply at jboss.com Tue Oct 9 08:03:53 2007 From: do-not-reply at jboss.com (mleite) Date: Tue, 9 Oct 2007 08:03:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: XMLSchema, WSDL and wsconsume tool Message-ID: <20846037.1191931433441.JavaMail.jboss@colo-br-02.atl.jboss.com> Ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092977#4092977 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092977 From do-not-reply at jboss.com Tue Oct 9 08:44:15 2007 From: do-not-reply at jboss.com (miguelmora76) Date: Tue, 9 Oct 2007 08:44:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Deploying 2 web services on JBossWS, and getting different m Message-ID: <9797630.1191933856001.JavaMail.jboss@colo-br-02.atl.jboss.com> I have 2 web services deployed under jbossws at: http://localhost:8280/services/SearchService?wsdl and http://localhost:8280/services/ProductService?wsdl. Using the 4.2.0.GA Jboss App server, and JBossWS 2.0.0.GA. Now, whenever I go to http://localhost:8280/jbossws/services, I get the metrics page for both endpoint locations. But when I make a web service call to one of the web services, the metrics of both web services are updated with the same info. This has to be an error of some sort. Why can't I get separate metrics for my web services? Can it be tweaked? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092994#4092994 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092994 From do-not-reply at jboss.com Tue Oct 9 08:45:56 2007 From: do-not-reply at jboss.com (cavani) Date: Tue, 9 Oct 2007 08:45:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <9014350.1191933956562.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using the follow approach based on JBossWS 2.0.1: 1. I didn't change distribution code 2. Copy to my project (EJB where WS is configured): org.jboss.ws.extensions.security.jaxws.WSSecurityHandler org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer org.jboss.ws.extensions.security.WSSecurityDispatcher 3. Merge WSSecurityHandler and WSSecurityHandlerServer in a single source (WSSecurityHandler no more abstract and delete Server) and change invocation to my WSSecurityDispatcher copy. 4. Create my own SecurityStore extending org.jboss.ws.extensions.security.SecurityStore: | public class SecurityStore extends org.jboss.ws.extensions.security.SecurityStore | { | | private KeyStore keyStore; | | private KeyStore trustStore; | | private char[] keyStorePassword; | | public SecurityStore() throws WSSecurityException | { | loadKeyStore(); | | SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider(); | SecurityAdaptorFactory secAdapterfactory = spiProvider.getSPI(SecurityAdaptorFactory.class); | SecurityAdaptor securityAdaptor = secAdapterfactory.newSecurityAdapter(); | | String username = securityAdaptor.getPrincipal().toString(); | | loadSessionKey(username); | } | | public SecurityStore(Element element) throws WSSecurityException | { | loadKeyStore(); | | Element child = Util.getFirstChildElement(element); | | String username = null; | | while (child != null) | { | String tag = child.getLocalName(); | | if (tag.equals("UsernameToken")) | { | UsernameToken token = new UsernameToken(child); | username = token.getUsername(); | break; | } | | child = Util.getNextSiblingElement(child); | } | | loadSessionKey(username); | } | | // copy of public methods from SecurityStore | | where: * loadKeyStore() load server key/certificate * loadSessionKey(String username); load user certificate (all certificate has the same alias) 4. Change WSSecurityDispatcher to instantiate my SecurityStore copy: * Element parameter Constructor at handleInbound * Default Constructor at handleOutbound 5. use my WSSecurityHandler at standard-jaxws-endpoint-config.xml 6. configure client with username tag at jboss-wsse-client.xml and: | BindingProvider bindingProvider = (BindingProvider) port; | Map reqContext = bindingProvider.getRequestContext(); | reqContext.put(BindingProvider.USERNAME_PROPERTY, (String) USERNAME_HERE); | reqContext.put(BindingProvider.PASSWORD_PROPERTY, ""); | just it! it is working fine to me (user certs are in LDAP acounts accessed with JNDI - InitialDirContext). Any changes to improve security code to implement something like this out-of-box (like pluggable SecurityStore with username information)? for 2.0.2? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092995#4092995 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092995 From do-not-reply at jboss.com Tue Oct 9 09:31:34 2007 From: do-not-reply at jboss.com (ppollard) Date: Tue, 9 Oct 2007 09:31:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web service parameters are always null Message-ID: <4601487.1191936694560.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the response. Can you explain why it works like that, especially when the xmlns attribute is empty on each one? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093020#4093020 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093020 From do-not-reply at jboss.com Tue Oct 9 09:52:03 2007 From: do-not-reply at jboss.com (Fantagir) Date: Tue, 9 Oct 2007 09:52:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: error using wsprovide Message-ID: <25674217.1191937923081.JavaMail.jboss@colo-br-02.atl.jboss.com> HI! I've solved the error before. I execute the wsprovide in the build directory instead of the build\service directory and change the command like this: $c:\jboss\wsprovide -t -o generated -w service. IContar service.Contar But know I've got another error: java.lang.NoClassDefFoundError: javax/ejb/Stateless I don't implement EJB. This could be the problem? I put here the code of my classes: IContar package service; | | import java.rmi.Remote; | import java.rmi.RemoteException; | | import javax.jws.WebMethod; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.WebParam; | | import org.osid.OsidContext; | | import util.DatePalabra; | | @WebService( | name="IContar", // wsdl:portType | targetNamespace="urn:service" //wsdl:targetNamespace | ) | public interface IContar extends Remote { | | @WebMethod | @WebResult(name="IContar_darCuentaResponse") | public DatePalabra darCuenta(@WebParam(name = "ctx", partName ="ctx") OsidContext ctx) throws RemoteException; | } | | Contar package service; import java.rmi.RemoteException; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import org.osid.OsidContext; import org.osid.OsidException; import util.DatePalabra; @WebService( serviceName="Contar", // wsdl:service portName= "IContarPort", //wsdl:port name=... binding=... endpointInterface = "service.IContar", //nombre de la interficie del WebService targetNamespace="urn:service", //wsdl:targetNamespace wsdlLocation = "WEB-INF/wsdl/Contar.wsdl" //nombre y ubicaci?n en el proyecto del fichero .wsdl ) @SOAPBinding( style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL ) public class Contar implements IContar{ public DatePalabra darCuenta(OsidContext ctx) throws RemoteException { DatePalabra dp = new DatePalabra(); try { String str = (String) ctx.getContext("iduser"); dp.setPalabra(str); dp.setLongitud(Integer.toString(str.length())); return dp; } catch (OsidException e) { // TODO Auto-generated catch block e.printStackTrace(); dp.setLongitud("0"); dp.setPalabra("vacio"); return dp; } } } Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093032#4093032 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093032 From do-not-reply at jboss.com Tue Oct 9 09:59:04 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Tue, 9 Oct 2007 09:59:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web service parameters are always null Message-ID: <30620328.1191938344638.JavaMail.jboss@colo-br-02.atl.jboss.com> Well, to answer this question I need to see your WSDL Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093037#4093037 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093037 From do-not-reply at jboss.com Tue Oct 9 10:16:58 2007 From: do-not-reply at jboss.com (fonseca) Date: Tue, 9 Oct 2007 10:16:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Dispatch + wssecurity Message-ID: <20598999.1191939418325.JavaMail.jboss@colo-br-02.atl.jboss.com> I've seen you solved the issue, Thomas. Thank you so much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093050#4093050 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093050 From do-not-reply at jboss.com Tue Oct 9 10:23:56 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 9 Oct 2007 10:23:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS-2.0.1 ignoring @SecurityDomain Message-ID: <22553149.1191939836082.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.org/jira/browse/JBWS-1840 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093054#4093054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093054 From do-not-reply at jboss.com Tue Oct 9 10:26:28 2007 From: do-not-reply at jboss.com (ppollard) Date: Tue, 9 Oct 2007 10:26:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web service parameters are always null Message-ID: <8735267.1191939988726.JavaMail.jboss@colo-br-02.atl.jboss.com> Here it is: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093058#4093058 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093058 From do-not-reply at jboss.com Tue Oct 9 10:33:22 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Tue, 9 Oct 2007 10:33:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: XMLSchema, WSDL and wsconsume tool Message-ID: <5676431.1191940402477.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, annotate your Service implementation with @WebService annotation and specify your wsdl location there. Here's the example: @WebService | ( | name = "Hello", | targetNamespace = "http://org.jboss.ws/samples/wssecuritypolicy", | wsdlLocation="WEB-INF/wsdl/HelloService.wsdl" | ) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093062#4093062 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093062 From do-not-reply at jboss.com Tue Oct 9 11:08:52 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 9 Oct 2007 11:08:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS config Message-ID: <18573734.1191942532327.JavaMail.jboss@colo-br-02.atl.jboss.com> Have you seen http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#WS-Security? What do you mean by "(garbling => error)"? Have you also set up the client to use WSSecurity? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093078#4093078 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093078 From do-not-reply at jboss.com Tue Oct 9 11:37:53 2007 From: do-not-reply at jboss.com (trippstowe) Date: Tue, 9 Oct 2007 11:37:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - @EJB in a web service Message-ID: <30316161.1191944273838.JavaMail.jboss@colo-br-02.atl.jboss.com> I am having some problems with dependency injection of an ejb in a webservice on jboss 4.0.5. What am i doing wrong? The below code i have also tried @EJB without any parameters: Also i could not get the setter to work either. it never entered the setter and displayed the logs. | @EJB(name="LookupTest/remote", | beanInterface=RemoteLookupTest.class) | RemoteLookupTest ps; | | /* public void setPersonService(RemoteLookupTest newPs){ | log.info("injecting new personService: "+newPs); | this.ps = newPs; | log.info("injected personService: ps="+ps); | } | */ | @WebMethod | public Person queryPerson(long personId) throws RemoteException{ | System.out.println(ps.getName()); | } | this code gives me a null pointer exception at the ps.getName(); this next code snippet is the next function in the web service and it works fine. this makes me think that the bean is deployed correctly. | @WebMethod | public void testLookupBean() throws RemoteException{ | try{ | Context ctx = new InitialContext(); | String jndiName = "LookupTest/remote"; | RemoteLookupTest obj = (RemoteLookupTest)ctx.lookup(jndiName); | System.out.println(obj.getName()); | thanks in advance -==- View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093087#4093087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093087 From do-not-reply at jboss.com Tue Oct 9 12:42:03 2007 From: do-not-reply at jboss.com (roger.powell) Date: Tue, 9 Oct 2007 12:42:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cannot get URL for schema (because of extra slash) Message-ID: <27566177.1191948123409.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have Glassfish v2 experience but I am currently evaluating JBoss. The following problem does not occur in glassfish. I have a WSDL containing a schema that imports another schema. | I am developing some web services. The following is the implementation class of an SEI:@Stateless | @WebContext(contextRoot="/qos") | @WebService(serviceName = "PRService", | portName = "PerformanceRepository", | endpointInterface = "org.gridcc.qos._20070730._3.QoS", | targetNamespace = "http://www.gridcc.org/qos/20070730/3", | wsdlLocation = "META-INF/wsdl/PRService/QoS-WS-v2-RC3a.wsdl") | public class PRService implements org.gridcc.qos._20070730._3.QoS { Notice the wsdlLocation (only one slash between "wsdl" and "PRService"). Clean and build no problem. Deploy into JBoss 4.2.1 and I get the following error:Caused by: java.io.IOException: Cannot get URL for: META-INF/wsdl//PRService/agreement_types.xsd | Note that there are two slashes. I assume that's why the schema can't be found. Can anyone help me? I would be very grateful. Thx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093115#4093115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093115 From do-not-reply at jboss.com Tue Oct 9 12:59:29 2007 From: do-not-reply at jboss.com (rocken7) Date: Tue, 9 Oct 2007 12:59:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <17369510.1191949169021.JavaMail.jboss@colo-br-02.atl.jboss.com> As mentioned above: jboss-4.0.5.GA (with jbossws 2.0.1.GA). Well I have generated the sources from the wsdl with no trouble already and used the same calls as you, but try to roll and deploy a webservice which conforms to the same wsdl: a paypal simulator for example. As I've said above, jboss chews all the jvm heap space and blows upon deploy. It likely has to do with the style of paypal's wsdl and xsd files, but does point out an issue with jbossws (2.0.1.GA). Try it please and let me know if you can find success. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093122#4093122 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093122 From do-not-reply at jboss.com Tue Oct 9 13:33:16 2007 From: do-not-reply at jboss.com (kellenheller) Date: Tue, 9 Oct 2007 13:33:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <23929697.1191951196024.JavaMail.jboss@colo-br-02.atl.jboss.com> Is there anything you can do for us in the interim? I am trying to eval jbossws for our app, and I can't get it installed because of this issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093143#4093143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093143 From do-not-reply at jboss.com Tue Oct 9 14:24:17 2007 From: do-not-reply at jboss.com (vasquezr) Date: Tue, 9 Oct 2007 14:24:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - ClassCastException @ BaseDeserializerFactory.getSpecialized Message-ID: <22916244.1191954257845.JavaMail.jboss@colo-br-02.atl.jboss.com> Using Jboss 4.0.2. Have a web service client(dyamic proxy method) that uses a complex type as a return parameter which consists of two java Object (WSDL anyType ). The web service and client both worked until there was an attempt to add security to the application which housed the ejb endpoint. The following code was added to the dynamic proxy client in order to get it to send a username and password. Stub stub = (Stub)myService; stub._setProperty(Stub.USERNAME_PROPERTY,username); stub._setProperty(Stub.PASSWORD_PROPERTY,password); myResult = myService.runServiceMethod(x,y,z); This seems to get past the authentication issue but is now throwing the following exception Exception:java.rmi.RemoteException: null; nested exception is: java.lang.ClassCastException,Stack:java.rmi.RemoteException: null; nested exception is: java.lang.ClassCastException at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:176) at $Proxy1.runJob(Unknown Source) ... ... Caused by: java.lang.ClassCastException at org.jboss.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:200) at org.jboss.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:118) at org.jboss.axis.encoding.DeserializationContextImpl.getDeserializer(DeserializationContextImpl.java:574) at org.jboss.axis.message.RPCHandler.onStartChild(RPCHandler.java:309) at org.jboss.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1168) at org.jboss.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244) at org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1386) at org.jboss.axis.message.RPCElement.deserialize(RPCElement.java:262) at org.jboss.axis.message.RPCElement.getParams(RPCElement.java:396) at org.jboss.axis.client.Call.invoke(Call.java:2662) at org.jboss.axis.client.Call.invoke(Call.java:2538) at org.jboss.axis.client.Call.invokeInternal(Call.java:1976) at org.jboss.axis.client.Call.invoke(Call.java:1914) at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265) at org.jboss.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:381) at $Proxy0.runJob(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 org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:105) ... 4 more it seems we are getting a result back but are having an issue deserializing the response. Has anyone had a similar experience ? can anyone provide some insight ? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093164#4093164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093164 From do-not-reply at jboss.com Tue Oct 9 14:47:33 2007 From: do-not-reply at jboss.com (nickarls) Date: Tue, 9 Oct 2007 14:47:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS config Message-ID: <16673455.1191955653299.JavaMail.jboss@colo-br-02.atl.jboss.com> "PeterJ" wrote : Have you seen http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#WS-Security? | Yep, I used that as a starting point "PeterJ" wrote : | What do you mean by "(garbling => error)"? | I mean that if I introduce an error into the file then the config stops working and from that I conclude that the file is found and being used. "PeterJ" wrote : | Have you also set up the client to use WSSecurity? | Well, I haven't got as far as the client yet, I started at the server-end assuming that the wsdl would show some security tags if it was properly configured. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093174#4093174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093174 From do-not-reply at jboss.com Tue Oct 9 14:58:17 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 9 Oct 2007 14:58:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS config Message-ID: <31527533.1191956297241.JavaMail.jboss@colo-br-02.atl.jboss.com> That's a negative. There are no artifacts in the WSDL that indicate WSSecurity is required. All you get is an error is the client doesn't supply the credentials (see my travails at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=120672). This makes sense because you can then easily layer security on top of an existing web service without modifying it or the client (just add the necessary config files). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093185#4093185 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093185 From do-not-reply at jboss.com Tue Oct 9 16:49:54 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Tue, 9 Oct 2007 16:49:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <3803221.1191962994577.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello! As I said before, this is probably due to the circular schema imports. JBoss will try to load the first schema (CoreComponentTypes.xsd). While scanning this schema JBoss will find the schema import for the 2:nd schema (eBLBaseComponents.xsd). While scanning this 2:nd schema JBoss will find the import of the 1:st schema (CoreComponentTypes.xsd) and so on. This circular schema scan will continue until you get out of memory. I can't find any other reason for this out of memory error. If you don't understand, just follow the xml schema import statements in both schemas and you'll understand what I'm saying. Best regards Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093208#4093208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093208 From do-not-reply at jboss.com Tue Oct 9 18:13:00 2007 From: do-not-reply at jboss.com (rocken7) Date: Tue, 9 Oct 2007 18:13:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <26248393.1191967980965.JavaMail.jboss@colo-br-02.atl.jboss.com> yep good one oskar, I should've noticed this with my log statements. maybe i'll just merge the two xml-schemas together into 1 xsd file, lots of work tho, and if jbossws was a bit better it wouldn't require this workaround. case closed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093221#4093221 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093221 From do-not-reply at jboss.com Tue Oct 9 18:35:41 2007 From: do-not-reply at jboss.com (ggary) Date: Tue, 9 Oct 2007 18:35:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - SoapFault on returning the web service response Message-ID: <19731563.1191969341506.JavaMail.jboss@colo-br-02.atl.jboss.com> I have created a simple JAX-WS web service to process spam complaints Here is the Java code of it: @WebService(targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0") | public class SpamComplaintWS | { | @WebMethod(operationName="processSpamComplaints") | @WebResult(name="SpamResult") | @ResponseWrapper(className="com.rsys.rsystools.ws.SpamResult") | public SpamResult processSpamComplaints( | @WebParam(name = "email") String email, | @WebParam(name = "fromAddress") String fromAddress, | @WebParam(name = "mailDate") String mailDate, | @WebParam(name = "complaintDate") String complaintDate, | @WebParam(name = "mailbox") String mailbox, | @WebParam(name = "complainer") String complainer, | @WebParam(name = "xRext") String xRext, | @WebParam(name = "accountName") String accountName) | { | responsys.prodtools.SpammerTables st = new responsys.prodtools.SpammerTables(); | String[] res = st.processSpamRecord(email, fromAddress, mailDate, complaintDate, mailbox, complainer, xRext, accountName); | return (new SpamResult(res[0],res[1],res[2],res[3],res[4],res[5],res[6],res[7],res[8],res[9],res[10],res[11],res[12],res[13])); | } | } | It compiles and deploys successfully, however, generated wsdl is not what I expected to see: - | - | - | | | - | - | | | | | | | | | | | - | - | | | | | | - | | | - | | | - | - | | | | | - | | - | | - | | | - | | | | | - | - | | | | | (It is copied from the browser, so, don't mind dashes). As you can see, I explicitly stated the name and class for my return value but wsdl ignores that part. I mean @WebResult and @ResponceWrapper annotations. I can call the web service in it successfully performs its job (I know it by the results of the database transaction) by I still getting an exception on result return: javax.xml.ws.soap.SOAPFaultException: java.lang.reflect.UndeclaredThrowableException | at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171) | at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94) | at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240) | 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 $Proxy29.processSpamComplaints(Unknown Source) | at com.rsys.rsystools.client.SpamComplainClient.doComplain(SpamComplainClient.java:409) | Can someone tells me what is wrong with my code and how to make it work. I am doing it on JBoss 4.2.1 with the JBossWS 2.0.1GA Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093226#4093226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093226 From do-not-reply at jboss.com Tue Oct 9 20:41:09 2007 From: do-not-reply at jboss.com (ggary) Date: Tue, 9 Oct 2007 20:41:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SoapFault on returning the web service response Message-ID: <7399536.1191976869374.JavaMail.jboss@colo-br-02.atl.jboss.com> I made a little change in the service and instead of class instance returning an array of java.lang.String. In this case service works without complaints. So, it is definitely a bug in the @ResponseWrapper conversion. Can anyone verify it for me please? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093242#4093242 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093242 From do-not-reply at jboss.com Wed Oct 10 02:42:47 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 10 Oct 2007 02:42:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SoapFault on returning the web service response Message-ID: <25792250.1191998567168.JavaMail.jboss@colo-br-02.atl.jboss.com> Try to specify @WebResult | ( | name="SpamResult", | targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0" | ) | @RequestWrapper | ( | localName="Spam", | targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0", | className = "com.rsys.rsystools.ws.Spam" | ) | @ResponseWrapper( | name="SpamResult", | targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0", | className = "com.rsys.rsystools.ws.SpamResult" | ) | public SpamResult processSpamComplaints(...) | { | ... | } You're working with wrapped literal, so don't forget to provide RequestWrapper too. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093284#4093284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093284 From do-not-reply at jboss.com Wed Oct 10 03:05:40 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 10 Oct 2007 03:05:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <30668299.1191999940618.JavaMail.jboss@colo-br-02.atl.jboss.com> Here are the files you are missing: jboss-service-no-ejb3.xml | | | | | | | | | jboss:service=Naming | | | | | | jboss.web:service=WebServer | | | | | | | jboss.ejb:service=EJBDeployer | | | | | jboss-beans-no-ejb3.xml | | | | | | | | ${jboss.bind.address} | true | | | | | | | | | | | | ${jboss.bind.address} | | | | | ContextProperties, StackDescriptor | | | org.jboss.ws.webapp.ServletClassorg.jboss.wsf.stack.jbws.EndpointServlet | | | | | | UnifiedMetaDataModel | InitializedMetaDataModel | | | | ContainerEndpointHandler, ContainerMetaData | StackEndpointHandler | | | | UnifiedMetaDataModel | | | | UnifiedMetaDataModel | PublishedContract | | | | UnifiedMetaDataModel | | | | RuntimeLoader, ContainerMetaData, URLPattern, VFSRoot | UnifiedMetaDataModel | | | | | | | true | | | | | | WSDeploymentAspectInstallerPreJSE | | | | | true | | | | | | | | | | | WSDeploymentAspectInstallerPostJSE | | | | | true | | | | | | | | | | | | WSDeploymentAspectInstallerEJB | | | | | true | | | | | | | | | | | | WSDeploymentAspectInstallerEndpointAPI | | | | | | | | | | | | | | | | | | | WSDeploymentAspectManagerPreJSE | | | jboss.ws:service=DeployerInterceptorJSE | | | | | | WSDeploymentAspectManagerPostJSE | | | jboss.ws:service=DeployerInterceptorJSE | | | | | | WSDeploymentAspectManagerEJB | | | jboss.ws:service=DeployerInterceptorEJB21 | | | | | | WSDeploymentAspectManagerPreJSE | | | jboss.ws:service=DeployerInterceptorJSE | | | | | | WSDeploymentAspectManagerPostJSE | | | jboss.ws:service=DeployerInterceptorJSE | | | | | | | WSDeploymentAspectManagerPreJSE | | | | WSDeploymentAspectManagerPostJSE | | | WSDeploymentAspectManagerEJB | | | WSDeploymentAspectManagerEndpointAPI | | | | | ContainerMetaData, VFSRoot | | | | | ContainerMetaData | ContextRoot | | | | URLPattern | EndpointAddress | | | | ContainerMetaData, RuntimeLoader, URLPattern, VFSRoot | | | | ContainerMetaData | ContainerEndpointHandler | | | | LAST_DEPLOYMENT_ASPECT | | | | EndpointMetrics | | | | URLPattern | EndpointName | | | | EndpointName | RegisteredEndpoint | | | | ContextProperties, ContainerMetaData | | | | | ContainerMetaData | RuntimeLoader | | | | ContextRoot, ContainerMetaData | URLPattern | | | | WebMetaData, ContextProperties | | | | | URLPattern | WebMetaData | | | | | | | | | | | | | | | | | | | | | | | false | | | | | | | | | | | | | | | | | | | false | | | | | | | WSDeploymentAspectInstallerPreJSE | | | | | false | | | | | | | | | | | | | | | | | | | | | false | | | | | | | | | | | | | | | | | | Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093290#4093290 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093290 From do-not-reply at jboss.com Wed Oct 10 03:15:28 2007 From: do-not-reply at jboss.com (nirre) Date: Wed, 10 Oct 2007 03:15:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java Message-ID: <19635666.1192000528529.JavaMail.jboss@colo-br-02.atl.jboss.com> fixed it... i must say it was kinda of an obscure fix... added the following in wstool.bat: | set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/wsdl4j.jar | set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxrpc.jar | set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxws.jar | set WSTOOLS_CLASSPATH=%WSTOOLS_CLASSPATH%;%JBOSS_HOME%/client/jboss-saaj.jar | and change the "file"attibute to "location" in the wstool-config.xml ... but thanks anyway. IF someone knows why or have comment of the problem/fix I'm very interessed!! regards nirre View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093297#4093297 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093297 From do-not-reply at jboss.com Wed Oct 10 03:23:33 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 10 Oct 2007 03:23:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot get URL for schema (because of extra slash) Message-ID: <14457400.1192001013832.JavaMail.jboss@colo-br-02.atl.jboss.com> Which JBoss AS and JBossWS version are you using? You can see it in the system console when JBoss boots. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093300#4093300 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093300 From do-not-reply at jboss.com Wed Oct 10 03:26:52 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 10 Oct 2007 03:26:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java Message-ID: <10126399.1192001212639.JavaMail.jboss@colo-br-02.atl.jboss.com> And which JBossWS version are you using? You can see it in the system console when server boots. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093301#4093301 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093301 From do-not-reply at jboss.com Wed Oct 10 03:48:52 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 10 Oct 2007 03:48:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <28559989.1192002532816.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.org/jira/browse/JBWS-1843 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093314#4093314 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093314 From do-not-reply at jboss.com Wed Oct 10 07:08:51 2007 From: do-not-reply at jboss.com (sidgod) Date: Wed, 10 Oct 2007 07:08:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error while using WSTools Message-ID: <5094742.1192014531564.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi i was using JBOSS AS 4.0.4.GA for the J2EE application. Now i am trying to the soap interface also. Thus i downloaded zip for 4.0.4.GA and i am using following file to generate wsdl from my interface: activation.jar, mail.jar, javassist.jar, jbossall-client.jar, jboss-backport-concurrent.jar, jbossretro-rt.jar, jbossws14-client.jar and xercesImpl.jar. I was using jdk 1.4 06 earlier and i am still using the same. The command i am using to generate wsdl is : org.jboss.ws.tools.WSTools -cp -config -dest Its failing with error java.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2 i believe this class is available only from jdk 1.5.x series onwards. But i think WS tools which are shipped with server binary zip file can be used with 1.4.x also. So please tell me whats wrong and how can i counter it ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093422#4093422 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093422 From do-not-reply at jboss.com Wed Oct 10 08:27:43 2007 From: do-not-reply at jboss.com (Jeilong) Date: Wed, 10 Oct 2007 08:27:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - [JBossWS 2.0.1] Unmarshall POJO field with protected setter Message-ID: <2094824.1192019263047.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a SLSB with @WebService. I find that pojos have their @Id field set to null when marshalled despite it have a value in the SLSB. In the code fragment below you can see the field has a protected setters. When this signature is changed to public it works as expected. Problem is that, by design, I cannot make the setter public on an identifying field. Is there a nother way to (un)marshall fields with protected setters? | @Entity | public class Foo implements Serializable { | | private Long fooId; | | protected Foo() { | super(); | } | | @Id | public Long getFooId() { | return fooId; | } | | protected void setFooId(Long fooId) { | this.fooId = fooId; | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093454#4093454 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093454 From do-not-reply at jboss.com Wed Oct 10 08:29:18 2007 From: do-not-reply at jboss.com (nickarls) Date: Wed, 10 Oct 2007 08:29:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS config Message-ID: <19584398.1192019358298.JavaMail.jboss@colo-br-02.atl.jboss.com> Whoa! Worked. Thanks. I've been staring too much at the wsdl. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093455#4093455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093455 From do-not-reply at jboss.com Wed Oct 10 08:46:54 2007 From: do-not-reply at jboss.com (kellenheller) Date: Wed, 10 Oct 2007 08:46:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <15402193.1192020414343.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you very much, Richard! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093463#4093463 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093463 From do-not-reply at jboss.com Wed Oct 10 09:21:46 2007 From: do-not-reply at jboss.com (roger.powell) Date: Wed, 10 Oct 2007 09:21:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot get URL for schema (because of extra slash) Message-ID: <7731533.1192022506306.JavaMail.jboss@colo-br-02.atl.jboss.com> Richard, Thx for the followup: "richard_opalka" wrote : Which JBoss AS 4.2.1GA anonymous wrote : and JBossWS version are you using? 2.0.1GA I guess my question is what is creating the double slash and how do I convince it not to? Regards, Roger. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093488#4093488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093488 From do-not-reply at jboss.com Wed Oct 10 10:40:53 2007 From: do-not-reply at jboss.com (nirre) Date: Wed, 10 Oct 2007 10:40:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java Message-ID: <14941038.1192027253918.JavaMail.jboss@colo-br-02.atl.jboss.com> then one included in jboss 4.2 - jbossws-1.2.1.GA (build=200704151756) I have another problem now. Wstool now (with the above mentioned version) generates "strange array data types" in the jax-rpc file (and it does not generate the corresponding java files) - they where not generated when using the jbossws 1.03 (the one incuded in jboss 4.0.5)... At runtime I know get errors like: [EndpointMetaData] Cannot load class for type: {http://company.com/theIntegration}ArrayOfOpportunityID,com.company.theIntegration.ArrayOfOpportunityID and then I get a: RemoteException occured when invoking web service method!java.rmi.RemoteException: Call invocation failed; nested exception is: | java.io.IOException: Could not transmit message I dont want to edit the jax-rpc file manually so my question is if arrays is handled differently between the versions. My integrations do work when I use jboss 4.0.4GA and 4.0.5GA (and respective "standard jbossws" for the releases) but I have some difficulties then It comes to the one incuded in jboss4.2. It would be great If anyone have some resources, links that I could go to to learn more. I have looked trough some of the documention found at the jbossws site but I think I?m following the examples etc... regards Niclas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093524#4093524 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093524 From do-not-reply at jboss.com Wed Oct 10 11:46:44 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 10 Oct 2007 11:46:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <6955115.1192031204832.JavaMail.jboss@colo-br-02.atl.jboss.com> "rocken7" wrote : yep good one oskar, I should've noticed this with my log statements. maybe i'll just merge the two xml-schemas together into 1 xsd file, lots of work tho, and if jbossws was a bit better it wouldn't require this workaround. | | case closed. | Sorry for that. We've fixed it already. See: http://jira.jboss.org/jira/browse/JBWS-1843 This fix will be available in next JBossWS release. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093569#4093569 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093569 From do-not-reply at jboss.com Wed Oct 10 12:49:51 2007 From: do-not-reply at jboss.com (rocken7) Date: Wed, 10 Oct 2007 12:49:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsdl based web-service (like a paypal simulator)? Message-ID: <13370821.1192034991164.JavaMail.jboss@colo-br-02.atl.jboss.com> oh sweet, jboss rox ;] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093612#4093612 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093612 From do-not-reply at jboss.com Wed Oct 10 13:37:16 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Wed, 10 Oct 2007 13:37:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot get URL for schema (because of extra slash) Message-ID: <26677061.1192037836550.JavaMail.jboss@colo-br-02.atl.jboss.com> Strange, it works for me. Are you sure you have custom schema files bundled in the same directory as your wsdl file in deployed archive? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093636#4093636 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093636 From do-not-reply at jboss.com Wed Oct 10 15:36:30 2007 From: do-not-reply at jboss.com (chris.laprun@jboss.com) Date: Wed, 10 Oct 2007 15:36:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Service endpoint doesn't deploy anymore on JBossWS 2.0.1.sp1 Message-ID: <16249511.1192044990285.JavaMail.jboss@colo-br-02.atl.jboss.com> | 2007-10-10 15:12:02,397 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing: | | --- Packages waiting for a deployer --- | org.jboss.deployment.DeploymentInfo at e66cd46d { url=file:/jboss42/build/output/jboss-4.2.2.GA/server/default/tmp/deploy/tmp3835portal-wsrp.sar-contents/portal-wsrp.jse } | deployer: null | status: Starting | state: INIT_WAITING_DEPLOYER | watch: file:/jboss42/build/output/jboss-4.2.2.GA/server/default/tmp/deploy/tmp3835portal-wsrp.sar-contents/portal-wsrp.jse | altDD: null | lastDeployed: 1192043520223 | lastModified: 1192043494000 | mbeans: | Exact same code works perfectly fine on AS 4.2.1/ JBossWS 2.0.0. What has changed? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093696#4093696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093696 From do-not-reply at jboss.com Wed Oct 10 16:15:37 2007 From: do-not-reply at jboss.com (roger.powell) Date: Wed, 10 Oct 2007 16:15:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot get URL for schema (because of extra slash) Message-ID: <11412148.1192047337633.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard_opalka" wrote : Strange, | | it works for me. Are you sure you have custom schema files bundled in the same directory as your wsdl file in deployed archive? | | Richard Here is a picture of my jar file as proof. It is the QoS-WS-v2-RC3.wsdl that defines the PRService and that imports the agreement_types.xsd (which, in turn, imports address.xsd, by the way). http://homepage.ntlworld.com/roger.powell7/documents/40.html (I couldn't get the [img] tags to do their stuff -- nothing works for me.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093709#4093709 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093709 From do-not-reply at jboss.com Wed Oct 10 17:45:10 2007 From: do-not-reply at jboss.com (ggary) Date: Wed, 10 Oct 2007 17:45:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SoapFault on returning the web service response Message-ID: <3842374.1192052710052.JavaMail.jboss@colo-br-02.atl.jboss.com> So, you think that namespace is the solution to the problem? I am sure that you are wrong. I did try your suggestion but it did not work. I made this change: @WebMethod(operationName="processSpamComplaints") | @WebResult(name="spamResult",targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0") | @ResponseWrapper(localName="result",className="com.rsys.rsystools.ws.SpamResult", | targetNamespace="http://service.responsys.com/rsystools/ws/SpamComplaintWS/1.0") | public SpamResult processSpamComplaints( | I did not create RequestWrapper because a)I am not passing in an instance of class but just few strings. b)passed in parameters are processed correctly. So, when I redeployed my service generated wsdl looked like: | ? | | ? | | | | ? | | ? | | | | | | | | | | | | ? | | ? | | | | | | | ? | | | | ? | | | | ? | | ? | | | | | | ? | | | ? | | | ? | | | | ? | | | | | | ? | | ? | | | | | and when I called the web service, the result was exactly like in my original post. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093745#4093745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093745 From do-not-reply at jboss.com Wed Oct 10 20:00:13 2007 From: do-not-reply at jboss.com (ggary) Date: Wed, 10 Oct 2007 20:00:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SoapFault on returning the web service response Message-ID: <24828940.1192060813457.JavaMail.jboss@colo-br-02.atl.jboss.com> I kept experimenting with this service and when I commented out @ResponseWrapper annotation it started generating correct wsdl. Now I am confident that there is a bug in JBossWS View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093795#4093795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093795 From do-not-reply at jboss.com Thu Oct 11 01:35:01 2007 From: do-not-reply at jboss.com (chris.laprun@jboss.com) Date: Thu, 11 Oct 2007 01:35:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Service endpoint doesn't deploy anymore on JBossWS 2.0.1 Message-ID: <3469655.1192080901672.JavaMail.jboss@colo-br-02.atl.jboss.com> "chris.laprun at jboss.com" wrote : | Exact same code works perfectly fine on AS 4.2.1/ JBossWS 2.0.0. What has changed? I meant JBossWS 1.2.1.GA (bundled version in 4.2.1.GA). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093855#4093855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093855 From do-not-reply at jboss.com Thu Oct 11 03:41:40 2007 From: do-not-reply at jboss.com (nirre) Date: Thu, 11 Oct 2007 03:41:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - jax-rpc/wstools genereate problem Message-ID: <7184830.1192088501099.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all. I'm having some problems upgrading my environment from jboss 4.0.5 to jboss 4.2 - I'm running the jobossws/wstools included in the respective release: jboss 4.0.5GA - jbossws-1.0.3.SP1 (date=200609291417) jboss 4.2GA - jbossws-1.2.1.GA (build=200704151756)" I'm not running any jbossws installation outside of the jboss appservers. I'm using jdk1.5.0_11. The problem is that the code/tools run fine on the jbossws-1.0.3.SP1 but does not work well with the jbossws-1.2.1.GA (build=200704151756). I'm now trying to track down what I have to change/add/remove. Some issues have been with the code itself how the artifacts are generated etc that is all fixed and ok. But there are still issues in the generating of the artifacts. part of the wsdl: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The interesting thing with the wsdl is the ArrayOfExternalSalesNumbers there are several of these "structures" in the wsdl. When I use jbossws-1.0.3.SP1 these does not show up in the jaxrpc-mapping.xml file and artefacts/classes does not get generated .. BUT when I use jbossws-1.2.1.GA I get the following in my jaxrpc-mapping.xml: | com.company.theIntegration.ArrayOfExternalSalesNumbers | typeNS:ArrayOfExternalSalesNumbers | complexType | | externalSalesNumbers | ExternalSalesNumbers | | BUT no ArrayOfExternalSalesNumbers classes are generated...?? When I then run my application server I get the following warnings: | [EndpointMetaData] Cannot load class for type: {http://company.com/theIntegration}ArrayOfExternalSalesNumbers,com.company.theIntegration.ArrayOfExternalSalesNumbers | 09:18:47,347 WARN [EndpointMetaData] Cannot load class for type: {http://company.com/theIntegration}ArrayOfOpportunityID,com.company.theIntegration.ArrayOfOpportunityID | 09:18:47,363 WARN [EndpointMetaData] Cannot load class for type: {http://company.com/theIntegration}ArrayOfSalesTeamRecord,com.company.theIntegration.ArrayOfSalesTeamRecord | ... etc etc | .. and of course the runtime error: RemoteException occured when invoking web service method!java.rmi.RemoteException: Call invocation failed; nested exception is: java.io.IOException: Could not transmit message My wstool-config.xml looks like this: | | | | and my ant task: | Right now I'm kinda stuck :( I have looked trough the JAX-RPC Userguide 1.2 & 2.0 but from the looks of it I'm doing what the guides say... Is there any parameter I should use in the wstools generation?? Why is there a difference in the generation? many thanks in advance for any input at all .... ;) regards Niclas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093889#4093889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093889 From do-not-reply at jboss.com Thu Oct 11 05:17:39 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Thu, 11 Oct 2007 05:17:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot get URL for schema (because of extra slash) Message-ID: <14339015.1192094259234.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you provide simple example to reproduce your problem? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093933#4093933 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093933 From do-not-reply at jboss.com Thu Oct 11 05:27:16 2007 From: do-not-reply at jboss.com (roger.powell) Date: Thu, 11 Oct 2007 05:27:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot get URL for schema (because of extra slash) Message-ID: <4767093.1192094836061.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, but I can't do this quickly -- I am very pushed for the next few days. I will try to replicate it if I have time later on. As I said at the beginning, I have no such problems with Glassfish, using JAX-WS2.1 and JAXB2.1 but instead I encountered a connection pooling problem which I couldn't solve, hence my interest in JBoss AS (and I'm anyway using Hibernate). Never mind, it was worth a try.. Thanks for your interest. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093940#4093940 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093940 From do-not-reply at jboss.com Thu Oct 11 06:03:07 2007 From: do-not-reply at jboss.com (Fantagir) Date: Thu, 11 Oct 2007 06:03:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - how to use wsprovide Message-ID: <4524716.1192096987035.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I'm trying to generate the wsdl file and the artifacts of a webservice using wsprovide but appears the next error: Generating WSDL Error: Could not generate. java.lang.NoClassDefFoundError: javax/ejb/Stateless I'm working with Jboss-4.2.0GA. I execute the command wsprovide like this: c:\work> \bin\wsprovide -t -w echo.Echo My directory try is: c:\work\ jboss-jaxws.jar echo\ Echo.class Echo.java jboss-jaxws.jar My code is: package echo; | | @javax.jws.WebService | public class Echo | { | public String echo(String input) | { | return input; | } | } Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093954#4093954 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093954 From do-not-reply at jboss.com Thu Oct 11 06:04:14 2007 From: do-not-reply at jboss.com (Jeilong) Date: Thu, 11 Oct 2007 06:04:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: [JBossWS 2.0.1] Unmarshall POJO field with protected set Message-ID: <9297126.1192097054303.JavaMail.jboss@colo-br-02.atl.jboss.com> Solved it by explicitly instructing JAXB to serialize the id field. Still, seems like a weird design decision that the defaults don't process protected setters. @XmlElement | private Long fooId; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093956#4093956 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093956 From do-not-reply at jboss.com Thu Oct 11 07:38:46 2007 From: do-not-reply at jboss.com (SameerGijare) Date: Thu, 11 Oct 2007 07:38:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Troble Connecting a client to web service Message-ID: <24534871.1192102726205.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I have a web service deployed in jboss-4.0.5GA and I am using JbossWS 1.0.4.I have a WSDL file from corresonding weblogic Deployment.The same WSDL I have used for Jboss also.But when I call the web service using the ready weblogic client it is giving me following Exception Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Neither fromValue(java.lang.String p) nor fromValue(java.lang.String p1, javax.xml.namespace.NamespaceContext p2) were found in interface com.covad.xsd.smo.vendororder.AreaCode at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtUtil.invokeUnmarshalMethod(RtUtil.java:350) at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtCharactersHandler.unmarshal(RtCharactersHandler.java:104) at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:872) at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:160) at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.endElement(SaxJBossXBParser.java:295) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:174) ... 34 more The AreaCode class it is referring is a variable is WSDL and generated from XMLBeans in Weblogic 8.1. Can anybody please help me with this?I am using jdk1.4.2_07. Thanks and Regards -Sameer Gijare View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093993#4093993 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093993 From do-not-reply at jboss.com Thu Oct 11 09:38:25 2007 From: do-not-reply at jboss.com (Christy) Date: Thu, 11 Oct 2007 09:38:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Web seervice with authentication and wsconsume Message-ID: <28148514.1192109905468.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have implemented the web service and added to it BASIC authentication. After deploying the web service, I can access the WSDL through a browser after entering the user name and password. But I have run into a problem: How do I run wsconsume against this WSDL? Or may be there is another way to generate portable Jax-WS artifacts from such WSDL? Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094081#4094081 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094081 From do-not-reply at jboss.com Thu Oct 11 09:56:47 2007 From: do-not-reply at jboss.com (trippstowe) Date: Thu, 11 Oct 2007 09:56:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @EJB in a web service Message-ID: <24873220.1192111007089.JavaMail.jboss@colo-br-02.atl.jboss.com> i found the answer after some research. i found that it will only work with jsr-109 and i am using a later jsr http://forum.java.sun.com/thread.jspa?forumID=13&threadID=5148803 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094096#4094096 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094096 From do-not-reply at jboss.com Thu Oct 11 10:01:52 2007 From: do-not-reply at jboss.com (rukus) Date: Thu, 11 Oct 2007 10:01:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <1447534.1192111312283.JavaMail.jboss@colo-br-02.atl.jboss.com> "sstrenn" wrote : In order to get ant deploy-jboss42 to work on jbossws-2.0.1, I had to modify line 53 of build-deploy.xml: | | was: | thirdpartylibs="${lib.dir}" /> | | changed to: | | thirdpartylibs="${lib.dir}" stacklibs="${lib.dir}" /> | thanks - i had same issue View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094100#4094100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094100 From do-not-reply at jboss.com Thu Oct 11 10:09:49 2007 From: do-not-reply at jboss.com (rukus) Date: Thu, 11 Oct 2007 10:09:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Web service call or javax.xml.bind.JAXBException Message-ID: <22342181.1192111789506.JavaMail.jboss@colo-br-02.atl.jboss.com> When i'm calling web service there is anonymous wrote : 17:09:29,562 ERROR [RequestHandlerImpl] Error processing web service request | org.jboss.ws.WSException: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException | - with linked exception: | [javax.xml.bind.JAXBException: class com.mtsys.services.ResourceID nor any of its super class is known to this context.] | at org.jboss.ws.WSException.rethrow(WSException.java:68) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | 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.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.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | 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:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:619) | ResourceID class: | package test; | | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlType; | import javax.xml.bind.annotation.XmlElement; | | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "ResourceID") | public class ResourceID { | @XmlElement(nillable = true) | private ULongLong container; | @XmlElement(nillable = true) | private ULongLong fragment; | | public ResourceID(ULongLong container, ULongLong fragment) { | this.container = container; | this.fragment = fragment; | } | | public ULongLong getContainer() { | return container; | } | | public void setContainer(ULongLong container) { | this.container = container; | } | | public ULongLong getFragment() { | return fragment; | } | | public void setFragment(ULongLong fragment) { | this.fragment = fragment; | } | } | Is there any suggestions? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094106#4094106 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094106 From do-not-reply at jboss.com Thu Oct 11 10:21:51 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Thu, 11 Oct 2007 10:21:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <8081586.1192112511980.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I've downloaded jbossws-2.0.1 and I've tryed to install it on jboss4.2.1, but I have problems. The installation guide say that I must copy ant.properties.examples to ant.properties but in the root of jbossws there's not a file named ant.properties.examples, these are the file I have in jboss root directory: | 17/08/2007 18.58 . | 17/08/2007 18.58 .. | 11/10/2007 15.51 866 ant.properties | 17/08/2007 18.58 bin | 17/08/2007 18.58 build | 17/08/2007 18.58 2.768 build.bat | 17/08/2007 18.58 3.689 build.sh | 17/08/2007 18.58 7.237 build.xml | 17/08/2007 18.58 docs | 17/08/2007 18.58 lib | 17/08/2007 18.58 tests | 17/08/2007 18.58 tools | 17/08/2007 18.58 1.719 version.properties | I've only set the patch of jboss4.2.1 in the ant.properties file, then I've executed: ant deploy-jboss42 but this is the result: | | C:\jbossws-native-2.0.1.GA>ant deploy-jboss42 | Buildfile: build.xml | | prepare: | | undeploy-jboss42-endorsed: | | BUILD FAILED | C:\jbossws-native-2.0.1.GA\build\build-deploy.xml:62: The following error occurr | ed while executing this line: | C:\jbossws-native-2.0.1.GA\build\macros-deploy-native.xml:385: Directory does no | t exist:C:\jbossws-native-2.0.1.GA\jboss-4.2.1.GA\lib\endorsed | | Total time: 0 seconds How can I deploy jbossws2.0.1 on jboss4.2.1? Thanks everybody, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094111#4094111 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094111 From do-not-reply at jboss.com Thu Oct 11 10:45:03 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Thu, 11 Oct 2007 10:45:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to use wsprovide Message-ID: <13346879.1192113903548.JavaMail.jboss@colo-br-02.atl.jboss.com> Try to execute wsprovide script in the JBoss/bin directory. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094131#4094131 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094131 From do-not-reply at jboss.com Thu Oct 11 10:48:05 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Thu, 11 Oct 2007 10:48:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <20243863.1192114085905.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, the tool doesn't support BASIC authentication in present. Could you post a feature request in our JIRA? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094132#4094132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094132 From do-not-reply at jboss.com Thu Oct 11 12:06:15 2007 From: do-not-reply at jboss.com (AnisBM) Date: Thu, 11 Oct 2007 12:06:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to call a web method in Seam 2.0 ? Message-ID: <12075939.1192118775208.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, I would like to know how to call from the code a web method defined in Seam 2.0 project. In the seam-bay example, this was done from the page (javascript code). Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094183#4094183 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094183 From do-not-reply at jboss.com Thu Oct 11 12:31:28 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 11 Oct 2007 12:31:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <33423102.1192120288255.JavaMail.jboss@colo-br-02.atl.jboss.com> "Christy" wrote : Hi, | I have implemented the web service and added to it BASIC authentication. | After deploying the web service, I can access the WSDL through a browser after entering the user name and password. But I have run into a problem: | How do I run wsconsume against this WSDL? Or may be there is another way to generate portable Jax-WS artifacts from such WSDL? | Thank you! In case you actually need to password protect your service only i.e. not your wsdl contract, see this: http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#WebContext View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094192#4094192 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094192 From do-not-reply at jboss.com Thu Oct 11 14:48:00 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 11 Oct 2007 14:48:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to use wsprovide Message-ID: <9621987.1192128480332.JavaMail.jboss@colo-br-02.atl.jboss.com> The wsconsume script does not include the ejb api jar file. Modify the script, adding this line to the set of lines that create the classpath: set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-ejb3x.jar You could instead set WSCONSUME_CLASSPATH manually before running wsconsume, but usually editing the script is easier, especially if you will be running it often. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094233#4094233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094233 From do-not-reply at jboss.com Fri Oct 12 01:39:30 2007 From: do-not-reply at jboss.com (nickarls) Date: Fri, 12 Oct 2007 01:39:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Encoding problem Message-ID: <14856550.1192167570169.JavaMail.jboss@colo-br-02.atl.jboss.com> The file encoding didn't work out that well since everything else broke ;-) Well, now the wsdl file is correctly UTF-8 encoded but the problem seems to be a JBossWS_remote._24540.xsd (schema validation?). The file has the original iso-8859-1 chars and no encoding info -> tilt. Is there any way of hinting the encoding for the .xsd? Sure, I could strip the entities from all non-utf chars but since they are quite central that would lead to refactoring everywhere so if there is I a workaround, I'm more than happy to listen. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094354#4094354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094354 From do-not-reply at jboss.com Fri Oct 12 02:26:12 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Fri, 12 Oct 2007 02:26:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problems with installation of jbossws2.0.1 on jboss4.2.1, he Message-ID: <32091048.1192170372834.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, In the last 2 day I tried to install jbossws2.0.1 on jboss4.2.1 but I have some problems. In the installation guide it said I must copy the ant.properties.examples into ant.properties, but there isn't the first file. I have only set the path of jboss4.2.1 in ant.properties and then I've executed ant deploy-jboss42 but I have this error message: anonymous wrote : | C:\jbossws-native-2.0.1.GA>ant deploy-jboss42 | Buildfile: build.xml | | prepare: | | undeploy-jboss42-endorsed: | | BUILD FAILED | C:\jbossws-native-2.0.1.GA\build\build-deploy.xml:62: The following error occurr | ed while executing this line: | C:\jbossws-native-2.0.1.GA\build\macros-deploy-native.xml:385: Directory does no | t exist:C:\jbossws-native-2.0.1.GA\jboss-4.2.1.GA\lib\endorsed | | Total time: 0 seconds | Why does it find "jboss-4.2.1.GA\lib\endorsed" in "C:\jbossws-native-2.0.1.GA\" directory? The line 52 of C:\jbossws-native-2.0.1.GA\build\build-deploy.xml:62 this is: | | and the jboss42.home is defined in ant.propertis as follows: jboss42.home=C:\jboss-4.2.1.GA The line385 of C:\jbossws-native-2.0.1.GA\build\macros-deploy-native.xml is the tag in the following xml code: | | | | | | | | | | | | | | | How can I install jbossws? Thanks everybody. Bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094365#4094365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094365 From do-not-reply at jboss.com Fri Oct 12 02:33:16 2007 From: do-not-reply at jboss.com (saho) Date: Fri, 12 Oct 2007 02:33:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsprovide : NoClassDefFoundError: com/sun/codemodel/JExp Message-ID: <8991288.1192170796448.JavaMail.jboss@colo-br-02.atl.jboss.com> I have also the same Problem. Did you find any solution ? Thanks for any help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094372#4094372 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094372 From do-not-reply at jboss.com Fri Oct 12 02:40:10 2007 From: do-not-reply at jboss.com (Christy) Date: Fri, 12 Oct 2007 02:40:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <26591342.1192171210225.JavaMail.jboss@colo-br-02.atl.jboss.com> alessio.soldano at jboss.com wrote : | In case you actually need to password protect your service only i.e. not your wsdl contract, see this: http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#WebContext | I changed my class, here it is: @WebService @SOAPBinding(style = SOAPBinding.Style.RPC) @SecurityDomain("e2edmwsSecurity") @WebContext(secureWSDLAccess = false) public class e2edm_metadata_ws { ..... } But now my service doesn't protect with password too. When I invoke it doesn't ask password? it works like common web service. Why? Where is the mistake? Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094375#4094375 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094375 From do-not-reply at jboss.com Fri Oct 12 03:04:45 2007 From: do-not-reply at jboss.com (Christy) Date: Fri, 12 Oct 2007 03:04:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <30128834.1192172685094.JavaMail.jboss@colo-br-02.atl.jboss.com> No, I'm sorry, It was just cash... I still have wsdl contract protected with password. I added to my service only this: @SecurityDomain("e2edmwsSecurity") @WebContext(secureWSDLAccess = false) Maybe it is not enough? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094381#4094381 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094381 From do-not-reply at jboss.com Fri Oct 12 03:15:23 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Fri, 12 Oct 2007 03:15:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsprovide : NoClassDefFoundError: com/sun/codemodel/JExp Message-ID: <26864141.1192173323322.JavaMail.jboss@colo-br-02.atl.jboss.com> You're missing jaxb-xjc.jar file in classpath. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094384#4094384 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094384 From do-not-reply at jboss.com Fri Oct 12 08:09:48 2007 From: do-not-reply at jboss.com (ptenn10) Date: Fri, 12 Oct 2007 08:09:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <21982160.1192190988648.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, Thank you for posting the XML files and the fix to the build-deploy.xml. We are running jbossws 1.4 on JBoss AS 4.0.4GA. We are not using EJB3. Yesterday I attempted to upgrade to 2.0.1GA on my local development box. I applied the 3 fixes that were described in this post: [list=]Drop in jboss-service-no-ejb3.xml [list=]Drop in jboss-beans-no-ejb3.xml [list=]Modify line 53 in build-deploy.xml And was able to successfully run the deploy-jboss40 task. However, when I went to run, my server.log file has the following warning: 2007-10-12 07:34:25,492 WARN [org.jboss.ejb.EjbModule] Could not load the org.jboss.ws.integration.jboss.ServiceEndpointInterceptor interceptor | java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.ws.integration.jboss.ServiceEndpointInterceptor for every Stateless Session Bean that is deployed. Here is the full stacktrace for one of the Stateless Session Bean deployments: 2007-10-12 07:34:25,477 INFO [org.jboss.ejb.EjbModule] Deploying SBNotificationService | 2007-10-12 07:34:25,492 WARN [org.jboss.ejb.EjbModule] Could not load the org.jboss.ws.integration.jboss.ServiceEndpointInterceptor interceptor | java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.ws.integration.jboss.ServiceEndpointInterceptor | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511) | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.util.loading.DelegatingClassLoader.loadClass(DelegatingClassLoader.java:89) | at org.jboss.mx.loading.LoaderRepositoryClassLoader.loadClass(LoaderRepositoryClassLoader.java:90) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.util.loading.DelegatingClassLoader.loadClass(DelegatingClassLoader.java:89) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.ejb.EjbModule.addInterceptors(EjbModule.java:923) | at org.jboss.ejb.EjbModule.initializeContainer(EjbModule.java:810) | at org.jboss.ejb.EjbModule.createStatelessSessionContainer(EjbModule.java:614) | at org.jboss.ejb.EjbModule.createContainer(EjbModule.java:569) | at org.jboss.ejb.EjbModule.createService(EjbModule.java:344) | at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243) | 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.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.create(Unknown Source) | at org.jboss.system.ServiceController.create(ServiceController.java:330) | at org.jboss.system.ServiceController.create(ServiceController.java:273) | at sun.reflect.GeneratedMethodAccessor4.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 $Proxy25.create(Unknown Source) | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:641) | 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.jboss40.DeployerInterceptor.create(DeployerInterceptor.java:76) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) | 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 $Proxy26.create(Unknown Source) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) | at sun.reflect.GeneratedMethodAccessor58.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 $Proxy8.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.GeneratedMethodAccessor2.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:1007) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755) | 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:464) | at java.lang.Thread.run(Thread.java:595) | Has anyone else experienced this? Is jbossws-2.0.1 still using the class org.jboss.ws.integration.jboss.ServiceEndpointInterceptor? I found this interceptor referenced in conf/standardjboss.xml and thought about commenting it out, but wanted to get a better understanding before doing so. Thanks, Philip Tenn View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094507#4094507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094507 From do-not-reply at jboss.com Fri Oct 12 08:10:06 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Fri, 12 Oct 2007 08:10:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to get Exception inheritance in my WSDL.... Message-ID: <12497133.1192191006347.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#Customizing_WSDL_Schema_Generation_Using_WSProvide_Tool This should help you ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094509#4094509 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094509 From do-not-reply at jboss.com Fri Oct 12 08:33:12 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Fri, 12 Oct 2007 08:33:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <17425517.1192192392384.JavaMail.jboss@colo-br-02.atl.jboss.com> How did you get org.jboss.ws.integration.jboss.ServiceEndpointInterceptor? It should be org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094533#4094533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094533 From do-not-reply at jboss.com Fri Oct 12 09:08:05 2007 From: do-not-reply at jboss.com (fjump) Date: Fri, 12 Oct 2007 09:08:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - trouble calling web service Message-ID: <11839590.1192194485489.JavaMail.jboss@colo-br-02.atl.jboss.com> HI, i need help please, i got the following problem: when i made a call to the web service, appears the error avax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:317) org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:255) org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) $Proxy112.update(Unknown Source) com.blackbulltv.settopbox.web.MainMenu.doGet(MainMenu.java:109) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) im trying to discover what is the problem but i dont find any solution. this is the web service call here is where i made a call to the web service, extracting the URL from a xml file: BlackBullTvWebServices wsconf = new BlackBullTvWebServices(); String serv = wsconf.getPropertyValue("UpdateServiceURL"); URL url = new URL(serv); QName qname = new QName("urn:com.blackbulltv.server.ws", "UpdateService"); Service service = Service.create(url,qname); Update up = (Update)service.getPort(Update.class); temp = up.update(vVersion,component_name,pType); this is my xml file, that contain the URL of my web service. http://192.168.0.17:8080/com.blackbulltv.server/MenuWs?wsdl urn:com.blackbulltv.server.ws this is the web service client file: @WebServiceClient(name = "MainMenuWsService", targetNamespace = "urn:com.blackbulltv.server.ws", wsdlLocation = "http://localhost:8080/Update/MainMenuWs?wsdl") public class MainMenuWsService extends Service { private final static URL MAINMENUWSSERVICE_WSDL_LOCATION; static { URL url = null; try { url = new URL("http://localhost:8080/Update/MainMenuWs?wsdl"); } catch (MalformedURLException e) { e.printStackTrace(); } MAINMENUWSSERVICE_WSDL_LOCATION = url; } public MainMenuWsService(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } public MainMenuWsService() { super(MAINMENUWSSERVICE_WSDL_LOCATION, new QName("urn:com.blackbulltv.server.ws", "MainMenuWsService")); } /** * * @return * returns MainMenuWs */ @WebEndpoint(name = "MainMenuWsPort") public MainMenuWs getMainMenuWsPort() { return (MainMenuWs)super.getPort(new QName("urn:com.blackbulltv.server.ws", "MainMenuWsPort"), MainMenuWs.class); } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094556#4094556 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094556 From do-not-reply at jboss.com Fri Oct 12 12:35:54 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 12 Oct 2007 12:35:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <14631815.1192206954335.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, you need to also specify the authMethod and transportGuarantee. You can also take a look at the samples, in particular the jaxws-samples-context features this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094696#4094696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094696 From do-not-reply at jboss.com Fri Oct 12 13:24:12 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 12 Oct 2007 13:24:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Troble Connecting a client to web service Message-ID: <21490091.1192209852749.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, could you please provide us some more details (wsdl, SEI, etc). Generally speaking, I would suggest you to upgrade to jbossws 2.0.1.GA and use the jaxws tools to create the SEI and in/out classes that correctly fit the wsdl contract I think you need to remain unchanged. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094713#4094713 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094713 From do-not-reply at jboss.com Fri Oct 12 16:01:33 2007 From: do-not-reply at jboss.com (ptenn10) Date: Fri, 12 Oct 2007 16:01:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <579169.1192219293764.JavaMail.jboss@colo-br-02.atl.jboss.com> Richard, Thanks very much for your response. I downloaded a pure copy of the JBoss AS 4.0.4GA and compared default/conf/standardjboss.xml to our /conf/standardjboss.xml. It appears that in the pure 4.0.4GA, the interceptor is: org.jboss.ws.server.ServiceEndpointInterceptor and we had changed this to org.jboss.ws.integration.jboss.ServiceEndpointInterceptor when we upgraded to jbossws-1.4. Although I wasn't the person on our team who did this upgrade to jbossws-1.4, this is what I can gather based on subversion revision messages. So, as you suggested, I changed the interceptor to org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor in our /conf/standardjboss.xml: | | Standard Stateless SessionBean | false | stateless-rmi-invoker | | org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor | org.jboss.ejb.plugins.LogInterceptor | org.jboss.ejb.plugins.SecurityInterceptor | | org.jboss.ejb.plugins.TxInterceptorCMT | org.jboss.ejb.plugins.CallValidationInterceptor | org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor | org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor | | org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor | org.jboss.ejb.plugins.TxInterceptorBMT | org.jboss.ejb.plugins.CallValidationInterceptor | org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor | org.jboss.resource.connectionmanager.CachedConnectionInterceptor | | org.jboss.ejb.plugins.StatelessSessionInstancePool | | | | 100 | | | | | Clustered Stateless SessionBean | false | clustered-stateless-rmi-invoker | | org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor | org.jboss.ejb.plugins.CleanShutdownInterceptor | org.jboss.ejb.plugins.LogInterceptor | org.jboss.ejb.plugins.SecurityInterceptor | | org.jboss.ejb.plugins.TxInterceptorCMT | org.jboss.ejb.plugins.CallValidationInterceptor | org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor | org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor | | org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor | org.jboss.ejb.plugins.TxInterceptorBMT | org.jboss.ejb.plugins.CallValidationInterceptor | org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor | org.jboss.resource.connectionmanager.CachedConnectionInterceptor | | org.jboss.ejb.plugins.StatelessSessionInstancePool | | | | 100 | | | ${jboss.partition.name:DefaultPartition} | | | However, this class is not found either. I get the exception 2007-10-12 15:40:44,728 WARN [org.jboss.ejb.EjbModule] Could not load the org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor interceptor | java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor | Could you tell me which JAR this class (org.jboss.ws.integration.jboss40.ServiceEndpointInterceptor) is supposed to reside in? I've tried going through the JARs inside the jbossws.sar directory, but have not been able to find it. Thanks again for your help! Philip Tenn View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094763#4094763 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094763 From do-not-reply at jboss.com Sat Oct 13 12:56:22 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Sat, 13 Oct 2007 12:56:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - I don't succeded installing jbossws2.0.1 please help me I ne Message-ID: <20472172.1192294583006.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, I have been trying for 3 days to install jbossws with jboss42. Before I had jdk6 now I have the jdk5, I have downloaded the jbossws 2.0.1 native and I have followed the instruction but I have this error and I don't know how risolving. The errore is the following: | | BUILD FAILED | C:\jbossws-src-2.0.1.GA\ant-import\build-deploy.xml:84: The following error occu | rred while executing this line: | C:\jbossws-src-2.0.1.GA\ant-import\macros-deploy-native.xml:385: Directory does | not exist:C:\jbossws-src-2.0.1.GA\jboss-4.2.1.GA\lib\endorsed | | Total time: 7 seconds | The path of jboss42 I have setted in ant.propertis is the following: | jboss42.home= C:\jboss-4.2.1.GA | jbossws is the directory C:\jbossws-src-2.0.1.GA The macros-deploy-native.xml:385 is line with *: | | | | * | | | | | | | | | | Why does it search jboss-4.2.1.GA\lib\endorsed in the directory of jbossws and not in jboss42 directory? What does I wrong? How can I resolve? I need jbossws, please help me! Thanks to all. Bye Bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094890#4094890 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094890 From do-not-reply at jboss.com Sat Oct 13 14:41:17 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Sat, 13 Oct 2007 14:41:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: I don't succeded installing jbossws2.0.1 please help me Message-ID: <16054207.1192300877316.JavaMail.jboss@colo-br-02.atl.jboss.com> I have resolved the problem, in the path of jboss42 it lacks a \, in fact I wrote C:\jboss-4.2.1.GA instead C:\\jboss-4.2.1.GA, writing C:\\jboss-4.2.1.GA all works. Thanks to all and excuse me. Bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094907#4094907 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094907 From do-not-reply at jboss.com Sun Oct 14 04:03:37 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 14 Oct 2007 04:03:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problems with installation of jbossws2.0.1 on jboss4.2.1 Message-ID: <1340948.1192349017779.JavaMail.jboss@colo-br-02.atl.jboss.com> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094907 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094950#4094950 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094950 From do-not-reply at jboss.com Sun Oct 14 04:22:56 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 14 Oct 2007 04:22:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jax-rpc/wstools genereate problem Message-ID: <22334643.1192350176434.JavaMail.jboss@colo-br-02.atl.jboss.com> Starting from some months ago, the JBossWS team is putting his main effort into JAXWS. However, you might create a minimal application reproducing this problem and attach it to a new Jira issue. This way somebody from the community may try to fix the potential bug into the codebase. Apart from this, considering you're dealing with migration issues due to the AS upgrade, I would really suggest you to evaluate switching to jaxws (also upgrading to the latest jbossws release); here http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_vs_JAX-RPC you can find a brief introduction explaining why this might be a good idea. Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094951#4094951 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094951 From do-not-reply at jboss.com Sun Oct 14 04:42:10 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 14 Oct 2007 04:42:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ClassCastException @ BaseDeserializerFactory.getSpeciali Message-ID: <1969159.1192351330616.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, can't remember of it; moreover as you said, setting the username/pwd into the stub should not cause this. If migrating to a more recent jboss application server and ws stack is not affordable for you, in order to understand what's happening I would suggest you to capture the soap messages being exchanged. This way you might see what is really changing and that could drive you to understand where is the problem. If you still think there's a bug, you can nevertheless create a minimal application reproducing the problem and attach it to a new jira issue, however keep in mind that the team is putting his main effort into the jaxws development, thus your potential issue might have to be handled by the community. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094953#4094953 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094953 From do-not-reply at jboss.com Sun Oct 14 04:54:28 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 14 Oct 2007 04:54:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java Message-ID: <25008877.1192352068592.JavaMail.jboss@colo-br-02.atl.jboss.com> "nirre" wrote : then one included in jboss 4.2 - jbossws-1.2.1.GA (build=200704151756) | | I have another problem now. Wstool now (with the above mentioned version) generates "strange array data types" in the jax-rpc file (and it does not generate the corresponding java files) - they where not generated when using the jbossws 1.03 (the one incuded in jboss 4.0.5)... | | At runtime I know get errors like: | [EndpointMetaData] Cannot load class for type: {http://company.com/theIntegration}ArrayOfOpportunityID,com.company.theIntegration.ArrayOfOpportunityID | | and then I get a: | | RemoteException occured when invoking web service method!java.rmi.RemoteException: Call invocation failed; nested exception is: | | java.io.IOException: Could not transmit message | | This seems to me the same as http://www.jboss.com/index.html?module=bb&op=viewtopic&t=120947. I also invite you to create a minimal application reproducing the bug and attaching it to a new tools-jaxrpc jira issue. Then the community might take care of it. Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094955#4094955 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094955 From do-not-reply at jboss.com Sun Oct 14 05:19:41 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 14 Oct 2007 05:19:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deploying 2 web services on JBossWS, and getting differe Message-ID: <15172665.1192353581405.JavaMail.jboss@colo-br-02.atl.jboss.com> Issue created on Jira: http://jira.jboss.com/jira/browse/JBWS-1855 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094959#4094959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094959 From do-not-reply at jboss.com Sun Oct 14 05:26:08 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 14 Oct 2007 05:26:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Stop Empty SOAP elements Message-ID: <15542750.1192353968991.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you please capture a soap message exchange showing this and post it here along with the wsdl contract and the stack/version you're using both on client and server side? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094961#4094961 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094961 From do-not-reply at jboss.com Sun Oct 14 05:52:00 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 14 Oct 2007 05:52:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: soap message not correct? Message-ID: <836333.1192355520564.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, the soap message payload does not match with the specified wsdl. From which version of JBossWS is the wsconsume you're using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094964#4094964 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094964 From do-not-reply at jboss.com Sun Oct 14 06:07:02 2007 From: do-not-reply at jboss.com (nirre) Date: Sun, 14 Oct 2007 06:07:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstool jboss 4.05 vs jboss 4.2.0GA wsdl-java Message-ID: <16453277.1192356422592.JavaMail.jboss@colo-br-02.atl.jboss.com> I rewrote the build script and used wsconsume instead and had to rewrite some of my beans etc etc, but eventually I got it working. I still think the change of behaviour of the wtools is strange. thanks anyway. /niclas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094968#4094968 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094968 From do-not-reply at jboss.com Sun Oct 14 06:13:06 2007 From: do-not-reply at jboss.com (nirre) Date: Sun, 14 Oct 2007 06:13:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jax-rpc/wstools genereate problem Message-ID: <33115796.1192356786583.JavaMail.jboss@colo-br-02.atl.jboss.com> I actually did just that ;) Now I use the wsconsume tool instead and rewrote the build script and the bean code that handled all the method/attribute "passing". I think jax-ws is simpler with than jaxrpc, it feels more flexible and simpler - dont have to handle all the unwrapping of the types etc. The bad thing is it took time and I have to test all the core again.. but atleast i learned some new stuff ;) /nirre View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094972#4094972 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094972 From do-not-reply at jboss.com Sun Oct 14 08:34:35 2007 From: do-not-reply at jboss.com (Vincent321) Date: Sun, 14 Oct 2007 08:34:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WSSecurity Username token Message-ID: <9207595.1192365275312.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, Could you please tell me how to protect a web service with username token ? I am not able to find any sample. Many thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094988#4094988 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094988 From do-not-reply at jboss.com Sun Oct 14 11:15:55 2007 From: do-not-reply at jboss.com (nickarls) Date: Sun, 14 Oct 2007 11:15:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Encoding problem Message-ID: <4001341.1192374955361.JavaMail.jboss@colo-br-02.atl.jboss.com> Any theories as to why the wsdl file is correctly encoded but the .xsd is not? Since they both are generated from the same information, one would assume the encodings would match(?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095003#4095003 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095003 From do-not-reply at jboss.com Sun Oct 14 22:26:46 2007 From: do-not-reply at jboss.com (PeterJ) Date: Sun, 14 Oct 2007 22:26:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSSecurity Username token Message-ID: <21975034.1192415206398.JavaMail.jboss@colo-br-02.atl.jboss.com> See http://labs.jboss.com/jbossws/docs/jaxws_userguide-2.0/index.html#d0e1165 Also, there was an earlier discussion at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=120353 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095065#4095065 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095065 From do-not-reply at jboss.com Mon Oct 15 02:35:36 2007 From: do-not-reply at jboss.com (sameerean) Date: Mon, 15 Oct 2007 02:35:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unsupported content type: application/x-www-form-urlenco Message-ID: <14313745.1192430136899.JavaMail.jboss@colo-br-02.atl.jboss.com> Florian, I am also facing the same problem on weblogic 8.1, with spring-webservices. Could you elaborate, how have you resolved this issue ? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095095#4095095 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095095 From do-not-reply at jboss.com Mon Oct 15 02:59:50 2007 From: do-not-reply at jboss.com (rukus) Date: Mon, 15 Oct 2007 02:59:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web service call or javax.xml.bind.JAXBException Message-ID: <9108909.1192431590818.JavaMail.jboss@colo-br-02.atl.jboss.com> No replies so far? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095099#4095099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095099 From do-not-reply at jboss.com Mon Oct 15 03:52:27 2007 From: do-not-reply at jboss.com (richard_opalka) Date: Mon, 15 Oct 2007 03:52:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <20063059.1192434747063.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry for mistake. The correct class name is: org.jboss.wsf.container.jboss40.ServiceEndpointInterceptor Another important fact is we have tested JBossWS 2.0.1 on JBoss 4.0.5 GA not JBoss 4.0.4 GA. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095109#4095109 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095109 From do-not-reply at jboss.com Mon Oct 15 04:38:30 2007 From: do-not-reply at jboss.com (jtestori) Date: Mon, 15 Oct 2007 04:38:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: soap message not correct? Message-ID: <23186731.1192437510301.JavaMail.jboss@colo-br-02.atl.jboss.com> tested with 1.2.1 and 2.0.1. then i deployed jbossws-2.0.1, same problem. strange thing is that it works when i use the generated classes it in a simple main-class without jboss, so i guess there must be a classpath-problem. but i don't deploy any webservice-related jar-file together with my application. maybe the generated source code can help: | package com.shark.ewob.services.approveactivity; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | | /** | * This class was generated by the JAX-WS RI. | * JAX-WS RI 2.1.1-b03- | * Generated source version: 2.0 | * | */ | @WebService(name = "ApproveActivity", targetNamespace = "http://xmlns.oracle.com/ApproveActivity") | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) | public interface ApproveActivity { | | | /** | * | * @param payload | * @return | * returns com.shark.ewob.services.approveactivity.ApproveActivityOUT | */ | @WebMethod(action = "process") | @WebResult(name = "ApproveActivityOUT", targetNamespace = "http://www.example.org", partName = "payload") | public ApproveActivityOUT process( | @WebParam(name = "ApproveActivityIN", targetNamespace = "http://www.example.org", partName = "payload") | ApproveActivityIN payload); | | } | | | package com.shark.ewob.services.approveactivity; | | import java.net.MalformedURLException; | import java.net.URL; | import javax.xml.namespace.QName; | import javax.xml.ws.Service; | import javax.xml.ws.WebEndpoint; | import javax.xml.ws.WebServiceClient; | | | /** | * This class was generated by the JAX-WS RI. | * JAX-WS RI 2.1.1-b03- | * Generated source version: 2.0 | * | */ | @WebServiceClient(name = "ApproveActivity", targetNamespace = "http://xmlns.oracle.com/ApproveActivity", wsdlLocation = "http://localhost:8888/orabpel/default/ApproveActivity/1.0/ApproveActivity?wsdl") | public class ApproveActivity_Service | extends Service | { | | private final static URL APPROVEACTIVITY_WSDL_LOCATION; | | static { | URL url = null; | try { | url = new URL("http://localhost:8888/orabpel/default/ApproveActivity/1.0/ApproveActivity?wsdl"); | } catch (MalformedURLException e) { | e.printStackTrace(); | } | APPROVEACTIVITY_WSDL_LOCATION = url; | } | | public ApproveActivity_Service(URL wsdlLocation, QName serviceName) { | super(wsdlLocation, serviceName); | } | | public ApproveActivity_Service() { | super(APPROVEACTIVITY_WSDL_LOCATION, new QName("http://xmlns.oracle.com/ApproveActivity", "ApproveActivity")); | } | | /** | * | * @return | * returns ApproveActivity | */ | @WebEndpoint(name = "ApproveActivityPort") | public ApproveActivity getApproveActivityPort() { | return (ApproveActivity)super.getPort(new QName("http://xmlns.oracle.com/ApproveActivity", "ApproveActivityPort"), ApproveActivity.class); | } | | } | | package com.shark.ewob.services.approveactivity; | | 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. | * | *

  |  * 
  |  *   
  |  *     
  |  *       
  |  *         
  |  *           
  |  *             
  |  *               
  |  *             
  |  *           
  |  *         
  |  *         
  |  *           
  |  *             
  |  *               
  |  *               
  |  *             
  |  *           
  |  *         
  |  *         
  |  *           
  |  *             
  |  *               
  |  *             
  |  *           
  |  *         
  |  *         
  |  *           
  |  *             
  |  *               
  |  *             
  |  *           
  |  *         
  |  *       
  |  *     
  |  *   
  |  * 
  |  * 
| * | * | */ | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "", propOrder = { | "activityId", | "action", | "approverId", | "comment" | }) | @XmlRootElement(name = "ApproveActivityIN") | public class ApproveActivityIN { | | protected int activityId; | @XmlElement(required = true) | protected String action; | protected int approverId; | @XmlElement(required = true) | protected String comment; | | /** | * Gets the value of the activityId property. | * | */ | public int getActivityId() { | return activityId; | } | | /** | * Sets the value of the activityId property. | * | */ | public void setActivityId(int value) { | this.activityId = value; | } | | /** | * Gets the value of the action property. | * | * @return | * possible object is | * {@link String } | * | */ | public String getAction() { | return action; | } | | /** | * Sets the value of the action property. | * | * @param value | * allowed object is | * {@link String } | * | */ | public void setAction(String value) { | this.action = value; | } | | /** | * Gets the value of the approverId property. | * | */ | public int getApproverId() { | return approverId; | } | | /** | * Sets the value of the approverId property. | * | */ | public void setApproverId(int value) { | this.approverId = value; | } | | /** | * Gets the value of the comment property. | * | * @return | * possible object is | * {@link String } | * | */ | public String getComment() { | return comment; | } | | /** | * Sets the value of the comment property. | * | * @param value | * allowed object is | * {@link String } | * | */ | public void setComment(String value) { | this.comment = value; | } | | } | | package com.shark.ewob.services.approveactivity; | | 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. | * | *

  |  * 
  |  *   
  |  *     
  |  *       
  |  *         
  |  *           
  |  *             
  |  *               
  |  *               
  |  *             
  |  *           
  |  *         
  |  *         
  |  *       
  |  *     
  |  *   
  |  * 
  |  * 
| * | * | */ | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "", propOrder = { | "result", | "message" | }) | @XmlRootElement(name = "ApproveActivityOUT") | public class ApproveActivityOUT { | | @XmlElement(required = true) | protected String result; | @XmlElement(required = true, nillable = true) | protected String message; | | /** | * Gets the value of the result property. | * | * @return | * possible object is | * {@link String } | * | */ | public String getResult() { | return result; | } | | /** | * Sets the value of the result property. | * | * @param value | * allowed object is | * {@link String } | * | */ | public void setResult(String value) { | this.result = value; | } | | /** | * Gets the value of the message property. | * | * @return | * possible object is | * {@link String } | * | */ | public String getMessage() { | return message; | } | | /** | * Sets the value of the message property. | * | * @param value | * allowed object is | * {@link String } | * | */ | public void setMessage(String value) { | this.message = value; | } | | } | | | package com.shark.ewob.services.approveactivity; | | import javax.xml.bind.annotation.XmlRegistry; | | | /** | * This object contains factory methods for each | * Java content interface and Java element interface | * generated in the com.shark.ewob.services.approveactivity package. | *

An ObjectFactory allows you to programatically | * construct new instances of the Java representation | * for XML content. The Java representation of XML | * content can consist of schema derived interfaces | * and classes representing the binding of schema | * type definitions, element declarations and model | * groups. Factory methods for each of these are | * provided in this class. | * | */ | @XmlRegistry | public class ObjectFactory { | | | /** | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.shark.ewob.services.approveactivity | * | */ | public ObjectFactory() { | } | | /** | * Create an instance of {@link ApproveActivityOUT } | * | */ | public ApproveActivityOUT createApproveActivityOUT() { | return new ApproveActivityOUT(); | } | | /** | * Create an instance of {@link ApproveActivityIN } | * | */ | public ApproveActivityIN createApproveActivityIN() { | return new ApproveActivityIN(); | } | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095130#4095130 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095130 From do-not-reply at jboss.com Mon Oct 15 06:03:07 2007 From: do-not-reply at jboss.com (nickarls) Date: Mon, 15 Oct 2007 06:03:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsse performance Message-ID: <14551184.1192442587033.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Where in the documentation can I read about factors affecting performance? I have a signed and encrypted WS call that takes about 400ms (actual work time is negligable) and would like to know what affects the wall clock time performance most. The signing? Key length? Something else? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095165#4095165 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095165 From do-not-reply at jboss.com Mon Oct 15 06:58:09 2007 From: do-not-reply at jboss.com (ptenn10) Date: Mon, 15 Oct 2007 06:58:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <6749449.1192445889554.JavaMail.jboss@colo-br-02.atl.jboss.com> Richard, Thank you again for all of your help. I changed my conf/standardjboss.xml to use: org.jboss.wsf.container.jboss40.ServiceEndpointInterceptor and no longer get the exceptions during deployment. anonymous wrote : Another important fact is we have tested JBossWS 2.0.1 on JBoss 4.0.5 GA not JBoss 4.0.4 GA. I'll be doing a lot of testing on Jboss 4.0.4 GA, so I can definitely post successful results and/or issues I run into. Thanks, Philip Tenn View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095184#4095184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095184 From do-not-reply at jboss.com Mon Oct 15 08:33:24 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Mon, 15 Oct 2007 08:33:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain java type mappin Message-ID: <4720254.1192451604229.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Thank you for your suggestion alessio.soldano. I have resolved this issue.yes,it is related to mapping of xml artifacts,java classes by using jbossws 1.0.4. I am also using the interfaces/classes generated by Weblogic.I must use these interfaces/classes which were generated by weblogic.I should not use classes generated by tools provided by jboss. This is my requirement.It deployed successfully.It published the WSDL file and i am able to view WSDL file. Now when i run the client initially i got the following exception jboss.ws.WSException: Cannot find java method: processVendorOrder at org.jboss.ws.metadata.OperationMetaData.getJavaMethod(OperationMetaData.java:213) at org.jboss.ws.binding.EndpointInvocation.getJavaMethod(EndpointInvocation.java:82) at org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:87) at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115) at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209) at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355) at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) Then i modified jaxrpc-mapping.xml file such that it refers exact classes. This exception i got because weblogic uses XMLBeans to generate interfaces/classes the implementation classes for the interfaces were there in under impl directory so i have modified jaxrpc-mapping.xml to refer for the classes under impl directory. But now i am getting different exception Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Neither fromValue(java.lang.String p) nor fromValue(java.lang.String p1, javax.xml.namespace.NamespaceContext p2) were found in interface com.covad.xsd.smo.vendororder.AreaCode at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtUtil.invokeUnmarshalMethod(RtUtil.java:350) at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtCharactersHandler.unmarshal(RtCharactersHandler.java:104) at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:872) at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:160) at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.endElement(SaxJBossXBParser.java:295) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:174) ... 34 more I think from the stack trace i understood that it is referring to interface and not to actual implementation class.AreaCode is a simple type. I want to know wheather jbossws supports XMLBeans or not? If supports ,which version of jbossws supports XMLBeans. Please help me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095212#4095212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095212 From do-not-reply at jboss.com Mon Oct 15 09:20:24 2007 From: do-not-reply at jboss.com (ptenn10) Date: Mon, 15 Oct 2007 09:20:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <1218487.1192454424974.JavaMail.jboss@colo-br-02.atl.jboss.com> PS one more question: I recall reading that jbossws 2.1 is going to support Apache CXF as a native stack. Do you know approximately when jbossws 2.1 might go GA? The main driving factor that has been pushing our upgrade from jbossws 1.4 to 2.0.1 GA has been the compatibility issues I encountered with jbossws 1.4 and Apache CXF. If jbossws 2.1 is on the very near horizon, I might push for waiting for that instead of trying to integrate CXF with jboss 2.0.1 GA. Thanks, Philip Tenn View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095241#4095241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095241 From do-not-reply at jboss.com Mon Oct 15 11:37:30 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Mon, 15 Oct 2007 11:37:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problems with wstools Message-ID: <28702359.1192462650272.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I've many problems with the tools in the bin directory of jbossws2.1, when I try to start wsprovide or wstools or wsconsume I receve an error message like this: | C:\Documents and Settings\Angelo>wsprovide | Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/wsf/spi/too | ls/cmd/WSProvide | But if I try to run java org.jboss.wsf.spi.tools.cmd.WSProvide manually it run, why? Another question when I try to generate jax-ws artifacts I have this problem: | C:\Documents and Settings\Angelo\workspace\WebServiceJbossWS>java org.jboss.wsf. | spi.tools.cmd.WSProvide -w somma.Somma | Error: Could not load class [somma.Somma]. Did you specify a valid --classpath? | In the directory somma there's the file Somma.class. Thanks to all. Bye Bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095291#4095291 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095291 From do-not-reply at jboss.com Mon Oct 15 14:26:56 2007 From: do-not-reply at jboss.com (kgoral) Date: Mon, 15 Oct 2007 14:26:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WS-BPEL with JAX-WS services Message-ID: <2421064.1192472816566.JavaMail.jboss@colo-br-02.atl.jboss.com> I've read in User Guide of JBossWS that JAX-WS doesn't suppport WS-BPEL. There is no further explanation. Does anybody know why ? I still would like to pack my jax-ws services in some BPEL process. Do you know how to do this? I would be gratefull for any kind of articles, links, tutorials and tips on the matter... thanks, Kasia View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095364#4095364 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095364 From do-not-reply at jboss.com Mon Oct 15 16:17:57 2007 From: do-not-reply at jboss.com (Vincent321) Date: Mon, 15 Oct 2007 16:17:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSSecurity Username token Message-ID: <14789600.1192479477816.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Peter, But the conversation and example are related to x509 token :-( I want the web service to handle such an header : | | 2007-10-14T12:45:34.656Z | 2007-10-14T12:46:34.656Z | | | test | test | | Thanks, Vincent View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095395#4095395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095395 From do-not-reply at jboss.com Mon Oct 15 16:40:07 2007 From: do-not-reply at jboss.com (pranav.akiri) Date: Mon, 15 Oct 2007 16:40:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Multithreading in Jboss 4.0.1 Message-ID: <8094487.1192480809535.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, We are trying to connect to a third party webservice to propagate the changes to the thirdparty system(in the suggeted JNDI look up pattern described in the jboss-webservice tutorial and it is working fine) Since the number of propagation updates are large,now we wanted to have parallel updates to the third party system,which is like having a master thread creaing few child threads,each will take,say 1000 records and updates in the 3rd party system using the webservices in parallel. Now,we are having an issue while using multiple threads.If I understand correctly,I guess the issue is because,we are sharing websevice client name registered in the JNDI,and it is giving exceptions. Has anyone have any idea of how can invoke multi threading with webservices.In the other way,we are trying to have multiple threads connecting the same webservice concurrently in the same appserver. we are using JBoss 4.0.1 and jdk 1.4 Any suggestions would be appreciated.Following is the code snippet for conencting to webservices: ========================================== private boolean connect() throws Exception { if(!isConnected) { Properties env = new Properties(); env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client:org.jboss.naming"); env.setProperty(Context.PROVIDER_URL, JNDI_URL); env.setProperty("j2ee.clientName", "nn-ws4ee-client"); try { InitialContext iniCtx = new InitialContext(env); Service service = (Service)iniCtx.lookup(NN_CLIENT_JNDI_NAME); nrdInterface = (NRD)service.getPort(NRD.class); ((Stub)nrdInterface)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url); isConnected = true; } catch(Exception exc) { logger.fatal("NN Client Wrapper initialization exception. " + "The JNDI may not be correctly configured as follows: JNDI Location: " + JNDI_URL + " NN Client JNDI Name: " + NN_CLIENT_JNDI_NAME); logger.fatal("NN Client Wrapper initialization exception:", exc); isConnected = false; throw exc; } } return isConnected; } ============================ Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095404#4095404 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095404 From do-not-reply at jboss.com Tue Oct 16 04:50:19 2007 From: do-not-reply at jboss.com (qu) Date: Tue, 16 Oct 2007 04:50:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - how can I run jbossws2.0.1 on tomcat Message-ID: <23605038.1192524619424.JavaMail.jboss@colo-br-02.atl.jboss.com> I have run jbossws1.2.1 on tomcat successfully, but how to run jbossws2.0.1 on tomcat? thanks very much View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095518#4095518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095518 From do-not-reply at jboss.com Tue Oct 16 05:06:00 2007 From: do-not-reply at jboss.com (burakbayramli) Date: Tue, 16 Oct 2007 05:06:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cannot obtain wsdl service (problem in JBoss 4.2 used to wor Message-ID: <23459699.1192525560906.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the following code that used to work in JBoss 4.0.4GA. After port to 4.2, server complained about "context roots being different, so I added @WebContext to all web services. Now server is fine, I can see the WSDL, but I cannot connect to the server using a Java client. | @WebService | @SOAPBinding(style=Style.RPC) | public interface Calculator extends Remote | { | @WebMethod int add(int x, int y); | | @WebMethod int subtract(int x, int y); | } | | @Stateless | @WebService(name="CalculatorService",serviceName="CalculatorService",endpointInterface="org.bilgidata.kitapdemo.service.Calculator") | @WebContext(contextRoot="/ggServices") | public class CalculatorBean implements Calculator | { | public int add(int x, int y) | { | System.out.println("inside add"); | return x + y; | } | | public int subtract(int x, int y) | { | System.out.println("inside subtract"); | return x - y; | } | } | | public class Client | { | public static void main(String[] args) throws Exception | { | URL url = new URL("http://localhost:8080/ggServices/CalculatorBean?wsdl"); | QName qname = new QName("http://localhost:8080/ggServices/CalculatorBean", | "CalculatorService"); | | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, qname); | | Calculator calculator = (Calculator) service.getPort(Calculator.class); | | System.out.println("1 + 1 = " + calculator.add(1, 1)); | System.out.println("1 - 1 = " + calculator.subtract(1, 1)); | } | } | The WSDL looks like | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Exception in thread "main" java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ggServices/CalculatorBean}CalculatorService | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:171) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:133) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:85) | at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111) | at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) | at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) | at org.bilgidata.kitapdemo.service.Client.main(Client.java:18) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095525#4095525 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095525 From do-not-reply at jboss.com Tue Oct 16 08:58:37 2007 From: do-not-reply at jboss.com (CarstenRudat) Date: Tue, 16 Oct 2007 08:58:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - SessionBean as WebService - again complex data structures Message-ID: <18392131.1192539517203.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, I have a SLSB and want it to be accessable through a webservice. So I write | package com.genloop.ejb.beans.service; | | import javax.ejb.Remote; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | @WebService | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) | @Remote | public interface PartnerWebService extends java.rmi.Remote{ | | @WebMethod | public String sayHello(String hello); | | } | and | package com.genloop.ejb.beans.service; | | import java.util.Date; | | import javax.ejb.Remote; | import javax.ejb.Stateless; | import javax.interceptor.Interceptors; | import javax.jws.WebService; | | import org.jboss.annotation.ejb.RemoteBinding; | import org.jboss.annotation.security.SecurityDomain; | | import com.genloop.ejb.commons.SecurityInterceptor; | import com.genloop.ejb.commons.UserInterceptor; | | @Stateless | @Remote(PartnerWebService.class) | @SecurityDomain("...") | @org.jboss.annotation.ejb.Clustered | @RemoteBinding(jndiBinding="test/PartnerWebService/remote") | @Interceptors({UserInterceptor.class, SecurityInterceptor.class}) | @WebService(endpointInterface="com.genloop.ejb.beans.service.PartnerWebService", serviceName="PartnerService") | public class PartnerWebServiceBean implements PartnerWebService { | | public String sayHello(String hello) { | return hello; | } | | } | My Client works well: | public class PartnerWSClient { | | public static void main(String[] args) { | try { | URL url = new URL("http://localhost:8080/test-ea-test-service/PartnerWebServiceBean?wsdl"); | QName qname = new QName("http://service.beans.ejb.genloop.com/", "PartnerService"); | | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, qname); | | PartnerWebService partnerService = (PartnerWebService)service.getPort(PartnerWebService.class); | | System.out.println(partnerService.sayHello("test")); | } catch (MalformedURLException e) { | e.printStackTrace(); | } catch (ServiceException e) { | e.printStackTrace(); | } | } | } | But now, I add another mehtod: | public ComplexObject getComplexObject() { | return new ComplexObject(new Date(), "test"); | } | | ... | | @WebMethod | public ComplexObject getComplexObject(); | | ... | | public class ComplexObject implements Serializable { | | protected Date date; | | protected String string; | | public ComplexObject() { | } | | getter/setter | } | No, I just get this exception: | Cannot obtain java/xml type mapping for: {http://service.beans.ejb.genloop.com/}complexObject | I use JBoss 4.2.1 and updated JBoss Web Services to version 2.0. And my question is: What am I doing wrong? Is there any way to get user datastructures work? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095598#4095598 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095598 From do-not-reply at jboss.com Tue Oct 16 10:05:39 2007 From: do-not-reply at jboss.com (tvvenu) Date: Tue, 16 Oct 2007 10:05:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error with JbossWS in JbossAS 4.0.4 Message-ID: <8887433.1192543539825.JavaMail.jboss@colo-br-02.atl.jboss.com> pls give me solution for this error ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing: while accessing the jsp page using jboss server View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095637#4095637 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095637 From do-not-reply at jboss.com Tue Oct 16 11:50:31 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 16 Oct 2007 11:50:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error with JbossWS in JbossAS 4.0.4 Message-ID: <16053336.1192549831622.JavaMail.jboss@colo-br-02.atl.jboss.com> tvvenu, please do not add unrelated questions to someone else's post, it is considered rude. Second, you have the wrong forum. This forum is for web services. Third, it is impossible to determine the cause without a stack trace. Finally, ask your question in "Beginner's Corner", and post the stack trace that shows up in the console window (stack traces that show up in the browser are typically useless). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095704#4095704 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095704 From do-not-reply at jboss.com Tue Oct 16 14:05:53 2007 From: do-not-reply at jboss.com (ptenn10) Date: Tue, 16 Oct 2007 14:05:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Results: jboss-4.0.4 AS and jbossws-2.0.1 Integration Message-ID: <20779607.1192557953089.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, Well, thanks to help from Richard's posts, I was able to get jboss-4.0.4 AS working with jbossws-2.0.1. I was still getting an error: anonymous wrote : | java.lang.NoSuchMethodError: javax.xml.bind.JAXBContext.newInstance([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext; However, I tracked this down to the fact that jboss-4.0.4 AS ships with JAXB 1.x (not sure exact version, but I checked method signatures and know it is prior to JAXB 2), and jboss-ws 2.0.1 requires JAXB 2. A JIRA entry by Thomas also confirms this: http://jira.jboss.com/jira/browse/JBWS-947 If I do as Thomas suggested and drop in the jaxb-api.jar into the endorsed directory, it works. I did verify this, as a test. However, this is not a viable solution for us, nor is modifying the contents of the jboss-j2ee.jar and jbossall-client.jar. So basically I've reached a dead-end in terms of jboss-4.0.4 and jbossws-2.0.1 integration. Hopefully this information will be useful for someone who is trying to run jboss-4.0.4 AS with jbossws-2.0.1 and is able to make one of the two fixes described in http://jira.jboss.com/jira/browse/JBWS-947 As for me ... I'll have to look toward going to jboss-4.2.x AS and hopefully there won't be a JAXB conflict there, or look into another Web Services implementation. Thanks, Philip Tenn View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095749#4095749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095749 From do-not-reply at jboss.com Tue Oct 16 20:12:28 2007 From: do-not-reply at jboss.com (KuppanChinna1979) Date: Tue, 16 Oct 2007 20:12:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws.1.2.1.GA... JNDI Bind Failed:JAXR Message-ID: <3564126.1192579948935.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, The [JUDDIService] JNDI Bind Failed:JAXR error comes when BindJaxr in "jboss-4.0.4.GA/server/default//deploy/juddi-service.sar/meta-inf/jboss-service.xml" is not set correctly false true false java:/DefaultDS RegistryOperator true java:/JAXR false jboss.jca:service=DataSourceBinding,name=DefaultDS If you have both the web service consumer and producer in the same VM BindJaxr should be java:/JAXR If web service consumer and producer are in different VM BindJaxr should be JAXR If BindJaxr is not set properly as per the above condition JNDI bind for JAXR would fail thanks, Nirmala View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095838#4095838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095838 From do-not-reply at jboss.com Tue Oct 16 21:27:33 2007 From: do-not-reply at jboss.com (aaronwell) Date: Tue, 16 Oct 2007 21:27:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Class name case incorrect in generated client artifacts Message-ID: <28076164.1192584453290.JavaMail.jboss@colo-br-02.atl.jboss.com> Why do I still have this problem in JBossWS 1.2.0? I can not find the detailed information here, so can you let me know how I use it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095848#4095848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095848 From do-not-reply at jboss.com Tue Oct 16 21:30:40 2007 From: do-not-reply at jboss.com (qu) Date: Tue, 16 Oct 2007 21:30:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how can I run jbossws2.0.1 on tomcat Message-ID: <12321226.1192584640805.JavaMail.jboss@colo-br-02.atl.jboss.com> nobody can help me View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095849#4095849 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095849 From do-not-reply at jboss.com Wed Oct 17 02:08:57 2007 From: do-not-reply at jboss.com (lynquan) Date: Wed, 17 Oct 2007 02:08:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How Can I Make my JBoss Application Server Support JAX-WS? Message-ID: <23698896.1192601337623.JavaMail.jboss@colo-br-02.atl.jboss.com> my env is: JBoss 4.2.1.GA JBossws-native-2.0.1.GA JDK 1.5.12 while I run the command: ant deploy-jboss42 there cause an error such as: BUILD FAILED C:\JBOSSW~1.GA\build\build-deploy.xml:58: The following error occurred while executing this line: C:\JBOSSW~1.GA\build\macros-deploy-native.xml:178:Not availabel:/home/tdiesler/svn/jbossas/tags/jboss_4_2_1_GA/build/output/jboss-4.2.1.GA/client/jboss-client.jar How can I deal with it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095884#4095884 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095884 From do-not-reply at jboss.com Wed Oct 17 03:11:07 2007 From: do-not-reply at jboss.com (Christy) Date: Wed, 17 Oct 2007 03:11:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <25302066.1192605067968.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : Yes, you need to also specify the authMethod and transportGuarantee. You can also take a look at the samples, in particular the jaxws-samples-context features this I'm sorry, I'm here again. I still have the same problem, WSDL pritected with password. Please look at my code once again: Web service code: @WebService @SOAPBinding(style = SOAPBinding.Style.RPC) @WebContext(authMethod = "BASIC", transportGuarantee="NONE", secureWSDLAccess = false) @SecurityDomain("e2edmwsSecurity") @Stateless public class e2edm_metadata_ws implements e2edmnwsInterface{ } web.xml file: e2edm_metadata_ws metadata.e2edm.e2edm_metadata_ws e2edm_metadata_ws /e2edmws e2edm_metadata_ws_security / POST ws BASIC e2edmwsSecurity ws jbossweb.xml: java:/jaas/e2edmwsSecurity Why I still have WSDL with password? Thank you!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095895#4095895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095895 From do-not-reply at jboss.com Wed Oct 17 03:24:46 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 17 Oct 2007 03:24:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how can I run jbossws2.0.1 on tomcat Message-ID: <13020253.1192605886624.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossWS 2.0.1 doesn't support Tomcat deployment. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095902#4095902 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095902 From do-not-reply at jboss.com Wed Oct 17 03:27:13 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 17 Oct 2007 03:27:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Can I Make my JBoss Application Server Support JAX-W Message-ID: <9635343.1192606033550.JavaMail.jboss@colo-br-02.atl.jboss.com> You have to modify your ant.properties file. I'm sure there's no /home/tdiesler directory on your machine ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095903#4095903 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095903 From do-not-reply at jboss.com Wed Oct 17 03:52:02 2007 From: do-not-reply at jboss.com (lynquan) Date: Wed, 17 Oct 2007 03:52:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Can I Make my JBoss Application Server Support JAX-W Message-ID: <5618763.1192607522485.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095907#4095907 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095907 From do-not-reply at jboss.com Wed Oct 17 04:16:02 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 17 Oct 2007 04:16:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: 2 ejb3s exposed as web services. Can't have same methods Message-ID: <534615.1192608962065.JavaMail.jboss@colo-br-02.atl.jboss.com> This problem will no be fixed in next release, because it's not JAX-WS compliant. To prevent your problem please use: @RequestWrapper(className="package.UniqueClassName") | @ResponseWrapper(className="package.UniqueClassNameResponse") method annotations on your second bean authenticate() method. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095920#4095920 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095920 From do-not-reply at jboss.com Wed Oct 17 04:53:29 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 17 Oct 2007 04:53:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: 2 ejb3s exposed as web services. Can't have same methods Message-ID: <3346669.1192611209242.JavaMail.jboss@colo-br-02.atl.jboss.com> Updated FAQ document, see: http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#Why_I.27m_getting_.22propertyname_is_not_valid_property_on_class_mypackage.jaxws.Propertyname.22.3F Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095934#4095934 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095934 From do-not-reply at jboss.com Wed Oct 17 05:54:03 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 17 Oct 2007 05:54:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1 released Message-ID: <3350728.1192614843822.JavaMail.jboss@colo-br-02.atl.jboss.com> I don't know that exactly. But it should be next year. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095974#4095974 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095974 From do-not-reply at jboss.com Wed Oct 17 07:32:38 2007 From: do-not-reply at jboss.com (l.gh) Date: Wed, 17 Oct 2007 07:32:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Deployment failure Message-ID: <10133354.1192620758534.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi guys, I'm now deploying my POJO style EJB3 as a webservice. And it can be done successfully on Jboss4.0.5 but seriously it failed on Jboss4.2.1. I'm going to find a solution by Google but seems no similar way to solve it. Could anybody of you experts give me an opinion please? Here I attached logs pushed into Jboss console. | 12:21:09,330 ERROR [MainDeployer] Could not create deployment: file:/C:/devenv/jboss-4.2.0.GA/server/janes-dev/deploy/jm-lmi-place-ejb.jar | org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (java.lang.IllegalStateException: Cannot build JAXB context) | at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:83) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) | 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.create(Unknown Source) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | 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$ScannerThread.loop(AbstractDeploymentScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) | Caused by: java.lang.IllegalStateException: Cannot build JAXB context | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:879) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:128) | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:77) | at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) | at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.java:43) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) | ... 28 more | Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions | java.util.List is an interface, and JAXB can't handle interfaces. | this problem is related to the following location: | at java.util.List | | at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:361) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:217) | at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76) | 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:597) | at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:875) | ... 35 more | Source code looks like: | @Remote | @WebService | @SOAPBinding(style=Style.RPC) | public interface PlaceOperator { | public List getList(HashMap map); | } | | @Stateless | @WebService(endpointInterface = "com.janes.discoveryxml.ejb.PlaceOperator") | public class PlaceOperatorBean implements PlaceOperator{ | | public List getList(HashMap map) { | xxx | return null; | } | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096014#4096014 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096014 From do-not-reply at jboss.com Wed Oct 17 07:39:13 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 17 Oct 2007 07:39:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployment failure Message-ID: <20671125.1192621153370.JavaMail.jboss@colo-br-02.atl.jboss.com> "l.gh" wrote : | Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions | java.util.List is an interface, and JAXB can't handle interfaces. | this problem is related to the following location: | at java.util.List | Try to focus on this. It seems there's a java.util.List somewhere in your source code which is annotated with JAXB annotations. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096016#4096016 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096016 From do-not-reply at jboss.com Wed Oct 17 07:43:47 2007 From: do-not-reply at jboss.com (l.gh) Date: Wed, 17 Oct 2007 07:43:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployment failure Message-ID: <31684233.1192621427184.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Richard of your reply! But it is really happy with Jboss4.0.5 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096018#4096018 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096018 From do-not-reply at jboss.com Wed Oct 17 09:59:12 2007 From: do-not-reply at jboss.com (cch@jboss) Date: Wed, 17 Oct 2007 09:59:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to handle namespace generation? Message-ID: <27232492.1192629552313.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi everyone, I have the following problem: In a jboss 4.0.5GA with ejb3 (installed from jems-installer-1.2.0.GA.jar) I want to publish a web service. Therefor I annotate a class with | @WebService(name="service", | portName="service", | serviceName="TestService", | targetNamespace="http://foo.com" | ) | One of the method I annotate with @WebMethod uses a class Bar from package com.foo Now if I inspect the automatically generated wsdl I have a targetNamespace http://foo.com but in the types-section I have a targetNamespace http://foo.com/jaws. I tried to put a package-info.java in the package com.foo with | @javax.xml.bind.annotation.XmlSchema(namespace="http://com.foo") | package com.foo; | But the result is still the same. Am a missing any obvious switch or do I just have a serious misunderstanding of how the wsdl should work? Christian View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096090#4096090 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096090 From do-not-reply at jboss.com Wed Oct 17 10:26:59 2007 From: do-not-reply at jboss.com (ptenn10) Date: Wed, 17 Oct 2007 10:26:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Results: jboss-4.0.4 AS and jbossws-2.0.1 Integration Message-ID: <15194406.1192631219425.JavaMail.jboss@colo-br-02.atl.jboss.com> I thought I'd have to go down a different path, but my manager said he's good with dropping jaxb-api.jar for JAXB 2.0 into the endorsed directory, so I'm back in business. Horray! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096113#4096113 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096113 From do-not-reply at jboss.com Wed Oct 17 10:59:53 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 17 Oct 2007 10:59:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Productivity Message-ID: <32914380.1192633193241.JavaMail.jboss@colo-br-02.atl.jboss.com> The JBossWS team is currently defining enhancements and changes to the project in order to improve his users productivity. The main concern is making the whole webservice experience easier; this means helping users in making the most of jbossws for their own enterprise business. We've just described our first idea about this interesting topic on the design forum; if anybody wants to comment or propose something, let's do it there. Here is the introduction: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121127 and here are the other posts about productivity efforts at different levels: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121223 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121252 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121257 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121379 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121473 Community opinions are very important, especially for topics like this. Feel free to comment or suggest actions to improve the overall productivity. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096133#4096133 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096133 From do-not-reply at jboss.com Wed Oct 17 11:33:03 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Wed, 17 Oct 2007 11:33:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Jbossws Tutorial. Message-ID: <13692891.1192635183938.JavaMail.jboss@colo-br-02.atl.jboss.com> I have search a lot to find a starting tutorial for JBossws without EJB and wiht server 4.0.5. Can any body help me how to create a very simple Web Service. Which files need to be created, directory structure, where to deploy and how to test it. It would be very helpful. Regards, Zeeshan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096149#4096149 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096149 From do-not-reply at jboss.com Wed Oct 17 12:14:58 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 17 Oct 2007 12:14:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <31934911.1192637698757.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you take a look at the documentation? In particular, speaking of POJO endpoint, check this: http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Plain_old_Java_Object_.28POJO.29 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096176#4096176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096176 From do-not-reply at jboss.com Wed Oct 17 12:35:24 2007 From: do-not-reply at jboss.com (pranav.akiri) Date: Wed, 17 Oct 2007 12:35:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Multithreading in Jboss 4.0.1 Message-ID: <9297058.1192638925051.JavaMail.jboss@colo-br-02.atl.jboss.com> No one has encounted this? How abt Jboss team? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096189#4096189 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096189 From do-not-reply at jboss.com Wed Oct 17 13:02:35 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 17 Oct 2007 13:02:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <10840974.1192640555417.JavaMail.jboss@colo-br-02.atl.jboss.com> mmh, I think there's a little mess in your configuration. Why are you using web.xml and jboss-web.xml considering you have ejb endpoints? You should only have jboss.xml as non-java file. I think this could be the problem, I would try starting from the jaxws-sample-context, it has an ejb endpoint with secureWSDLAccess = false. Let me know if you still have problem once you fix this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096198#4096198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096198 From do-not-reply at jboss.com Wed Oct 17 13:18:13 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 17 Oct 2007 13:18:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Class name case incorrect in generated client artifacts Message-ID: <17818157.1192641493419.JavaMail.jboss@colo-br-02.atl.jboss.com> It should work, since the issue has been solved in release 1.0.2. If you still have the same problem, please reopen the issue and submit the wsdl you're using to reproduce the issue. However please note that jaxrpc tools issues are solved by the community, since our main focus is on jax-ws. Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096210#4096210 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096210 From do-not-reply at jboss.com Wed Oct 17 13:27:49 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 17 Oct 2007 13:27:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SessionBean as WebService - again complex data structure Message-ID: <29961000.1192642069891.JavaMail.jboss@colo-br-02.atl.jboss.com> It would have been fine if you used WRAPPED parameter style. BARE parameter style requires additional JAXB annotations: http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Document.2FLiteral_.28Bare.29 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096215#4096215 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096215 From do-not-reply at jboss.com Wed Oct 17 13:33:35 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 17 Oct 2007 13:33:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain wsdl service (problem in JBoss 4.2 used to Message-ID: <12655287.1192642415545.JavaMail.jboss@colo-br-02.atl.jboss.com> "burakbayramli" wrote : | | | public class Client | | { | | public static void main(String[] args) throws Exception | | { | | URL url = new URL("http://localhost:8080/ggServices/CalculatorBean?wsdl"); | | QName qname = new QName("http://localhost:8080/ggServices/CalculatorBean", | | "CalculatorService"); | | | You're using the wrong namespace when creating the qname; it should be "http://service.kitapdemo.bilgidata.org/" according to your wsdl. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096218#4096218 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096218 From do-not-reply at jboss.com Wed Oct 17 13:49:38 2007 From: do-not-reply at jboss.com (gturner) Date: Wed, 17 Oct 2007 13:49:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Runtime classloader cannot be null Message-ID: <4158571.1192643378325.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a JAX-WS 2.0 RI based project deployed on JBoss 4.0.4.GA that I am upgrading to JBoss 4.2.1.GA with JBossWS 2.0.1.GA. Deployment of the .war fails with the following stacktrace: | 2007-10-17 09:31:32,361 ERROR [org.jboss.deployment.MainDeployer] (main:) Could not start deployment: file:/home/jboss/jboss-4.2.1.GA/server/jboss2/farm/HVODImportWebService.war | java.lang.IllegalArgumentException: Runtime classloader cannot be null | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:55) | at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeploymentAspect.java:66) | at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115) | at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97) | at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90) | 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 $Proxy55.start(Unknown Source) | 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 sun.reflect.GeneratedMethodAccessor28.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 $Proxy67.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.ha.framework.server.FarmMemberService.deploy(FarmMemberService.java:412) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.ha.framework.server.FarmMemberService.startService(FarmMemberService.java:212) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor6.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.GeneratedMethodAccessor11.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(AbstractMBeanInvoke.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.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.GeneratedMethodAccessor28.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 $Proxy10.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.GeneratedMethodAccessor6.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.GeneratedMethodAccessor11.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) | The war file contains the following jboss-web.xml: | | | | | | | xo.loaders:loader=HVODImportWebService.war | | | | java:/jaas/LDAP | | /HVODWebService/Import | | false | | xo.services:service=ConfigurationManager | | When I remove the loader-repository configuration, deployment is successful. I'm not entirely sure why I have a habit of declaring loader-repository for all my deployments, it definitely began with my quest for isolated-classloaders, but is probably superfluous now that I have isolated classloaders properly configured in conf/jboss-service.xml, deploy/ear-deployer.xml, and deploy/jboss-web.deployer/META-INF/jboss-service.xml server configuration files. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096224#4096224 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096224 From do-not-reply at jboss.com Wed Oct 17 14:24:26 2007 From: do-not-reply at jboss.com (gturner) Date: Wed, 17 Oct 2007 14:24:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - @PostConstruct never invoked Message-ID: <21412519.1192645466760.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a JAX-WS 2.0 RI based project deployed on JBoss 4.0.4.GA that I am upgrading to JBoss 4.2.1.GA with JBossWS 2.0.1.GA. An endpoint packaged in a war makes use of @PostConstruct, as well as some Handlers that make use of @PostConstruct as well. @PostContruct on the web service class is never invoked, however @PostConstruct on on of the Handlers does get invoked. I'll try experimenting with removing the handlers, and see if it's something like JBossWS will only invoker one @PostConstruct method per web service. The following port interface was generated from the WSDL: | @WebService(name="ImportPort", targetNamespace="urn:HVODWebService") | @HandlerChain(file="ImportPort_handler.xml") | @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE) | public interface ImportPort { | | @WebMethod | @WebResult(name="ImportResponse", | targetNamespace="urn:HVODWebServiceTypes", | partName="response") | public ImportResponse submitJob(@WebParam(name="ImportRequest", | targetNamespace="urn:HVODWebServiceTypes", | partName="request") | ImportRequest request) | throws ServiceFault; | | } | The following implementation makes use of @PostConstruct, but never gets invoked: | @WebService(endpointInterface="com.xo.nextgen.hvodwebservice.wsdl.ImportPort") | public class ImportWebService implements ImportPort { | | @Resource | private WebServiceContext context; | | @PostConstruct | public void initialize() { | ... | } | | @PreDestroy | public void destroy() { | ... | } | | public ImportResponse submitJob(ImportRequest request) | throws ServiceFault { | ... | } | | } | The following handler.xml is used to inject two Handlers: | | | | | SchemaValidation | com.xo.nextgen.hvodwebservice.wsdl.handler.SchemaValidationHandler | | | FaultNotification | com.xo.nextgen.hvodwebservice.wsdl.handler.FaultNotificationHandler | | | | The following Handler interestingly does have it @PostConstruct method invoked: | public class SchemaValidationHandler | implements LogicalHandler { | | @PostConstruct | public void initialize() throws WebServiceException { | ... | } | | @PreDestroy | public void destroy() { | } | | | public boolean handleMessage(LogicalMessageContext context) { | ... | } | | public boolean handleFault(LogicalMessageContext context) { | ... | } | | public void close(MessageContext context) { | ... | } | | } | Also the exact same behavior occurs with JBoss 4.2.1.GA with it's native JBossWS 1.2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096238#4096238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096238 From do-not-reply at jboss.com Wed Oct 17 15:24:56 2007 From: do-not-reply at jboss.com (wcydaip) Date: Wed, 17 Oct 2007 15:24:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - SoapFaultException using anyType Message-ID: <25534736.1192649096394.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm attempting to access a web-service on a clients machine, but, receive one of the vaguest errors ever: | 2007-10-17 11:44:18,875 INFO [STDOUT:140] javax.xml.rpc.soap.SOAPFaultException: SoapMapper:Can't create mapper inside 'anyType' of type anySimpleType in namespace http://www.w3.org/2001/XMLSchema. | 2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:360) | 2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:224) | 2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.comira.ScheduleSoapPort_Stub.getCandidateScheduleData(ScheduleSoapPort_Stub.java:170) | I'm not sure what is causing the problem and was hoping someone could help. I'm using jwsdp1.3, jboss-4.0.3SP1, jdk1.4.2_13. Thanks, Graham View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096253#4096253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096253 From do-not-reply at jboss.com Wed Oct 17 19:37:07 2007 From: do-not-reply at jboss.com (wcydaip) Date: Wed, 17 Oct 2007 19:37:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SoapFaultException using anyType Message-ID: <22708425.1192664227664.JavaMail.jboss@colo-br-02.atl.jboss.com> Can anyone tell me which version of JBoss works with jdk1.4.2 and supports the anyType type element? This seemed to state that there was a problem with rpc encoded web-services: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032888#4032888 I've tried to change them to literal, but, have been unsuccessful.. And this says that it's fixed, but, it doesn't say which version to use: http://jira.jboss.com/jira/browse/JBWS-1595 Thanks. Graham Here's the wsdl. If you see anything that might be causing the problem please let me know: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096326#4096326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096326 From do-not-reply at jboss.com Wed Oct 17 19:52:04 2007 From: do-not-reply at jboss.com (wcydaip) Date: Wed, 17 Oct 2007 19:52:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SoapFaultException using anyType Message-ID: <10949605.1192665124253.JavaMail.jboss@colo-br-02.atl.jboss.com> looks like it's fixed in jbossws-native-2.0.0.GA and above View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096335#4096335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096335 From do-not-reply at jboss.com Wed Oct 17 19:57:51 2007 From: do-not-reply at jboss.com (balkanboy) Date: Wed, 17 Oct 2007 19:57:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume Ant task fails to find Message-ID: <11414040.1192665471347.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the following in my build.xml: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And a WSDL that contains a type like this: | | | | | | | | | When I invoke the 'wsconsume' task from Ant, I get the following: package javax.activation does not exist [wsconsume] import javax.activation.DataHandler; [wsconsume] ^ [wsconsume] BrmEntry.java:50: cannot find symbol [wsconsume] symbol : class DataHandler [wsconsume] location: class com.raf.uspsbrm.datamart.wsclient.BrmEntry [wsconsume] protected DataHandler imageStream; The only way I was able to get around this issue is to add "activation.jar" to Ant's classpath (I'm using Ant 1.7), or use the 'wsconsume.sh' script. Does anyone have any idea how to fix the Ant task without necessarily altering Ant's CLASSPATH or is this necessary for 'wsconsume' to work from within Ant? Thanks in advance! Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096337#4096337 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096337 From do-not-reply at jboss.com Thu Oct 18 02:39:48 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 18 Oct 2007 02:39:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Multithreading in Jboss 4.0.1 Message-ID: <31780534.1192689588847.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! The most correct way to do this is to write your own MBean/Service. AFAIK threads are not allowed inside an EJB (some application servers will allow threads in the EJB). So writing your own MBean that will take care of multithreading might solve your problem. Creating MBeans is about adding a new service entry in you jboss-app.xml that will point out a your-service.xml file. You MBean javacode must implement an interface s.a. YourServiceMBean (Notice the pattern interface name ends with MBean, the implementation does not); mbean interface: YourServiceMBean mbean impleementation: YourService You are looking up MBeans in the same way as you do with an EJB with the iniCtx.lookup(...) The MBean has some life cycle methods that you might want to use: start(), stop(), ... Start is called when the service is deployed. Check the JBoss application server documentation for more details. Hope this can help you. Cheers /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096383#4096383 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096383 From do-not-reply at jboss.com Thu Oct 18 03:39:11 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Thu, 18 Oct 2007 03:39:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <14271577.1192693151350.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I have read that guide but I haven't understood much. First I had to write the class that implements the service but then I don't know what I have to do. In that page there's this file xml: | | | TestService | org.jboss.test.ws.jaxws.samples.jsr181pojo.JSEBean01 | | | TestService | /* | | | Must I write this file or this file is generated by jbossws automatically when I deploy a web service? or are there some tools to write it? The xml that I copied above is the web.xml required? After that I have created my implementation of service ed the xml file, If I understand I must create a jar file and rename it as war, isn't it? The last my doubt is about how can I deploy the war? In wich directory must I put the war file? Thanks to all, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096392#4096392 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096392 From do-not-reply at jboss.com Thu Oct 18 03:58:36 2007 From: do-not-reply at jboss.com (Christy) Date: Thu, 18 Oct 2007 03:58:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <1108305.1192694316272.JavaMail.jboss@colo-br-02.atl.jboss.com> alessio.soldano at jboss.com Thank you very much that you are helping me! My problem is not solved. I downloaded jbossws-samples-1.2.1.GA and looked through jaxws-sample-context. In src/java/...... /context directory I found several classes and interfaces (EndpointEJB, EndpointJSE., EndpointNoInjectEJB, TestEndpoint, WebServiceContextEJBTestCase, WebServiceContextJSETestCase). Then I went to the src/resources/.../context directory and I found web.xml and jboss-web.xml. I looked through web.xml and found, that it describes EndpointJSE class. But an ejb endpoint with secureWSDLAccess = false is in the EndpointEJB. I din't found any *.xml for it. So, I'm confused. What samples should I look? Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096402#4096402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096402 From do-not-reply at jboss.com Thu Oct 18 04:03:54 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 18 Oct 2007 04:03:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <21479720.1192694634969.JavaMail.jboss@colo-br-02.atl.jboss.com> you can do the following: create a zip-file with the follwoing structure (folders are between < and >) | +-- +-- +-- web.xml +-- +-- put your class-files here (including packages) rename the zip-file to a war-file and copy it to /server/default/deploy (if you are using the default-server-config) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096406#4096406 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096406 From do-not-reply at jboss.com Thu Oct 18 04:06:50 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 18 Oct 2007 04:06:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <5269167.1192694810146.JavaMail.jboss@colo-br-02.atl.jboss.com> hm, something happened with the zip-file-structure: | | | +-- | +-- | +-- web.xml | +-- | +-- put your class-files here (including packages) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096408#4096408 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096408 From do-not-reply at jboss.com Thu Oct 18 04:08:23 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 18 Oct 2007 04:08:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <28884008.1192694903788.JavaMail.jboss@colo-br-02.atl.jboss.com> "Christy" wrote : alessio.soldano at jboss.com | Thank you very much that you are helping me! | My problem is not solved. I downloaded jbossws-samples-1.2.1.GA and looked through jaxws-sample-context. In src/java/...... /context directory I found several classes and interfaces (EndpointEJB, EndpointJSE., EndpointNoInjectEJB, TestEndpoint, WebServiceContextEJBTestCase, WebServiceContextJSETestCase). | Then I went to the src/resources/.../context directory and I found web.xml and jboss-web.xml. I looked through web.xml and found, that it describes EndpointJSE class. But an ejb endpoint with secureWSDLAccess = false is in the EndpointEJB. I din't found any *.xml for it. So, I'm confused. What samples should I look? Thank you! Well, I was looking at the 2.0.x samples, anyway there shouldn't be a lot of differences. I suggest you to build the samples so that you get the binaries and can see what is being packaged inside them. The 2.0.x samples build creates a jaxws-samples-context.war and a jaxws-samples-context.jar: the first one features a pojo endpoint, the second one an ejb endpoint. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096409#4096409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096409 From do-not-reply at jboss.com Thu Oct 18 04:47:22 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Thu, 18 Oct 2007 04:47:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <32545783.1192697242538.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Thanks for your response. Again my question is still there. How to start from a scratch? Can you please eloborate how to make a simple HelloWorld Service. Which in ping send message, 'Hello World' My question goes, how to creat this class, how to use tools to create WSDL file. Its clear once u have you .war file how to deploy that. Please give a complete example of HelloWorld from scratch which explains how to use jbossws. Thanks in advance. Regards, Zeeshan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096432#4096432 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096432 From do-not-reply at jboss.com Thu Oct 18 04:52:10 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Thu, 18 Oct 2007 04:52:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <30307500.1192697530308.JavaMail.jboss@colo-br-02.atl.jboss.com> Mmm, I must create a zip file with the class file that describes the web service like this: | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class Test | { | @WebMethod | public String echo(String input) | { | return input; | } | } | In the test.war, I insert test.class and the web.xml. But my problems is the web.xml file, how can I create this? Is it generated automatically by something? And how? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096437#4096437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096437 From do-not-reply at jboss.com Thu Oct 18 05:07:19 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 18 Oct 2007 05:07:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <8814485.1192698439499.JavaMail.jboss@colo-br-02.atl.jboss.com> copy the web.xml and change the servlet-class to your webservice's class and the servlet-name (twice) to whatever you like to i don't know if it can be created automatically, i always do it manually View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096442#4096442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096442 From do-not-reply at jboss.com Thu Oct 18 07:00:57 2007 From: do-not-reply at jboss.com (nickarls) Date: Thu, 18 Oct 2007 07:00:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - nor any of its super class is known... Message-ID: <20287621.1192705257882.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm running JB 4.2.1GA and have an annotated WebService that takes a List as parameters. However, I get an | [javax.xml.bind.JAXBException: foo.Bar nor any of its super class is known to this context] | How should I introduce this class to JAXB? Tried @XmlType and @XmlRootElement annotations but no go. Even more strange, It was working at some point without any extra configuration :-/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096464#4096464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096464 From do-not-reply at jboss.com Thu Oct 18 07:23:28 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Thu, 18 Oct 2007 07:23:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <7335316.1192706608941.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Can you please do a favour and paste here the compelte files. Test.java (with all imports as I am getting compiling error) web.xml (refering to this Test.java). Please , kick us to start... Regards, Zeeshan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096470#4096470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096470 From do-not-reply at jboss.com Thu Oct 18 07:44:02 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 18 Oct 2007 07:44:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <5219071.1192707842323.JavaMail.jboss@colo-br-02.atl.jboss.com> java-source (you need jboss-jaxws.jar to compile it) | package ws.test; /* you can use any package */ | | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class Test { | | @WebMethod | public String echo(String param) { | return param; | } | | } | web.xml | | | | | | Test | ws.test.Test | | | | Test | /* | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096480#4096480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096480 From do-not-reply at jboss.com Thu Oct 18 08:21:30 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Thu, 18 Oct 2007 08:21:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <6490273.1192710090282.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Thanks for such a great help. Now files are compiled and deployed sucsessfully but I am not able to see any published service on JBOSSWS page. for example http://localhost/jbossws/ is the url where i can see that jbossws is running and up. how I see my my published service?? Regards, Zeeshan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096503#4096503 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096503 From do-not-reply at jboss.com Thu Oct 18 08:41:27 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 18 Oct 2007 08:41:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <7260476.1192711287316.JavaMail.jboss@colo-br-02.atl.jboss.com> per default the url is http://localhost:8080/jbossws/ after deploying the war-file you should see something like this in the log-file (/server/default/log/server.log) and/or on the console: | 8:58,078 INFO [org.jboss.ws.core.server.ServiceEndpointManager] WebService started: http://127.0.0.1:8080/test | then you can see the wsdl of your webservice at http://127.0.0.1:8080/test?WSDL View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096518#4096518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096518 From do-not-reply at jboss.com Thu Oct 18 08:59:52 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Thu, 18 Oct 2007 08:59:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <23037631.1192712392876.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, NOw let me repeat what I have done Test.Java __ import javax.jws.WebMethod; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; @WebService @SOAPBinding(style = SOAPBinding.Style.RPC) public class Test { @WebMethod public String echo(String param) { return param; } } __ web.xml __ FirstTest Test FirstTest /* __ and when I make a war file of this and put in deploy directory of Jboos, I got on console .. 14:54:01,371 INFO [TomcatDeployer] deploy, ctxPath=/FirstTest, warUrl=.../tmp/deploy/tmp64909FirstTest-exp.war/ Now When I try to go to this url. http://localhost/FirstTest?wsdl it simply comes up with 'Directory Listing For' I think I am still missing something. Are not we suppose to make WSDL file first using some tool. If yes, can you please explain that as well? Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096528#4096528 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096528 From do-not-reply at jboss.com Thu Oct 18 09:13:21 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 18 Oct 2007 09:13:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <32337745.1192713201769.JavaMail.jboss@colo-br-02.atl.jboss.com> wsdl-file will be created automatically are there no more log-entries for your deployment? maybe the structure of your war-file is not correct. could you unzip it and paste a recursive directory-listing here? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096533#4096533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096533 From do-not-reply at jboss.com Thu Oct 18 09:20:35 2007 From: do-not-reply at jboss.com (terapong) Date: Thu, 18 Oct 2007 09:20:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBOSS Webservice & Thai Language Message-ID: <16894534.1192713635724.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a problem i use redhat developer studio beta 2 + jboss 4.2.1 GA with JBOSSWS develop webservice. i write simple operation @WebMethod @WebResult(name = "result") public String echo(@WebParam(name = "book") String book) { System.out.println(book); return "?????"; } and run soap UI for test result but it return ??? the same operation develop on netbean 5.5 deploy on tomcat 5.5 has no problem how i resolve problem help me expert View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096541#4096541 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096541 From do-not-reply at jboss.com Thu Oct 18 09:22:36 2007 From: do-not-reply at jboss.com (terapong) Date: Thu, 18 Oct 2007 09:22:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBOSS Webservice & Thai Language Message-ID: <10691421.1192713756622.JavaMail.jboss@colo-br-02.atl.jboss.com> i can't type thai language on this forum @WebMethod @WebResult(name = "result") public String echo(@WebParam(name = "book") String book) { System.out.println(book); return "any thai word"; } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096542#4096542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096542 From do-not-reply at jboss.com Thu Oct 18 09:46:09 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Thu, 18 Oct 2007 09:46:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <4147391.1192715169362.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you! I deployed my web service. I have generated the web service wsdl, does it means that the web service work correctly? Another question, I must write a web service that read/write an xml file, what is the current path of the war package? Thanks again! Bye Bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096566#4096566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096566 From do-not-reply at jboss.com Thu Oct 18 09:51:23 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 18 Oct 2007 09:51:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBOSS Webservice & Thai Language Message-ID: <10814814.1192715483478.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! You have to set the encoding to UTF-8 (default is ISO-8859). I'm not sure if there is any other way right now than setting the file.encoding parameter to UTF-8. So add -Dfile.encoding=UTF-8 to your JAVA_OPTS when starting JBoss. Good luck! /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096568#4096568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096568 From do-not-reply at jboss.com Thu Oct 18 09:54:48 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Thu, 18 Oct 2007 09:54:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <17000823.1192715688321.JavaMail.jboss@colo-br-02.atl.jboss.com> if I unzip my file the structure is as FirstTest- +META-INF +WEB-INF - web.xml +classes -Test.class Any clue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096570#4096570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096570 From do-not-reply at jboss.com Thu Oct 18 10:01:36 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 18 Oct 2007 10:01:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <8126066.1192716096699.JavaMail.jboss@colo-br-02.atl.jboss.com> i think you need a package, i got an exception in the server.log when i tried without one View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096573#4096573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096573 From do-not-reply at jboss.com Thu Oct 18 10:07:51 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 18 Oct 2007 10:07:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <27899326.1192716471971.JavaMail.jboss@colo-br-02.atl.jboss.com> "abdujaparov" wrote : Thank you! I deployed my web service. I have generated the web service wsdl, does it means that the web service work correctly? | if you mean that the url ...?WSDL shows the wsdl-file in the browser, your service should be up and running "abdujaparov" wrote : Another question, I must write a web service that read/write an xml file, what is the current path of the war package? the path where the war-file is inflated changes with every deployment or server-restart. i'm not sure what the best way to do this is, maybe someone else can help you. i would try if if had time ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096576#4096576 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096576 From do-not-reply at jboss.com Thu Oct 18 12:33:37 2007 From: do-not-reply at jboss.com (mazz@jboss.com) Date: Thu, 18 Oct 2007 12:33:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - avoid lazy-initialization exceptions Message-ID: <32002308.1192725217576.JavaMail.jboss@colo-br-02.atl.jboss.com> We have a pretty big problem that I was hoping to get some feedback on how others solved the problem. Its a common-enough problem that I think others must have run into this. We've got some SLSBs that return EJB3/JPA entities. We've annotated our SLSBs with @WebService so we can have a python client call into the SLSB via the web service interface. Some of the SLSB methods return entities that are not fully, eagerly loaded. That is, for performance reasons, we don't need to eagerly load in all relationships before the SLSB returns the entity to the web service client. However, when the web service container attempts to encode the entity in its XML representation, it calls the getters for those relationships we haven't loaded. This, in turn, throws the infamous LazyInitializationException. Clearly, the answer is not to force web service apps to eagerly load all entity relationships. However, for maintenance purposes, we don't want to have to create another layer of data-transfer objects just to support the web service stuff (the SLSB API works fine from a Java UI client - the only problem occurs when needing web service access since this only happens when the web service container needs to encode the returned entity in XML). Is there some way (annotation? configuration?) that we can tell the web service container to null out or otherwise not call the getters that we know won't work? Can we get the web service container to catch these lazy-init exceptions and just null out the XML value when returning the entity to the client? How do others solve this problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096654#4096654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096654 From do-not-reply at jboss.com Thu Oct 18 12:49:10 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Thu, 18 Oct 2007 12:49:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <17653221.1192726150485.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks you jtestori, the service works! I've written a client with the stubs genereted by axis from the wsdl was generated by jboss and everything work! If I go to the list of deployed services I find my service, in this screenview I have some statistics about the service, how can I get this statistics? Are this statistics calculated on all the interfaces of the services or are there statistics about every interfaces of a service? Thanks again! Bye Bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096664#4096664 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096664 From do-not-reply at jboss.com Thu Oct 18 13:42:06 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Thu, 18 Oct 2007 13:42:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <2546739.1192729327241.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, abdujaparov is it possible for you to post here your complete code including how u make war file ... I am not able to see any error on server console but also not able to see my webservice on jbossws page. plz do help me out. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096681#4096681 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096681 From do-not-reply at jboss.com Thu Oct 18 15:52:44 2007 From: do-not-reply at jboss.com (jortel) Date: Thu, 18 Oct 2007 15:52:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBWS-1622, multiple root context with EJB providing WS probl Message-ID: <21892887.1192737164304.JavaMail.jboss@colo-br-02.atl.jboss.com> The release notes for jboss-jaxws_2.0.0GA indicate that this has been fixed. However, I'm deploying with jboss-jaxws_2.0.1GA and I'm still getting the same exception. Wasn't this fixed? If so, how? Do I need to do anything else? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096720#4096720 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096720 From do-not-reply at jboss.com Thu Oct 18 16:50:33 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Thu, 18 Oct 2007 16:50:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <31296300.1192740633156.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, You was very right that we have to speficy a package name. Without package name , it did not work but now it works. Now I will create a client and will keep on posting. Thanks in deed. Regards, Zeeshan Javeed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096740#4096740 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096740 From do-not-reply at jboss.com Thu Oct 18 17:14:59 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Thu, 18 Oct 2007 17:14:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <248213.1192742099689.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi zeeshan.javeed, this is my code: | package sum; | | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | | | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class Sum { | | @WebMethod | public int sumAB(int a, int b){ | return a+b; | } | | } | | web.xml: | | | | | | Sum | sum.Sum | | | | Sum | /* | | | | file sum.war: directory META-INF. directory WEB-INF: web.xml directory classes: directory sum: Sum.class If I go to http://localhost:8080/jbossws/services jboss give me these statistics: anonymous wrote : | Registered Service Endpoints | Endpoint Name jboss.ws:context=sum,endpoint=Sum | Endpoint Address http://127.0.0.1:8080/sum?wsdl | StartTime StopTime | Thu Oct 18 23:12:09 CEST 2007 | RequestCount ResponseCount FaultCount | 0 0 0 | MinProcessingTime MaxProcessingTime AvgProcessingTime | 0 0 0 | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096750#4096750 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096750 From do-not-reply at jboss.com Thu Oct 18 17:16:07 2007 From: do-not-reply at jboss.com (acxjbertr) Date: Thu, 18 Oct 2007 17:16:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Fast Infoset Message-ID: <9777837.1192742167394.JavaMail.jboss@colo-br-02.atl.jboss.com> I put this comment on http://jira.jboss.org/jira/browse/JBWS-925. I am re-posting it here as it seems appropriate to stimulate discussion on this topic. The referenced document (http://java.sun.com/developer/technicalArticles/xml/fastinfoset) is over four years old. Since the time it was published several of your open source competitors have integrated Fast Infoset into their stacks. This includes Apache's Axis2 (http://wso2.org/library/2686) which is used by Geronimo (http://geronimo.apache.org/) and Jonas (http://jonas.objectweb.org/). It also includes Sun's reference implementation of JAX-WS (https://jax-ws.dev.java.net/) which is the basis of the Metro Web Service Stack (https://metro.dev.java.net/) used by Glassfish (https://glassfish.dev.java.net/). I don't know anything about commercial vendors, but I assume coverage is good there as well. The reason I bring this up is because I am endeavoring to write the highest performing web service possible with open source software. Right now, we have standardized on JBoss, but the benefits of Fast Infoset look large enough that they might justify changing application servers. Is there any possibility Fast Infoset could be integrated into the 2.0.x codebase rather than the 2.1.x codebase? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096751#4096751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096751 From do-not-reply at jboss.com Thu Oct 18 19:17:17 2007 From: do-not-reply at jboss.com (balkanboy) Date: Thu, 18 Oct 2007 19:17:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume Ant task fails to find Message-ID: <13294011.1192749437901.JavaMail.jboss@colo-br-02.atl.jboss.com> My apologies - I dont think I did my due diligence with the classpath - I've fixed the problem - I added "fork=true" to the 'wsconsume' Ant task, as well as , and it started to work. Thanks for reading :). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096773#4096773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096773 From do-not-reply at jboss.com Thu Oct 18 19:19:06 2007 From: do-not-reply at jboss.com (balkanboy) Date: Thu, 18 Oct 2007 19:19:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume Ant task fails to find Message-ID: <31660943.1192749546843.JavaMail.jboss@colo-br-02.atl.jboss.com> "balkanboy" wrote : My apologies - I dont think I did my due diligence with the classpath - I've fixed the problem - I added "fork=true" to the 'wsconsume' Ant task, as well as , and it started to work. | | Thanks for reading :). Hm, my code got eaten- here's the fix: | | | | Since the forked wsconsume task will run inside of its own JVM, obviously activation.jar is getting picked up... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096774#4096774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096774 From do-not-reply at jboss.com Thu Oct 18 23:57:22 2007 From: do-not-reply at jboss.com (wangfei90) Date: Thu, 18 Oct 2007 23:57:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Please help on invoking the jboss WS? Message-ID: <21500626.1192766242231.JavaMail.jboss@colo-br-02.atl.jboss.com> I recently met the problem when I use the jbossWS. I use the jboss 4.2 AS and jbossws2.0GA, jdk1.5.07 Here is my code package tv.blackarrow.integration.twc.ws; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.1-b03- * Generated source version: 2.0 * */ @WebService(name = "Hello", targetNamespace = "http://ws.twc.integration.blackarrow.tv/") @SOAPBinding(style = SOAPBinding.Style.RPC) public interface Hello { /** * * @param arg0 * @return * returns java.lang.String */ @WebMethod @WebResult(partName = "return") public String echo( @WebParam(name = "arg0", partName = "arg0") String arg0); } package tv.blackarrow.integration.twc.ws; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; @javax.jws.WebService(endpointInterface="tv.blackarrow.integration.twc.ws.Hello") @SOAPBinding(style = SOAPBinding.Style.RPC) public class HelloImpl implements Hello{ @WebMethod public String echo(String input) { System.out.println("This is echo of"+input); return input; } } client side ackage tv.blackarrow.integration.twc.wsclient; import java.net.MalformedURLException; import java.net.URL; import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; import tv.blackarrow.integration.twc.ws.*; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.1-b03- * Generated source version: 2.0 * */ @WebServiceClient(name = "HelloService", targetNamespace = "http://ws.twc.integration.blackarrow.tv/", wsdlLocation = "http://localhost:8080/baapi/hello?wsdl") public class HelloService extends Service { private final static URL HELLOSERVICE_WSDL_LOCATION; static { URL url = null; try { url = new URL("http://localhost:8080/baapi/hello?wsdl"); } catch (MalformedURLException e) { e.printStackTrace(); } HELLOSERVICE_WSDL_LOCATION = url; } public HelloService(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } public HelloService() { super(HELLOSERVICE_WSDL_LOCATION, new QName("http://ws.twc.integration.blackarrow.tv/", "HelloService")); } /** * * @return * returns Hello */ @WebEndpoint(name = "HelloPort") public Hello getHelloPort() { return (Hello)super.getPort(new QName("http://ws.twc.integration.blackarrow.tv/", "HelloPort"), Hello.class); } } package tv.blackarrow.integration.twc.wsclient; import tv.blackarrow.integration.twc.ws.*; public class HelloClient { public static void main(String args[]) { if (args.length != 1) { System.err.println("usage: EchoClient "); System.exit(1); } HelloService service = new HelloService(); Hello echo = service.getHelloPort(); System.out.println("Server said: " + echo.echo(args[0])); } } Here is my web.xml setting HelloService tv.blackarrow.integration.twc.ws.Hello 1 HelloService /hello/* Here is the wsdl ? ? ? ? ? ? ? ? ? ? when I run the wsrunclient to invoke the client, it shows [Fatal Error] :-1:-1: Premature end of file. Server said: null I check with the jboss log, 20:42:17,955 INFO [LifecycleHandlerImpl] WebService started: http://127.0.0.1:8080/baapi/hello 20:43:25,799 ERROR [SOAPFaultHelperJAXWS] SOAP request exception java.lang.ClassCastException: org.jboss.ws.core.soap.EnvelopeBuilderDOM at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:252) at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:179) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:377) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:260) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:177) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:110) at org.jboss.wsf.spi.invocation.EndpointServlet.service(EndpointServlet.java:72) 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.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.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) 20:43:25,807 ERROR [SOAPFaultHelperJAXWS] Error creating SOAPFault message javax.xml.soap.SOAPException: java.lang.ClassCastException: org.jboss.ws.core.soap.MessageFactoryImpl at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:77) at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:231) at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161) at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104) at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:418) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:260) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:177) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:110) at org.jboss.wsf.spi.invocation.EndpointServlet.service(EndpointServlet.java:72) 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.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.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) Caused by: java.lang.ClassCastException: org.jboss.ws.core.soap.MessageFactoryImpl at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:73) ... 28 more 20:43:25,808 ERROR [RequestHandlerImpl] Error processing web service request org.jboss.ws.WSException: javax.xml.ws.WebServiceException: Cannot create SOAPFault message for: java.lang.ClassCastException: org.jboss.ws.core.soap.EnvelopeBuilderDOM at org.jboss.ws.WSException.rethrow(WSException.java:68) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:298) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:177) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:110) at org.jboss.wsf.spi.invocation.EndpointServlet.service(EndpointServlet.java:72) 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.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.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) Caused by: javax.xml.ws.WebServiceException: Cannot create SOAPFault message for: java.lang.ClassCastException: org.jboss.ws.core.soap.EnvelopeBuilderDOM at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:169) at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104) at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:418) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:260) ... 22 more Please help!!! thanks a million View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096798#4096798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096798 From do-not-reply at jboss.com Fri Oct 19 01:28:00 2007 From: do-not-reply at jboss.com (balkanboy) Date: Fri, 19 Oct 2007 01:28:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Multiple SOAP attachments via MTOM document/literal? Message-ID: <20670018.1192771680951.JavaMail.jboss@colo-br-02.atl.jboss.com> Is it possible to have an API as such: class Attachments { private DataHandler dh; public DataHandler[] getAttachments(); public void setAttachments(DataHandler[] attachments); } public interface StoreAttachments { void storeAttachments(Attachments arg); } using MTOM/XOP and document/literal (or any other encoding)? I want to be able to send multiple attachments (20MB on average each attachment) in a single SOAP message. Is this doable in JBossWS 2.0.1? Thanks! Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096809#4096809 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096809 From do-not-reply at jboss.com Fri Oct 19 01:36:28 2007 From: do-not-reply at jboss.com (terapong) Date: Fri, 19 Oct 2007 01:36:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBOSS Webservice & Thai Language Message-ID: <7780856.1192772188596.JavaMail.jboss@colo-br-02.atl.jboss.com> It's work thanks Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096810#4096810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096810 From do-not-reply at jboss.com Fri Oct 19 01:41:08 2007 From: do-not-reply at jboss.com (wangfei90) Date: Fri, 19 Oct 2007 01:41:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Please help on invoking the jboss WS? Message-ID: <21836715.1192772468042.JavaMail.jboss@colo-br-02.atl.jboss.com> I clean up my war fle lib, remove all the jboss ws related jar file, seems the exception changed to java.lang.IllegalStateException: Canot get target bean instance at org.jboss.wsf.spi.invocation.InvocationHandlerJSE.getTargetBean(InvocationHandlerJSE.java:54) at org.jboss.wsf.stack.jbws.ServiceLifecycleInvocationHandler.invoke(ServiceLifecycleInvocationHandler.java:47) at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:206) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:396) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:260) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:177) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:110) at org.jboss.wsf.spi.invocation.EndpointServlet.service(EndpointServlet.java:72) 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.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.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) Caused by: java.lang.InstantiationException: tv.blackarrow.integration.twc.ws.Hello at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.jboss.wsf.spi.invocation.InvocationHandlerJSE.getTargetBean(InvocationHandlerJSE.java:49) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096811#4096811 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096811 From do-not-reply at jboss.com Fri Oct 19 02:09:09 2007 From: do-not-reply at jboss.com (wangfei90) Date: Fri, 19 Oct 2007 02:09:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Please help on invoking the jboss WS? Message-ID: <25178449.1192774149855.JavaMail.jboss@colo-br-02.atl.jboss.com> solve the problem. please refer to http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104843 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096815#4096815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096815 From do-not-reply at jboss.com Fri Oct 19 03:56:14 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Fri, 19 Oct 2007 03:56:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <27956653.1192780574061.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Thanks a lot man. Another favour, can you please put the code of your consumer class (client class). What is the role of different tools provided with Jbossws. For example, wsconsume.bat wsprovide.bat wstools.bat and wsrunclient.bat Thanks. Zeeshan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096847#4096847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096847 From do-not-reply at jboss.com Fri Oct 19 04:11:03 2007 From: do-not-reply at jboss.com (jtestori) Date: Fri, 19 Oct 2007 04:11:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <24225805.1192781463024.JavaMail.jboss@colo-br-02.atl.jboss.com> http://www.jboss.org/?module=bb&op=viewtopic&t=103420 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096849#4096849 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096849 From do-not-reply at jboss.com Fri Oct 19 05:07:52 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Fri, 19 Oct 2007 05:07:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <22630158.1192784873111.JavaMail.jboss@colo-br-02.atl.jboss.com> HI, I have tried to use both, wsconsume, and wsproivder but all the time i am getting error of ClassDEFFOUNDERROR. Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/wsf/spi/tools/cmd/WSConsume Althouhg, I have set classpath to jbossws-spi, where these files are present. I am using Java -version java version "1.6.0_03" Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing). Please help out... how to use. If i try to make an ant. give the error that classname="org.jboss.ws.tools.jaxws.ant.wsprovide" not found. ... Regard, Zeeshan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096867#4096867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096867 From do-not-reply at jboss.com Fri Oct 19 05:12:57 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Fri, 19 Oct 2007 05:12:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <19956403.1192785177412.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi everybody, I developed my client class with axis, with wsdl2java I have produced the stubs classes for the client. For the client you can use every solution. The tools as wsprovide or wsconsume give me the same error of zeeshan and I don't know how can resolve it. The client code is the following: | import java.rmi.RemoteException; | | import javax.xml.rpc.ServiceException; | | import client.*; | | | public class Client { | | /** | * @param args | * @throws ServiceException | * @throws RemoteException | */ | public static void main(String[] args) throws ServiceException, RemoteException { | // TODO Auto-generated method stub | | SumService ss = new SumServiceLocator(); | | Sum sun = ss.getSumPort(); | | System.out.println(sun.sumAB(6, 3)); | } | | } | If someone discovers how resolve and how work wstools could tell me the way? Thanks. Bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096871#4096871 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096871 From do-not-reply at jboss.com Fri Oct 19 05:24:24 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Fri, 19 Oct 2007 05:24:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <18699023.1192785865003.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi abdujaparov, I got few question.. what is in the package of client.*; this points to ur webservice provider classes?? how you know which service locator you have to call along port ?? SumService ss = new SumServiceLocator(); // How you know SumServiceLocator you have to call ? and also .getSumPort(); ?? Regards, Zeeshan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096877#4096877 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096877 From do-not-reply at jboss.com Fri Oct 19 05:38:41 2007 From: do-not-reply at jboss.com (jtestori) Date: Fri, 19 Oct 2007 05:38:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <30552276.1192786721861.JavaMail.jboss@colo-br-02.atl.jboss.com> i'm using jboss-4.2.1.GA and the wsconsume in the bin-folder | @echo off | | rem $Id: wsgen.bat 2158 2007-01-27 06:20:59Z jason.greene at jboss.com $ | | @if not "%ECHO%" == "" echo %ECHO% | @if "%OS%" == "Windows_NT" setlocal | | set DIRNAME=.\ | if "%OS%" == "Windows_NT" set DIRNAME=%~dp0% | set PROGNAME=run.bat | if "%OS%" == "Windows_NT" set PROGNAME=%~nx0% | | rem Read all command line arguments | | REM | REM The %ARGS% env variable commented out in favor of using %* to include | REM all args in java command line. See bug #840239. [jpl] | REM | REM set ARGS= | REM :loop | REM if [%1] == [] goto endloop | REM set ARGS=%ARGS% %1 | REM shift | REM goto loop | REM :endloop | | set JAVA=%JAVA_HOME%\bin\java | set JBOSS_HOME=%DIRNAME%\.. | rem Setup the java endorsed dirs | set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed | | rem Setup the wstools classpath | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JAVA_HOME%/lib/tools.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-xml-binding.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/wstx.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/activation.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/javassist.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/getopt.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-api.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/stax-api.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-impl.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-xjc.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxws-rt.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxws-tools.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-spi.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossall-client.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-saaj.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxrpc.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxws.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-client.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/log4j.jar | set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/mail.jar | | rem Execute the JVM | "%JAVA%" %JAVA_OPTS% -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" -Dlog4j.configuration=wstools-log4j.xml -classpath "%WSCONSUME_CLASSPATH%" org.jboss.wsf.spi.tools.cmd.WSConsume %* | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096886#4096886 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096886 From do-not-reply at jboss.com Fri Oct 19 05:40:42 2007 From: do-not-reply at jboss.com (jtestori) Date: Fri, 19 Oct 2007 05:40:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <782969.1192786843034.JavaMail.jboss@colo-br-02.atl.jboss.com> from the bin folder, the following works for me | wsconsume -k http://localhost:8080/myservice?WSDL | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096887#4096887 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096887 From do-not-reply at jboss.com Fri Oct 19 07:50:29 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Fri, 19 Oct 2007 07:50:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <17532662.1192794629353.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks , its working from there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096925#4096925 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096925 From do-not-reply at jboss.com Fri Oct 19 08:28:33 2007 From: do-not-reply at jboss.com (iner) Date: Fri, 19 Oct 2007 08:28:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS vs Glassfish, do we a 'Tester' ? Message-ID: <7678730.1192796913152.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, Using JBoss frequently, checked out the features for WS in Glassfish and saw that they have this Tester-feature in the AS. This gives me the opportunity to test the WS without writing a client. Does JBoss have something similar ? I am running JBoss 4.2.1 now, do I need any addition to that regarding WS ? And I am running mysql as my rdbms. regards, i View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096940#4096940 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096940 From do-not-reply at jboss.com Fri Oct 19 09:23:39 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Fri, 19 Oct 2007 09:23:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <9366090.1192800219058.JavaMail.jboss@colo-br-02.atl.jboss.com> hi, Anyone have any idea how we can deploy a bit complex structure. I have one Interface class, HelloWorld and the other file is HelloWorldImpl. HelloWord. java | package de.iplabs; | public interface HelloWorld | { | | public void setName(String name); | public String getName(); | | public void setAge(String age); | public String getAge() ; | | } | and HelloWorldImpl.java | package de.iplabs; | | | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class HelloWorldImpl implements HelloWorld | { | public String name, age; | | HelloWorldImpl() | { | this.name = "default name"; | this.age = "default age"; | } | | @WebMethod | public void setName(String name) | { | this.name = name; | } | | @WebMethod | public String getName() | { | return name; | } | | @WebMethod | public void setAge(String age) | { | this.age = age; | } | | @WebMethod | public String getAge() | { | return this.age; | } | } | where web.xml file is | | | | | | HelloWorldService | de.iplabs.HelloWorldImpl | | | | HelloWorldService | /* | | | | | | Now its again not showing the webserive at http://localhost/jbossws/services and also I do not see any exception at server console. Any Idea, whats going wrong ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096969#4096969 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096969 From do-not-reply at jboss.com Fri Oct 19 09:29:47 2007 From: do-not-reply at jboss.com (jtestori) Date: Fri, 19 Oct 2007 09:29:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: web service and asynchronous processing Message-ID: <2418775.1192800588001.JavaMail.jboss@colo-br-02.atl.jboss.com> dear vitor_b, did you manage to do asynchronous calls as you described here? i would be very interested in how it works. or can anyone else help me? i don't want a stateful shopping card, but a webservice that calls back to the client after processing the request, because in my case this can be some days later. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096974#4096974 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096974 From do-not-reply at jboss.com Fri Oct 19 09:37:05 2007 From: do-not-reply at jboss.com (jtestori) Date: Fri, 19 Oct 2007 09:37:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <30120090.1192801025224.JavaMail.jboss@colo-br-02.atl.jboss.com> i can't see any problem, i tried it exactly with the code you have posted and it works View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096976#4096976 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096976 From do-not-reply at jboss.com Fri Oct 19 09:41:11 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 19 Oct 2007 09:41:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS vs Glassfish, do we a 'Tester' ? Message-ID: <15422479.1192801271352.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, JBoss currently lacks something similar to the Glassfish ws Tester, however we're working on this. For further information, take a look at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121127 Feel free to comment! In the meantime you might evaluate Wise http://www.javalinuxlabs.org/wise/, a tool to test ws through a web interface almost like the Glassfish tester. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096978#4096978 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096978 From do-not-reply at jboss.com Fri Oct 19 09:57:23 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Fri, 19 Oct 2007 09:57:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <16807240.1192802243398.JavaMail.jboss@colo-br-02.atl.jboss.com> I was doing a mistake and it deployed succesfully. Now , I created consumer.java | import java.rmi.RemoteException; | | import javax.xml.rpc.ServiceException; | import de.iplabs.*; | | public class consumer | { | public static void main(String args[]) | { | | HelloWorldImplService service = new HelloWorldImplService (); | HelloWorldImpl user = service.getHelloWorldImplPort(); | System.out.println("Server said: " +user.getName()); | System.out.println("Server said: " +user.getAge()); | } | } | and when i run it, i get this error ..... C:\Office\WebService\complex\Consumer>java consumer Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Canot get target bean instance at com.sun.xml.internal.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(Unknown Source) at com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(Unknown Source) at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.receive(Unknown Source) at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(Unknown Source) at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(Unknown Source) at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(Unknown Source) at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(Unknown Source) at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(Unknown Source) at $Proxy9.getName(Unknown Source) at consumer.main(consumer.java:13) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096987#4096987 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096987 From do-not-reply at jboss.com Fri Oct 19 10:13:19 2007 From: do-not-reply at jboss.com (zeeshan.javeed) Date: Fri, 19 Oct 2007 10:13:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <2453324.1192803199318.JavaMail.jboss@colo-br-02.atl.jboss.com> :) the problem was my constructor was not declard with PUBLIC modifier. The second thing, the war file is never published if it is renamed from .rar extension to .war. It should always be proper zip file and that can renamed to war and it works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096992#4096992 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096992 From do-not-reply at jboss.com Fri Oct 19 10:20:40 2007 From: do-not-reply at jboss.com (omatzura) Date: Fri, 19 Oct 2007 10:20:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS vs Glassfish, do we a 'Tester' ? Message-ID: <5752615.1192803640277.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, have a look at soapUI (http://www.soapui.org), which is an extremely popular free open-source desktop app for invoking, testing and simulating any web-service. It even has built-in support for the jbossws wsconsume toolset and there are plugins for eclipse, netbeans and IDEA.. Previously there was also a dedicated plug-in for JBossIDE, put it has not yet made it into the new JBoss Tools stack.. Good Luck! /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096997#4096997 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096997 From do-not-reply at jboss.com Fri Oct 19 17:29:53 2007 From: do-not-reply at jboss.com (iner) Date: Fri, 19 Oct 2007 17:29:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS vs Glassfish, do we a 'Tester' ? Message-ID: <29062114.1192829393939.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks !! I will put a side saturday for this and get back to you! regards, Inkimar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097120#4097120 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097120 From do-not-reply at jboss.com Sat Oct 20 11:40:17 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Sat, 20 Oct 2007 11:40:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws Tutorial. Message-ID: <18999489.1192894817865.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi excuse me if I'm answering only now however. In my client package there are the classes genereted with WSDL2Java (an axis tool), these classes are the stub that I use to invoke the service. Now I have a problem, if I try to use wsconsume in the following way: wsconsume.bat -k http://localhost:8080/FileSave?w | sdl I receive the following error message: anonymous wrote : | Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/wsf/spi/too | ls/cmd/WSConsume | Why this problem? How can I resolve it? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097191#4097191 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097191 From do-not-reply at jboss.com Sat Oct 20 11:52:50 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Sat, 20 Oct 2007 11:52:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Deployed service statistics Message-ID: <1780991.1192895570371.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I've deployed some services on jbossws, when I view the list of deployed services there are the statistics of every service such as number of request, respons time etc etc, how can I get these statistics? Have jboss some apis? If yes, where can I find these apis? Thanks. Bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097192#4097192 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097192 From do-not-reply at jboss.com Sun Oct 21 04:16:06 2007 From: do-not-reply at jboss.com (gshumakher@gmail.com) Date: Sun, 21 Oct 2007 04:16:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Schema generation with jboss jaxb Message-ID: <13063447.1192954566822.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have a POJO class annotated with JAXB. It works great in the context of web service. But is there a jboss command line tool that I could use to generate just XSD schema out of this class (similar to schemagen.bat in jaxb reference implementation)? Thanks, Gennady View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097240#4097240 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097240 From do-not-reply at jboss.com Sun Oct 21 06:48:11 2007 From: do-not-reply at jboss.com (robert_trudel) Date: Sun, 21 Oct 2007 06:48:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - web service not found Message-ID: <29038061.1192963691853.JavaMail.jboss@colo-br-02.atl.jboss.com> hi somebody sent me a wsdl, i use the jboss tool to generate the classe it's the wsdl: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jboss generated some classe GetPrix.java GetPrixResponse.java Prix.java PrixSoap.java .... so i implemented the server class (TarifImpl who implement the interface generated by jobss) in the web.xml i wrote | | Facturateur | com.test.ws.TarifImpl | | | | Facturateur | /Facturateur | | when i go to http://localhost:8080/jbossws/services there is no service any idea? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097246#4097246 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097246 From do-not-reply at jboss.com Sun Oct 21 09:49:35 2007 From: do-not-reply at jboss.com (iner) Date: Sun, 21 Oct 2007 09:49:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS vs Glassfish, do we a 'Tester' ? Message-ID: <10738730.1192974575399.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello Alessio, Trying the WISE. Using JBoss 4.2.1. Did not install JBossWS though - is that necessary ? When surfing to: http://localhost:8080/Wise/ I get the following error in the JBoss-console: | 15:35:12,680 INFO [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbTransaction ejbName: EjbTransaction | 15:35:12,713 INFO [EJB3Deployer] Deployed: file:/C:/app/jboss-4.2.1.GA/server/default/tmp/deploy/tmp39865Wise.ear-contents/jboss-seam.jar | 15:35:12,717 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment | 15:35:12,720 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=Wise.ear,jar=Wise.ejb3.jar,unitName=Wise with dependencies: | 15:35:12,722 INFO [JmxKernelAbstraction] jboss.jca:name=WiseDatasource,service=DataSourceBinding | 15:35:12,725 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=Wise.ear,jar=Wise.ejb3.jar,unitName=Wise | 15:35:12,762 INFO [Ejb3Configuration] found EJB3 Entity bean: it.javalinux.wise.seam.entities.SavedWsdl | 15:35:12,766 INFO [Ejb3Configuration] found EJB3 Entity bean: it.javalinux.wise.seam.entities.UserInformation | 15:35:12,792 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml | 15:35:12,794 INFO [Ejb3Configuration] [PersistenceUnit: Wise] no META-INF/orm.xml found | 15:35:12,800 INFO [AnnotationBinder] Binding entity from annotated class: it.javalinux.wise.seam.entities.SavedWsdl | 15:35:12,803 INFO [EntityBinder] Bind entity it.javalinux.wise.seam.entities.SavedWsdl on table SavedWSDL | 15:35:12,826 INFO [AnnotationBinder] Binding entity from annotated class: it.javalinux.wise.seam.entities.UserInformation | 15:35:12,828 INFO [EntityBinder] Bind entity it.javalinux.wise.seam.entities.UserInformation on table UserInformation | 15:35:12,839 INFO [CollectionBinder] Mapping collection: it.javalinux.wise.seam.entities.UserInformation.savedWsdls -> SavedWSDL | 15:35:12,986 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider | 15:35:12,989 INFO [InjectedDataSourceConnectionProvider] Using provided datasource | 15:35:12,999 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null | org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'root'@'loc | alhost' (using password: NO)) | at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179) | at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577) | When using 'MySQL Administrator' and going to 'Server Connection' Then I am able to see all the connection made in my mysql-ds.xml within JBoss but not the connection in 'wise-ds.xml' I am not able to register a new user .... I am running on a windows vista at the moment, that is my working machine - the installation-routine for JBossWS seems a bit complicated. Could you give me further advice. regards, i View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097250#4097250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097250 From do-not-reply at jboss.com Sun Oct 21 10:53:30 2007 From: do-not-reply at jboss.com (iner) Date: Sun, 21 Oct 2007 10:53:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS vs Glassfish, do we a 'Tester' ? Message-ID: <298617.1192978410604.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, My mistake with Wise, sorry for that. changed the login in 'wise-ds.xml' and able to create a new user and to log in ( shame that I cannot erase the last post ) Adding a WebService which I have tried out in Glassfish: It is this small one: @Stateless() | @WebService() | public class ProjectManagerWs { | | @WebMethod | public String version() { | return "ProjectManager version 0.1"; | } | } Surfing to: http://127.0.0.1:8080/ProjectManagerWsService/ProjectManagerWs?wsdl I am able to see the WSDL. But adding it to wise and clicking the link which I have created gives me the following error: 16:47:48,421 INFO [WSDLManagerBean] *** Beginning conversation, savedWsdl = null 16:47:48,426 ERROR [WSDLManagerBean] An unexpected exception occurred while selecting the wsdl. java.lang.NoClassDefFoundError: org/jboss/wsf/spi/tools/WSContractConsumer | at it.javalinux.wise.seam.actions.WSDLManagerBean.selectWsdl(WSDLManagerBean.java:116) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Am I forgetting something ? the mysql says: mysql> select * from savedwsdl; | +-------------+---------------------------------------------------------------------+----------+------------+-------------------+ | | idSavedWSDL | wsdlLink | wsdlText | savingDate | idUserInformation | | +-------------+---------------------------------------------------------------------+----------+------------+-------------------+ | | 2 | http://127.0.0.1:8080/ProjectManagerWsService/ProjectManagerWs?wsdl | tt | 2007-10-21 | 3 | | +-------------+---------------------------------------------------------------------+----------+------------+-------------------+ | | regards, i View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097254#4097254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097254 From do-not-reply at jboss.com Sun Oct 21 14:48:45 2007 From: do-not-reply at jboss.com (nickarls) Date: Sun, 21 Oct 2007 14:48:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: nor any of its super class is known... Message-ID: <15326902.1192992525629.JavaMail.jboss@colo-br-02.atl.jboss.com> Bump. Anyone? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097270#4097270 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097270 From do-not-reply at jboss.com Sun Oct 21 16:24:18 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 21 Oct 2007 16:24:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS vs Glassfish, do we a 'Tester' ? Message-ID: <24706708.1192998259046.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm sorry, this is not the right forum for Wise issues. Please post your requests for assistance (including any follow-up to this thread) here: http://www.javalinux.it/blogs/index.php?title=wise_1_0_1_released&more=1&c=1&tb=1&pb=1#comments Anyway, you need of course to upgrade the JBossWS that ships with JBoss 4.2.1 and this is most likely the cause of your problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097279#4097279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097279 From do-not-reply at jboss.com Sun Oct 21 16:57:25 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 21 Oct 2007 16:57:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <9397476.1193000245817.JavaMail.jboss@colo-br-02.atl.jboss.com> The statistics you see in the deployed service list page are currently also available through a MBean for each endpoint (ManagedEndpoint). You can access them programmatically via JMX; moreover they're of course showed in the jmx-console under the jboss.ws domain. If you think something else should be added to those statistics or simply want to know what we're working on concerning this, please read this http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121473 and feel free to comment! Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097284#4097284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097284 From do-not-reply at jboss.com Sun Oct 21 17:00:29 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 21 Oct 2007 17:00:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <29006763.1193000429084.JavaMail.jboss@colo-br-02.atl.jboss.com> Also consider we still have to fix this http://jira.jboss.org/jira/browse/JBWS-1855, but I'm quite confident it will be resolved soon. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097285#4097285 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097285 From do-not-reply at jboss.com Mon Oct 22 03:10:45 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 22 Oct 2007 03:10:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Schema generation with jboss jaxb Message-ID: <23672973.1193037045090.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Gennady, currently there's no such commandline tool available in JBossWS. The only way how to get the XML schema generated via our tools is to provide java web service interface and use our wsprovide.sh(.bat) tool with --wsdl option. It will generate the wsdl file where's the types section. There you can find the schema generated via our tools. To provide you the implementation detail, our wsprovide tool uses com.sun.xml.bind.api.JAXBRIContext.generateSchema() method internally. So you can write such tool on your own using this knowledge or join our dev discussion here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=121127 and report the tools you are missing in JBossWS. Your contribution is welcomed ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097336#4097336 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097336 From do-not-reply at jboss.com Mon Oct 22 03:11:31 2007 From: do-not-reply at jboss.com (burakbayramli) Date: Mon, 22 Oct 2007 03:11:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain wsdl service (problem in JBoss 4.2 used to Message-ID: <13869553.1193037091307.JavaMail.jboss@colo-br-02.atl.jboss.com> That worked.. thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097337#4097337 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097337 From do-not-reply at jboss.com Mon Oct 22 03:14:07 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 22 Oct 2007 03:14:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: web service not found Message-ID: <3470583.1193037247719.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, check your JBoss AS server log if there is some problem report available. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097339#4097339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097339 From do-not-reply at jboss.com Mon Oct 22 04:13:23 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Mon, 22 Oct 2007 04:13:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <13751466.1193040803255.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alessio, I've read what you have highlited but I don't understand a lot. Does a tutorial/guide exist? If yes, where can I find it? With that informations I remain at the beginning point. Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097354#4097354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097354 From do-not-reply at jboss.com Mon Oct 22 04:29:00 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Mon, 22 Oct 2007 04:29:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <22099694.1193041740198.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, unfortunately no tutorial available on this right now; however, once you understand a bit about JMX, it's quite straightforward. I suggest you to search a bit about jmx technology on the Internet. A brief JMX-console introduction is available here: http://wiki.jboss.org/wiki/Wiki.jsp?page=JMXConsole For sure in future we'll enhance our documentation covering this issues too, as said in the productivity threads mentioned above. If you think something in particular should be done, feel free to comment there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097359#4097359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097359 From do-not-reply at jboss.com Mon Oct 22 04:52:50 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Mon, 22 Oct 2007 04:52:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: avoid lazy-initialization exceptions Message-ID: <25729308.1193043170468.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi John, please show us your SLSB and one of your entities. The JAXB default is to bind all public members. Please have a look at the JAXB spec for finer control. e.g. @XMLAccessType View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097369#4097369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097369 From do-not-reply at jboss.com Mon Oct 22 05:50:26 2007 From: do-not-reply at jboss.com (ZazzaZ) Date: Mon, 22 Oct 2007 05:50:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - org.jboss.ws.WSException: Cannot find java method Message-ID: <32054910.1193046626710.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I used wscompile to generate a webservice starting from a correct WSDL. Deploy went OK, but when I run the client class to test the service I got the following exception in server-side log. | | org.jboss.ws.WSException: Cannot find java method: controlloAccessoOperation | at org.jboss.ws.metadata.OperationMetaData.getJavaMethod(OperationMetaData.java:213) | at org.jboss.ws.binding.EndpointInvocation.getJavaMethod(EndpointInvocation.java:82) | at org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:87) | at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115) | at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209) | at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355) | at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | | | | I generated the files with the following files: wscompile input | | | | | | | | | WSDL file | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Imported schema | | | | | | | | | | | | | | | | | | web.xml file | | | | | | | controlloServlet | | org.jbpm.bpel.login.Impl | | | | controlloServlet | /controllo | | | | | And finally the webservices.xml file | | | | | | | | Controllo Autenticazione | | WEB-INF/wsdl/ControlloAccesso.wsdl | WEB-INF/jaxrpc-mapping.xml | | | | ControlloAccessoPort | portNS:ControlloAccessoPort | | org.jbpm.bpel.login.ControlloAccessoPortType | | | controlloServlet | | | | | | | | | I hope my information are enought to get a solution. Bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097381#4097381 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097381 From do-not-reply at jboss.com Mon Oct 22 06:06:19 2007 From: do-not-reply at jboss.com (cch@jboss) Date: Mon, 22 Oct 2007 06:06:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to handle namespace generation? Message-ID: <1900161.1193047579666.JavaMail.jboss@colo-br-02.atl.jboss.com> *push* Nobody has any hint for me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097386#4097386 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097386 From do-not-reply at jboss.com Mon Oct 22 06:57:57 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Mon, 22 Oct 2007 06:57:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - AOP with web service Message-ID: <9860675.1193050677565.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I heve developed a web service for jbossws and I would apply an aspect to the methods of this web service. I have written the aspect code and the xml file for jbossaop and I have installed jboss aop on jboss4.2.1 following the jboss aop instruction (I've copied this directory jboss-aop-jdk50.deployer in the deploy directory of jboss4.2.1). My war file is composed so: directory META-INF: directory WEB-INF: -file web.xml; -file jboss-aop.xml; +directory classes: -file jboss-aop.xml; +directory xml: -XMLJDomWriterStat.class -XMLSaxReaderStat.class +directory services: -ServiceAOP.class; -ServiceAOPAspect.class. My web.xml file is so composed: | | | | | | ServiceAOP | service.ServiceAOP | | | | ServiceAOP | /* | | | | My jboss-aop.xml is the following: | | | | | | | | What have I to do for running aop on web service? Thanks all, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097400#4097400 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097400 From do-not-reply at jboss.com Mon Oct 22 07:37:30 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Mon, 22 Oct 2007 07:37:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <21112772.1193053050802.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! Just take a look in the source code for the jbossws web application and you?re up and running. It's really simple when you find the correct source. Anyway, here is a code snippet ... | // get SPI provider and endpoint registry | SPIProvider spiProvider = SPIProviderResolver.getInstance() | .getProvider(); | EndpointRegistry epRegistry = spiProvider.getSPI( | EndpointRegistryFactory.class).getEndpointRegistry(); | | // loop over all endpoints | Set objectNames = epRegistry.getEndpoints(); | for (ObjectName objectName : objectNames) { | | // get the endpoint by using its name | Endpoint endpoint = epRegistry.getEndpoint(objectName); | | ... | } | Cheers, Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097413#4097413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097413 From do-not-reply at jboss.com Mon Oct 22 08:23:50 2007 From: do-not-reply at jboss.com (ptenn10) Date: Mon, 22 Oct 2007 08:23:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Jboss Annotation: WebContext package and JAR location. Message-ID: <28352709.1193055830828.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, Quick question: I would like to use WebContext for EJB3. However, it seems like the packaging has changed on this annotation. Under the examples for jbossws-1.2.1GA, I saw the annotation being imported as: org.jboss.ws.annotation.WebContext However, I could not find this anywhere in jbossws-2.0.1GA (I checked through all the JARs). I did find: org.jboss.wsf.spi.annotation.WebContext Is this the same annotation? Can I rely on this to work as the WebContext annotation that was described in the examples? Thanks, Philip Tenn View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097437#4097437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097437 From do-not-reply at jboss.com Mon Oct 22 08:33:21 2007 From: do-not-reply at jboss.com (ZazzaZ) Date: Mon, 22 Oct 2007 08:33:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: Cannot find java method Message-ID: <23846844.1193056401761.JavaMail.jboss@colo-br-02.atl.jboss.com> I just modified my WSDL like this | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ant regenerating the service went OK. I dunno if the problem was in the attribute name of binding operation or message part but now it works! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097444#4097444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097444 From do-not-reply at jboss.com Mon Oct 22 09:05:50 2007 From: do-not-reply at jboss.com (sarunb4u) Date: Mon, 22 Oct 2007 09:05:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss and Apache Axis compatibility Message-ID: <32261245.1193058350373.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm in the midst of integrating two components, one runs in JBoss and other components exposes some web services deployed in Axis. When i integrate them, there will be a communication between component deployed in JBOSS and Web services exposed via Axis. If i understand correctly, AXIS by default uses RPC service style and JBOSS uses document/literal encoding format. So there is a notion of soap-wsdl encoding format change required here. All i wanted to know is that, 1.Is there any compatibility issues (if any) between JBOSS and Axis ? 2.JBOSS-Axis interaction with respect to the soap encoding format ? 3.Some explanation on SOAP encodingStyle ? Regards Arun View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097465#4097465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097465 From do-not-reply at jboss.com Mon Oct 22 09:29:23 2007 From: do-not-reply at jboss.com (AnisBM) Date: Mon, 22 Oct 2007 09:29:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Newbie with JbossWS Message-ID: <2279036.1193059763461.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, Do the WSTools generate web services conform to Seam 2.0 web services ? PS : I'm using those integrated in JBoss 4.2.1. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097476#4097476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097476 From do-not-reply at jboss.com Mon Oct 22 11:33:56 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Mon, 22 Oct 2007 11:33:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <27181756.1193067236486.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I begin to study jmx, I hope to understand something, the code posted by oskar permits to take the list of web service deployed on jboss? A question, has jbossws statistics about each operation (ex: number of request of operation echo(String) of service Pippo) of the service or only the general statistics of a service (ex: number of request of service Pippo)? Thanks! Bye Bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097532#4097532 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097532 From do-not-reply at jboss.com Mon Oct 22 12:05:42 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 22 Oct 2007 12:05:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jboss Annotation: WebContext package and JAR location. Message-ID: <30020416.1193069142621.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, it should be the same (but refactored) annotation ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097550#4097550 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097550 From do-not-reply at jboss.com Mon Oct 22 14:39:15 2007 From: do-not-reply at jboss.com (robert_trudel) Date: Mon, 22 Oct 2007 14:39:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: web service not found Message-ID: <4555809.1193078355666.JavaMail.jboss@colo-br-02.atl.jboss.com> there is no error View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097589#4097589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097589 From do-not-reply at jboss.com Tue Oct 23 01:58:44 2007 From: do-not-reply at jboss.com (sarunb4u) Date: Tue, 23 Oct 2007 01:58:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss and Apache Axis compatibility Message-ID: <5891935.1193119124914.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi ppl I need your help here. I'll really appreciate any kind of help as i'm new to this web service stuff. --Arun View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097693#4097693 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097693 From do-not-reply at jboss.com Tue Oct 23 02:55:58 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Tue, 23 Oct 2007 02:55:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss and Apache Axis compatibility Message-ID: <16932557.1193122559007.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! If you are creating "contract first" web services, there should be no problem at all. If you are generating your contract you can get into trouble. So stick to contract first and generate booth service implementation and client usage from the contract to be on the "safe" side. Regards Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097706#4097706 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097706 From do-not-reply at jboss.com Tue Oct 23 04:26:58 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Tue, 23 Oct 2007 04:26:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: AOP with web service Message-ID: <28873140.1193128018511.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I've modified my war file in this way: In META-INF directory there is the file: jboss-aop.xml, this file is only in this place; In WEB-INF: directory WEB-INF: -file web.xml; +directory classes: +directory xml: -XMLJDomWriterStat.class -XMLSaxReaderStat.class +directory services: -ServiceAOP.class; -ServiceAOPAspect.class; -ServiceAOP$fattoriale_9086071828619756113.class (this class was generated by jboss aop ide with eclipse automatically). When I try to invoke a method of the web service, also a method whitout a binding with the aspect I receive this error: | Exception in thread "main" AxisFault | 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 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) | at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215) | at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386) | at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) | at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230) | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798) | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) | at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) | at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) | at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) | 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 clientLett.ServiceLettBindingStub.fattoriale(ServiceLettBindingStub.java:117) | at Test.main(Test.java:38) | | {http://xml.apache.org/axis/}hostname:angelinux | | org.xml.sax.SAXParseException: Premature end of file. | at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) | at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701) | 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 clientLett.ServiceLettBindingStub.fattoriale(ServiceLettBindingStub.java:117) | at Test.main(Test.java:38) | Caused by: org.xml.sax.SAXParseException: Premature end of file. | at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) | at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215) | at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386) | at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) | at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230) | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798) | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) | at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) | at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) | at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) | at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) | at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) | ... 10 more | Why? How can I resolve? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097730#4097730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097730 From do-not-reply at jboss.com Tue Oct 23 06:41:02 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Tue, 23 Oct 2007 06:41:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Exception while deploying the webservice using jax-ws Message-ID: <9736889.1193136062526.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I am migrating the web service from weblogic to JBoss 4.2.1 I have WDSL file so i am using TOP-DOWN approach which was mentined in JAX-WS userguide.I have generated schema related classes using jaxb 2.o and modified the code accordingly and used WSCONSUME for generating client side artifacts and prepared the war file and tried to deploy the web service. Following is the exception that i am getting while deploying the webservice java.lang.ClassCastException: com.covad.xsd.smo.vendororder.ProcessVendorOrder$J axbAccessorM_getVendorOrder_setVendorOrder_com_covad_xsd_smo_vendororder_VendorO rder at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.inst anciate(OptimizedAccessorFactory.java:151) at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get( OptimizedAccessorFactory.java:96) at com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.o ptimize(Accessor.java:308) at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty. (SingleElementNodeProperty.java:53) at sun.reflect.GeneratedConstructorAccessor42.newInstance(Unknown Source ) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyF actory.java:88) at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImp l.java:135) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextIm pl.java:404) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.ja va:246) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java: 76) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java: 55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210) at javax.xml.bind.ContextFinder.find(ContextFinder.java:368) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java :67) at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java :54) at org.jboss.ws.metadata.umdm.ParameterMetaData.eagerInitialize(Paramete rMetaData.java:470) at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(Operatio nMetaData.java:466) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations (EndpointMetaData.java:516) at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(Endpoi ntMetaData.java:502) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointM etaData.java:490) at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMet aData.java:429) at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMet aData.java:192) at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:1 12) at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint( ServiceEndpointManager.java:646) at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpoin tDeployer.java:140) at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndp oint(DeployerInterceptor.java:144) at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerIn terceptor.java:96) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. start(SubDeployerInterceptorSupport.java:188) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce ptor.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 $Proxy46.start(Unknown Source) 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 sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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(URLDeploymen tScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:610) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. loop(AbstractDeploymentScanner.java:274) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. run(AbstractDeploymentScanner.java:225) 15:58:00,843 ERROR [MainDeployer] Could not start deployment: file:/E:/jboss-4.2 .1.GA/server/default/deploy/mcafeeAdapter.war org.jboss.deployment.DeploymentException: Cannot start service endpoint; - neste d throwable: (java.lang.ClassCastException: com.covad.xsd.smo.vendororder.Proces sVendorOrder$JaxbAccessorM_getVendorOrder_setVendorOrder_com_covad_xsd_smo_vendo rorder_VendorOrder) at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException (DeploymentException.java:53) at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerIn terceptor.java:101) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. start(SubDeployerInterceptorSupport.java:188) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce ptor.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 $Proxy46.start(Unknown Source) 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 sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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(URLDeploymen tScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:610) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. loop(AbstractDeploymentScanner.java:274) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. run(AbstractDeploymentScanner.java:225) Caused by: java.lang.ClassCastException: com.covad.xsd.smo.vendororder.ProcessVe ndorOrder$JaxbAccessorM_getVendorOrder_setVendorOrder_com_covad_xsd_smo_vendoror der_VendorOrder at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.inst anciate(OptimizedAccessorFactory.java:151) at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get( OptimizedAccessorFactory.java:96) at com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.o ptimize(Accessor.java:308) at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty. (SingleElementNodeProperty.java:53) at sun.reflect.GeneratedConstructorAccessor42.newInstance(Unknown Source ) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyF actory.java:88) at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImp l.java:135) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextIm pl.java:404) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.ja va:246) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java: 76) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java: 55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210) at javax.xml.bind.ContextFinder.find(ContextFinder.java:368) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java Please help me how to overcome this exception Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097801#4097801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097801 From do-not-reply at jboss.com Tue Oct 23 06:54:04 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Tue, 23 Oct 2007 06:54:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Exception while deploying the webservice using jax-ws Message-ID: <2546140.1193136844394.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry i forgot to mention this the interface created by WSCONSUME package com.covad.xsd.smo.vendororder; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; /** * JBossWS Generated Source * * Generation Date: Tue Oct 23 09:29:51 IST 2007 * * This generated source code represents a derivative work of the input to * the generator that produced it. Consult the input for the copyright and * terms of use that apply to this source code. * * JAX-WS Version: 2.0 * */ @WebService(name = "VendorOrderPort", targetNamespace = "http://smo.xsd.covad.com/vendororder") public interface VendorOrderPort { /** * * @param vendorOrder * @return * returns com.covad.xsd.smo.vendororder.VendorOrder * @throws VendorOrderException_Exception */ @WebMethod @WebResult(targetNamespace = "http://smo.xsd.covad.com/vendororder") @RequestWrapper(localName = "processVendorOrder", targetNamespace = "http://smo.xsd.covad.com/vendororder", className = "com.covad.xsd.smo.vendororder.ProcessVendorOrder") @ResponseWrapper(localName = "processVendorOrderResponse", targetNamespace = "http://smo.xsd.covad.com/vendororder", className = "com.covad.xsd.smo.vendororder.ProcessVendorOrderResponse") public VendorOrder processVendorOrder( @WebParam(name = "vendorOrder", targetNamespace = "http://smo.xsd.covad.com/vendororder") VendorOrder vendorOrder) throws VendorOrderException_Exception ; } Please help me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097803#4097803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097803 From do-not-reply at jboss.com Tue Oct 23 08:12:18 2007 From: do-not-reply at jboss.com (iner) Date: Tue, 23 Oct 2007 08:12:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem to install jbossws-native-2.0.1.GA, build.xml !? Message-ID: <21382721.1193141539010.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I am running JBoss 4.2.1 on my windows machine. Using JDK jdk1.5.0_12, | C:\app\jbossws-native-2.0.1.GA>echo %java_home% | C:\jdk1.5.0_12 | | C:\app\jbossws-native-2.0.1.GA>java -version | java version "1.5.0_12" | Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04) | Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing) | | C:\app\jbossws-native-2.0.1.GA>echo %jboss_home% | C:\APP\jboss-4.2.1.GA | | Changed the ant.properites to reflect my environment. | # Optional JBoss Home | | jboss42.home=C:\APP\jboss-4.2.1.GA. | | running the following: | C:\app\jbossws-native-2.0.1.GA>ant deploy-jboss42 | Buildfile: build.xml | | prepare: | | undeploy-jboss42-endorsed: | | undeploy-jboss42: | | BUILD FAILED | C:\app\jbossws-native-2.0.1.GA\build\build-deploy.xml:58: The following error occurred while executing this line: | C:\app\jbossws-native-2.0.1.GA\build\macros-deploy-native.xml:178: Not available: C:APPjboss-4.2.1.GA/client/jboss-client.jar | | Total time: 1 second | C:\app\jbossws-native-2.0.1.GA> | Total time: 0 seconds So, where am I going wrong, seems like the build.xml does something to my %jboss_home% which it should not do. regards, i View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097857#4097857 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097857 From do-not-reply at jboss.com Tue Oct 23 08:26:34 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 23 Oct 2007 08:26:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem to install jbossws-native-2.0.1.GA, build.xml !? Message-ID: <11752624.1193142394975.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, you're working with "excellent OS", so you must jboss42.home=C:\APP\jboss-4.2.1.GA replace with jboss42.home=C:\\APP\\jboss-4.2.1.GA Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097868#4097868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097868 From do-not-reply at jboss.com Tue Oct 23 09:44:16 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Tue, 23 Oct 2007 09:44:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <28939868.1193147056436.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Oskar! What are the jar files of that classes and what are the packages? What do I obtain with that classes? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097895#4097895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097895 From do-not-reply at jboss.com Tue Oct 23 10:05:57 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Tue, 23 Oct 2007 10:05:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <666601.1193148357757.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! http://repository.jboss.org/maven2/jboss/jbossws-spi/1.0.0.GA/jbossws-spi-1.0.0.GA.jar //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097904#4097904 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097904 From do-not-reply at jboss.com Tue Oct 23 10:22:37 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Tue, 23 Oct 2007 10:22:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <9768400.1193149357618.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Oskar, with this classes what do I obtain? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097910#4097910 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097910 From do-not-reply at jboss.com Tue Oct 23 10:24:41 2007 From: do-not-reply at jboss.com (torkins) Date: Tue, 23 Oct 2007 10:24:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - generating documentation for deployed web services stateless Message-ID: <23420483.1193149481329.JavaMail.jboss@colo-br-02.atl.jboss.com> In my application, I am deploying Stateless session beans in an ear to my jboss instance. Jboss correctly generates a WSDL and publishes it and everything works. What I can't figure out is how to code my javadoc (Or anything else) so that when Jboss generates the WSDL to publish, it generates wsdl:documentation or xsd:documentation tags for either the WSDL components (definitions,operations, etc) or any of the schema types. I found that if I use the structure in a schema and consume it with WSConsume, it will generate a class that includes that documentation in the javadoc of the class. What I am trying to do is the reverse (since I cannot create the WSDL manually, I require Jboss to be able to generate the documentation elements). Does anyone know how I can accomplish this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097912#4097912 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097912 From do-not-reply at jboss.com Tue Oct 23 10:51:37 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Tue, 23 Oct 2007 10:51:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: generating documentation for deployed web services state Message-ID: <14248362.1193151097585.JavaMail.jboss@colo-br-02.atl.jboss.com> This is going to be done in JBossWS 2.0.3 http://jira.jboss.com/jira/browse/JBWS-1850 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097926#4097926 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097926 From do-not-reply at jboss.com Tue Oct 23 11:01:42 2007 From: do-not-reply at jboss.com (torkins) Date: Tue, 23 Oct 2007 11:01:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: generating documentation for deployed web services state Message-ID: <33374778.1193151702991.JavaMail.jboss@colo-br-02.atl.jboss.com> thanks for the quick reply :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097932#4097932 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097932 From do-not-reply at jboss.com Tue Oct 23 11:13:06 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 23 Oct 2007 11:13:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem to install jbossws-native-2.0.1.GA, build.xml !? Message-ID: <22085379.1193152386885.JavaMail.jboss@colo-br-02.atl.jboss.com> Or simply: jboss42.home=c:/app/jboss-4.2.1.GA Ant does not care which directory separator you use. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097939#4097939 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097939 From do-not-reply at jboss.com Tue Oct 23 11:49:37 2007 From: do-not-reply at jboss.com (bcowan) Date: Tue, 23 Oct 2007 11:49:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Concurrency issue in request handler chain Message-ID: <9177166.1193154577348.JavaMail.jboss@colo-br-02.atl.jboss.com> I have entered bug report JBWS-1859 to describe a bug we experienced when JBoss is restarted. If client applications are still actively making web service requests during the restart, the handler chain was usually populated with too many copies of the handlers. This doesn't seem to cause a major problem unless WS Security is active. In this case, the first WS Security handler removes the wsse header, so any subsequent WS Security handler throws an exception. As a result, the client receives the message "This service requires , which is missing" even though the header was included. Once this error starts to happen, the server will not recover until it's restarted. Sample client and server code is attached to the bug report, and I've also included patch information on how to fix it. Bruce View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097960#4097960 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097960 From do-not-reply at jboss.com Tue Oct 23 14:56:40 2007 From: do-not-reply at jboss.com (nickarls) Date: Tue, 23 Oct 2007 14:56:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: nor any of its super class is known... Message-ID: <32925329.1193165800492.JavaMail.jboss@colo-br-02.atl.jboss.com> OK, what would be a better place to ask? The Sun forums? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098020#4098020 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098020 From do-not-reply at jboss.com Tue Oct 23 15:24:48 2007 From: do-not-reply at jboss.com (iner) Date: Tue, 23 Oct 2007 15:24:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem to install jbossws-native-2.0.1.GA, build.xml !? Message-ID: <17933727.1193167488907.JavaMail.jboss@colo-br-02.atl.jboss.com> thanx. -i View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098031#4098031 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098031 From do-not-reply at jboss.com Tue Oct 23 18:07:21 2007 From: do-not-reply at jboss.com (happyspace) Date: Tue, 23 Oct 2007 18:07:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Raw Style webservices Message-ID: <6858167.1193177241454.JavaMail.jboss@colo-br-02.atl.jboss.com> I had the same problem with the web service provider style of web service. I am using jbossas 5 beta two with jbossws 1.2.1. It appears that jboss beta two uses xerces-2.7.1. After assembling all of the sources I found the ?real? cause of the NAMESPACE_ERR exception to be of mixing DOM 1 vs DOM 2 APIs. When a document is set for the SOAP body the dom tree for that document is copied into the soap body. If that document is made up of ElementImpl nodes rather than ElementNSImpl the call into Xerces fails with the now familiar NAMESPACE_ERR. To work around this issue change your code to use ?createElementNS?. I happen to be using Castor, which creates documents composed of ElementImpl nodes. I have a work around using the TransformerFactory of Xalan to create a new doc tree but would rather not have to copy the document twice. The details: SOAPBodyImpl SOAPBodyElement addDocument(Document doc) creates a soapFactory and begins the copy of elements from the document into the soapBody with the default as deep through soapFactory.createElement(rootElement). In SOAPFactoryImpl createElement(Element domElement, boolean deep) an assumption is made that the element passed in is an ElementNSImpl (has a localName). SOAPFactoryImpl ? | public SOAPElement createElement(Element domElement, boolean deep) throws SOAPException | { | if (domElement == null) | throw new IllegalArgumentException("Source node cannot be null"); | | if (domElement instanceof SOAPElement) | return (SOAPElement)domElement; | | String localName = domElement.getLocalName(); | String prefix = domElement.getPrefix() != null ? domElement.getPrefix() : ""; | String nsURI = domElement.getNamespaceURI() != null ? domElement.getNamespaceURI() : ""; | ? In the case of an ElementImpl the localName is null as well as the prefix, ElementImpl will have the field name set. Thus when DOMUtils createElement(String localPart, String prefix, String url) is called the localPart == null but the prefix is an empty string. DOMUtils public static Element createElement(String localPart, String prefix, String uri) | { | Document doc = getOwnerDocument(); | if (prefix == null || prefix.length() == 0) | { | log.trace("createElement {" + uri + "}" + localPart); | return doc.createElementNS(uri, localPart); | } | else | { | log.trace("createElement {" + uri + "}" + prefix + ":" + localPart); | return doc.createElementNS(uri, prefix + ":" + localPart); | } | } ? So the call into Xerces for createElementNS fails on setName(String namespaceURI, String qname) in ElementNSImpl as noted in the comment in the Xerces code: anonymous wrote : //NAMESPACE_ERR: | //1. if the qualified name is 'null' it is malformed. | //2. or if the qualifiedName is null and the namespaceURI is different from null, | // We dont need to check for namespaceURI != null, if qualified name is null throw DOMException. ElementNSImpl.java private void setName(String namespaceURI, String qname) { | | String prefix; | // DOM Level 3: namespace URI is never empty string. | this.namespaceURI = namespaceURI; | if (namespaceURI != null) { | //convert the empty string to 'null' | this.namespaceURI = (namespaceURI.length() == 0) ? null : namespaceURI; | } | | int colon1, colon2 ; | | //NAMESPACE_ERR: | //1. if the qualified name is 'null' it is malformed. | //2. or if the qualifiedName is null and the namespaceURI is different from null, | // We dont need to check for namespaceURI != null, if qualified name is null throw DOMException. | if(qname == null){ | String msg = | DOMMessageFormatter.formatMessage( | DOMMessageFormatter.DOM_DOMAIN, | "NAMESPACE_ERR", | null); | throw new DOMException(DOMException.NAMESPACE_ERR, msg); | } Test Code: The following snippet shows the exception. boolean createNS = false; | DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); | documentBuilderFactory.setNamespaceAware(true); | DocumentBuilder builder = documentBuilderFactory.newDocumentBuilder(); | document = builder.newDocument(); | | if(createNS){ | Element element = document.createElementNS(null, "Moo"); | document.appendChild(element); | } | else | { | // Causes the NAMESPACE_ERR to be thrown | Element element = document.createElement("Moo"); | element.appendChild(document.createTextNode(messageType)); | } | | | MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL); | message = messageFactory.createMessage(); | | SOAPEnvelope envelope = message.getSOAPPart().getEnvelope(); | SOAPBody body = envelope.getBody(); | | body.addDocument(document); Documentation: http://xerces.apache.org/xerces-j/apiDocs/org/apache/xerces/dom/ElementNSImpl.html vs http://xerces.apache.org/xerces-j/apiDocs/org/apache/xerces/dom/ElementImpl.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098072#4098072 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098072 From do-not-reply at jboss.com Wed Oct 24 01:39:45 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Wed, 24 Oct 2007 01:39:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Exception while deploying the webservice using jax-ws Message-ID: <19790220.1193204385200.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I have resolved ClassCastException issue. Now i am getting this exception org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract javax.xml.bind.annotati on.XmlAccessType javax.xml.bind.annotation.XmlAccessorType.value() (Found data o f type Ljavax/xml/bind/annotation/AccessType;.FIELD)) at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException (DeploymentException.java:53) at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerI nterceptor.java:83) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. create(SubDeployerInterceptorSupport.java:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce ptor.java:91) 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 $Proxy46.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) I have created Schema classes by using JAXB 2.0 and i have deployed on JBoss 4.2.1. Please any one suggest on this. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098115#4098115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098115 From do-not-reply at jboss.com Wed Oct 24 02:25:18 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 02:25:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Exception while deploying the webservice using jax-ws Message-ID: <2348605.1193207118807.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you please post the code where you're using the XmlAccessorType annotation? I mean, are you using this @XmlAccessorType(XmlAccessType.FIELD) or something different? (like an array of AccessType.FIELD) You might also start from the classes generated by wsconsume. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098130#4098130 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098130 From do-not-reply at jboss.com Wed Oct 24 02:35:48 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 02:35:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: nor any of its super class is known... Message-ID: <24266552.1193207748855.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you please post the source code of your jaxb annotated classes? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098137#4098137 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098137 From do-not-reply at jboss.com Wed Oct 24 03:06:18 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 03:06:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <1324859.1193209578896.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi abdujaparov, what Oskar is telling you is that instead of using JMX to access the managed endpoint MBean, you might leverage our spi to get the metrics you're looking for. As a matter of fact, once you get the org.jboss.wsf.spi.deployment.Endpoint with the code Okar gave you, you can do EndpointMetrics epm = endpoint.getEndpointMetrics(); | epm.getAverageProcessingTime(); | epm.getRequestCount(); | ... This is another solution, with its own advantages and disadvantages. I still think it might be interesting to take a look at the jmx way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098140#4098140 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098140 From do-not-reply at jboss.com Wed Oct 24 03:18:35 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 03:18:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss and Apache Axis compatibility Message-ID: <24466033.1193210315306.JavaMail.jboss@colo-br-02.atl.jboss.com> You may have compatibility issues if your axis ws uses rpc/encoded style, since jbossws does not support it because WS-I Basic Profile disallowed it. Rpc/literal and document/literal instead are supported by JBossWS. Take a look at http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/ for further informations about wsdl styles. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098143#4098143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098143 From do-not-reply at jboss.com Wed Oct 24 03:23:47 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 03:23:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: web service not found Message-ID: <19844030.1193210627625.JavaMail.jboss@colo-br-02.atl.jboss.com> Did jboss deploy your package once you dropped it in the deploy dir? (btw, is it a war?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098145#4098145 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098145 From do-not-reply at jboss.com Wed Oct 24 03:29:47 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 03:29:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: Cannot find java method Message-ID: <31035046.1193210987960.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, that could be the problem.Generally speaking, In future I would also suggest you to evaluate switching to JAX-WS. Bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098147#4098147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098147 From do-not-reply at jboss.com Wed Oct 24 03:42:44 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 03:42:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Multiple SOAP attachments via MTOM document/literal? Message-ID: <32569802.1193211764393.JavaMail.jboss@colo-br-02.atl.jboss.com> It never happened to me to try with multiple attachments, however I think it should be doable. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098150#4098150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098150 From do-not-reply at jboss.com Wed Oct 24 04:04:32 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 04:04:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Newbie with JbossWS Message-ID: <26601091.1193213072971.JavaMail.jboss@colo-br-02.atl.jboss.com> As you can see here http://docs.jboss.com/seam/2.0.0.CR2/reference/en/html/webservices.html, Seam allows you to add a JAX-WS handler to the invocation chain so that you can work on its conversations through ws request. This means you have to use JAX-WS webservices; WSTools does not support jax-ws, you need to use wsconsume/wsprovide tools. Thus you need to upgrade jbossws to 2.0.x (I guess you have jbossws 1.2.1.GA) Finally, if you're simply looking for a way to get a ws to use as a facade to your Seam component, I would suggest you to take a look at our quick start documentation, it's really easy: http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098153#4098153 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098153 From do-not-reply at jboss.com Wed Oct 24 05:04:37 2007 From: do-not-reply at jboss.com (nickarls) Date: Wed, 24 Oct 2007 05:04:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: nor any of its super class is known... Message-ID: <8551860.1193216677430.JavaMail.jboss@colo-br-02.atl.jboss.com> I have an interface | @Remote | @WebService | public interface ServerInterface { | ... and an implementation | @Stateless | @WebService | @WebContext(contextRoot="/services) | @EndpointConfig(configName="Standard WSSecurity Endpoint") | @Name("serverWebService") | public class ServerWebService implements ServerInterface { | ... (deployed in a Seam 2.0.0CR2 app to JBoss 4.2.1GA) and I call it like | Service service = Service.create(new URL(...), new QName(...)); | ((ServiceExt)service).setSecurityConfig(new File("META-INF/jboss-wsse-client.xml").toURI().toURL().toExternalForm()); | port = service.getPort(ServerInterface.class); | ((StubExt)port).setConfigName("Standard WSSecurity Client"); | ... | Thanks for your time, -Nik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098183#4098183 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098183 From do-not-reply at jboss.com Wed Oct 24 07:23:34 2007 From: do-not-reply at jboss.com (ejb3workshop) Date: Wed, 24 Oct 2007 07:23:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Basic Authentication with WSSecureEndpoint on JBoss 4.2.2GA Message-ID: <12895264.1193225014374.JavaMail.jboss@colo-br-02.atl.jboss.com> I want to use Username Tokens to authenticate with a webservice provided by a Session Bean as shows: @Stateless | @WebService | @EndpointConfig(configName="Standard WSSecurity Endpoint") | @SecurityDomain("java:/jaas/THZone") | @RolesAllowed("friend") | @SOAPBinding(style=SOAPBinding.Style.DOCUMENT, | use=SOAPBinding.Use.LITERAL, | parameterStyle=SOAPBinding.ParameterStyle.BARE) I searched the forum and found several references to : http://wiki.jboss.org/wiki/Wiki.jsp?page=WSSecureEndpoint which points to the user guide. I configured the login module in conf/login-config.xml to use a properties file to test the configuration. However when I try to access the principal I get a null back. Since added the RolesAllowed annotation the service fails with : anonymous wrote : | 11:46:07,984 ERROR [RoleBasedAuthorizationInterceptor] Insufficient permissions, principal=null, requiredRoles=[friend], principalRoles=[] | 11:46:07,984 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.ejb.EJBAccessException: Authorization failure | at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:120) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | 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.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.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:619) | It seems that I am just missing the right configuration. Any pointers on what to configure would help me a great deal. Tx Alex View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098251#4098251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098251 From do-not-reply at jboss.com Wed Oct 24 07:31:43 2007 From: do-not-reply at jboss.com (ejb3workshop) Date: Wed, 24 Oct 2007 07:31:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSSecurity Username token Message-ID: <25385041.1193225503590.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you ever this the resolved. I am having the same problem using JBoss 4.2.2 wich included a new build of JBossWS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098254#4098254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098254 From do-not-reply at jboss.com Wed Oct 24 09:04:34 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Wed, 24 Oct 2007 09:04:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Exception while deploying the webservice using jax-ws Message-ID: <9591698.1193231074481.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, This issue has been resolved by moving to Jbossws 2.0.1 GA. Now i am getting different exception java.lang.IllegalStateException: Cannot find endpoint meta data for: MacafeeAdapter at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM etaData(UnifiedMetaDataDeploymentAspect.java:117) at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi edMetaDataDeploymentAspect.java:86) at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy (DeploymentAspectManagerImpl.java:115) at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep loyerHook.java:97) at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt erceptor.java:90) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. start(SubDeployerInterceptorSupport.java:188) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce ptor.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 $Proxy45.start(Unknown Source) 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 sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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(URLDeploymen tScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:634) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A bstractDeploymentScanner.java:336) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS upport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB eanSupport.java:245) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.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(ServiceControl ler.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(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.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(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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) 18:29:00,849 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo at f00a09d9 { url=file:/D:/jboss-4.2.1.GA/serve r/default/deploy/mcafeeAdapter.war } deployer: MBeanProxyExt[jboss.web:service=WebServer] status: Deployment FAILED reason: Cannot find endpoint meta data for: MacafeeA dapter state: FAILED watch: file:/D:/jboss-4.2.1.GA/server/default/deploy/mcafeeAdapter.war altDD: null lastDeployed: 1193230739941 lastModified: 1193230739925 mbeans: jboss.web:j2eeType=Servlet,name=default,WebModule=//localhost/mcafeeAdapter, J2EEApplication=none,J2EEServer=none (state not available) jboss.web:j2eeType=Servlet,name=MacafeeAdapter,WebModule=//localhost/mcafeeA dapter,J2EEApplication=none,J2EEServer=none (state not available) jboss.web:j2eeType=Servlet,name=jsp,WebModule=//localhost/mcafeeAdapter,J2EE Application=none,J2EEServer=none (state not available) This is my remote interface import javax.xml.ws.ResponseWrapper; import java.rmi.Remote; import java.rmi.RemoteException; /** * JBossWS Generated Source * * Generation Date: Tue Oct 23 09:29:51 IST 2007 * * This generated source code represents a derivative work of the input to * the generator that produced it. Consult the input for the copyright and * terms of use that apply to this source code. * * JAX-WS Version: 2.0 * */ @WebService(name = "VendorOrderPort", targetNamespace = "http://smo.xsd.covad.com/vendororder") public interface VendorOrderPort extends Remote{ /** * * @param vendorOrder * @return * returns com.covad.xsd.smo.vendororder.VendorOrder * @throws RemoteException */ @WebMethod @WebResult(targetNamespace = "http://smo.xsd.covad.com/vendororder") @RequestWrapper(localName = "processVendorOrder", targetNamespace = "http://smo.xsd.covad.com/vendororder", className = "com.covad.xsd.smo.vendororder.ProcessVendorOrder") @ResponseWrapper(localName = "processVendorOrderResponse", targetNamespace = "http://smo.xsd.covad.com/vendororder", className = "com.covad.xsd.smo.vendororder.ProcessVendorOrderResponse") public VendorOrder processVendorOrder( @WebParam(name = "vendorOrder", targetNamespace = "http://smo.xsd.covad.com/vendororder") VendorOrder vendorOrder) throws RemoteException ; } This is Web service implementation class package com.covad.mcafee.adapter.webservice; import com.covad.mcafee.service.McAfeeProxy; import com.covad.xsd.smo.vendororder.VendorOrder; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.covad.xsd.smo.vendororder.VendorOrderPort; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; @WebService(endpointInterface="com.covad.xsd.smo.vendororder.VendorOrderPort") public class macafeeAdapter implements VendorOrderPort { private static Log logger = LogFactory.getLog("com.covad.mcafee.adapter"); @WebMethod(operationName = "ProcessVendorOrder") public VendorOrder processVendorOrder(VendorOrder vendorOrder) { // logger.info("Entering mcafeeadapter.processVendorOrder() with "+vendorOrder.xmlText()); logger.info("Entering mcafeeadapter.processVendorOrder() with "); McAfeeProxy mcAfeeProxy = new McAfeeProxy(); VendorOrder res = mcAfeeProxy.processVendorOrder(vendorOrder); logger.info("COMPLETE"); return res; } } Please help me. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098293#4098293 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098293 From do-not-reply at jboss.com Wed Oct 24 10:14:19 2007 From: do-not-reply at jboss.com (FabianW) Date: Wed, 24 Oct 2007 10:14:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Errors in AS after updating JBossWS - plz help Message-ID: <26724238.1193235259108.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi there I wanted to run the Web Service example which belongs to the JBossESB quickstarts. I tried to deploy it, but i got the error message, that I have to update JBossWS according to the AdministrationGuide.pdf. In this guide two steps are mentioned. First I downloaded and deployed JBossWS 2.0.1. Then I executed 'ant patch-jbossws' from the ESB 'install' directory which was also successful. Everything seemed fine so far. But everytime I start the JBoss AS I get some huge errors: 15:44:57,421 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- MBeans waiting for other MBeans --- | ObjectName: jboss.beans:service=JBossBeanDeployment,name='jbossws.sar#jbossws.beans' | State: FAILED | Reason: org.jboss.deployment.DeploymentException: Cannot start AbstractKernelDeployment at 87cd5c{name=file:/C:/JBoss_AS_4.2.1/server/default/deploy/jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml installed=true beans=[AbstractBeanMetaData at 1bb8694{name=WSEndpointJAXBIntrosCustomizationsDeployer bean=org.jboss.wsf.spi.deployment.JAXBIntrosCustomizationsDeployer properties= constructor=null}, AbstractBeanMetaData at 80669d{name=WSServerConfig bean=org.jboss.wsf.stack.jbws.NativeServerConfig properties=[mbeanServer, modifySOAPAddress, webServiceHost] constructor=null}, AbstractBeanMetaData at 1d0feea{name=WSEndpointRegistry bean=org.jboss.wsf.framework.management.ManagedEndpointRegistry properties=[mbeanServer] constructor=null}, AbstractBeanMetaData at fbbbc{name=WSSubscriptionManager bean=org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager properties=[bindAddress] constructor=null}, AbstractBeanMetaData at ee3dee{name=WSNativeContextPropertiesDeploymentAspect bean=org.jboss.wsf.framework.deployment.ContextPropertiesDeploymentAspect properties=[provides, contextProperties] constructor=null}, AbstractBeanMetaData at 123defe{name=WSNativeEagerInitializeDeploymentAspect bean=org.jboss.wsf.stack.jbws.EagerInitializeDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 508be{name=WSNativeEndpointHandlerDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointHandlerDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 811e10{name=WSNativeEventingDeploymentAspect bean=org.jboss.wsf.stack.jbws.EventingDeploymentAspect properties=[requires] constructor=null}, AbstractBeanMetaData at dcdffc{name=WSNativePublishContractDeploymentAspect bean=org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect properties=[requires, provides] constructor=null}, AbstractBeanMetaData at f546f8{name=WSNativeServiceEndpointInvokerDeploymentAspect bean=org.jboss.wsf.stack.jbws.ServiceEndpointInvokerDeploymentAspect properties=[requires] constructor=null}, AbstractBeanMetaData at 1064a6d{name=WSNativeUnifiedMetaDataDeploymentAspect bean=org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 5861{name=WSNativeDeploymentAspectInstallerPreJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[aspects, manager, sortAspectsOnCreate] constructor=null demands=[WSDeploymentAspectInstallerPreJSE]}, AbstractBeanMetaData at aa559d{name=WSNativeDeploymentAspectInstallerPostJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[sortAspectsOnCreate, aspects, manager] constructor=null demands=[WSDeploymentAspectInstallerPostJSE]}, AbstractBeanMetaData at dabcea{name=WSNativeDeploymentAspectInstallerEJB bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[aspects, manager, sortAspectsOnCreate] constructor=null demands=[WSDeploymentAspectInstallerEJB]}, AbstractBeanMetaData at a8a81c{name=WSNativeDeploymentAspectInstallerEndpointAPI bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[sortAspectsOnCreate, aspects, manager] constructor=null demands=[WSDeploymentAspectInstallerEndpointAPI]}, AbstractBeanMetaData at b4faeb{name=WSKernelLocator bean=org.jboss.wsf.spi.util.KernelLocator properties=[kernel] constructor=null}, AbstractBeanMetaData at 1c5809e{name=WSMBeanServerLocator bean=org.jboss.wsf.framework.management.MBeanServerLocator properties= constructor=null}, AbstractBeanMetaData at 17f1d92{name=WSHTTPServer bean=org.jboss.wsf.container.jboss42.DeploymentAspectHttpServer properties= constructor=null}, AbstractBeanMetaData at 6e8504{name=WSServiceRefHandler bean=org.jboss.wsf.container.jboss42.serviceref.ServiceRefHandlerImpl properties= constructor=null}, AbstractBeanMetaData at 1dedb45{name=ServiceRefHandler bean=org.jboss.wsf.container.jboss42.serviceref.ServiceRefHandlerImpl properties= constructor=null}, AbstractBeanMetaData at d9205{name=WSDeployerHook_JAXRPC_PRE_JSE bean=org.jboss.wsf.container.jboss42.JAXRPCDeployerHookPreJSE properties=[deploymentManagerName, phaseOneInterceptors] constructor=null}, AbstractBeanMetaData at edbca8{name=WSDeployerHook_JAXRPC_POST_JSE bean=org.jboss.wsf.container.jboss42.JAXRPCDeployerHookPostJSE properties=[deploymentManagerName, phaseTwoInterceptors] constructor=null}, AbstractBeanMetaData at 1fcca7b{name=WSDeployerHook_JAXRPC_EJB21 bean=org.jboss.wsf.container.jboss42.JAXRPCDeployerHookEJB21 properties=[phaseTwoInterceptors, deploymentManagerName] constructor=null}, AbstractBeanMetaData at 1517e5e{name=WSDeployerHook_JAXWS_PRE_JSE bean=org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE properties=[phaseOneInterceptors, deploymentManagerName] constructor=null}, AbstractBeanMetaData at 13f5841{name=WSDeployerHook_JAXWS_POST_JSE bean=org.jboss.wsf.container.jboss42.JAXWSDeployerHookPostJSE properties=[deploymentManagerName, phaseTwoInterceptors] constructor=null}, AbstractBeanMetaData at 1bb205a{name=WSDeployerHook_JAXWS_EJB3 bean=org.jboss.wsf.container.jboss42.JAXWSDeployerHookEJB3 properties=[deploymentManagerName, phaseTwoInterceptors] constructor=null}, AbstractBeanMetaData at 48fbc0{name=WSDeploymentAspectManagerPreJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl properties=[name] constructor=null}, AbstractBeanMetaData at 18837f1{name=WSDeploymentAspectManagerPostJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl properties=[parent, name] constructor=null}, AbstractBeanMetaData at 10f0a0{name=WSDeploymentAspectManagerEJB bean=org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl properties=[name] constructor=null}, AbstractBeanMetaData at 25bd56{name=WSDeploymentAspectManagerEndpointAPI bean=org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl properties=[name] constructor=null}, AbstractBeanMetaData at 1b18235{name=WSContainerMetaDataDeploymentAspect bean=org.jboss.wsf.container.jboss42.ContainerMetaDataDeploymentAspect properties=[provides, metaDataAdapter] constructor=null}, AbstractBeanMetaData at db95a1{name=WSContextRootDeploymentAspect bean=org.jboss.wsf.framework.deployment.BackwardCompatibleContextRootDeploymentAspect properties=[requires, provides] constructor=null}, AbstractBeanMetaData at 3c9616{name=WSEndpointAPIDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointAPIDeploymentAspect properties=[provides] constructor=null}, AbstractBeanMetaData at 1a18ee2{name=WSEndpointAddressDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointAddressDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 1abcd9b{name=WSEndpointHandlerDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointHandlerDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 47b35d{name=WSEndpointLifecycleDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointLifecycleDeploymentAspect properties=[requires] constructor=null}, AbstractBeanMetaData at 150b45a{name=WSEndpointMetricsDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointMetricsDeploymentAspect properties=[provides] constructor=null}, AbstractBeanMetaData at 170a650{name=WSEndpointNameDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointNameDeploymentAspect properties=[requires, provides] constructor=null}, AbstractBeanMetaData at b6f7f5{name=WSEndpointRegistryDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 5113f0{name=WSModifyWebMetaDataDeploymentAspect bean=org.jboss.wsf.container.jboss42.ModifyWebMetaDataDeploymentAspect properties=[requires, webXMLRewriter] constructor=null}, AbstractBeanMetaData at f41393{name=WSRuntimeLoaderDeploymentAspect bean=org.jboss.wsf.container.jboss42.RuntimeLoaderDeploymentAspect properties=[requires, provides] constructor=null}, AbstractBeanMetaData at 314585{name=WSURLPatternDeploymentAspect bean=org.jboss.wsf.framework.deployment.BackwardCompatibleURLPatternDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at cb1edc{name=WSWebAppDeploymentAspect bean=org.jboss.wsf.container.jboss42.WebAppDeploymentAspect properties=[requires, webXMLRewriter] constructor=null}, AbstractBeanMetaData at 1570f5c{name=WSWebAppGeneratorDeploymentAspect bean=org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect properties=[securityHandlerEJB21, requires, securityHandlerEJB3, provides] constructor=null}, AbstractBeanMetaData at b18494{name=WSApplicationMetaDataAdapterEJB21 bean=org.jboss.wsf.container.jboss42.EJBArchiveMetaDataAdapterEJB21 properties= constructor=null}, AbstractBeanMetaData at 773d03{name=WSApplicationMetaDataAdapterEJB3 bean=org.jboss.wsf.container.jboss42.EJBArchiveMetaDataAdapterEJB3 properties= constructor=null}, AbstractBeanMetaData at 46a09b{name=WSContainerMetaDataAdapter bean=org.jboss.wsf.container.jboss42.ContainerMetaDataAdapter properties=[webMetaDataAdapter, applicationMetaDataAdapterEJB3, applicationMetaDataAdapterEJB21] constructor=null}, AbstractBeanMetaData at da5bc0{name=WSSecurityHandlerEJB21 bean=org.jboss.wsf.container.jboss42.SecurityHandlerEJB21 properties= constructor=null}, AbstractBeanMetaData at 1bdbf9d{name=WSSecurityHandlerEJB3 bean=org.jboss.wsf.container.jboss42.SecurityHandlerEJB3 properties= constructor=null}, AbstractBeanMetaData at 6f19d5{name=WSWebAppDesciptorModifier bean=org.jboss.wsf.container.jboss42.DefaultWebAppDesciptorModifierImpl properties= constructor=null}, AbstractBeanMetaData at 91520{name=WSWebMetaDataAdapter bean=org.jboss.soa.esb.jbossws.ESBWebMetaDataAdapter properties= constructor=null}, AbstractBeanMetaData at 4a0ac5{name=WSWebXMLRewriter bean=org.jboss.wsf.container.jboss42.WebXMLRewriterImpl properties=[desciptorModifier] constructor=null}, AbstractBeanMetaData at 1092447{name=WSDeploymentAspectInstallerPreJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[manager, aspects, sortAspectsOnCreate] constructor=null}, AbstractBeanMetaData at 12cd8d4{name=WSDeploymentAspectInstallerPostJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[aspects, sortAspectsOnCreate, manager] constructor=null demands=[WSDeploymentAspectInstallerPreJSE]}, AbstractBeanMetaData at 14f5021{name=WSDeploymentAspectInstallerEJB bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[aspects, manager, sortAspectsOnCreate] constructor=null}, AbstractBeanMetaData at 15da7d{name=WSDeploymentAspectInstallerEndpointAPI bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[sortAspectsOnCreate, aspects, manager] constructor=null}]}; - nested throwable: (java.lang.IllegalStateException: Incompletely deployed: | | *** DEPLOYMENTS IN ERROR: | WSWebMetaDataAdapter -> java.lang.NoClassDefFoundError: org/jboss/wsf/container/jboss42/WebMetaDataAdapter | WSEndpointJAXBIntrosCustomizationsDeployer -> java.lang.NoClassDefFoundError: org/jboss/wsf/spi/deployment/AbstractDeployer | | *** DEPLOYMENTS MISSING DEPENDENCIES: | WSNativeDeploymentAspectInstallerPostJSE -> WSNativeEndpointHandlerDeploymentAspect{Configured:Installed}, WSNativeEventingDeploymentAspect{Configured:Installed}, WSNativePublishContractDeploymentAspect{Configured:Installed}, WSNativeServiceEndpointInvokerDeploymentAspect{Configured:Installed}, WSNativeUnifiedMetaDataDeploymentAspect{Configured:Installed}, WSNativeEagerInitializeDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerPostJSE{Configured:Installed}, WSDeploymentAspectInstallerPostJSE{Create:Configured}, WSDeploymentAspectInstallerPostJSE{Start:Configured} | WSDeploymentAspectInstallerEJB -> WSContainerMetaDataDeploymentAspect{Configured:Instantiated}, WSContextRootDeploymentAspect{Configured:Installed}, WSEndpointAddressDeploymentAspect{Configured:Installed}, WSEndpointHandlerDeploymentAspect{Configured:Installed}, WSEndpointLifecycleDeploymentAspect{Configured:Installed}, WSEndpointMetricsDeploymentAspect{Configured:Installed}, WSEndpointNameDeploymentAspect{Configured:Installed}, WSEndpointRegistryDeploymentAspect{Configured:Installed}, WSRuntimeLoaderDeploymentAspect{Configured:Installed}, WSURLPatternDeploymentAspect{Configured:Installed}, WSWebAppDeploymentAspect{Configured:Installed}, WSWebAppGeneratorDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerEJB{Configured:Installed} | WSContainerMetaDataDeploymentAspect -> WSContainerMetaDataAdapter{Configured:Instantiated} | WSDeploymentAspectInstallerPreJSE -> WSDeploymentAspectManagerPreJSE{Configured:Installed}, WSContainerMetaDataDeploymentAspect{Configured:Instantiated}, WSContextRootDeploymentAspect{Configured:Installed}, WSEndpointAddressDeploymentAspect{Configured:Installed}, WSEndpointHandlerDeploymentAspect{Configured:Installed}, WSEndpointMetricsDeploymentAspect{Configured:Installed}, WSEndpointNameDeploymentAspect{Configured:Installed}, WSEndpointRegistryDeploymentAspect{Configured:Installed}, WSModifyWebMetaDataDeploymentAspect{Configured:Installed}, WSURLPatternDeploymentAspect{Configured:Installed} | WSNativeDeploymentAspectInstallerPreJSE -> WSNativeContextPropertiesDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerPreJSE{Configured:Installed}, WSDeploymentAspectInstallerPreJSE{Create:Instantiated}, WSDeploymentAspectInstallerPreJSE{Start:Instantiated} | WSNativeDeploymentAspectInstallerEJB -> WSNativeContextPropertiesDeploymentAspect{Configured:Installed}, WSNativeEagerInitializeDeploymentAspect{Configured:Installed}, WSNativeEndpointHandlerDeploymentAspect{Configured:Installed}, WSNativeEventingDeploymentAspect{Configured:Installed}, WSNativePublishContractDeploymentAspect{Configured:Installed}, WSNativeServiceEndpointInvokerDeploymentAspect{Configured:Installed}, WSNativeUnifiedMetaDataDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerEJB{Configured:Installed}, WSDeploymentAspectInstallerEJB{Create:Instantiated}, WSDeploymentAspectInstallerEJB{Start:Instantiated} | WSDeploymentAspectInstallerPostJSE -> WSEndpointLifecycleDeploymentAspect{Configured:Installed}, WSRuntimeLoaderDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerPostJSE{Configured:Installed}, WSDeploymentAspectInstallerPreJSE{Create:Instantiated}, WSDeploymentAspectInstallerPreJSE{Start:Instantiated} | WSContainerMetaDataAdapter -> WSWebMetaDataAdapter{Configured:**ERROR**}, WSApplicationMetaDataAdapterEJB3{Configured:Installed}, WSApplicationMetaDataAdapterEJB21{Configured:Installed} | ) | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: jboss.beans:service=JBossBeanDeployment,name='jbossws.sar#jbossws.beans' | State: FAILED | Reason: org.jboss.deployment.DeploymentException: Cannot start AbstractKernelDeployment at 87cd5c{name=file:/C:/JBoss_AS_4.2.1/server/default/deploy/jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml installed=true beans=[AbstractBeanMetaData at 1bb8694{name=WSEndpointJAXBIntrosCustomizationsDeployer bean=org.jboss.wsf.spi.deployment.JAXBIntrosCustomizationsDeployer properties= constructor=null}, AbstractBeanMetaData at 80669d{name=WSServerConfig bean=org.jboss.wsf.stack.jbws.NativeServerConfig properties=[mbeanServer, modifySOAPAddress, webServiceHost] constructor=null}, AbstractBeanMetaData at 1d0feea{name=WSEndpointRegistry bean=org.jboss.wsf.framework.management.ManagedEndpointRegistry properties=[mbeanServer] constructor=null}, AbstractBeanMetaData at fbbbc{name=WSSubscriptionManager bean=org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager properties=[bindAddress] constructor=null}, AbstractBeanMetaData at ee3dee{name=WSNativeContextPropertiesDeploymentAspect bean=org.jboss.wsf.framework.deployment.ContextPropertiesDeploymentAspect properties=[provides, contextProperties] constructor=null}, AbstractBeanMetaData at 123defe{name=WSNativeEagerInitializeDeploymentAspect bean=org.jboss.wsf.stack.jbws.EagerInitializeDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 508be{name=WSNativeEndpointHandlerDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointHandlerDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 811e10{name=WSNativeEventingDeploymentAspect bean=org.jboss.wsf.stack.jbws.EventingDeploymentAspect properties=[requires] constructor=null}, AbstractBeanMetaData at dcdffc{name=WSNativePublishContractDeploymentAspect bean=org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect properties=[requires, provides] constructor=null}, AbstractBeanMetaData at f546f8{name=WSNativeServiceEndpointInvokerDeploymentAspect bean=org.jboss.wsf.stack.jbws.ServiceEndpointInvokerDeploymentAspect properties=[requires] constructor=null}, AbstractBeanMetaData at 1064a6d{name=WSNativeUnifiedMetaDataDeploymentAspect bean=org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 5861{name=WSNativeDeploymentAspectInstallerPreJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[aspects, manager, sortAspectsOnCreate] constructor=null demands=[WSDeploymentAspectInstallerPreJSE]}, AbstractBeanMetaData at aa559d{name=WSNativeDeploymentAspectInstallerPostJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[sortAspectsOnCreate, aspects, manager] constructor=null demands=[WSDeploymentAspectInstallerPostJSE]}, AbstractBeanMetaData at dabcea{name=WSNativeDeploymentAspectInstallerEJB bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[aspects, manager, sortAspectsOnCreate] constructor=null demands=[WSDeploymentAspectInstallerEJB]}, AbstractBeanMetaData at a8a81c{name=WSNativeDeploymentAspectInstallerEndpointAPI bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[sortAspectsOnCreate, aspects, manager] constructor=null demands=[WSDeploymentAspectInstallerEndpointAPI]}, AbstractBeanMetaData at b4faeb{name=WSKernelLocator bean=org.jboss.wsf.spi.util.KernelLocator properties=[kernel] constructor=null}, AbstractBeanMetaData at 1c5809e{name=WSMBeanServerLocator bean=org.jboss.wsf.framework.management.MBeanServerLocator properties= constructor=null}, AbstractBeanMetaData at 17f1d92{name=WSHTTPServer bean=org.jboss.wsf.container.jboss42.DeploymentAspectHttpServer properties= constructor=null}, AbstractBeanMetaData at 6e8504{name=WSServiceRefHandler bean=org.jboss.wsf.container.jboss42.serviceref.ServiceRefHandlerImpl properties= constructor=null}, AbstractBeanMetaData at 1dedb45{name=ServiceRefHandler bean=org.jboss.wsf.container.jboss42.serviceref.ServiceRefHandlerImpl properties= constructor=null}, AbstractBeanMetaData at d9205{name=WSDeployerHook_JAXRPC_PRE_JSE bean=org.jboss.wsf.container.jboss42.JAXRPCDeployerHookPreJSE properties=[deploymentManagerName, phaseOneInterceptors] constructor=null}, AbstractBeanMetaData at edbca8{name=WSDeployerHook_JAXRPC_POST_JSE bean=org.jboss.wsf.container.jboss42.JAXRPCDeployerHookPostJSE properties=[deploymentManagerName, phaseTwoInterceptors] constructor=null}, AbstractBeanMetaData at 1fcca7b{name=WSDeployerHook_JAXRPC_EJB21 bean=org.jboss.wsf.container.jboss42.JAXRPCDeployerHookEJB21 properties=[phaseTwoInterceptors, deploymentManagerName] constructor=null}, AbstractBeanMetaData at 1517e5e{name=WSDeployerHook_JAXWS_PRE_JSE bean=org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE properties=[phaseOneInterceptors, deploymentManagerName] constructor=null}, AbstractBeanMetaData at 13f5841{name=WSDeployerHook_JAXWS_POST_JSE bean=org.jboss.wsf.container.jboss42.JAXWSDeployerHookPostJSE properties=[deploymentManagerName, phaseTwoInterceptors] constructor=null}, AbstractBeanMetaData at 1bb205a{name=WSDeployerHook_JAXWS_EJB3 bean=org.jboss.wsf.container.jboss42.JAXWSDeployerHookEJB3 properties=[deploymentManagerName, phaseTwoInterceptors] constructor=null}, AbstractBeanMetaData at 48fbc0{name=WSDeploymentAspectManagerPreJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl properties=[name] constructor=null}, AbstractBeanMetaData at 18837f1{name=WSDeploymentAspectManagerPostJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl properties=[parent, name] constructor=null}, AbstractBeanMetaData at 10f0a0{name=WSDeploymentAspectManagerEJB bean=org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl properties=[name] constructor=null}, AbstractBeanMetaData at 25bd56{name=WSDeploymentAspectManagerEndpointAPI bean=org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl properties=[name] constructor=null}, AbstractBeanMetaData at 1b18235{name=WSContainerMetaDataDeploymentAspect bean=org.jboss.wsf.container.jboss42.ContainerMetaDataDeploymentAspect properties=[provides, metaDataAdapter] constructor=null}, AbstractBeanMetaData at db95a1{name=WSContextRootDeploymentAspect bean=org.jboss.wsf.framework.deployment.BackwardCompatibleContextRootDeploymentAspect properties=[requires, provides] constructor=null}, AbstractBeanMetaData at 3c9616{name=WSEndpointAPIDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointAPIDeploymentAspect properties=[provides] constructor=null}, AbstractBeanMetaData at 1a18ee2{name=WSEndpointAddressDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointAddressDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 1abcd9b{name=WSEndpointHandlerDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointHandlerDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 47b35d{name=WSEndpointLifecycleDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointLifecycleDeploymentAspect properties=[requires] constructor=null}, AbstractBeanMetaData at 150b45a{name=WSEndpointMetricsDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointMetricsDeploymentAspect properties=[provides] constructor=null}, AbstractBeanMetaData at 170a650{name=WSEndpointNameDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointNameDeploymentAspect properties=[requires, provides] constructor=null}, AbstractBeanMetaData at b6f7f5{name=WSEndpointRegistryDeploymentAspect bean=org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at 5113f0{name=WSModifyWebMetaDataDeploymentAspect bean=org.jboss.wsf.container.jboss42.ModifyWebMetaDataDeploymentAspect properties=[requires, webXMLRewriter] constructor=null}, AbstractBeanMetaData at f41393{name=WSRuntimeLoaderDeploymentAspect bean=org.jboss.wsf.container.jboss42.RuntimeLoaderDeploymentAspect properties=[requires, provides] constructor=null}, AbstractBeanMetaData at 314585{name=WSURLPatternDeploymentAspect bean=org.jboss.wsf.framework.deployment.BackwardCompatibleURLPatternDeploymentAspect properties=[provides, requires] constructor=null}, AbstractBeanMetaData at cb1edc{name=WSWebAppDeploymentAspect bean=org.jboss.wsf.container.jboss42.WebAppDeploymentAspect properties=[requires, webXMLRewriter] constructor=null}, AbstractBeanMetaData at 1570f5c{name=WSWebAppGeneratorDeploymentAspect bean=org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect properties=[securityHandlerEJB21, requires, securityHandlerEJB3, provides] constructor=null}, AbstractBeanMetaData at b18494{name=WSApplicationMetaDataAdapterEJB21 bean=org.jboss.wsf.container.jboss42.EJBArchiveMetaDataAdapterEJB21 properties= constructor=null}, AbstractBeanMetaData at 773d03{name=WSApplicationMetaDataAdapterEJB3 bean=org.jboss.wsf.container.jboss42.EJBArchiveMetaDataAdapterEJB3 properties= constructor=null}, AbstractBeanMetaData at 46a09b{name=WSContainerMetaDataAdapter bean=org.jboss.wsf.container.jboss42.ContainerMetaDataAdapter properties=[webMetaDataAdapter, applicationMetaDataAdapterEJB3, applicationMetaDataAdapterEJB21] constructor=null}, AbstractBeanMetaData at da5bc0{name=WSSecurityHandlerEJB21 bean=org.jboss.wsf.container.jboss42.SecurityHandlerEJB21 properties= constructor=null}, AbstractBeanMetaData at 1bdbf9d{name=WSSecurityHandlerEJB3 bean=org.jboss.wsf.container.jboss42.SecurityHandlerEJB3 properties= constructor=null}, AbstractBeanMetaData at 6f19d5{name=WSWebAppDesciptorModifier bean=org.jboss.wsf.container.jboss42.DefaultWebAppDesciptorModifierImpl properties= constructor=null}, AbstractBeanMetaData at 91520{name=WSWebMetaDataAdapter bean=org.jboss.soa.esb.jbossws.ESBWebMetaDataAdapter properties= constructor=null}, AbstractBeanMetaData at 4a0ac5{name=WSWebXMLRewriter bean=org.jboss.wsf.container.jboss42.WebXMLRewriterImpl properties=[desciptorModifier] constructor=null}, AbstractBeanMetaData at 1092447{name=WSDeploymentAspectInstallerPreJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[manager, aspects, sortAspectsOnCreate] constructor=null}, AbstractBeanMetaData at 12cd8d4{name=WSDeploymentAspectInstallerPostJSE bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[aspects, sortAspectsOnCreate, manager] constructor=null demands=[WSDeploymentAspectInstallerPreJSE]}, AbstractBeanMetaData at 14f5021{name=WSDeploymentAspectInstallerEJB bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[aspects, manager, sortAspectsOnCreate] constructor=null}, AbstractBeanMetaData at 15da7d{name=WSDeploymentAspectInstallerEndpointAPI bean=org.jboss.wsf.framework.deployment.DeploymentAspectInstaller properties=[sortAspectsOnCreate, aspects, manager] constructor=null}]}; - nested throwable: (java.lang.IllegalStateException: Incompletely deployed: | | *** DEPLOYMENTS IN ERROR: | WSWebMetaDataAdapter -> java.lang.NoClassDefFoundError: org/jboss/wsf/container/jboss42/WebMetaDataAdapter | WSEndpointJAXBIntrosCustomizationsDeployer -> java.lang.NoClassDefFoundError: org/jboss/wsf/spi/deployment/AbstractDeployer | | *** DEPLOYMENTS MISSING DEPENDENCIES: | WSNativeDeploymentAspectInstallerPostJSE -> WSNativeEndpointHandlerDeploymentAspect{Configured:Installed}, WSNativeEventingDeploymentAspect{Configured:Installed}, WSNativePublishContractDeploymentAspect{Configured:Installed}, WSNativeServiceEndpointInvokerDeploymentAspect{Configured:Installed}, WSNativeUnifiedMetaDataDeploymentAspect{Configured:Installed}, WSNativeEagerInitializeDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerPostJSE{Configured:Installed}, WSDeploymentAspectInstallerPostJSE{Create:Configured}, WSDeploymentAspectInstallerPostJSE{Start:Configured} | WSDeploymentAspectInstallerEJB -> WSContainerMetaDataDeploymentAspect{Configured:Instantiated}, WSContextRootDeploymentAspect{Configured:Installed}, WSEndpointAddressDeploymentAspect{Configured:Installed}, WSEndpointHandlerDeploymentAspect{Configured:Installed}, WSEndpointLifecycleDeploymentAspect{Configured:Installed}, WSEndpointMetricsDeploymentAspect{Configured:Installed}, WSEndpointNameDeploymentAspect{Configured:Installed}, WSEndpointRegistryDeploymentAspect{Configured:Installed}, WSRuntimeLoaderDeploymentAspect{Configured:Installed}, WSURLPatternDeploymentAspect{Configured:Installed}, WSWebAppDeploymentAspect{Configured:Installed}, WSWebAppGeneratorDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerEJB{Configured:Installed} | WSContainerMetaDataDeploymentAspect -> WSContainerMetaDataAdapter{Configured:Instantiated} | WSDeploymentAspectInstallerPreJSE -> WSDeploymentAspectManagerPreJSE{Configured:Installed}, WSContainerMetaDataDeploymentAspect{Configured:Instantiated}, WSContextRootDeploymentAspect{Configured:Installed}, WSEndpointAddressDeploymentAspect{Configured:Installed}, WSEndpointHandlerDeploymentAspect{Configured:Installed}, WSEndpointMetricsDeploymentAspect{Configured:Installed}, WSEndpointNameDeploymentAspect{Configured:Installed}, WSEndpointRegistryDeploymentAspect{Configured:Installed}, WSModifyWebMetaDataDeploymentAspect{Configured:Installed}, WSURLPatternDeploymentAspect{Configured:Installed} | WSNativeDeploymentAspectInstallerPreJSE -> WSNativeContextPropertiesDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerPreJSE{Configured:Installed}, WSDeploymentAspectInstallerPreJSE{Create:Instantiated}, WSDeploymentAspectInstallerPreJSE{Start:Instantiated} | WSNativeDeploymentAspectInstallerEJB -> WSNativeContextPropertiesDeploymentAspect{Configured:Installed}, WSNativeEagerInitializeDeploymentAspect{Configured:Installed}, WSNativeEndpointHandlerDeploymentAspect{Configured:Installed}, WSNativeEventingDeploymentAspect{Configured:Installed}, WSNativePublishContractDeploymentAspect{Configured:Installed}, WSNativeServiceEndpointInvokerDeploymentAspect{Configured:Installed}, WSNativeUnifiedMetaDataDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerEJB{Configured:Installed}, WSDeploymentAspectInstallerEJB{Create:Instantiated}, WSDeploymentAspectInstallerEJB{Start:Instantiated} | WSDeploymentAspectInstallerPostJSE -> WSEndpointLifecycleDeploymentAspect{Configured:Installed}, WSRuntimeLoaderDeploymentAspect{Configured:Installed}, WSDeploymentAspectManagerPostJSE{Configured:Installed}, WSDeploymentAspectInstallerPreJSE{Create:Instantiated}, WSDeploymentAspectInstallerPreJSE{Start:Instantiated} | WSContainerMetaDataAdapter -> WSWebMetaDataAdapter{Configured:**ERROR**}, WSApplicationMetaDataAdapterEJB3{Configured:Installed}, WSApplicationMetaDataAdapterEJB21{Configured:Installed} | ) I really have no clue what happened or how I can reverse it without installing everything from scratch. By the way: I can deploy the example successfully but http://localhost:8080/jbossws/ shows no deployed service. Every advice is appreciated! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098331#4098331 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098331 From do-not-reply at jboss.com Wed Oct 24 10:42:26 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 24 Oct 2007 10:42:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebServiceContext injection. Was it fixed or not? Message-ID: <3419162.1193236948760.JavaMail.jboss@colo-br-02.atl.jboss.com> Your field cannot be private, use | @Resource | WebServiceContext context; | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098345#4098345 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098345 From do-not-reply at jboss.com Wed Oct 24 11:00:39 2007 From: do-not-reply at jboss.com (ejb3workshop) Date: Wed, 24 Oct 2007 11:00:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: UsernameToken and Basic Auth Message-ID: <17019764.1193238039986.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you please explain how you set up Username Token Authentication. In which file does this XML go ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098363#4098363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098363 From do-not-reply at jboss.com Wed Oct 24 11:24:18 2007 From: do-not-reply at jboss.com (ejb3workshop) Date: Wed, 24 Oct 2007 11:24:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <9895298.1193239459118.JavaMail.jboss@colo-br-02.atl.jboss.com> where can one find those examples I looked in jbossws-native-2.0.1.GA, jbossws-src-2.0.1.GA as well as JBoss4.2.2GA. I am looking for a basic example on Username Token authentication. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098379#4098379 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098379 From do-not-reply at jboss.com Wed Oct 24 11:40:44 2007 From: do-not-reply at jboss.com (ejb3workshop) Date: Wed, 24 Oct 2007 11:40:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Basic Authentication with WSSecureEndpoint on JBoss 4.2. Message-ID: <23886214.1193240444059.JavaMail.jboss@colo-br-02.atl.jboss.com> I added a custom login module to debug this problem. It seems that the user and password are never passed to the login module. | public boolean login() throws LoginException { | logger.info("Login"); | NameCallback nameCallback = new NameCallback("User Name"); | PasswordCallback passwordCallback = new PasswordCallback("User Password", false); | Callback[] callbacks = new Callback[2]; | callbacks[0] = nameCallback; | callbacks[1] = passwordCallback; | logger.info("Configured callbacks"); | try { | logger.info("Handling callbacks"); | callbackHandler.handle(callbacks); | logger.info("Handled callbacks"); | } catch (UnsupportedCallbackException ex) { | ex.printStackTrace(); | } catch (IOException ex) { | ex.printStackTrace(); | } | String userid = "default"; | String password = "default"; | userid = nameCallback.getName(); | password = new String(passwordCallback.getPassword()); | logger.info("Processed callbacks"); | passwordCallback.clearPassword(); | logger.info("Attempt to login with :"+userid+" and "+password); | JAASUser user = new JAASUser(1,userid); | JAASRole role = new JAASRole("friends"); | subject.getPrincipals().add(user); | subject.getPrincipals().add(role); | return true; | } | I am still a little confused on where I am supposed to configure which Principal implementation is a User or a Role. I also tried adding a WebContext, but this resulted in a The request failed with HTTP status 401: Unauthorized. error without invoking the Login Module. Removing the WebContext annocation resulted in the Login Module being called, but without User / Password. @WebContext(authMethod = "BASIC", transportGuarantee="NONE", secureWSDLAccess = false) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098385#4098385 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098385 From do-not-reply at jboss.com Wed Oct 24 13:55:24 2007 From: do-not-reply at jboss.com (JBoss_82) Date: Wed, 24 Oct 2007 13:55:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Help, JAX-WS in JBoss 4.2.1.GA Message-ID: <7555194.1193248524348.JavaMail.jboss@colo-br-02.atl.jboss.com> Is it true that JBoss 4.2.1 GA out of the box ships with jbossws-1.2.1.GA and NOT jbossws2.0.1 GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098464#4098464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098464 From do-not-reply at jboss.com Wed Oct 24 14:03:17 2007 From: do-not-reply at jboss.com (sursha) Date: Wed, 24 Oct 2007 14:03:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Help, JAX-WS in JBoss 4.2.1.GA Message-ID: <8304819.1193248997561.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes. JBoss 4.2.1 GA comes with jbossws-1.2.1.GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098469#4098469 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098469 From do-not-reply at jboss.com Wed Oct 24 14:04:43 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Wed, 24 Oct 2007 14:04:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <8278972.1193249083543.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alessio, Let's see if I understand: Could I write a web service method like this? | @WebMethod | public java.util.Date getStartDate(){ | // get SPI provider and endpoint registry | SPIProvider spiProvider = SPIProviderResolver.getInstance() | .getProvider(); | EndpointRegistry epRegistry = spiProvider.getSPI( | EndpointRegistryFactory.class).getEndpointRegistry(); | | // loop over all endpoints | Set objectNames = epRegistry.getEndpoints(); | for (ObjectName objectName : objectNames) { | | // get the endpoint by using its name | Endpoint endpoint = epRegistry.getEndpoint(objectName); | | | EndpointMetrics epm = endpoint.getEndpointMetrics(); | return epm.getStartTime(); | } | In this simple way? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098470#4098470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098470 From do-not-reply at jboss.com Wed Oct 24 14:26:47 2007 From: do-not-reply at jboss.com (robert_trudel) Date: Wed, 24 Oct 2007 14:26:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: web service not found Message-ID: <28781849.1193250407032.JavaMail.jboss@colo-br-02.atl.jboss.com> yes it's a war i put the file in the deploy folder.. and jboss don't see it View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098478#4098478 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098478 From do-not-reply at jboss.com Wed Oct 24 17:39:57 2007 From: do-not-reply at jboss.com (jgilbert) Date: Wed, 24 Oct 2007 17:39:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: UsernameToken and Basic Auth Message-ID: <29677013.1193261997226.JavaMail.jboss@colo-br-02.atl.jboss.com> jboss-wsse-server.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098589#4098589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098589 From do-not-reply at jboss.com Wed Oct 24 18:19:06 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 18:19:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: web service not found Message-ID: <22777895.1193264346220.JavaMail.jboss@colo-br-02.atl.jboss.com> OK, so it's a matter of making the deployer see your app. I would check some simple things, like what exactly the war contains (i.e. it has WEB-INF/web.xml) and so on. Moreover you might enable some more logs (conf/log4j.xml) to better understand what's happening. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098594#4098594 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098594 From do-not-reply at jboss.com Wed Oct 24 18:24:15 2007 From: do-not-reply at jboss.com (wcydaip) Date: Wed, 24 Oct 2007 18:24:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SoapFaultException using anyType Message-ID: <16135526.1193264655107.JavaMail.jboss@colo-br-02.atl.jboss.com> Not so sure... Still can't get it to work... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098595#4098595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098595 From do-not-reply at jboss.com Wed Oct 24 18:30:35 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 24 Oct 2007 18:30:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web seervice with authentication and wsconsume Message-ID: <23711474.1193265035846.JavaMail.jboss@colo-br-02.atl.jboss.com> The context tests I was talking are in both jbossws-native-2.0.1.GA and jbossws-src-2.0.1.GA. You can find a basic example of Username Token authentication in the org.jboss.test.ws.jaxws.samples.wssecurity package in the jbossws-src archive. If you have further questions about Username Token authentication please start another thread. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098596#4098596 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098596 From do-not-reply at jboss.com Wed Oct 24 19:16:15 2007 From: do-not-reply at jboss.com (wcydaip) Date: Wed, 24 Oct 2007 19:16:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WSTools to generate jaxrpc-mapping.xml file? Message-ID: <21929434.1193267775952.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to connect to a microsoft ws using JBoss-4.0.5.GA and JBossWS-2.0.0.GA. I executed wsconsume to generate the classes, but, was not able to use wstools to generate the artifacts, i.e., jaxrpc-mapping.xml. I get the following error when executing the command: | Exception in thread "main" java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLLocator.close()V | at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2367) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:127) | at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:119) | at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:298) | at org.jboss.ws.tools.WSTools.process(WSTools.java:147) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:123) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | Any help on which version of the jar file that it's requesting? I've tried wsdl4j.jar that ships with JBossWS, wsdl4j-1.5.2.jar and wsdl4j-1.6.1.jar with no success. Deploying without the mapping file I believe confuses JBoss and it throws the following error: | 2007-10-24 16:03:55,015 ERROR [STDERR] javax.xml.ws.soap.SOAPFaultException: WSDLReader:None of the matching operations for soapAction http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData could successfully load the incoming request. Potential typemapper problem | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | 2007-10-24 16:03:55,015 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | 2007-10-24 16:03:55,015 ERROR [STDERR] at $Proxy63.getCandidateScheduleData(Unknown Source) | Any help is appreciated. Graham View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098607#4098607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098607 From do-not-reply at jboss.com Wed Oct 24 20:37:41 2007 From: do-not-reply at jboss.com (wcydaip) Date: Wed, 24 Oct 2007 20:37:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSTools to generate jaxrpc-mapping.xml file? Message-ID: <6462180.1193272661237.JavaMail.jboss@colo-br-02.atl.jboss.com> the conflict is between jwsdl4j.jar and jbossall-client.jar. the jbossall-client.jar doesn't have the close method. added the jwsdl4j.jar higher in the import scheme. It executes but now I get: | log4j:WARN No appenders could be found for logger (org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory). | log4j:WARN Please initialize the log4j system properly. | Exception in thread "main" org.apache.xerces.xni.XNIException: Parser should stop: [domain:http://ww | w.w3.org/TR/1998/REC-xml-19980210]::[key=ContentIllegalInProlog]::Message=Content is not allowed in | prolog. | at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler.fatalError(JBossXSErrorHandler.j | ava:78) | at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) | at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) | at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) | at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) | at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source) | at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source) | at org.apache.xerces.impl.xs.opti.SchemaDOMParser.parse(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) | at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:182) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:391) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128) | at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:119) | at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:298) | at org.jboss.ws.tools.WSTools.process(WSTools.java:147) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:123) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | C:\projects-cal-ws\act-ws-scheduler\client> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098622#4098622 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098622 From do-not-reply at jboss.com Wed Oct 24 20:41:48 2007 From: do-not-reply at jboss.com (JBoss_82) Date: Wed, 24 Oct 2007 20:41:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss equivalent of clientGen of WL Message-ID: <5482912.1193272908983.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using the top-down approach by starting with the WSDL. I am trying to figure out a mechanism in JBoss 4.2.1 with jbossws-native2.0.1 which is equivalent of WL's clientgen. Objective is to generate a client-jar which can be used by the client program to consume the web service. Sample WL clietgen task: | | | | | | | | Quote: I know there is a crude way of using the client artifacts generated by "wsconsume", zip those class files and create a client-jar, but I want to know if there's a better way to do this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098623#4098623 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098623 From do-not-reply at jboss.com Thu Oct 25 03:24:26 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 25 Oct 2007 03:24:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss equivalent of clientGen of WL Message-ID: <29775831.1193297066960.JavaMail.jboss@colo-br-02.atl.jboss.com> May be I'm missing something, it shouldn't be very hard to create a custom Ant task leveraging the wsconsume Ant task (http://jbws.dyndns.org/mediawiki/index.php?title=Wsconsume) that creates a jar with the obtained classes. Is this what WL's clientgen gives you or is there something else? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098681#4098681 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098681 From do-not-reply at jboss.com Thu Oct 25 03:34:56 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 25 Oct 2007 03:34:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSTools to generate jaxrpc-mapping.xml file? Message-ID: <6095686.1193297696292.JavaMail.jboss@colo-br-02.atl.jboss.com> Considering you have jboss 4.0.5 and jbossws 2.0.0.GA, I would try using the JAX-WS tools (wsconsume) that are currently supported and should have less compatibility issues with thirdparty wsdls. http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Top-Down_.28Using_wsconsume.29 I guess your problem somehow depends on what is actually in the wsdl file, I would take a look at it searching for something wrong in the xml prolog. May be this could help: http://forum.java.sun.com/thread.jspa?threadID=567285 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098684#4098684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098684 From do-not-reply at jboss.com Thu Oct 25 03:38:25 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 25 Oct 2007 03:38:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: UsernameToken and Basic Auth Message-ID: <485125.1193297905088.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Server_side_WSSE_declaration_.28jboss-wsse-server.xml.29 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098685#4098685 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098685 From do-not-reply at jboss.com Thu Oct 25 03:42:21 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 25 Oct 2007 03:42:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <2915314.1193298141439.JavaMail.jboss@colo-br-02.atl.jboss.com> Why don't you try? Yeah, you can, this should give you the start time of one (probably the first) of your deployed endpoint. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098687#4098687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098687 From do-not-reply at jboss.com Thu Oct 25 03:49:41 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 25 Oct 2007 03:49:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSSecurity Username token Message-ID: <15655958.1193298581775.JavaMail.jboss@colo-br-02.atl.jboss.com> You can find a basic example of Username Token authentication in the org.jboss.test.ws.jaxws.samples.wssecurity package in the jbossws-src archive. Also take a look at this: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=95321 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098690#4098690 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098690 From do-not-reply at jboss.com Thu Oct 25 03:53:04 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 25 Oct 2007 03:53:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: nor any of its super class is known... Message-ID: <23476779.1193298784829.JavaMail.jboss@colo-br-02.atl.jboss.com> I suspect this is somehow related to your jaxb annotated classes... I mean, how are foo.Bar and other classes of its hierarchy annotated and used? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098692#4098692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098692 From do-not-reply at jboss.com Thu Oct 25 04:36:02 2007 From: do-not-reply at jboss.com (nickarls) Date: Thu, 25 Oct 2007 04:36:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: nor any of its super class is known... Message-ID: <14960152.1193301362069.JavaMail.jboss@colo-br-02.atl.jboss.com> The strange thing is that I see the called WS being called and it looks like the problem would emerge on the reponse: | 11:30:01,672 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_4] TwoPhaseCoordinator.afterCompletion - returned failure for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple at 2f2075 | 11:30:01,722 ERROR [HandlerChainExecutor] Exception during handler processing | javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException | - with linked exception: | [javax.xml.bind.JAXBException: foo.Bar nor any of its super class is known to this context. | foo.Bar has a | @XmlType | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098708#4098708 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098708 From do-not-reply at jboss.com Thu Oct 25 04:44:58 2007 From: do-not-reply at jboss.com (ejb3workshop) Date: Thu, 25 Oct 2007 04:44:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: UsernameToken and Basic Auth Message-ID: <33142743.1193301899023.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks this worked. Added the xml file below to my EJB3 jar file resolved my problem. | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098710#4098710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098710 From do-not-reply at jboss.com Thu Oct 25 04:55:04 2007 From: do-not-reply at jboss.com (ejb3workshop) Date: Thu, 25 Oct 2007 04:55:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: UsernameToken and Basic Auth Message-ID: <12418386.1193302504557.JavaMail.jboss@colo-br-02.atl.jboss.com> I have specified the loginModule to use via @SecurityDomain(value="THZone") in my bean. I have also configured the login module in login-config.xml as shown below. I am not able to log in and authenticate, but the roles are not passed through. Where can I configure how the roles are obtained. @RolesAllowed("friends") or System.out.println("Principal is a friend :"+context.isUserInRole("friends")); Currently don't seem to work. I also tried to implement my own login module return my own implementations of Principal and had the same problem as using the org.jboss.security.auth.spi.UsersRolesLoginModule on. The results are that the principal is passed through and accessible through the context, but the roles are not. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098717#4098717 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098717 From do-not-reply at jboss.com Thu Oct 25 05:08:26 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Thu, 25 Oct 2007 05:08:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <15762382.1193303307036.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alesso,thanks, now it works! Another question is it possible to get the statistics of each operation of each endpoint? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098724#4098724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098724 From do-not-reply at jboss.com Thu Oct 25 05:27:26 2007 From: do-not-reply at jboss.com (ZazzaZ) Date: Thu, 25 Oct 2007 05:27:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - NPE @ org.jboss.ws.soap.SOAPConnectionImpl.getRemotingMetaDa Message-ID: <11303169.1193304446797.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I got the following exception calling a web service. | | java.lang.NullPointerException | | at org.jboss.ws.soap.SOAPConnectionImpl.getRemotingMetaData(SOAPConnectionImpl.java:236) | at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:156) | at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:99) | | What caused this exception? Ok, something is null but what? Thanks! bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098737#4098737 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098737 From do-not-reply at jboss.com Thu Oct 25 07:04:23 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Thu, 25 Oct 2007 07:04:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cannot find endpoint meta data for Message-ID: <29273221.1193310263510.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am trying to deploy sample webservice by using Jax-ws. I am using JBOSS 4.2.1GA application server and Jbossws 2.0.1GA. The code for Remote interface is package com.covad.Inter; import java.rmi.Remote; import java.rmi.RemoteException; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; @WebService(name="Hello",targetNamespace = "http://Inter.covad.com/") @SOAPBinding(style = SOAPBinding.Style.RPC) public interface Hello extends Remote { String echo(String value) throws RemoteException; } and this is my [B]implementation[/B] class package com.covad.impl; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; @WebService(endpointInterface = "com.covad.Inter.Hello", name="Hello") @SOAPBinding(style = SOAPBinding.Style.RPC) public class HelloImpl { public String echo(String value) { return "Hello"+value; } } and this my [B]WSDL[/B] file which i generated by wsprovide tool and this is my [B]Web.xml[/B] file JWeb com.covad.impl.HelloImpl JWeb /* then i created war file with following directory warfilename/WEB-INF/classes warfilename/WEB-INF/lib warfilename/WEB-INF/web.xml warfilename/META-INF/wsdl/HelloService.wsdl and tried to deploy and following is the exception i am getting 16:06:34,537 ERROR [MainDeployer] Could not start deployment: file:/D:/jboss-4.2 .1.GA/server/default/deploy/JbossWebService.war java.lang.IllegalStateException: Cannot find endpoint meta data for: JWeb at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM etaData(UnifiedMetaDataDeploymentAspect.java:117) at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi edMetaDataDeploymentAspect.java:86) at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy (DeploymentAspectManagerImpl.java:115) at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep loyerHook.java:97) at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt erceptor.java:90) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. start(SubDeployerInterceptorSupport.java:188) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce ptor.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 $Proxy45.start(Unknown Source) 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 sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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(URLDeploymen tScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:634) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. loop(AbstractDeploymentScanner.java:274) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. run(AbstractDeploymentScanner.java:225) Please let me if i am missing something? Please help me. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098773#4098773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098773 From do-not-reply at jboss.com Thu Oct 25 07:58:27 2007 From: do-not-reply at jboss.com (rukus) Date: Thu, 25 Oct 2007 07:58:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: nor any of its super class is known... Message-ID: <32707455.1193313507639.JavaMail.jboss@colo-br-02.atl.jboss.com> Can you provide full sources of classes in hierarchy with foo.Bar? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098787#4098787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098787 From do-not-reply at jboss.com Thu Oct 25 09:10:25 2007 From: do-not-reply at jboss.com (mazz@jboss.com) Date: Thu, 25 Oct 2007 09:10:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: avoid lazy-initialization exceptions Message-ID: <6881798.1193317825946.JavaMail.jboss@colo-br-02.atl.jboss.com> The SLSB and entity is very simple. I've included the relevant SLSB interface definition and entity code below. The specific issue here is our login() method returns a Subject - and the Subject, although it has a Role relationship, we do not eagerly load it. The caller to login() never needs to know the role relationship data, and because of that, we increase performance by never asking the persistence layer to load that data before returning the Subject. While this is a very specific example, this design paradigm is all through our code. In fact, I have to believe this is a general problem everyone will have (since this is a big reason behind using LAZY vs. EAGER loading). Not sure how to annotate the entity, because would that mean we can either ALWAYS or NEVER the data? But we know will we need it sometimes, but not always (i.e. sometimes a caller will call a different method that returns a Subject and that Subject WILL have the role information loaded and we thus WILL want that data go through the JAXB engine and returned to the web client). I think we need some way to customize the way JAXB processes the returned entity or we need some annotation on a per-SLSB method. We are looking at @XMLJavaTypeAdapter as a possible way to do something, but we aren't sure yet until we try it out. @WebService | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT) | public interface SubjectManagerRemote { | @WebMethod | Subject login(String user, String password); @Entity | @Table(name = "ON_SUBJECT") | public class Subject implements Externalizable { | ... | @ManyToMany | @JoinTable(name="ON_SUBJECT_ROLE_MAP", | joinColumns={@JoinColumn(name="SUBJECT_ID")}, | inverseJoinColumns={@JoinColumn(name="ROLE_ID")}) | private java.util.Set roles; | ... | public java.util.Set getRoles() { | return this.roles; | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098807#4098807 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098807 From do-not-reply at jboss.com Thu Oct 25 09:30:49 2007 From: do-not-reply at jboss.com (jalla) Date: Thu, 25 Oct 2007 09:30:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do you override soap:address location from WSDL at r Message-ID: <19040813.1193319049463.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using Flex and the want to consume a login web service written in java running jboss. The flex needs the wsdl location and figures out the endpoint on the fly based on wsdl. However, the endpoint address is the local hostname of the server running web service. In my flex app I get the error message that says it can't connect to http://utv/LoginWS where utv is the hostname of the server running WS on jboss. Is there any way I can fix it? Is it possible that endpoint url is dynamically generated based on current request? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098814#4098814 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098814 From do-not-reply at jboss.com Thu Oct 25 11:47:26 2007 From: do-not-reply at jboss.com (dode) Date: Thu, 25 Oct 2007 11:47:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to do cleanup when undeploying webservice Message-ID: <8998234.1193327246617.JavaMail.jboss@colo-br-02.atl.jboss.com> I'd like to do some cleanup in my SEI class when the webservice WAR is undeployed, but I can't figure out how this could be done. Could someone please help me out? Torsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098893#4098893 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098893 From do-not-reply at jboss.com Thu Oct 25 13:37:35 2007 From: do-not-reply at jboss.com (JBoss_82) Date: Thu, 25 Oct 2007 13:37:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss equivalent of clientGen of WL Message-ID: <9421566.1193333855460.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, I realized that. I will soon have a design question for you as well :). This is my first week into the magical world of JBoss :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098943#4098943 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098943 From do-not-reply at jboss.com Thu Oct 25 13:45:40 2007 From: do-not-reply at jboss.com (JBoss_82) Date: Thu, 25 Oct 2007 13:45:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss equivalent of clientGen of WL Message-ID: <19447284.1193334340963.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alessio, You are dead-on accurate. WL's clientgen provides a similar functionality. Can you send me a sample build.xml which leverages wsconsume Ant Task by taking the wsdl file as a parameter and creating a client-jar. My email is vatsa82 at gmail.com Thanks Sri View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098948#4098948 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098948 From do-not-reply at jboss.com Thu Oct 25 15:53:27 2007 From: do-not-reply at jboss.com (wcydaip) Date: Thu, 25 Oct 2007 15:53:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSTools to generate jaxrpc-mapping.xml file? Message-ID: <14941666.1193342007426.JavaMail.jboss@colo-br-02.atl.jboss.com> So, the call to WSTools is not necessary? That's what I was hoping to find out. Does this also mean that we no longer need a mapping file? If not, how is the mapping file generated? WSTools? The reason I even tried to generate artifacts with the WSTools is to solve this error: | 2007-10-25 11:42:57,765 ERROR [STDERR] javax.xml.ws.soap.SOAPFaultException: WSDLReader:None of the matching operations for soapAction http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData could successfully load the incoming request. Potential typemapper problem | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | 2007-10-25 11:42:57,765 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | 2007-10-25 11:42:57,765 ERROR [STDERR] at $Proxy60.getCandidateScheduleData(Unknown Source) | which is called via: | public Event perform(HttpServletRequest request) throws HTMLActionException { | logger.info("entering perform"); | String sEnrollId = "11110", | sSSN = "-00004069", | sClientPWD ="123", | sClientId = "042"; | | String req = ""+ | ""+ | "" + sEnrollId + ""+ | "" + sSSN + "" + | ""; | | ALMVTC alm = new ALMVTC(); | ScheduleSoapPort ssp = alm.getScheduleSoapPort(); | | Object resp = null; | | try { | resp = ssp.getCandidateScheduleData((Object)req); | //resp = ssp.serviceCheck(req); | logger.info("the response for the candidates:"+resp); | } catch (Exception e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | | logger.info("leaving perform"); | return null; | } | Not sure if this will help but the full stack trace can be found here: http://graham-king.blogspot.com/2007/10/full-stack-trace-for-jboss-mssql.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098990#4098990 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098990 From do-not-reply at jboss.com Fri Oct 26 02:29:56 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Fri, 26 Oct 2007 02:29:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Exception while deploying the webservice using jax-ws Message-ID: <18041908.1193380196937.JavaMail.jboss@colo-br-02.atl.jboss.com> alessio.soldano wrote: anonymous wrote : Could you please post the code where you're using the XmlAccessorType annotation? | I mean, are you using this | Code: | | @XmlAccessorType(XmlAccessType.FIELD) | | | or something different? (like an array of AccessType.FIELD) | | You might also start from the classes generated by wsconsume. I have generated the classes from JAXB 2.0 . these classes are using this @XmlAccessorType(XmlAccessType.FIELD) and sample code for this | // | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b26-ea3 | // See http://java.sun.com/xml/jaxb | // Any modifications to this file will be lost upon recompilation of the source schema. | // Generated on: 2007.10.22 at 10:28:58 AM IST | // | | | package com.covad.xsd.smo.vendororder; | | import java.util.ArrayList; | import java.util.List; | import javax.xml.bind.annotation.AccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlType; | import javax.xml.datatype.XMLGregorianCalendar; | import com.covad.xsd.smo.vendororder.Client; | import com.covad.xsd.smo.vendororder.LineItem; | import com.covad.xsd.smo.vendororder.VendorOrder; | | | /** | *

Java class for VendorOrder complex type. | * | *

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

  |  * 
  |  *   
  |  *     
  |  *       
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *         
  |  *       
  |  *     
  |  *   
  |  * 
  |  * 
| * | * | */ | @XmlAccessorType(AccessType.FIELD) | @XmlType(name = "VendorOrder", propOrder = { | "orderID", | "vendorID", | "vendorOrderID", | "orderReceivedDate", | "contractAcceptedFlag", | "contractAcceptedDate", | "productLanguageCode", | "client", | "lineItem" | }) | public class VendorOrder { | | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder", type = Integer.class) | protected int orderID; | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder", type = Integer.class) | protected int vendorID; | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder") | protected String vendorOrderID; | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder") | protected XMLGregorianCalendar orderReceivedDate; | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder") | protected Boolean contractAcceptedFlag; | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder") | protected XMLGregorianCalendar contractAcceptedDate; | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder") | protected String productLanguageCode; | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder") | protected Client client; | @XmlElement(namespace = "http://smo.xsd.covad.com/vendororder") | protected List lineItem; | | /** | * Gets the value of the orderID property. | * | */ | public int getOrderID() { | return orderID; | } | | /** | * Sets the value of the orderID property. | * | */ | public void setOrderID(int value) { | this.orderID = value; | } | | /** | * Gets the value of the vendorID property. | * | */ | public int getVendorID() { | return vendorID; | } | | /** | * Sets the value of the vendorID property. | * | */ | public void setVendorID(int value) { | this.vendorID = value; | } | | /** | * Gets the value of the vendorOrderID property. | * | * @return | * possible object is | * {@link String } | * | */ | public String getVendorOrderID() { | return vendorOrderID; | } | | /** | * Sets the value of the vendorOrderID property. | * | * @param value | * allowed object is | * {@link String } | * | */ | public void setVendorOrderID(String value) { | this.vendorOrderID = value; | } | | /** | * Gets the value of the orderReceivedDate property. | * | * @return | * possible object is | * {@link XMLGregorianCalendar } | * | */ | public XMLGregorianCalendar getOrderReceivedDate() { | return orderReceivedDate; | } | | /** | * Sets the value of the orderReceivedDate property. | * | * @param value | * allowed object is | * {@link XMLGregorianCalendar } | * | */ | public void setOrderReceivedDate(XMLGregorianCalendar value) { | this.orderReceivedDate = value; | } | | /** | * Gets the value of the contractAcceptedFlag property. | * | * @return | * possible object is | * {@link Boolean } | * | */ | public Boolean isContractAcceptedFlag() { | return contractAcceptedFlag; | } | | /** | * Sets the value of the contractAcceptedFlag property. | * | * @param value | * allowed object is | * {@link Boolean } | * | */ | public void setContractAcceptedFlag(Boolean value) { | this.contractAcceptedFlag = value; | } | | /** | * Gets the value of the contractAcceptedDate property. | * | * @return | * possible object is | * {@link XMLGregorianCalendar } | * | */ | public XMLGregorianCalendar getContractAcceptedDate() { | return contractAcceptedDate; | } | | /** | * Sets the value of the contractAcceptedDate property. | * | * @param value | * allowed object is | * {@link XMLGregorianCalendar } | * | */ | public void setContractAcceptedDate(XMLGregorianCalendar value) { | this.contractAcceptedDate = value; | } | | /** | * Gets the value of the productLanguageCode property. | * | * @return | * possible object is | * {@link String } | * | */ | public String getProductLanguageCode() { | return productLanguageCode; | } | | /** | * Sets the value of the productLanguageCode property. | * | * @param value | * allowed object is | * {@link String } | * | */ | public void setProductLanguageCode(String value) { | this.productLanguageCode = value; | } | | /** | * Gets the value of the client property. | * | * @return | * possible object is | * {@link Client } | * | */ | public Client getClient() { | return client; | } | | /** | * Sets the value of the client property. | * | * @param value | * allowed object is | * {@link Client } | * | */ | public void setClient(Client value) { | this.client = value; | } | | /** | * Gets the value of the lineItem property. | * | *

| * This accessor method returns a reference to the live list, | * not a snapshot. Therefore any modification you make to the | * returned list will be present inside the JAXB object. | * This is why there is not a set method for the lineItem property. | * | *

| * For example, to add a new item, do as follows: | *

  |      *    getLineItem().add(newItem);
  |      * 
| * | * | *

| * Objects of the following type(s) are allowed in the list | * {@link LineItem } | * | * | */ | public List getLineItem() { | if (lineItem == null) { | lineItem = new ArrayList(); | } | return this.lineItem; | } | | } | Please suggest on this. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099124#4099124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099124 From do-not-reply at jboss.com Fri Oct 26 08:25:41 2007 From: do-not-reply at jboss.com (BigHeartedTone) Date: Fri, 26 Oct 2007 08:25:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Using Jbossws for username token secure communication outsid Message-ID: <21066624.1193401541574.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Can anybody help me? I have been unable to find anything that points me in the right direction those these two posts are the closest. http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040908#4040908 http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067456#4067456 I am trying to communicate with a webservice that use username token based security, using the jbossws implementation. I am doing this outside of the container for a test. Reading these forums, it looks like I should be doing the following once I got the username token (which I can do fine) | BlahService service = new BlahService (); //Generated Service class using wsconsume | BlahServicePortType psp = service.getBlahServiceHttpPort(); | ((StubExt) psp).setConfigName("Standard WSSecurity Client"); | Map reqContext = ((BindingProvider)psp).getRequestContext(); | reqContext.put(Stub.USERNAME_PROPERTY, loginService.getToken()); | | try { | ArrayOfModelSummary summary = psp.listAvailableModels(); | return summary.getModelSummary(); | } catch (BlahWSFault e) { | e.printStackTrace(); | throw new BlahException(e); | } | I am using the jbossws 2.0.1 implementation. Should I be doing it this way? What classes do I use to get the key value into the context. Any help gratefully recieved. Tony View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099261#4099261 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099261 From do-not-reply at jboss.com Fri Oct 26 10:24:11 2007 From: do-not-reply at jboss.com (ZazzaZ) Date: Fri, 26 Oct 2007 10:24:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NPE @ org.jboss.ws.soap.SOAPConnectionImpl.getRemotingMe Message-ID: <935202.1193408651677.JavaMail.jboss@colo-br-02.atl.jboss.com> It looks like there's an error getting the locator for the web service. It's strange because testing it via a client the services workd and responds. Any clues? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099328#4099328 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099328 From do-not-reply at jboss.com Fri Oct 26 10:26:43 2007 From: do-not-reply at jboss.com (jones123) Date: Fri, 26 Oct 2007 10:26:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - jboss 4.0.2 Webservices dynamic proxy client issue : could Message-ID: <25432109.1193408803173.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I'm in a bit of a bind. I'm working with webservices in jboss 4.0.2. Trying a simple test at first. I've successfully deployed a webservice. However I have a problem when trying to access it using the a Dynamic Proxy Client. The problem happens when I use a complex type. I get the following exception: java.rmi.RemoteException: null; nested exception is: java.lang.reflect.UndeclaredThrowableException at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:176) at $Proxy1.createPerson(Unknown Source) at com.mine.ws.client.WSEchoClient.main(WSEchoClient.java:65) Caused by: java.lang.reflect.UndeclaredThrowableException at $Proxy0.createPerson(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 org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:105) ... 2 more Caused by: org.xml.sax.SAXException: Deserializing parameter 'result': could not find deserializer for type {http://trials.ws.mine.com}Person at org.jboss.axis.message.RPCHandler.onStartChild(RPCHandler.java:326) at org.jboss.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1168) at org.jboss.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244) at org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1386) at org.jboss.axis.message.RPCElement.deserialize(RPCElement.java:262) at org.jboss.axis.message.RPCElement.getParams(RPCElement.java:396) at org.jboss.axis.client.Call.invoke(Call.java:2662) at org.jboss.axis.client.Call.invoke(Call.java:2538) at org.jboss.axis.client.Call.invokeInternal(Call.java:1976) at org.jboss.axis.client.Call.invoke(Call.java:1914) at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265) at org.jboss.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:381) ... 8 more /**********************************************************************************************/ /* running in eclipse ide with the following jars in classpath: */ /**********************************************************************************************/ axis-ws4ee.jar jboss-w4ee-client.jar wsdl4.jar activation.jar commons-discovery.jar jbossall-client.jar /**********************************************************************************************/ /* Simple Serializable bean containing just two strings */ /**********************************************************************************************/ package com.mine.ws.model; public class Person implements java.io.Serializable { private String firstname; private String lastname; /** * */ public Person() { } /** * @param firstname * @param lastname */ public Person(String firstname, String lastname) { super(); this.firstname = firstname; this.lastname = lastname; } /** * @return the firstname */ public String getFirstname() { return firstname; } /** * @param firstname the firstname to set */ public void setFirstname(String firstname) { this.firstname = firstname; } /** * @return the lastname */ public String getLastname() { return lastname; } /** * @param lastname the lastname to set */ public void setLastname(String lastname) { this.lastname = lastname; } } /**********************************************************************************************/ WS CLIENT CODE /**********************************************************************************************/ package com.mine.ws.client; import java.net.MalformedURLException; import java.net.URL; import java.rmi.RemoteException; import java.util.HashMap; import java.util.Map; import javax.xml.namespace.QName; import javax.xml.rpc.Service; import javax.xml.rpc.ServiceException; import javax.xml.rpc.ServiceFactory; import com.mine.ws.model.Person; import com.mine.ws.trials.IEchoService; public class WSEchoClient { public static void main(String[] args) { try { String url ="http://localhost:8080/ejb-trials-j2ee/ws-trials-j2ee/EchoService?wsdl"; String namespace = "http://trials.ws.mine.com"; String servicename = "EchoService"; URL wsdlUrl = new URL(url); QName qname = new QName(namespace,servicename); ServiceFactory factory = ServiceFactory.newInstance(); Service service = factory.createService(wsdlUrl,qname); IEchoService echoService = (IEchoService) service.getPort(IEchoService.class); String firstname ="Clark"; String lastname = "Kent"; Person person = echoService.createPerson(firstname, lastname); } catch (MalformedURLException e) { e.printStackTrace(); } catch (RemoteException e) { e.printStackTrace(); } catch (ServiceException e) { e.printStackTrace(); } } } /**********************************************************************************************/ Generated WSDL using wscompile as noted in jboss docs /**********************************************************************************************/ /**********************************************************************************************/ mapping.xml generated from wscompile /**********************************************************************************************/ com.mine.ws.trials http://trials.ws.mine.com com.mine.ws.trials http://trials.ws.mine.com com.mine.ws.model.Person typeNS:Person complexType firstname firstname lastname lastname com.mine.ws.trials.EchoService serviceNS:EchoService IEchoServicePort IEchoServicePort com.mine.ws.trials.IEchoService portTypeNS:IEchoService bindingNS:IEchoServiceBinding createPerson createPerson 0 java.lang.String wsdlMsgNS:IEchoService_createPerson String_1 IN 1 java.lang.String wsdlMsgNS:IEchoService_createPerson String_2 IN com.mine.ws.model.Person wsdlMsgNS:IEchoService_createPersonResponse result /**********************************************************************************************/ config file used as parameter to wscompile /**********************************************************************************************/ /**********************************************************************************************/ webservices file /**********************************************************************************************/ EchoService META-INF/wsdl/EchoService.wsdl META-INF/mapping.xml EchoService pfx:IEchoServicePort com.mine.ws.trials.IEchoService EchoServiceBean View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099330#4099330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099330 From do-not-reply at jboss.com Fri Oct 26 11:41:22 2007 From: do-not-reply at jboss.com (ZazzaZ) Date: Fri, 26 Oct 2007 11:41:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NPE @ org.jboss.ws.soap.SOAPConnectionImpl.getRemotingMe Message-ID: <12158275.1193413282068.JavaMail.jboss@colo-br-02.atl.jboss.com> Got it. soapAction was missing. Added, reployed, test --> OK I hope this helps someone! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099369#4099369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099369 From do-not-reply at jboss.com Fri Oct 26 13:11:51 2007 From: do-not-reply at jboss.com (bblasko) Date: Fri, 26 Oct 2007 13:11:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Large File transfer from WS Client Message-ID: <31283401.1193418711840.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a simple WS that uses MTOM/XOP. I'm using JBossAS 4.0.5 and JBossWS 2.0.1 GA. I have the following annotations on the service class @WebService(name="E2PIService", serviceName="E2PIService") | @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING) | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | and this is the simple WebMethod signature @WebMethod(operationName="transferFile", action="transferFile") | @XmlMimeType("application/octet-stream") | public long transferFile(@XmlMimeType("application/octet-stream")javax.activation.DataHandler data) | When I invoke this service using a client, it works OK with small files but I get OutOfMemory exceptions on large files. I do call setMTOMEnabled(true) on the client side and verified the data is being encoded correctly. | SOAPBinding binding = (SOAPBinding)((BindingProvider)service).getBinding(); | binding.setMTOMEnabled(true); | | FileDataSource fds = new FileDataSource(new File("/bigData.dat")); | long d = service.transferFile(new DataHandler(fds)); | It appears that the client is not streaming the data. If I do the reverse where I send a file from the server to client, it does appear to correctly stream the data. How can I enable the client to perform streaming of DataHandler type parameters? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099434#4099434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099434 From do-not-reply at jboss.com Fri Oct 26 14:06:41 2007 From: do-not-reply at jboss.com (wcydaip) Date: Fri, 26 Oct 2007 14:06:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSTools to generate jaxrpc-mapping.xml file? Message-ID: <18254222.1193422001945.JavaMail.jboss@colo-br-02.atl.jboss.com> Can anyone help me solve this problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099462#4099462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099462 From do-not-reply at jboss.com Sat Oct 27 10:29:28 2007 From: do-not-reply at jboss.com (kgoral) Date: Sat, 27 Oct 2007 10:29:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - jbossws tutorial Message-ID: <29148568.1193495368235.JavaMail.jboss@colo-br-02.atl.jboss.com> I need some good tutorial showing in details how to create and deploy jax-rpc web serwices on jboss 4.2 ga with jbossws. Thank you for any kind of help... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099588#4099588 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099588 From do-not-reply at jboss.com Sun Oct 28 06:24:48 2007 From: do-not-reply at jboss.com (egelke) Date: Sun, 28 Oct 2007 06:24:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WebServiceRef & HandlerChain annotations Message-ID: <16734960.1193567088494.JavaMail.jboss@colo-br-02.atl.jboss.com> I think I found a bug with the way the HandlerChain annotation is implemented in JBossWS 2.0.1.SP2 on JBoss 4.2.2 It happends when I use @HandlerChain in the following condition: 1) A field in a Stateless Session Bean 2) The type of the field is the port type 3) The field is annotated with @WebServiceRef An example of the declaration: | @HandlerChain(file = "MyWsClient_HandlerChains.xml") | @WebServiceRef(name = "ws/MyWs", wsdlLocation = "META-INF/wsdl/MyWs.wsdl") | private MyWsPort wsPort; | In that case I get the following errror: | Caused by: org.jboss.ws.WSException: Cannot resolve handler file 'be/egelke/MyWsClient_HandlerChains.xml' on javax.xml.ws.Service | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.getHandlerChainsMetaData(JAXWSMetaDataBuilder.java:235) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:150) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) | at javax.xml.ws.Service.(Service.java:83) | at javax.xml.ws.Service.create(Service.java:721) | at org.jboss.ws.core.jaxws.client.ServiceObjectFactoryJAXWS.getObjectInstance(ServiceObjectFactoryJAXWS.java:135) | at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) | at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1273) | at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1290) | ... 143 more | I did check the code and found the following on the line specified in the above exception: | // Try the filename relative to class | if (fileURL == null) | { | String filepath = filename; | String packagePath = wsClass.getPackage().getName().replace('.', '/'); | String resourcePath = packagePath + "/" + filepath; | while (filepath.startsWith("../")) | { | packagePath = packagePath.substring(0, packagePath.lastIndexOf("/")); | filepath = filepath.substring(3); | resourcePath = packagePath + "/" + filepath; | } | fileURL = wsClass.getClassLoader().getResource(resourcePath); | } | | if (fileURL == null) | throw new WSException("Cannot resolve handler file '" + filename + "' on " + wsClass.getName()); | As you can see, the above tries the load my handler file with the classloader from the javax.xml.ws.Service class. Obviously, my handler file can't be found. Is there a way that I can make it work or is this a bug or limitation? I did find some ways to get arround the problem, but all have there disadvantages: | 1) Replace the Port class of the field by the Service Client class: requires extra code which complicates unit testing. | 2) Specify the correct service implementation class: only available in JBoss 5.0 | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099646#4099646 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099646 From do-not-reply at jboss.com Sun Oct 28 12:25:15 2007 From: do-not-reply at jboss.com (kyriakost) Date: Sun, 28 Oct 2007 12:25:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Necessary artifacts/descriptors for JAX-WS web service Message-ID: <213196.1193588715144.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, I am coming back to this topic because it seems that I have the same problem and I cannot overpass it. I have successfully deployed a POJO. Very easy. I am now trying to deploy a WebServiceProvider but I am getting : Cannot obtain wsdl location This is my web.xml : | | | | Test | test.ws.Test | | | Test | /Test | | | | | my jboss-web.xml : | | | | | | | | | | | ws | | | | | | and this is the code : | | | package test.ws; | | | | | | import java.io.ByteArrayInputStream; | | | | import javassist.tools.rmi.RemoteException; | | | | import javax.jws.WebMethod; | | import javax.jws.WebParam; | | import javax.jws.WebResult; | | import javax.jws.WebService; | | import javax.jws.soap.SOAPBinding; | | import javax.xml.transform.Source; | | import javax.xml.transform.Transformer; | | import javax.xml.transform.TransformerFactory; | | import javax.xml.transform.dom.DOMResult; | | import javax.xml.transform.stream.StreamSource; | | import javax.xml.ws.Provider; | | import javax.xml.ws.Service; | | import javax.xml.ws.ServiceMode; | | import javax.xml.ws.WebServiceProvider; | | | | import org.w3c.dom.Node; | | | | @WebServiceProvider | | @ServiceMode(value = Service.Mode.PAYLOAD) | | public class Test implements Provider | | { | | | | public Source invoke(Source source) throws RemoteException { | | try { | | DOMResult dom = new DOMResult(); | | Transformer trans = TransformerFactory.newInstance().newTransformer(); | | trans.transform(source, dom); | | Node node = dom.getNode(); | | Node root = node.getFirstChild(); | | Node first = root.getFirstChild(); | | int number1 = Integer.decode(first.getFirstChild().getNodeValue()); | | Node second = first.getNextSibling(); | | int number2 = Integer.decode(second.getFirstChild().getNodeValue()); | | | | return sendSource(number1, number2); | | | | } catch(Exception e) { | | e.printStackTrace(); | | throw new RemoteException("Error in provider endpoint"); | | } | | } | | | | private Source sendSource(int number1, int number2) { | | int sum = number1+number2; | | String body = | | "" | | +sum | | +""; | | Source source = new StreamSource( | | new ByteArrayInputStream(body.getBytes())); | | return source; | | } | | } | | | | I even tried putting a wsdl inside at | WEB-INF/wsdl/TestService.wsdl | | Where should I put the wsdl so that the deployer can find it ? | What other artifacts/deployer-descriptors do I need to make it work ? | | Thank you in advance ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099673#4099673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099673 From do-not-reply at jboss.com Sun Oct 28 17:54:22 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 28 Oct 2007 17:54:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Errors in AS after updating JBossWS - plz help Message-ID: <6897675.1193608463454.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, which version of JBoss (4.2.0.GA, 4.2.1.GA, ... ?) and JBossESB are you using? Perhaps this might be related to this http://www.jboss.com/index.html?module=bb&op=viewtopic&t=122212 that is going to be fixed soon. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099687#4099687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099687 From do-not-reply at jboss.com Sun Oct 28 17:58:59 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sun, 28 Oct 2007 17:58:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <10940397.1193608739132.JavaMail.jboss@colo-br-02.atl.jboss.com> "abdujaparov" wrote : Hi Alesso,thanks, now it works! | Another question is it possible to get the statistics of each operation of each endpoint? | Thanks, bye bye. No, not right now. But, as I said, we are thinking of features like this in the productivity thread I mentioned above, feel free to suggest your ideas. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121473 Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099688#4099688 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099688 From do-not-reply at jboss.com Sun Oct 28 18:04:50 2007 From: do-not-reply at jboss.com (raster69) Date: Sun, 28 Oct 2007 18:04:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: soap:address location not fully qualified (JSR-181) Message-ID: <26593505.1193609090580.JavaMail.jboss@colo-br-02.atl.jboss.com> Edit jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml Here you will find information http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQURLRewriting Good luck ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099689#4099689 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099689 From do-not-reply at jboss.com Mon Oct 29 02:05:09 2007 From: do-not-reply at jboss.com (SameerGijare) Date: Mon, 29 Oct 2007 02:05:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Exception when deploying a web service on jboss 4.2.1.GA Message-ID: <22802447.1193637909662.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I have a web service with wsdl ready from weblogic.I am porting it to Jboss 4.2.1.GA.It uses jbossws1.2.1.GA I am also using JAXB 2.1.5 to genarate schema.jar, from XSD using xjc command and then compiling the classes and putting them in schema.jar.But when I deploy the bundled web application on Jboss 4.2.1 i get the following exception :02,694 ERROR [MainDeployer] Could not start deployment: file:/E:/jboss-4.2.1.GA/server/default/deploy/mcafeeAdapter.war boss.deployment.DeploymentException: Cannot start service endpoint; - nested throwable: (org.jboss.ws.WSException: {http://smo.xsd.covad.com/vendororder}vendorOrder is not a valid property on class com.covad.xsd.smo.vendororder.ProcessVendorOrder) at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:101) 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 $Proxy46.start(Unknown Source) 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 sun.reflect.GeneratedMethodAccessor18.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) d by: org.jboss.ws.WSException: {http://smo.xsd.covad.com/vendororder}vendorOrder is not a valid property on class com.covad.xsd.smo.vendororder.ProcessVendorOrder at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:816) at org.jboss.ws.metadata.acessor.JAXBAccessor$1$1.create(JAXBAccessor.java:84) at org.jboss.ws.metadata.umdm.ParameterMetaData.eagerInitialize(ParameterMetaData.java:472) at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(OperationMetaData.java:466) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations(EndpointMetaData.java:516) at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:502) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:490) at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:429) at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:192) at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:112) at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:646) at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:140) at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndpoint(DeployerInterceptor.java:144) at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:96) ... 74 more Can anyone help me to resolve this exception ? Thank in advance.. -Sameer Gijare View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099728#4099728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099728 From do-not-reply at jboss.com Mon Oct 29 03:19:14 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Mon, 29 Oct 2007 03:19:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployed service statistics Message-ID: <30867091.1193642354424.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Alessio, the last question how can I get the statistics of each operation of the web service? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099738#4099738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099738 From do-not-reply at jboss.com Mon Oct 29 04:53:27 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Mon, 29 Oct 2007 04:53:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Deploying on Jboss 4.2.1, jbossws 1.2.1 success, same applicat Message-ID: <17832641.1193648007216.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I have created small sample HelloWorld WebService and tried to deploy on Jboss 4.2.1 GA and Jbossws 1.2.1 GA.It got deployed. I am using Jax-WS for creating the web service. Then i upgraded to jbossws to 2.0.1 GA and tried to deploy the same application. It it throwing the following exception java.lang.IllegalStateException: Cannot find endpoint meta data for: JWeb at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM etaData(UnifiedMetaDataDeploymentAspect.java:117) at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi edMetaDataDeploymentAspect.java:86) at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy (DeploymentAspectManagerImpl.java:115) at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep loyerHook.java:97) at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt erceptor.java:90) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. start(SubDeployerInterceptorSupport.java:188) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce ptor.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 $Proxy45.start(Unknown Source) 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 sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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(URLDeploymen tScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:634) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A bstractDeploymentScanner.java:336) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS upport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB eanSupport.java:245) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.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(ServiceControl ler.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(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.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(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch er.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept or.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM BeanOperationInterceptor.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) What could be the reason? My Remote Interface package com.covad.inter; | | import java.rmi.Remote; | import java.rmi.RemoteException; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | | @WebService(name="Hello",targetNamespace = "http://Inter.covad.com/") | @SOAPBinding(style = SOAPBinding.Style.RPC) | public interface Hello extends Remote { | | String echo( | String value) throws RemoteException; | | } My Implementation class package com.covad.impl; | | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | | @WebService(endpointInterface = "com.covad.inter.Hello", name="Hello") | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class HelloImpl { | | public String echo(String value) | { | return "Hello"+value; | } | | } | | My WSDL file | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My web.xml file | | | | JWeb | com.covad.impl.HelloImpl | | | | JWeb | /* | | | Please let me know if there are any problems in the code or there any changes in the annotation from jbossws 1.2.1GA to jbossws 2.0.1GA. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099752#4099752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099752 From do-not-reply at jboss.com Mon Oct 29 07:36:17 2007 From: do-not-reply at jboss.com (FabianW) Date: Mon, 29 Oct 2007 07:36:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Errors in AS after updating JBossWS - plz help Message-ID: <10164002.1193657777428.JavaMail.jboss@colo-br-02.atl.jboss.com> Yeah, thanks for your answer. I've already opened a new thread about my problem: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098749 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099799#4099799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099799 From do-not-reply at jboss.com Mon Oct 29 09:49:20 2007 From: do-not-reply at jboss.com (01012003) Date: Mon, 29 Oct 2007 09:49:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do you override soap:address location from WSDL at r Message-ID: <29257972.1193665760464.JavaMail.jboss@colo-br-02.atl.jboss.com> having the same problem? anyone? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099840#4099840 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099840 From jjoo at ECNext.com Mon Oct 29 13:54:49 2007 From: jjoo at ECNext.com (Jae Joo) Date: Mon, 29 Oct 2007 13:54:49 -0400 Subject: [jbossws-users] virtual IP address Message-ID: HI, I am running jboss AS 4.2.1 and would like to add the virtual IP address (from outside of server) which is pointing the jboss server. When I start the jboss AS, I set 0.0.0.0 for IP address using -b option. I am wondering the virtual ip address I am adding during the runningf jboss still can point the jboss. Thanks, Jae Joo Application Architect ECNext, Inc. 614-682-5134 (office) 614-682-5104 (fax) www.ecnext.com Making e-Content Work for You(tm) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbossws-users/attachments/20071029/a71ef72c/attachment.html From do-not-reply at jboss.com Mon Oct 29 16:31:18 2007 From: do-not-reply at jboss.com (Batigoal) Date: Mon, 29 Oct 2007 16:31:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WS Security and multiple signatures Message-ID: <6568877.1193689878942.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! Is it possible in JBoss WS to create multiple signatures and to get them after service has been called. In WS-Security Specification (http://www.verisign.com/wss/wss.pdf) look at Chapter 4.5 "ds:Signature". Can I realize attaching multiple signatures on the same document in JBoss-WS? Where can i found docu or API about that? Thanks in advance for every answer and tip! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100000#4100000 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100000 From do-not-reply at jboss.com Mon Oct 29 17:15:32 2007 From: do-not-reply at jboss.com (chris.laprun@jboss.com) Date: Mon, 29 Oct 2007 17:15:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Warning with ServiceObjectFactory with jbossws-native-2.0.1. Message-ID: <8752583.1193692532326.JavaMail.jboss@colo-br-02.atl.jboss.com> WARN [org.jboss.ws.core.client.ServiceObjectFactory] Unable to narrow port selection for | UnifiedPortComponentRef | serviceEndpointInterface=org.jboss.portal.wsrp.core.WSRP_v1_Registration_PortType | portQName=null | enableMTOM=false | portComponentLink=null | callProperties=[] | stubProperties=[] | configName=null | configFile=null what does that mean and how can I fix it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100007#4100007 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100007 From do-not-reply at jboss.com Mon Oct 29 17:16:30 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 29 Oct 2007 17:16:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Exception when deploying a web service on jboss 4.2.1.GA Message-ID: <7022086.1193692590437.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, take a look here: http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#Why_I.27m_getting_.22propertyname_is_not_valid_property_on_class_mypackage.jaxws.Propertyname.22.3F and here: http://jira.jboss.org/jira/browse/JBWS-1799 This should help you ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100008#4100008 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100008 From do-not-reply at jboss.com Mon Oct 29 18:05:00 2007 From: do-not-reply at jboss.com (szaccaria) Date: Mon, 29 Oct 2007 18:05:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - restrict access to one ip Message-ID: <27161869.1193695500217.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi to all, How I can restric my web service only to restrict range of ip ? i've read about in http://wiki.jboss.org/wiki/Wiki.jsp?page=RMIClassLoadingService where be spoken about secure... is the right way? thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100017#4100017 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100017 From do-not-reply at jboss.com Tue Oct 30 04:46:55 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 30 Oct 2007 04:46:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: restrict access to one ip Message-ID: <14510631.1193734015764.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, you could implement JBossWS server side handler. This handler have method handleMessage(MessageContext). The MessageContext object has property SERVLET_REQUEST, through which you can obtain the underlying ServletRequest object. And on ServletRequest object there are a methods like: * getRemoteAddr() * getRemoteHost() which you can use for IP filtering purposes ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100105#4100105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100105 From do-not-reply at jboss.com Tue Oct 30 05:15:59 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 30 Oct 2007 05:15:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws tutorial Message-ID: <933363.1193735759830.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php?title=JAX-RPC_User_Guide Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100116#4100116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100116 From do-not-reply at jboss.com Tue Oct 30 05:26:52 2007 From: do-not-reply at jboss.com (BigHeartedTone) Date: Tue, 30 Oct 2007 05:26:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Using Jbossws for username token secure communication ou Message-ID: <26503372.1193736412115.JavaMail.jboss@colo-br-02.atl.jboss.com> ANY BODY?? I am now using xfire to do the username token (because I have an example that works) but this conflicts with my existing jbossws code. Arrghh!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100120#4100120 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100120 From do-not-reply at jboss.com Tue Oct 30 09:22:20 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Tue, 30 Oct 2007 09:22:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Using Jbossws for username token secure communication ou Message-ID: <5036818.1193750540195.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, take a look at the jbossws samples; download the src archive from the project download page, then see class org.jboss.test.ws.jaxws.samples.wssecurity.SimpleUsernameTestCase. It's a working sample using the Username Token. You may also find an example in the interop test package. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100243#4100243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100243 From do-not-reply at jboss.com Tue Oct 30 10:27:21 2007 From: do-not-reply at jboss.com (krithi) Date: Tue, 30 Oct 2007 10:27:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Stopping Web Service Message-ID: <30307952.1193754441871.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi How to start and stop the Jboss web service programatically? I would like to get ' Server Not found ' page after stopping the jboss Web Service but jboss should remain running. On a particular event I would like to restart the web service. Is it possible to achieve this, How? Please Help Thanks Krithi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100284#4100284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100284 From do-not-reply at jboss.com Tue Oct 30 10:29:48 2007 From: do-not-reply at jboss.com (krithi) Date: Tue, 30 Oct 2007 10:29:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Stopping Web Service Message-ID: <20616504.1193754588856.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry to have missed this, I am using Jboss.4.0.5 GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100286#4100286 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100286 From do-not-reply at jboss.com Tue Oct 30 12:20:22 2007 From: do-not-reply at jboss.com (kellenheller) Date: Tue, 30 Oct 2007 12:20:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.0.GA released Message-ID: <21482539.1193761222653.JavaMail.jboss@colo-br-02.atl.jboss.com> >2. installed jbossws-1.2 into jboss-4.0.5.GA and now wsconsume fails to work, it throws a NoClassDefFound on org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl ? I'm able to run web services using the dynamic proxy, but when I try to pre-gen the client classes with wsconsume, I get this exception as well. I'm on jboss-4.0.5GA and jbossws-1.2.1.GA. I had previously installed 2.0.1GA, but couldn't get it to install, so I installed jbossws-1.2.1.GA instead. Anybody who has had this problem get past it? -Tracey View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100345#4100345 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100345 From do-not-reply at jboss.com Tue Oct 30 15:32:55 2007 From: do-not-reply at jboss.com (ghinkle) Date: Tue, 30 Oct 2007 15:32:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: avoid lazy-initialization exceptions Message-ID: <24636689.1193772775930.JavaMail.jboss@colo-br-02.atl.jboss.com> So I went and tried a few different ways to solve this. I implemented a XmlAdapter thinking I could inject some code into the marshalling process to null out the relationships before jaxb tries to do its thing. | @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.jboss.on.domain.util.EJBXMLTypeAdaptor.class) | Doing this on the entity class and having the adapter just returned the cleaned-up object results in: | javax.xml.bind.JAXBException: org.jboss.on.domain.auth.Subject nor any of its super class is known to this context | It doesn't look like many people understand XmlAdapters given what I've been able to find on Google. Any ideas how to just get access to the object, but still have JAXB do the marshalling? I also tried putting the adapter on the relationship collection field that is lazy (and set the accessor type to FIELD), but it never ran my adapter in that case. Putting the adapter on the accessors didn't seem to get picked up. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100420#4100420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100420 From do-not-reply at jboss.com Tue Oct 30 17:06:41 2007 From: do-not-reply at jboss.com (wcydaip) Date: Tue, 30 Oct 2007 17:06:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss-4.0.5.GA with JBossWS-native-2.0.0.GA to IIS Message-ID: <26245145.1193778401692.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm attempting to access a webservice on our clients machine who is running an IIS server. I've run wsconsume to generate the artifacts. I registered the web service in the web.xml. I am not generating any other files. Are there files that I'm missing which need to be in the .war file in order to get it to work? Is this a possible solution to the problem: http://support.microsoft.com/kb/894550 or this: http://www.tek-tips.com/viewthread.cfm?qid=517155&page=2 I am unsuccessful and receive the following error: | 2007-10-25 11:42:54,437 INFO [com.comira.act.actions.GetCandidateScheduleData] entering perform | 2007-10-25 11:42:54,515 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] START buildMetaData: [service={http://actcenters.com/ALMVTC/wsdl/}ALMVTC] | 2007-10-25 11:42:54,515 DEBUG [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] parse: http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | 2007-10-25 11:42:55,687 DEBUG [org.jboss.ws.tools.JavaToXSD] Load schema: http://actcenters.com/ALMVTC/type/=file:/C:/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_actcenters.com_ALMVTC_type_28452.xsd | 2007-10-25 11:42:55,703 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=null,sysid=file:/C:/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_actcenters.com_ALMVTC_type_28452.xsd] | 2007-10-25 11:42:55,703 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/soap/encoding/,sysid=null] | 2007-10-25 11:42:55,703 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/wsdl/,sysid=null] | 2007-10-25 11:42:55,703 DEBUG [org.jboss.util.xml.JBossEntityResolver] Cannot resolve [publicID=http://schemas.xmlsoap.org/wsdl/,systemID=null] | 2007-10-25 11:42:55,703 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] Cannot resolve entity: [pub=http://schemas.xmlsoap.org/wsdl/,sysid=null] | 2007-10-25 11:42:55,703 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=null,sysid=http://schemas.xmlsoap.org/wsdl/] | 2007-10-25 11:42:55,703 DEBUG [org.jboss.util.xml.JBossEntityResolver] Failed to open url stream | java.io.FileNotFoundException: C:\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp28450act-client-ws-exp.war\WEB-INF\classes (Access is denied) | at java.io.FileInputStream.open(Native Method) | at java.io.FileInputStream.(FileInputStream.java:106) | at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:105) | at java.net.URL.openStream(URL.java:1007) | at org.jboss.util.xml.JBossEntityResolver.loadClasspathResource(JBossEntityResolver.java:514) | at org.jboss.util.xml.JBossEntityResolver.resolveClasspathName(JBossEntityResolver.java:471) | at org.jboss.util.xml.JBossEntityResolver.resolveEntity(JBossEntityResolver.java:252) | at org.jboss.ws.core.utils.JBossWSEntityResolver.resolveEntity(JBossWSEntityResolver.java:65) | at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.resolveEntity(JBossXSEntityResolver.java:135) | at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) | at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:182) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:391) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128) | at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:131) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) | at javax.xml.ws.Service.(Service.java:83) | at com.comira.ALMVTC.(Unknown Source) | at com.comira.act.actions.GetCandidateScheduleData.perform(Unknown Source) | at com.comira.waf.web.RequestProcessor.processRequest(Unknown Source) | at com.comira.waf.web.FrontController.processRequest(Unknown Source) | at com.comira.waf.web.FrontController.doGet(Unknown Source) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | 2007-10-25 11:42:55,812 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/ws/2002/04/reference/,sysid=null] | 2007-10-25 11:42:55,812 DEBUG [org.jboss.util.xml.JBossEntityResolver] Cannot resolve [publicID=http://schemas.xmlsoap.org/ws/2002/04/reference/,systemID=null] | 2007-10-25 11:42:55,812 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] Cannot resolve entity: [pub=http://schemas.xmlsoap.org/ws/2002/04/reference/,sysid=null] | 2007-10-25 11:42:55,812 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=null,sysid=http://schemas.xmlsoap.org/ws/2002/04/reference/] | 2007-10-25 11:42:55,812 DEBUG [org.jboss.util.xml.JBossEntityResolver] Failed to open url stream | java.io.FileNotFoundException: C:\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp28450act-client-ws-exp.war\WEB-INF\classes (Access is denied) | at java.io.FileInputStream.open(Native Method) | at java.io.FileInputStream.(FileInputStream.java:106) | at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:105) | at java.net.URL.openStream(URL.java:1007) | at org.jboss.util.xml.JBossEntityResolver.loadClasspathResource(JBossEntityResolver.java:514) | at org.jboss.util.xml.JBossEntityResolver.resolveClasspathName(JBossEntityResolver.java:471) | at org.jboss.util.xml.JBossEntityResolver.resolveEntity(JBossEntityResolver.java:252) | at org.jboss.ws.core.utils.JBossWSEntityResolver.resolveEntity(JBossWSEntityResolver.java:65) | at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.resolveEntity(JBossXSEntityResolver.java:135) | at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) | at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:182) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:391) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128) | at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:131) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) | at javax.xml.ws.Service.(Service.java:83) | at com.comira.ALMVTC.(Unknown Source) | at com.comira.act.actions.GetCandidateScheduleData.perform(Unknown Source) | at com.comira.waf.web.RequestProcessor.processRequest(Unknown Source) | at com.comira.waf.web.FrontController.processRequest(Unknown Source) | at com.comira.waf.web.FrontController.doGet(Unknown Source) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | 2007-10-25 11:42:55,875 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/ws/2002/04/content-type/,sysid=null] | 2007-10-25 11:42:55,875 DEBUG [org.jboss.util.xml.JBossEntityResolver] Cannot resolve [publicID=http://schemas.xmlsoap.org/ws/2002/04/content-type/,systemID=null] | 2007-10-25 11:42:55,875 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] Cannot resolve entity: [pub=http://schemas.xmlsoap.org/ws/2002/04/content-type/,sysid=null] | 2007-10-25 11:42:55,875 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=null,sysid=http://schemas.xmlsoap.org/ws/2002/04/content-type/] | 2007-10-25 11:42:55,875 DEBUG [org.jboss.util.xml.JBossEntityResolver] Failed to open url stream | java.io.FileNotFoundException: C:\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp28450act-client-ws-exp.war\WEB-INF\classes (Access is denied) | at java.io.FileInputStream.open(Native Method) | at java.io.FileInputStream.(FileInputStream.java:106) | at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:105) | at java.net.URL.openStream(URL.java:1007) | at org.jboss.util.xml.JBossEntityResolver.loadClasspathResource(JBossEntityResolver.java:514) | at org.jboss.util.xml.JBossEntityResolver.resolveClasspathName(JBossEntityResolver.java:471) | at org.jboss.util.xml.JBossEntityResolver.resolveEntity(JBossEntityResolver.java:252) | at org.jboss.ws.core.utils.JBossWSEntityResolver.resolveEntity(JBossWSEntityResolver.java:65) | at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.resolveEntity(JBossXSEntityResolver.java:135) | at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source) | at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) | at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) | at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:182) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:391) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128) | at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:131) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) | at javax.xml.ws.Service.(Service.java:83) | at com.comira.ALMVTC.(Unknown Source) | at com.comira.act.actions.GetCandidateScheduleData.perform(Unknown Source) | at com.comira.waf.web.RequestProcessor.processRequest(Unknown Source) | at com.comira.waf.web.FrontController.processRequest(Unknown Source) | at com.comira.waf.web.FrontController.doGet(Unknown Source) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | 2007-10-25 11:42:57,265 WARN [org.jboss.ws.tools.wsdl.WSDL11Reader] Unsupported binding: {http://schemas.microsoft.com/soap-toolkit/wsdl-extension}binding | 2007-10-25 11:42:57,265 WARN [org.jboss.ws.tools.wsdl.WSDL11Reader] Unsupported binding: {http://schemas.microsoft.com/soap-toolkit/wsdl-extension}binding | 2007-10-25 11:42:57,265 WARN [org.jboss.ws.tools.wsdl.WSDL11Reader] Unsupported binding: {http://schemas.microsoft.com/soap-toolkit/wsdl-extension}binding | 2007-10-25 11:42:57,468 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] END buildMetaData: | UnifiedMetaData: | implementation: jbossws-native-2.0.0.GA (build=200707051029) | deploymentName: null | securityDomain: null | | ServiceMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}ALMVTC | refName=null | wsdName=null | wsdlFile=null | wsdlLocation=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | jaxrpcMapping=null | publishLocation=null | securityConfig=null | properties=null | | TypesMetaData: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ClientEndpointMetaData: | type=JAXWS | qname={http://actcenters.com/ALMVTC/wsdl/}ScheduleSoapPort | address=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | binding=http://schemas.xmlsoap.org/wsdl/soap/http | seiName=null | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getVersion | javaName={http://actcenters.com/ALMVTC/wsdl/}getVersion | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getVersion | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getSiteTitleList | javaName={http://actcenters.com/ALMVTC/wsdl/}getSiteTitleList | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getSiteTitleList | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}setInactiveFlag | javaName={http://actcenters.com/ALMVTC/wsdl/}setInactiveFlag | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.setInactiveFlag | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getSiteName | javaName={http://actcenters.com/ALMVTC/wsdl/}getSiteName | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getSiteName | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}setSitesTitleFlag | javaName={http://actcenters.com/ALMVTC/wsdl/}setSitesTitleFlag | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.setSitesTitleFlag | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getStatesByTitleId | javaName={http://actcenters.com/ALMVTC/wsdl/}getStatesByTitleId | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getStatesByTitleId | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getSitesBySiteNameTitleId | javaName={http://actcenters.com/ALMVTC/wsdl/}getSitesBySiteNameTitleId | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getSitesBySiteNameTitleId | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getProctorStationIdsByStateTitle | javaName={http://actcenters.com/ALMVTC/wsdl/}getProctorStationIdsByStateTitle | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getProctorStationIdsByStateTitle | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getProctorStationInfo | javaName={http://actcenters.com/ALMVTC/wsdl/}getProctorStationInfo | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getProctorStationInfo | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getTestCenters | javaName={http://actcenters.com/ALMVTC/wsdl/}getTestCenters | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getTestCenters | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getAvailableDays | javaName={http://actcenters.com/ALMVTC/wsdl/}getAvailableDays | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getAvailableDays | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getAvailableAppointments | javaName={http://actcenters.com/ALMVTC/wsdl/}getAvailableAppointments | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getAvailableAppointments | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}scheduleAppointment | javaName={http://actcenters.com/ALMVTC/wsdl/}scheduleAppointment | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.scheduleAppointment | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}cancelAppointment | javaName={http://actcenters.com/ALMVTC/wsdl/}cancelAppointment | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.cancelAppointment | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}serviceCheck | javaName={http://actcenters.com/ALMVTC/wsdl/}serviceCheck | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.serviceCheck | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getCandidateScheduleData | javaName={http://actcenters.com/ALMVTC/wsdl/}getCandidateScheduleData | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData | ClientEndpointMetaData: | type=JAXWS | qname={http://actcenters.com/ALMVTC/wsdl/}ScheduleDataSoapPort | address=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | binding=http://schemas.xmlsoap.org/wsdl/soap/http | seiName=null | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getScheduleData | javaName={http://actcenters.com/ALMVTC/wsdl/}getScheduleData | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/ScheduleData.getScheduleData | ClientEndpointMetaData: | type=JAXWS | qname={http://actcenters.com/ALMVTC/wsdl/}RegistrationSoapPort | address=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | binding=http://schemas.xmlsoap.org/wsdl/soap/http | seiName=null | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}register | javaName={http://actcenters.com/ALMVTC/wsdl/}register | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Registration.register | 2007-10-25 11:42:57,468 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] START: rebuildMetaData | 2007-10-25 11:42:57,468 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] setParameterStyle: null | 2007-10-25 11:42:57,468 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] processSOAPBinding on: com.comira.ScheduleSoapPort | 2007-10-25 11:42:57,468 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] setParameterStyle: WRAPPED | 2007-10-25 11:42:57,468 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Create new config [name=Standard Client,file=META-INF/standard-jaxws-client-config.xml] | 2007-10-25 11:42:57,468 DEBUG [org.jboss.ws.metadata.config.JBossWSConfigFactory] getConfig: [name=Standard Client,url=META-INF/standard-jaxws-client-config.xml] | 2007-10-25 11:42:57,468 DEBUG [org.jboss.ws.metadata.config.JBossWSConfigFactory] parse: file:/C:/jboss-4.0.5.GA/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-client-config.xml | 2007-10-25 11:42:57,515 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure EndpointMetaData | 2007-10-25 11:42:57,515 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 0 PRE handlers | 2007-10-25 11:42:57,515 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 0 ENDPOINT handlers | 2007-10-25 11:42:57,515 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Added 0 POST handlers | 2007-10-25 11:42:57,531 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] JAXBContext [types=[class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, boolean, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, boolean, class java.lang.Object, class java.lang.Object, boolean, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object, class java.lang.Object],tns=http://actcenters.com/ALMVTC/wsdl/] | 2007-10-25 11:42:57,531 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getVersion() | 2007-10-25 11:42:57,531 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getCandidateScheduleData(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract boolean com.comira.ScheduleSoapPort.getSiteTitleList(javax.xml.ws.Holder,java.lang.Object,java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract boolean com.comira.ScheduleSoapPort.setInactiveFlag(java.lang.Object,java.lang.Object,java.lang.Object,javax.xml.ws.Holder) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract boolean com.comira.ScheduleSoapPort.getSiteName(java.lang.Object,javax.xml.ws.Holder) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.setSitesTitleFlag(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getStatesByTitleId(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getSitesBySiteNameTitleId(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getProctorStationIdsByStateTitle(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getProctorStationInfo(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getTestCenters(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getAvailableDays(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.getAvailableAppointments(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.scheduleAppointment(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.cancelAppointment(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.OperationMetaData] Found best matching java method: public abstract java.lang.Object com.comira.ScheduleSoapPort.serviceCheck(java.lang.Object) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder] END: rebuildMetaData | | ServiceMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}ALMVTC | refName=null | wsdName=null | wsdlFile=null | wsdlLocation=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | jaxrpcMapping=null | publishLocation=null | securityConfig=null | properties=null | | TypesMetaData: | [complexType={http://www.w3.org/2001/XMLSchema}anyType,javaType=java.lang.Object] | [complexType={http://www.w3.org/2001/XMLSchema}boolean,javaType=boolean] | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ClientEndpointMetaData: | type=JAXWS | qname={http://actcenters.com/ALMVTC/wsdl/}ScheduleSoapPort | address=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | binding=http://schemas.xmlsoap.org/wsdl/soap/http | seiName=com.comira.ScheduleSoapPort | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getVersion | javaName=getVersion | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getVersion | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getCandidateScheduleData | javaName=getCandidateScheduleData | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getSiteTitleList | javaName=getSiteTitleList | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getSiteTitleList | ParameterMetaData: | xmlName=SiteTitleList | partName=SiteTitleList | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=INOUT | inHeader=false | index=0 | ParameterMetaData: | xmlName=sTitleId | partName=sTitleId | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=1 | ParameterMetaData: | xmlName=sSiteName | partName=sSiteName | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=2 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}boolean | javaType=boolean | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}setInactiveFlag | javaName=setInactiveFlag | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.setInactiveFlag | ParameterMetaData: | xmlName=sTitleId | partName=sTitleId | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ParameterMetaData: | xmlName=sSiteID | partName=sSiteID | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=1 | ParameterMetaData: | xmlName=sInactive | partName=sInactive | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=2 | ParameterMetaData: | xmlName=sErr | partName=sErr | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=INOUT | inHeader=false | index=3 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}boolean | javaType=boolean | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getSiteName | javaName=getSiteName | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getSiteName | ParameterMetaData: | xmlName=sSiteID | partName=sSiteID | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ParameterMetaData: | xmlName=sSiteName | partName=sSiteName | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=INOUT | inHeader=false | index=1 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}boolean | javaType=boolean | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}setSitesTitleFlag | javaName=setSitesTitleFlag | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.setSitesTitleFlag | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getStatesByTitleId | javaName=getStatesByTitleId | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getStatesByTitleId | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getSitesBySiteNameTitleId | javaName=getSitesBySiteNameTitleId | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getSitesBySiteNameTitleId | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getProctorStationIdsByStateTitle | javaName=getProctorStationIdsByStateTitle | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getProctorStationIdsByStateTitle | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getProctorStationInfo | javaName=getProctorStationInfo | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getProctorStationInfo | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getTestCenters | javaName=getTestCenters | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getTestCenters | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getAvailableDays | javaName=getAvailableDays | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getAvailableDays | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getAvailableAppointments | javaName=getAvailableAppointments | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.getAvailableAppointments | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}scheduleAppointment | javaName=scheduleAppointment | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.scheduleAppointment | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}cancelAppointment | javaName=cancelAppointment | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.cancelAppointment | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}serviceCheck | javaName=serviceCheck | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Schedule.serviceCheck | ParameterMetaData: | xmlName=sRequest | partName=sRequest | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=IN | inHeader=false | index=0 | ReturnMetaData: | xmlName=Result | partName=Result | xmlType={http://www.w3.org/2001/XMLSchema}anyType | javaType=java.lang.Object | mode=OUT | inHeader=false | index=-1 | ClientEndpointMetaData: | type=JAXWS | qname={http://actcenters.com/ALMVTC/wsdl/}ScheduleDataSoapPort | address=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | binding=http://schemas.xmlsoap.org/wsdl/soap/http | seiName=null | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}getScheduleData | javaName={http://actcenters.com/ALMVTC/wsdl/}getScheduleData | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/ScheduleData.getScheduleData | ClientEndpointMetaData: | type=JAXWS | qname={http://actcenters.com/ALMVTC/wsdl/}RegistrationSoapPort | address=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL | binding=http://schemas.xmlsoap.org/wsdl/soap/http | seiName=null | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://actcenters.com/ALMVTC/wsdl/}register | javaName={http://actcenters.com/ALMVTC/wsdl/}register | style=rpc/literal | oneWay=false | soapAction=http://actcenters.com/ALMVTC/action/Registration.register | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure SOAPBinding | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: PRE | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: ENDPOINT | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: POST | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=PRE,info=[service={http://actcenters.com/ALMVTC/wsdl/}ALMVTC,port={http://actcenters.com/ALMVTC/wsdl/}ScheduleSoapPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=POST,info=[service={http://actcenters.com/ALMVTC/wsdl/}ALMVTC,port={http://actcenters.com/ALMVTC/wsdl/}ScheduleSoapPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=ENDPOINT,info=[service={http://actcenters.com/ALMVTC/wsdl/}ALMVTC,port={http://actcenters.com/ALMVTC/wsdl/}ScheduleSoapPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.binding.BindingImpl] setHandlerChain: [] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] No port configuration for: {http://actcenters.com/ALMVTC/wsdl/}ScheduleSoapPort | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 8edd79 (Thread http-0.0.0.0-8080-2) | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.EndpointInvocation] setRequestParamValue: [name=sRequest,value=java.lang.String] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] bindRequestMessage: {http://actcenters.com/ALMVTC/wsdl/}getCandidateScheduleData | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] Create RPC body element: {http://actcenters.com/ALMVTC/wsdl/}getCandidateScheduleData | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.EndpointInvocation] getRequestParamValue: sRequest | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.EndpointInvocation] transformPayloadValue: java.lang.String -> java.lang.String | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Get locator for: [addr=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL,props={javax.xml.ws.service.endpoint.address=http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL}] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] connect called for: org.jboss.remoting.transport.http.HTTPClientInvoker at 16e3f87 | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Remoting metadata: {HEADER={SOAPAction="http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true} | 2007-10-25 11:42:57,546 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Setting request header with SOAPAction : "http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData" | 2007-10-25 11:42:57,546 DEBUG [org.jboss.remoting.transport.http.HTTPClientInvoker] Setting request header with Content-Type : text/xml; charset=UTF-8 | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from OBJECT_VALID to XML_VALID | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.soap.ObjectContent] getXMLFragment from Object [xmlType={http://www.w3.org/2001/XMLSchema}anyType,javaType=class java.lang.Object] | 2007-10-25 11:42:57,546 DEBUG [org.jboss.ws.core.jaxws.JAXBSerializer] serialize: [xmlName=sRequest,xmlType={http://www.w3.org/2001/XMLSchema}anyType] | 2007-10-25 11:42:57,562 DEBUG [org.jboss.ws.core.jaxws.JAXBSerializer] serialized: 11110-00004069 | 2007-10-25 11:42:57,562 DEBUG [org.jboss.ws.core.soap.ObjectContent] xmlFragment: [source=11110-00004069] | 2007-10-25 11:42:57,562 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-10-25 11:42:57,765 DEBUG [org.jboss.ws.core.soap.SOAPMessageUnMarshaller] getMimeHeaders from: {Content-Length=[2132], Expires=[-1;], ResponseCodeMessage=Internal Server Error, Date=[Thu, 25 Oct 2007 18:40:03 GMT], null=[HTTP/1.1 500 Internal Server Error], Content-Type=[text/xml; charset="UTF-8"], Server=[Microsoft-IIS/5.0], HEADER={SOAPAction="http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true, ResponseCode=500} | 2007-10-25 11:42:57,765 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=UTF-8] | 2007-10-25 11:42:57,765 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-10-25 11:42:57,765 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to DOM_VALID | 2007-10-25 11:42:57,765 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-10-25 11:42:57,765 DEBUG [org.jboss.ws.core.soap.HRefInlineHandler] Begin processHRefs: | | | SOAP-ENV:Server | WSDLReader:None of the matching operations for soapAction http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData could successfully load the incoming request. Potential typemapper problem | | | -2147024809 : The parameter is incorrect. | | | WSDLReader:None of the matching operations for soapAction http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData could successfully load the incoming request. Potential typemapper problem HRESULT=0x80070057: The pa View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100440#4100440 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100440 From do-not-reply at jboss.com Tue Oct 30 18:24:43 2007 From: do-not-reply at jboss.com (szaccaria) Date: Tue, 30 Oct 2007 18:24:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: restrict access to one ip Message-ID: <19802361.1193783083821.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Richard, your suggest it be a good choice but have you got some example? I made the ws with seam and annotation, and deploy to jbossAS, now how can implement the JBossWS server side handler in this case? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100462#4100462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100462 From do-not-reply at jboss.com Tue Oct 30 18:42:01 2007 From: do-not-reply at jboss.com (fmeystre) Date: Tue, 30 Oct 2007 18:42:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - contextRoot with multiple webservices Message-ID: <19610863.1193784121931.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have some problem with the contextRoot with multiple WebService (in different apps) with same name on same server. I'm running JBoss AS 4.2.1.GA with jbossws-native-2.0.1.GA. I have 2 deployed web applications (same java source code) First application is deployed at http://host/myApp1 Second application is deployed at http://host/myApp2 context root is set in the web.xml. for myApp1: | | | myApp1.war | /myApp1 | | | for myApp2: | | | myApp2.war | /myApp2 | | | Everything is working fine with the web application (using Seam 1.2.1 GA). The problem is with the WebService : The 2 WebServices are deployed under default context root : http://host/myApp1-myApp1/WSTest http://host/myApp2-myApp2/WSTest When I try to invoke the WebService WSTest from one client on http://host/myApp2-myApp2/WSTest it invokes the wrong service on the other app: http://host/myApp1-myApp1/WSTest Why is the wrong service invoked? I tried to change the context root like this : @WebContext(authMethod = "BASIC", contextRoot="/myApp1" ) but then I can't open the Webservice on http://host/myApp1/WSTest, Error 404 By the way @WebContext and contextRoot="myApp1" is not a good solution for me, Because 2 apps share the same java source. I need a more dynamic way to change this. I see that we can change the context-root in jboss.xml, but regarding this post it is not working : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078878#4078878 here is my WebService, it use the EJB annotation | @Stateless | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | @WebContext(authMethod = "BASIC", transportGuarantee = "NONE", secureWSDLAccess = false) | @SecurityDomain("JBossWS") | @RolesAllowed("friend") | | public class WSTestBean implements WSTest{ | | ... | | @WebMethod | public void test(byte[] order) { | ... | } | } | For information I have user Seam-Gen to generate the project Thanks in advance for any help Fabian View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100463#4100463 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100463 From do-not-reply at jboss.com Tue Oct 30 22:53:44 2007 From: do-not-reply at jboss.com (ghinkle) Date: Tue, 30 Oct 2007 22:53:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: avoid lazy-initialization exceptions Message-ID: <843985.1193799224117.JavaMail.jboss@colo-br-02.atl.jboss.com> I've now introduced an extended ServiceEndpointInvoker for the ejb3 calls. It's not perfect, but it allows me to get rid of all the PersistentCollections before soap and jaxb get their hands on my result objects. I'd still be interested if there's a better way though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100484#4100484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100484 From do-not-reply at jboss.com Wed Oct 31 02:40:09 2007 From: do-not-reply at jboss.com (nickarls) Date: Wed, 31 Oct 2007 02:40:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: nor any of its super class is known... Message-ID: <25688511.1193812809433.JavaMail.jboss@colo-br-02.atl.jboss.com> Well, got around it. The issue went like this: I wanted to return a Map from the WS. Interfaces weren't allowed so I returned a HashMap which worked perfectly if you disregard the fact that the map was always empty. So I returned a MapWrapper object, which complained that the Query class couldn't be found when it was constructing the result. The strange thing is that returning a List was fine, so I got around it by adding a place for the return value inside the Query class... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100505#4100505 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100505 From do-not-reply at jboss.com Wed Oct 31 05:30:33 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 31 Oct 2007 05:30:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: restrict access to one ip Message-ID: <33084910.1193823033490.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, you can download JBossWS sources and take a look to org.jboss.ws.extensions.addressing.jaxws.WSAddressingServerHandler. It could be a good starting point for you ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100551#4100551 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100551 From do-not-reply at jboss.com Wed Oct 31 05:44:28 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 31 Oct 2007 05:44:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: contextRoot with multiple webservices Message-ID: <21921295.1193823868255.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.org/jira/browse/JBWS-1877 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100559#4100559 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100559 From do-not-reply at jboss.com Wed Oct 31 07:42:52 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Wed, 31 Oct 2007 07:42:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Web Service client side Message-ID: <23204130.1193830972493.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'd like making a web service client that invokes a web service deployed in jbossws. For this client web service I must not use the stub classes generated with wsconsume, where can I get a tutorial? Where can I find a client example created without the stub classes? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100592#4100592 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100592 From do-not-reply at jboss.com Wed Oct 31 07:56:41 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 31 Oct 2007 07:56:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service client side Message-ID: <31027099.1193831801296.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, you can use javax.xml.ws.Dispatch to invoke webservices dynamically without creating stubs. Good starting point for you could be JAX-WS JSR specification document. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100600#4100600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100600 From do-not-reply at jboss.com Wed Oct 31 09:04:59 2007 From: do-not-reply at jboss.com (adinarayana.gunnam) Date: Wed, 31 Oct 2007 09:04:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Hold the client ip from the client calls made to the web se Message-ID: <2711848.1193835899806.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I am working on Ejb3 web services.I want to hold the client ip from the client calls made to the web service.I deployed this service in jboss AS 4.2.1 In the service implementation i started using @Resource SessionContext sessionCtx; My idea is to get the MessageContext from this SessionContext and finally to get the HttpServletRequest. I got the sessionCtx(BaseSessionContext) object.When i am trying to access the MessageContect using the below syntax System.out.println(sessionCtx.getMessageContext()); I got ---ERROR [SOAPFaultHelperJAXWS] SOAP request exception javax.ejb.EJBException: java.lang.IllegalStateException: No message context found Please provide me with correct solution to this problem.Please also suggest if there is any alternate approach to get the client ip in the service implementation. Thanks Adinarayana View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100639#4100639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100639 From do-not-reply at jboss.com Wed Oct 31 12:20:34 2007 From: do-not-reply at jboss.com (wcydaip) Date: Wed, 31 Oct 2007 12:20:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss-4.0.5.GA with JBossWS-native-2.0.0.GA to IIS Message-ID: <30582674.1193847634940.JavaMail.jboss@colo-br-02.atl.jboss.com> Is JBOSS the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100747#4100747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100747 From do-not-reply at jboss.com Wed Oct 31 12:23:09 2007 From: do-not-reply at jboss.com (mleite) Date: Wed, 31 Oct 2007 12:23:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Stack Overflow while deploing JBossWS 2.0 web services Message-ID: <16245887.1193847789982.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, i have the same problem. Anyone has just solved it? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100749#4100749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100749 From do-not-reply at jboss.com Wed Oct 31 12:30:04 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Wed, 31 Oct 2007 12:30:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service client side Message-ID: <4026961.1193848204388.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I've searched but I don't uderstand much. I have the service name, the operation name and parameters of the operation and I want invoke the operation. I've found this code of an axis dynamic client, I've created it but when I meke the call to web service I receive this error: | Exception in thread "main" AxisFault | faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server | faultSubcode: | faultString: For input string: "" | faultActor: | faultNode: | faultDetail: | {http://xml.apache.org/axis/}stackTrace:For input string: "" | ..... | ..... | in the client while jboss give me this error: | 17:13:27,275 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://tesi/}TesiPort does | not contain operation meta data for: fattoriale | at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestinatio | n(ServiceEndpointInvoker.java:457) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpoin | tInvoker.java:176) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan | dlerImpl.java:408) | .... | .... | .... My client code is the following: | String endpoint = "http://127.0.0.1:8080/Tesi"; | Service service = new Service(); | Call call = (Call) service.createCall(); | call.setTargetEndpointAddress(new java.net.URL(endpoint)); | call.setOperationName("fattoriale"); | call.addParameter("arg0", XMLType.XSD_INT, ParameterMode.IN); | call.setReturnType(XMLType.XSD_DOUBLE); | Object[] param = new Object[] {new Integer(6)}; | Double risultato = (Double)call.invoke(param); | System.out.println(risultato); | How do I have to modify in this code? I've looked for jax-ws but I don't understand anything. Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100754#4100754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100754 From do-not-reply at jboss.com Wed Oct 31 12:36:13 2007 From: do-not-reply at jboss.com (Pires da Silva) Date: Wed, 31 Oct 2007 12:36:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - problem on jboss-4.2.0.GA not if upgraded with jbossws1.2.0. Message-ID: <29966291.1193848573462.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, Executing my web service under jboss4.2.0-GA on Linux, I get: (meaning jboss-4.2.0.GA is just unzipped, all required war etc copied under appropriate directories) but when using jboss-4.2.0.GA + upgrading it from jbossws1.2.0.SP1 it is working. java.lang.NoSuchMethodError: javax.xml.soap.SOAPElement.getElementQName()Ljavax/xml/namespace/QName; at org.jboss.ws.core.soap.SOAPElementImpl.getChildElements(SOAPElementImpl.java:504) at org.jboss.ws.core.soap.SOAPBodyImpl.faultIterator(SOAPBodyImpl.java:181) at org.jboss.ws.core.soap.SOAPBodyImpl.getFault(SOAPBodyImpl.java:168) at org.jboss.ws.core.soap.SOAPMessageImpl.isFaultMessage(SOAPMessageImpl.java:326) at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:244) at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) 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.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.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Catherine Pires da Silva View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100762#4100762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100762 From do-not-reply at jboss.com Wed Oct 31 13:43:16 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 31 Oct 2007 13:43:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Stack Overflow while deploing JBossWS 2.0 web services Message-ID: <30859833.1193852596763.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, yes this is fixed and fix will be available in next JBossWS 2.0.2 version which is comming out soon. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100800#4100800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100800 From do-not-reply at jboss.com Wed Oct 31 13:48:28 2007 From: do-not-reply at jboss.com (wcydaip) Date: Wed, 31 Oct 2007 13:48:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss, WebServices and Microsoft SOAP3.0 Message-ID: <27513468.1193852908921.JavaMail.jboss@colo-br-02.atl.jboss.com> Is there a specific version of JBoss and the jwsdp that must be used to be compatible with Microsoft's SOAP Toolkit 3.0? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100801#4100801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100801