hi,
i faced the same problem like class cast exception earlier.
This is simple classpath error.
Make sure that your client program classpath contains the jbossall-client.jar .
And also open the META-INF of the jbossall-client.jar file and place the jar
files which are there in META-INF file in
hi,
i faced the same problem like class cast exception earlier.
This is simple classpath error.
Make sure that your client program classpath contains the jbossall-client.jar .
And also open the META-INF of the jbossall-client.jar file and place the jar
files which are there in META-INF file in
gdfvg
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225026#4225026
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225026
___
jboss-user mailing list
jboss-user@lists.jboss.or
Ahh... ok! Remote Interface don't work, but Local Interface does!
| import org.jboss.tutorial.stateful.bean.ShoppingCart;
|
| import javax.servlet.http.HttpServlet;
| import javax.servlet.http.HttpServletRequest;
| import javax.servlet.http.HttpServletResponse;
| import javax.servlet
Hmm... interresting!
| public class Client {
| public static void main(String[] args) throws Exception {
|
| [...]
| Reference ref = (Reference)
ctx.lookup("MyApplication/ShoppingCartBean/remote");
| System.out.println("ClassName:" + r
| public interface ShoppingCart {
|void buy(String product, int quantity);
|HashMap getCartContents();
| }
|
| @Local
| public interface ShoppingCartLocal extends ShoppingCart {
| }
|
| @Remote
| public interface ShoppingCartRemote extends ShoppingCart {
| }
|
For one thing: an interface can't be both local and remote.
http://jira.jboss.com/jira/browse/EJBTHREE-751
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002341#4002341
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=400