-
1. Re: Errors in Jboss 3.2.5
thejavafreak Feb 5, 2005 2:50 AM (in response to jackk)It looks like you haven't got the required class
com.javiers.JaviersBroker.FitnessBroker
Have you checked it? -
2. Re: Errors in Jboss 3.2.5
jackk Feb 5, 2005 11:06 AM (in response to jackk)The class is in a jar and I put the jar file in the /clients directory. It compiles, but runtime dies. Here is the code in the bean class. I was just testing it .
package com.javiers.j2ee;
import java.rmi.RemoteException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import com.javiers.JaviersBroker.FitnessBroker;
public class LoginBean implements SessionBean
{
/**
*
*/
public boolean login(String username, String password)
{
boolean res;
String loginxml = "com.javiers.contactmanagement.WSContact" +
"" +
username + "" + password +
"";
FitnessBroker fb = new FitnessBroker(loginxml);
System.out.println("loginxml = " + loginxml);
String result = fb.processRequest();
System.out.println("result = " + result);
if ( result.indexOf("FAILURE") == -1 )
{
res = true;
}
else
{
res = false;
}
return res;
}
public LoginBean(){}
public void ejbCreate() {}
public void ejbRemove() {}
public void ejbActivate() {}
public void ejbPassivate() {}
public void setSessionContext(SessionContext sc) {}
}
Thanks. -
3. Re: Errors in Jboss 3.2.5
darranl Feb 6, 2005 4:50 AM (in response to jackk)You should not be changing anything in the client folder.
Where in the jar file is your class, it doesn't just need to be in there is needs to be in the correct location 'com/javiers/j2ee'. -
4. Re: Errors in Jboss 3.2.5
jackk Feb 6, 2005 11:06 AM (in response to jackk)Wow! I didn't know that! So, where do you put this jar file?
Thanks.