[jboss-user] [EJB 3.0] - Starting embeddable EJB3 server

jaboj do-not-reply at jboss.com
Mon Aug 7 17:44:53 EDT 2006


HI,

I need a little help to start the standalone embeddable EJB3 service. I've downloaded a ALPHA and a ALPHA 8 version. Only the ALPHA_8 version matches the description in http://docs.jboss.org/ejb3/embedded/embedded.html. 

Some other guys mentioned a RC8 version (http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952489#3952489). ) - but I'm not able to locate this download. 

Where can I locate the newest download?

I need to use the standalone embeddable EJB3 server in som JUnit tests.

When I'm trying out the tutorial described in the above URL, I'm getting this exception:


anonymous wrote : 
  | WARN  07-08 23:30:34,909 (BeanSchemaBinding.java:init:227)  -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
  | ERROR 07-08 23:30:35,149 (AbstractController.java:incrementState:350)  -Error installing to Start: name=TransactionManagerInitializer state=Create
  | java.lang.NoSuchFieldError: xidFactory
  | 	at org.jboss.tm.TransactionManagerInitializer.start(TransactionManagerInitializer.java:110)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | ....
  | 

I start the server with this method:


  | public static void startupEmbeddedJboss()
  | 	   {
  | 	         EJB3StandaloneBootstrap.boot(null);
  | 	         EJB3StandaloneBootstrap.scanClasspath();
  | 	         
  | 	   }
  | 


I've think I've tried anything. I'm using Eclipse 3.2 and JBoss 4.0.4GA ad app.server. In eclipse the conf-dir is in the build-path. If I removed it the build-path then I'm getting another exception - so I'm sure that it is in the build path.

Can anybody help me with this? Has anyone succeded using this embeddable EJB3 server in a unit test? I really much need to know how?

Regard
jaboj

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963667#3963667

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963667



More information about the jboss-user mailing list