Help me please...
Hi friends...!
I'w working with SLSBeans ,I created SLSB and compiled with java version 1.4 and deployed them on Weblogic7.0 with Weblogic Builder successfully.Then I tried to access the business method from the below client,but I couldn't. I've been getting an exception like.....
:Exception in thread "main" java.lang.UnsupportedClassVersionError :javax/management/InvalidAttributeValueException (Unsupported major.minor version 49.0).
//package newpack;
import javax.ejb.*;
import java.rmi.*;
import javax.naming.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.*;
public class SLSBClient
{
public static void main(String[] args) throws Exception
{
Context ic=getContext();
Object obj=ic.lookup("slsb");
MyHome h=(MyHome)obj;
MyRemote r=h.create();
r.getMessage();
}
public static Context getContext() throws Exception
{
Hashtable h=new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL,"t3://localhost:7001");
h.put(Context.SECURITY_PRINCIPAL,"weblogic");//username
h.put(Context.SECURITY_CREDENTIALS,"weblogic");//password
return new InitialContext(h);
}
}
!!!!!!..........what might be the wrong thing ?..!!!!!!!!!

