[JBoss-user] [EJB/JBoss] - EJB deployment problem
Hi friends, I have a problem deploying my EJB module to JBoss 4.03SP1. I deploy and run mu application using IntelliJ (with the JBoss plug-in). I get the following error: 11:40:54,906 WARN [ServiceController] Problem creating service jboss.j2ee:jndiName=helloEJB,service=EJB java.lang.NoSuchMethodException: org.jboss.ejb.StatelessSessionContainer.removeHome(javax.ejb.Handle) I really need your help with this problem Thanks Rivka my EJB looks like this: package sample; import org.nite.dataAccessObjects.basic.*; import org.nite.dataAccessObjects.util.*; import org.nite.exceptions.basic.ApplicationException; import org.nite.exceptions.basic.LightExceptionInfo; import org.nite.exceptions.basic.ValidateException; import org.nite.transferObjects.util.LabelValueBean; import org.nite.util.*; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.ejb.*; import java.util.*; public class helloBean implements SessionBean { private javax.ejb.SessionContext mySessionCtx; private CodeTableDAO codeTableDAO = null; static final private Log log = LogFactory.getLog(helloBean.class); public HashMap getCodeTables(){ return codeTableDAO.getCodeTables(); } public helloBean() { } public void ejbCreate() throws CreateException { DAOFactory dAOFactory = DAOFactory.getDAOFactory(DAOFactory.INFORMIX); codeTableDAO = dAOFactory.getCodeTableDAO(); } public void setSessionContext(SessionContext sessionContext) throws EJBException { mySessionCtx = sessionContext; } public void ejbRemove() throws EJBException { codeTableDAO = null; } public void ejbActivate() throws EJBException { } public void ejbPassivate() throws EJBException { } } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3922535#3922535 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922535 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - ejb deployment problem
Hi, I am trying to deploy a simple hello bean ejb on jboss 4.0.3 sp1. I am getting following exception 17:26:30,281 ERROR [MainDeployer] Could not create deployment: file:/C:/software s/jboss-4.0.3SP1/server/default/deploy/hellobean.jar org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE! - The ejb-jar.xml is given below ?xml version=1.0 encoding=UTF-8? !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd; ejb-jar enterprise-beans ejb-nameHelloBean/ejb-name HelloHome Hello ejb-classHelloBean/ejb-class session-type Stateless/session-type transaction-typeBean/transaction-type /enterprise-beans /ejb-jar === Please suggest how can the error be removed. Any help will be highly appreciated. Thanks a lot View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3914612#3914612 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3914612 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - EJB deployment problem
Sorry if this has been posted before! I'm using JDeveloper and when trying to deploy my application I got this error from JBoss: javax.naming.NamingException: ejb-ref: ejb/EmployeeSessionEJB, no ejb-link in web.xml and no jndi-name in jboss-web.xml JDeveloper generate an ejb-jar.xml with descriptors of the EJB's and in my web.xml I have references to them anyone knows how to solve this issue? Thanks in advance View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3880815#3880815 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3880815 --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - EJB deployment problem. Help me please...
I have an EJB application (with CMP beans) that works on j2ee (the application is made with Forte4) and I want to move it on Jboss (3.2.3 is the version on witch all the tests where made). The problem is that when the server starts to deploy the .ear it chrashes at a table create EJB-QL string (the datasource url is corect because it manages to create some tables). The table name is 'key', a name witch is reserved on mysql. The error output is the folowing : anonymous wrote : ERROR [EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Error while creating table Key; - nested throwable: (java.sql.SQLException: Syntax error or access violation, message from server: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Key (id VARCHAR(250) BINARY NOT NULL, current INTEGER, CONSTRAI) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:232) I think the problem came from the string where the table name in not inside quotes (mysql specific or at least ansi quotes). Can someone help me? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3830357#3830357 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3830357 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user