<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Web Services on JBoss</title>
	<atom:link href="http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/feed/" rel="self" type="application/rss+xml" />
	<link>http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/</link>
	<description>Java Enterprise Development &#38; Technology</description>
	<lastBuildDate>Wed, 10 Mar 2010 23:24:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Frank</title>
		<link>http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/comment-page-1/#comment-10</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 08 Dec 2008 21:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.franksalinas.net/?p=45#comment-10</guid>
		<description>That doesn&#039;t make sense to me either. Oh well, glad you got it working!</description>
		<content:encoded><![CDATA[<p>That doesn&#8217;t make sense to me either. Oh well, glad you got it working!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deon</title>
		<link>http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/comment-page-1/#comment-9</link>
		<dc:creator>Deon</dc:creator>
		<pubDate>Mon, 08 Dec 2008 04:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.franksalinas.net/?p=45#comment-9</guid>
		<description>Thanks! I did get it to work, but the only way to get it to work was to make the contextRoot  different for each service. 

@WebContext(contextRoot=&quot;service1&quot;)

@WebContext(contextRoot=&quot;service2&quot;)

This does not make any sense to me. I am not sure why this would work. But it does!

Thanks Again!</description>
		<content:encoded><![CDATA[<p>Thanks! I did get it to work, but the only way to get it to work was to make the contextRoot  different for each service. </p>
<p>@WebContext(contextRoot=&#8221;service1&#8243;)</p>
<p>@WebContext(contextRoot=&#8221;service2&#8243;)</p>
<p>This does not make any sense to me. I am not sure why this would work. But it does!</p>
<p>Thanks Again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/comment-page-1/#comment-8</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 08 Dec 2008 03:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.franksalinas.net/?p=45#comment-8</guid>
		<description>Deon, I tried to replicate your problem but could not. I am using JBoss 4.3.0 and JBossWS 2.0.1.GA. I successfully published multiple EJB3 stateless session beans as web service endpoints packaged as a jar file. Here&#039;s what I did... I first create an interface called ServiceOneRemote. This is just a plain interface which defines the business method. 

&lt;pre&gt;
package net.franksalinas.ws;

public interface ServiceOneRemote {
	
	public String testMethodOne();

}
&lt;/pre&gt;

Second I created a class named ServiceOneImpl which implemented the remote interface. Then I applied the all the required annotations which ended up looking like:

&lt;pre&gt;
package net.franksalinas.ws;

import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

import org.jboss.annotation.ejb.RemoteBinding;
import org.jboss.wsf.spi.annotation.WebContext;

@Remote(ServiceOneRemote.class)
@RemoteBinding(jndiBinding = &quot;/ejb3/ServiceOneRemote&quot;)

@Stateless
@WebService
@WebContext(contextRoot=&quot;/myservices&quot;)
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class ServiceOneImpl implements ServiceOneRemote {

	public String testMethodOne() {
		return &quot;Hello from ServiceOne&quot;;
	}
}
&lt;/pre&gt;


I repeated the above steps for the second service implementation and packaged the classes as a jar file and deployed to my default config on JBoss. After jboss started up I was able to see both service implementations at http://localhost:8080/jbossws/services and both urls displayed the proper WSDL.</description>
		<content:encoded><![CDATA[<p>Deon, I tried to replicate your problem but could not. I am using JBoss 4.3.0 and JBossWS 2.0.1.GA. I successfully published multiple EJB3 stateless session beans as web service endpoints packaged as a jar file. Here&#8217;s what I did&#8230; I first create an interface called ServiceOneRemote. This is just a plain interface which defines the business method. </p>
<pre>
package net.franksalinas.ws;

public interface ServiceOneRemote {

	public String testMethodOne();

}
</pre>
<p>Second I created a class named ServiceOneImpl which implemented the remote interface. Then I applied the all the required annotations which ended up looking like:</p>
<pre>
package net.franksalinas.ws;

import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

import org.jboss.annotation.ejb.RemoteBinding;
import org.jboss.wsf.spi.annotation.WebContext;

@Remote(ServiceOneRemote.class)
@RemoteBinding(jndiBinding = "/ejb3/ServiceOneRemote")

@Stateless
@WebService
@WebContext(contextRoot="/myservices")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class ServiceOneImpl implements ServiceOneRemote {

	public String testMethodOne() {
		return "Hello from ServiceOne";
	}
}
</pre>
<p>I repeated the above steps for the second service implementation and packaged the classes as a jar file and deployed to my default config on JBoss. After jboss started up I was able to see both service implementations at <a href="http://localhost:8080/jbossws/services" rel="nofollow">http://localhost:8080/jbossws/services</a> and both urls displayed the proper WSDL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deon</title>
		<link>http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/comment-page-1/#comment-7</link>
		<dc:creator>Deon</dc:creator>
		<pubDate>Sun, 07 Dec 2008 20:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.franksalinas.net/?p=45#comment-7</guid>
		<description>And to add, I am using EJB3 annotations.</description>
		<content:encoded><![CDATA[<p>And to add, I am using EJB3 annotations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deon</title>
		<link>http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/comment-page-1/#comment-6</link>
		<dc:creator>Deon</dc:creator>
		<pubDate>Sun, 07 Dec 2008 20:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.franksalinas.net/?p=45#comment-6</guid>
		<description>Thanks, for the quick reply! I do not have an META-INF directory or a webservices.xml file. 
I am using annotations only in a basic eclipse java project.

So maybe that is my problem. 
But If this was the problem I would expect neither service to work.</description>
		<content:encoded><![CDATA[<p>Thanks, for the quick reply! I do not have an META-INF directory or a webservices.xml file.<br />
I am using annotations only in a basic eclipse java project.</p>
<p>So maybe that is my problem.<br />
But If this was the problem I would expect neither service to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/comment-page-1/#comment-5</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sun, 07 Dec 2008 19:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.franksalinas.net/?p=45#comment-5</guid>
		<description>Deon, 
In my case I was not even getting two service listings in the jbossws/services page. I fixed that issue by explicitly configuring the context root in the jboss.xml file adding the following xml tags:

&lt;code&gt;
&lt;pre&gt;
&lt;webservices&gt;
   &lt;context-root&gt;/webservices&lt;/context-root&gt;
   &lt;webservice-description&gt;
   &lt;webservice-description-name /&gt;
   &lt;wsdl-publish-location /&gt;
   &lt;/webservice-description&gt;
&lt;/webservices&gt;&lt;/pre&gt;
&lt;/code&gt;

You can also use the @WebContext attribute to do the same thing. However, it looks like you may have already done that. Sounds like the wsdl for the second service is not being generated or deployed correctly. I suggest you check the wsdl files in the META-INF directory to make sure they are both being generated. 

Also check your webservices.xml file to see that both services are showing up.

Let me know if anything here solves your problem.</description>
		<content:encoded><![CDATA[<p>Deon,<br />
In my case I was not even getting two service listings in the jbossws/services page. I fixed that issue by explicitly configuring the context root in the jboss.xml file adding the following xml tags:</p>
<p><code></p>
<pre>
&lt;webservices&gt;
   &lt;context-root&gt;/webservices&lt;/context-root&gt;
   &lt;webservice-description&gt;
   &lt;webservice-description-name /&gt;
   &lt;wsdl-publish-location /&gt;
   &lt;/webservice-description&gt;
&lt;/webservices&gt;</pre>
<p></code></p>
<p>You can also use the @WebContext attribute to do the same thing. However, it looks like you may have already done that. Sounds like the wsdl for the second service is not being generated or deployed correctly. I suggest you check the wsdl files in the META-INF directory to make sure they are both being generated. </p>
<p>Also check your webservices.xml file to see that both services are showing up.</p>
<p>Let me know if anything here solves your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deon</title>
		<link>http://javablog.franksalinas.net/2008/10/29/web-services-on-jboss/comment-page-1/#comment-4</link>
		<dc:creator>Deon</dc:creator>
		<pubDate>Sun, 07 Dec 2008 18:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.franksalinas.net/?p=45#comment-4</guid>
		<description>I am having a similar problem.

I am using JBoss-ws 2.0.1
I have 2 EJB3 Web services in jar files, but only one will deploy correct at a time.
I am not getting any JBoss Server error. I only know they are not deployed correctly , when I go to the JBossWS page and click on the links and one page will show the wsdl and the other page shows:

404
type Status report

message /ws-cis/AccountSummaryController

description The requested resource (/ws-cis/AccountSummaryController) is not available.</description>
		<content:encoded><![CDATA[<p>I am having a similar problem.</p>
<p>I am using JBoss-ws 2.0.1<br />
I have 2 EJB3 Web services in jar files, but only one will deploy correct at a time.<br />
I am not getting any JBoss Server error. I only know they are not deployed correctly , when I go to the JBossWS page and click on the links and one page will show the wsdl and the other page shows:</p>
<p>404<br />
type Status report</p>
<p>message /ws-cis/AccountSummaryController</p>
<p>description The requested resource (/ws-cis/AccountSummaryController) is not available.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
