I did everything as described, including the update of the jar, the har deploys fine. But then I get a different error:
java.lang.IllegalArgumentException: Unknown session scope for jndi name [java:/hibernate/SessionFactory] Also, when I verify my jboss.xml, then the <interceptor service="..." scope="..."/> does not validate against jboss_3_2.dtd. ------------------------------------------------------------------------ Here my jboss.xml file: <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd"> | | <jboss> | <enterprise-beans> | <session> | <ejb-name>Event</ejb-name> | <jndi-name>ejb/Event</jndi-name> | </session> | </enterprise-beans> | | <container-configurations> | <container-configuration extends="Standard Stateless SessionBean"> | <container-name>Hibernate Stateless SessionBean</container-name> | <call-logging>true</call-logging> | <container-interceptors> | <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor> | <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor> | <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor> | <!-- CMT --> | <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor> | <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor> | <interceptor transaction="Container">org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor</interceptor> | <!-- BMT not feasible using Hibernate interceptor with 'transaction' scope!!!! --> | <!-- Notice that the service name is the same as that used to define the MBean --> | <interceptor service="jboss.har:service=Hibernate" scope="transaction">org.jboss.hibernate.session.EjbInterceptor</interceptor> | </container-interceptors> | </container-configuration> | </container-configurations> | </jboss> ________________________________________________ And here my hibernate-service.xml: <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate"> | <attribute name="DatasourceName">java:/DefaultDS</attribute> | <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute> | <attribute name="Dialect">net.sf.hibernate.dialect.HSQLDialect</attribute> | <attribute name="CacheProviderClass">net.sf.hibernate.cache.HashtableCacheProvider</attribute> | <attribute name="Hbm2ddlAuto">create-drop</attribute> | </mbean> ____________________________________________________ Here my ejb-jar.xml: <?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 > | | <description>[CDATA[No Description.]]</description> | <display-name>Generated by XDoclet</display-name> | | <enterprise-beans> | | <!-- Session Beans --> | <session > | <description>[CDATA[Description for Event]]</description> | <display-name>Name for Event</display-name> | | <ejb-name>Event</ejb-name> | | <home>com.yankeezulu.flightlog.interfaces.EventHome</home> | <remote>com.yankeezulu.flightlog.interfaces.Event</remote> | <ejb-class>com.yankeezulu.flightlog.ejb.EventBean</ejb-class> | <session-type>Stateless</session-type> | <transaction-type>Container</transaction-type> | | </session> | | </enterprise-beans> | | <assembly-descriptor > | <!-- transactions --> | <container-transaction > | <method > | <ejb-name>Event</ejb-name> | <method-name>*</method-name> | </method> | <trans-attribute>Required</trans-attribute> | </container-transaction> | | <!-- finder transactions --> | </assembly-descriptor> | | </ejb-jar> __________________________________________________________ And here the business method in my session EJB: /** | * Business method | * @ejb.interface-method view-type = "remote" | */ | public void createEvent(String title, Date date) { | | session = org.jboss.hibernate.session.SessionContext.getSession("java:/hibernate/SessionFactory"); | try { | | Transaction tx = session.beginTransaction(); | EventVO event = new EventVO(); | event.setTitle(title); | event.setDate(date); | session.save(event); | tx.commit(); | session.close(); | } | catch (HibernateException he){ | System.err.println(he.getMessage()); | } | } How did you configure it? Can you send me your ear file? [EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844632#3844632 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844632 ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user