setProperty must be overridden by all subclasses of SOAPMessage

I'm trying to deploy some web services in a WAR application on JBoss 4.2.2, but I get this exception:


java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage



Solution:
Copy the three jars from $JBOSS_HOME\server\default\lib to $JBOSS_HOME\lib\endorsed.
  • jboss-jaxrpc.jar
  • jboss-jaxws.jar
  • jboss-saaj.jar

EJB3 deploy in JBOSS 5: jboss.xml schema problem

Please, specify above DTD in jboss.xml file:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC
       "-//JBoss//DTD JBOSS 5.0//EN"
       "http://www.jboss.org/j2ee/dtd/jboss_5_0.dtd">

<jboss>
...
</jboss>



Unable to add JBoss 5.0 as server in Eclipse

1) open file
"eclipse\plugins\org.eclipse.jst.server.generic.jboss_1.5....\servers\jboss5.serverdef"
2) find lines "" and "
path="${serverRootDirectory}/server/default/lib/mail.jar" />"
3) they should be changed to "" and
""
4) Save and restart eclipse

Lookup Jboss EJB deployed into ear

When you deploy as an ear, in JBoss the JNDI name of EJBs becomes:

earname/EjbBeanName/local

When you deploy outside an ear, the 'earname' part obviously is not there.

Lookup a Oracle Ias 10.1.3.1 Remote EJB

First of all:
1) Get the OC4J client!!!! It's the only way to get a lookup of an ejb deployed remotely in oracle ias 10.1.3.1!!!
2) set it in the lib of your application
3) Now you can  start combating against oracle ias ejb lookup
3.1) put the following properties in the InitialContext

Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
props.put(Context.PROVIDER_URL, "ormi://iasServerName:rmiPort/ejbApplicationName");
props.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
props.put(Context.SECURITY_CREDENTIALS, "manager");

Context contesto=new InitialContext(props);

ITestRemote testRemote=(ITestRemote)contesto.lookup("SessionBeanProva");

OK! You get it!

Lookup a JBoss Remote Ejb

Properties environment = new Properties();
    environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
    environment.put(Context.URL_PKG_PREFIXES, "org.jboss.namingrg.jnp.interfaces");
    environment.put(Context.PROVIDER_URL, "jnp://remoteServerName:1099");
    try{
         InitialContext contesto=new InitialContext(environment);
         ejbTest=(ITestRemote)contesto.lookup("RemoteEJBName/remote");
     }
    catch(NamingException e){
...
}