Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

java.lang.NoSuchMethodError in stateful session bean
Hello,

I've a stateful session bean. In the ejbCreate I construct an object. The
problem is that the constructor isn't found.

Here are the classes.

Session bean:
public class yComboDataBean implements SessionBean
{
SessionContext sessionContext;
yServerCtx serverCtx;

public void ejbCreate(yUserProfile userProfile) throws CreateException
{
try
{
serverCtx = new yServerCtx( userProfile );
}
catch(Exception e)
{
throw new CreateException("Could not make database connection in
HistorySessionBean");
}
}

public void ejbRemove()
{
try
{
serverCtx.disconnect();
}
catch(java.sql.SQLException e) {}
finally
{
serverCtx = null;
}
}

public void ejbActivate() {}
public void ejbPassivate() {}

public void setSessionContext(SessionContext sessionContext)
{
this.sessionContext = sessionContext;
}
}



public class yServerCtx
{
private yUserProfile userProfile;
public DatabaseOps dbOps = new DatabaseOps();
public static final BigDecimal zero = new BigDecimal(0);

public yServerCtx(yUserProfile userProfile) throws
javax.naming.NamingException, java.sql.SQLException
{
this.userProfile = userProfile;
}

public void disconnect() throws java.sql.SQLException
{
dbOps.disconnect();
dbOps = null;
userProfile = null;
}
}


I've deployed everything on a JBoss app server. The error message I got is:

10:56:01,459 ERROR [LogInterceptor] Unexpected Error:
java.lang.NoSuchMethodError:
yTools.Server.yServerCtx.<init>(LyTools/yUserProfile;)V
at yToolsBeans.yComboDataBean.ejbCreate(yComboDataBean.java:25)
..


Has anyone a clue,
thanks
Bart




Report this thread to moderator Post Follow-up to this message
Old Post
Biebel
03-20-04 01:45 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 01:47 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.