A quick update for those who like living on the edge ;-)
Firstly, I've published a snapshot of Embedded JBoss beta3 - this is a pretty major update to Embedded JBoss (and its components like EJB3, Hibernate etc.) and pretty close to the beta3 release - so it would be great to get some feedback. It's looking good (but there is a known issue with JMS).
If you want to give it a go:
- Tomcat: Follow these instructions to install into a /fresh/ copy of Tomcat.
- SeamTest: Replace your current bootstrap directory and lib/test directory
Secondly, if you've made the move to Java 6 you need a couple of tweaks to Embedded JBoss for the beta3 snapshot:
- Start java with -Dsun.lang.ClassLoader.allowArraySyntax=true
- Java 6 SE includes JAXB 2.0, but Embedded JBoss needs JAXB 2.1. The easiest way to do this is to put the jaxb-api.jar (for JAXB 2.1) into the
endorsed
library directory, then start java with -Djava.endorsed.dirs=/path/to/endorsed/directoy
Your testng launcher would look something like this:
<testng outputdir="/path/to/test/report/directory"> <jvmarg line="-Djava.endorsed.dirs=/path/to/endorsed/directory" /> <jvmarg line="-Dsun.lang.ClassLoader.allowArraySyntax=true" /> <classpath refid="test.classpath" /> <xmlfileset dir="/path/to/src/directory" includes="**/testng.xml" /> </testng>
Tags: Embedded JBoss | Seam
Concerning this website JDK6 u4 will contain JAXB2.1.3
I've tried getting this to work with Seam 2.0.1.CR1 within maven and get the following error:
15:33:39,001 WARN [UnifiedLoaderRepository3] Tried to add non-URLClassLoader. Ignored
15:33:39,197 ERROR [AbstractKernelController] Error installing to Instantiated: name=FileStructure state=Described java.lang.NoSuchMethodError: javassist.scopedpool.ScopedClassPool.<init>(Ljava/lang/ClassLoader;Ljavassist/ClassPool;Ljavassist/scopedpool/ScopedClassPoolRepository;Z)V
at org.jboss.aop.classpool.AOPClassPool.<init>(AOPClassPool.java:69)
Is there a solution to this problem. I'm seeing the same issue when attempting to run SeamTest via TestNG 5.6 from eclipse.
This is classpath problem. I documented how to correctly set up the classpath for Seam Test/Embedded in the Seam Testing chapter. You can find a snapshot of the docs here.
I'm having a hard time upgrading from seam 1.2.1 to seam 2.0.1.CR1. I saw that there is a new version of Embedded JBoss and decided it is now or never for the upgrade. I followed all the instructions on the wiki including the ones in this blog (concerning java jdk 6.0). I'm using a Postrgres DB, so I created a postgress-ds.xml file and copied to the deploy dir. However, I get a java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager exception. I'm new to jboss configuration, so maybe I'm missing a file (maybe need to delete a file), configuration, etc? can somebody please point me on the right direction?
My ds file looks like this:
Sorry, It seems I cannot post xml data.
here is the stack trace:
java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23) at org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:325) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) at org.jboss.seam.persistence.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:165) at org.jboss.seam.persistence.HibernateSessionFactory.startup(HibernateSessionFactory.java:79) 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:597) at org.jboss.seam.util.Reflections.invoke(Reflections.java:21) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
This is the right place to post these questions: http://www.jboss.com/index.html?module=bb&op=viewforum&f=231
Hello,
What is the that is mentionned in the original post please ?
Thanks in advance for your feedbak.
Best regards, Christophe